diff --git a/Web/js/functions.js b/Web/js/functions.js index cad1222..52829ba 100644 --- a/Web/js/functions.js +++ b/Web/js/functions.js @@ -12,7 +12,6 @@ function sizeAndPos() { 'width' : w, 'height' : h }); - $('body, html').css('height', h+53) c.clearRect(0,0, width(), height()); c.putImageData(data, 0, 0); } diff --git a/Web/js/main.css b/Web/js/main.css new file mode 100644 index 0000000..e69de29 diff --git a/Web/js/main.js b/Web/js/main.js index b433f88..815ad61 100644 --- a/Web/js/main.js +++ b/Web/js/main.js @@ -89,12 +89,12 @@ $(document).ready(function() { // TODO: Check for Update - /*var request = navigator.mozApps.getInstalled(); + var request = navigator.mozApps.getInstalled(); request.onsuccess = function() { var app = this.result[0]; var latest = $.ajax({url:'manifest-web.webapp'}); var selfApp = navigator.mozApps.getSelf(); - selfApp.onsuccess = function() { + /*selfApp.onsuccess = function() { if(this.result) { latest.onload = function() { if( this.response ) { @@ -114,7 +114,7 @@ $(document).ready(function() { } } } - } + }*/ if( !app && confirm('Do you want to Install this app?') ) { var ins = navigator.mozApps.install('http://mdibaiee.github.io/Sketchy/Web/manifest-web.webapp'); ins.onsuccess = function() { @@ -128,7 +128,7 @@ $(document).ready(function() { } request.onerror = function() { alert('An error occured while trying to check for updates'); - }*/ + }