diff options
author | Andrew Dolgov <[email protected]> | 2009-12-17 19:42:30 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2009-12-17 19:42:30 +0300 |
commit | 3518718b25d2d7ff540040293b06b5e872f86216 (patch) | |
tree | 7d6d722ee2383f8df4f930c1ec191b7b246338dd /mobile/mobile.js | |
parent | d5e71621fe571dae203094fd42d8fc9c83a2d483 (diff) |
mobile: add experimental iUI based version
Diffstat (limited to 'mobile/mobile.js')
-rw-r--r-- | mobile/mobile.js | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/mobile/mobile.js b/mobile/mobile.js deleted file mode 100644 index 64d581410..000000000 --- a/mobile/mobile.js +++ /dev/null @@ -1,48 +0,0 @@ -function debug(msg) { - // no-op -} - -function setCookie(name, value, lifetime, path, domain, secure) { - - var d = false; - - if (lifetime) { - d = new Date(); - d.setTime(d.getTime() + (lifetime * 1000)); - } - - debug("setCookie: " + name + " => " + value + ": " + d); - - int_setCookie(name, value, d, path, domain, secure); - -} - -function int_setCookie(name, value, expires, path, domain, secure) { - document.cookie= name + "=" + escape(value) + - ((expires) ? "; expires=" + expires.toGMTString() : "") + - ((path) ? "; path=" + path : "") + - ((domain) ? "; domain=" + domain : "") + - ((secure) ? "; secure" : ""); -} - -function exception_error(location, e, silent) { - var msg; - - if (e.fileName) { - var base_fname = e.fileName.substring(e.fileName.lastIndexOf("/") + 1); - - msg = "Exception: " + e.name + ", " + e.message + - "\nFunction: " + location + "()" + - "\nLocation: " + base_fname + ":" + e.lineNumber; - - } else if (e.description) { - msg = "Exception: " + e.description + "\nFunction: " + location + "()"; - } else { - msg = "Exception: " + e + "\nFunction: " + location + "()"; - } - - if (!silent) { - alert(msg); - } -} - |