summaryrefslogtreecommitdiff
path: root/StoneIsland/platforms/ios/www/js/index.js
diff options
context:
space:
mode:
authorJules Laplace <jules@okfoc.us>2015-09-10 14:58:03 -0400
committerJules Laplace <jules@okfoc.us>2015-09-10 14:58:03 -0400
commitd73a4b1c5a2540077607dcc4001acbae85980ae4 (patch)
treec30089f1742f9430bb18679dc6664157a5dc66f4 /StoneIsland/platforms/ios/www/js/index.js
parent124e6c0a8d9577b4a30e0b265f5c23d637c41966 (diff)
app skeleton
Diffstat (limited to 'StoneIsland/platforms/ios/www/js/index.js')
-rw-r--r--StoneIsland/platforms/ios/www/js/index.js37
1 files changed, 37 insertions, 0 deletions
diff --git a/StoneIsland/platforms/ios/www/js/index.js b/StoneIsland/platforms/ios/www/js/index.js
new file mode 100644
index 00000000..2875c90b
--- /dev/null
+++ b/StoneIsland/platforms/ios/www/js/index.js
@@ -0,0 +1,37 @@
+var app = (function(){
+
+ var app = {}
+ app.init = function(){
+ app.bind()
+ }
+ app.bind = function(){
+ document.addEventListener('deviceready', app.ready, false)
+ }
+ app.ready = function(){
+ cookies.setItem("testing", "testing", 60*60*24*365)
+ console.log(document.cookie)
+ $.ajax({
+ url: "http://lvh.me:5000/",
+ xhrFields: {
+ withCredentials: true
+ },
+ success: function(){
+ app.again()
+ }
+ })
+ document.write("duh")
+ }
+ app.again = function(){
+ $.ajax({
+ url: "http://lvh.me:5000/",
+ xhrFields: {
+ withCredentials: true
+ },
+ success: function(){
+ }
+ })
+ }
+
+ app.init()
+
+})()