Web and mobile have their own files now. Determine presence of cordova when in mobile app.
This commit is contained in:
parent
176fd37995
commit
e7c3cb6d47
|
@ -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>
|
|
@ -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 () {};
|
|
@ -169,5 +169,4 @@ web.init = function () {
|
|||
setCounter = web.setCounter;
|
||||
|
||||
web.getState();
|
||||
};
|
||||
web.init();
|
||||
};
|
Loading…
Reference in New Issue