summaryrefslogtreecommitdiff
path: root/mobile/mobile.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2009-12-17 19:42:30 +0300
committerAndrew Dolgov <[email protected]>2009-12-17 19:42:30 +0300
commit3518718b25d2d7ff540040293b06b5e872f86216 (patch)
tree7d6d722ee2383f8df4f930c1ec191b7b246338dd /mobile/mobile.js
parentd5e71621fe571dae203094fd42d8fc9c83a2d483 (diff)
mobile: add experimental iUI based version
Diffstat (limited to 'mobile/mobile.js')
-rw-r--r--mobile/mobile.js48
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);
- }
-}
-