summaryrefslogtreecommitdiff
path: root/StoneIsland/platforms/ios/www/js/index.js
blob: 2875c90ba9cb16ef845d9af5856cf3a3bf329c9c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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()

})()