Web and mobile have their own files now. Determine presence of cordova when in mobile app.

This commit is contained in:
mmcwilliams 2017-11-22 12:10:33 -05:00
parent 176fd37995
commit e7c3cb6d47
3 changed files with 22 additions and 9 deletions

View File

@ -256,14 +256,11 @@
</div>
</footer>
<script src="static/js/intval.core.js"></script>
<script src="static/js/intval.web.js"></script>
<script src="static/js/intval.mobile.js"></script>
<script>
</script>
<script>
var mobile = {};
mobile.init = function () {
'use strict';
};
'use strict';
web.init();
</script>
</body>
</html>

View File

@ -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 () {};

View File

@ -169,5 +169,4 @@ web.init = function () {
setCounter = web.setCounter;
web.getState();
};
web.init();
};