From 975b28552b104962598ea484d0bf6b11fdd1f6aa Mon Sep 17 00:00:00 2001 From: Alib Date: Mon, 29 Mar 2010 21:33:44 +0200 Subject: fixed version in history --- HISTORY | 2 +- index.php | 2 +- js/functions.js | 20 ++++++++++++++++++++ 3 files changed, 22 insertions(+), 2 deletions(-) diff --git a/HISTORY b/HISTORY index 1af500f..176e87b 100755 --- a/HISTORY +++ b/HISTORY @@ -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 diff --git a/index.php b/index.php index c1a16f6..f67390c 100644 --- a/index.php +++ b/index.php @@ -15,7 +15,7 @@ if (substr_count($_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip')) ob_start("ob_gzhandl - +
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 -- cgit v1.2.3