diff options
author | TheTroll <trolldev@gmail.com> | 2010-03-29 21:41:02 +0200 |
---|---|---|
committer | TheTroll <trolldev@gmail.com> | 2010-03-29 21:41:02 +0200 |
commit | 4366ae3eef7e78ea2a1f68d281cff6b5bb62dc13 (patch) | |
tree | f71b7b9dd87966b959e243b0fe9a0bc17296499e /js | |
parent | 757a348d254dc4dffe2042b0690942208222f106 (diff) | |
parent | 975b28552b104962598ea484d0bf6b11fdd1f6aa (diff) | |
download | istreamdev-4366ae3eef7e78ea2a1f68d281cff6b5bb62dc13.tar.gz istreamdev-4366ae3eef7e78ea2a1f68d281cff6b5bb62dc13.tar.bz2 |
Merge branch 'master' of projects.vdr-developer.org:istreamdev
* 'master' of projects.vdr-developer.org:istreamdev:
fixed version in history
typo README
ramdir still missing in git
readme
Diffstat (limited to 'js')
-rw-r--r-- | js/functions.js | 20 |
1 files changed, 20 insertions, 0 deletions
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 |