From e7c3cb6d475c1634cdc0587a16617859706541f3 Mon Sep 17 00:00:00 2001 From: mmcwilliams Date: Wed, 22 Nov 2017 12:10:33 -0500 Subject: [PATCH] Web and mobile have their own files now. Determine presence of cordova when in mobile app. --- app/www/index.html | 11 ++++------- app/www/static/js/intval.mobile.js | 17 +++++++++++++++++ app/www/static/js/intval.web.js | 3 +-- 3 files changed, 22 insertions(+), 9 deletions(-) create mode 100644 app/www/static/js/intval.mobile.js diff --git a/app/www/index.html b/app/www/index.html index 63daf9e..fc0cb74 100644 --- a/app/www/index.html +++ b/app/www/index.html @@ -256,14 +256,11 @@ + + - \ No newline at end of file diff --git a/app/www/static/js/intval.mobile.js b/app/www/static/js/intval.mobile.js new file mode 100644 index 0000000..e2cec11 --- /dev/null +++ b/app/www/static/js/intval.mobile.js @@ -0,0 +1,17 @@ +'use strict'; +var mobile = {}; +mobile.init = function () { + frame = web.frame; + getState = web.getState; + setDir = web.setDir; + setExposure = web.setExposure; + setCounter = web.setCounter; + + mobile.getState(); +}; + +mobile.frame = function () {}; +mobile.getState = function () {}; +mobile.setDir = function () {}; +mobile.setExposure = function () {}; +mobile.setCounter = function () {}; \ No newline at end of file diff --git a/app/www/static/js/intval.web.js b/app/www/static/js/intval.web.js index 84e0193..4cbd754 100644 --- a/app/www/static/js/intval.web.js +++ b/app/www/static/js/intval.web.js @@ -169,5 +169,4 @@ web.init = function () { setCounter = web.setCounter; web.getState(); -}; -web.init(); \ No newline at end of file +}; \ No newline at end of file