diff options
author | Alib <aliboba@free.fr> | 2010-03-29 21:33:44 +0200 |
---|---|---|
committer | Alib <aliboba@free.fr> | 2010-03-29 21:33:44 +0200 |
commit | 975b28552b104962598ea484d0bf6b11fdd1f6aa (patch) | |
tree | 2fedbcafe24a8c37a53be8f203c1de0d610384b4 | |
parent | 80b1c4ce5fd04e5d9caf4c1cc0bf12fcc9d1e115 (diff) | |
download | istreamdev-975b28552b104962598ea484d0bf6b11fdd1f6aa.tar.gz istreamdev-975b28552b104962598ea484d0bf6b11fdd1f6aa.tar.bz2 |
fixed version in history
-rwxr-xr-x | HISTORY | 2 | ||||
-rw-r--r-- | index.php | 2 | ||||
-rw-r--r-- | js/functions.js | 20 |
3 files changed, 22 insertions, 2 deletions
@@ -1,7 +1,7 @@ iStreamdev History ------------------ -03.29.2010 - 0.1.0 +03.29.2010 - 1.0.0 - Massive rework from scratch - Now based on JQuery/JQTouch @@ -15,7 +15,7 @@ if (substr_count($_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip')) ob_start("ob_gzhandl <link rel="stylesheet" href="min/?b=css&f=jqtouch.css,theme.css,istreamdev.css,spinningwheel.css" type="text/css" media="screen" /> <script src="min/?b=js&f=jquery-1.4.2.min.js,jqtouch.js,jqtouch.transitions.js,functions.js,spinningwheel.js,jquery.scrollTo-1.4.2.js,istreamdev.js" type="text/javascript" charset="utf-8"></script> </head> - <body> + <body onorientationchange=\"updateOrientation();\"> <div id="loader"></div> <div id="status_box"></div> <div id="jqt"> diff --git a/js/functions.js b/js/functions.js index f628142..2ea12d6 100644 --- a/js/functions.js +++ b/js/functions.js @@ -120,3 +120,23 @@ function str_pad (input, pad_length, pad_string, pad_type) { return input;
}
+
+function updateOrientation() {
+ switch(window.orientation) {
+ case 0:
+ orient = "portrait";
+ break;
+ case -90:
+ orient = "landscape";
+ break;
+ case 90:
+ orient = "landscape";
+ break;
+ case 180:
+ orient = "portrait";
+ break;
+ }
+ document.body.setAttribute("orient", orient);
+ window.scrollTo(0, 1);
+
+}
\ No newline at end of file |