summaryrefslogtreecommitdiffstats
path: root/sca-cpp/trunk/modules/edit/htdocs/logout/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'sca-cpp/trunk/modules/edit/htdocs/logout/index.html')
-rw-r--r--sca-cpp/trunk/modules/edit/htdocs/logout/index.html20
1 files changed, 18 insertions, 2 deletions
diff --git a/sca-cpp/trunk/modules/edit/htdocs/logout/index.html b/sca-cpp/trunk/modules/edit/htdocs/logout/index.html
index bce50815a7..f5dd06ee99 100644
--- a/sca-cpp/trunk/modules/edit/htdocs/logout/index.html
+++ b/sca-cpp/trunk/modules/edit/htdocs/logout/index.html
@@ -20,7 +20,7 @@
<html>
<head>
<title>Sign out</title>
-<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0"/>
+<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0"/>
<meta name="apple-mobile-web-app-capable" content="yes"/>
<meta name="apple-mobile-web-app-status-bar-style" content="black"/>
<base href="/logout/"/>
@@ -46,12 +46,28 @@ function submitSignout() {
return true;
}
+/**
+ * Handle orientation change.
+ */
+document.body.onorientationchange = function(e) {
+ //log('onorientationchange');
+
+ // Scroll to the top and hide the address bar
+ window.scrollTo(0, 0);
+
+ return true;
+};
+
+/**
+ * Document load post processing.
+ */
function onload() {
+ //log('onload');
+
// Show the page
document.body.style.visibility = 'visible';
// Scroll to the top and hide the address bar
- window.scrollTo(0, 1);
window.scrollTo(0, 0);
return true;
}