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>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
<script src="static/js/intval.core.js"></script>
|
<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>
|
|
||||||
<script>
|
|
||||||
var mobile = {};
|
|
||||||
mobile.init = function () {
|
|
||||||
'use strict';
|
'use strict';
|
||||||
};
|
web.init();
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</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 () {};
|
|
@ -170,4 +170,3 @@ web.init = function () {
|
||||||
|
|
||||||
web.getState();
|
web.getState();
|
||||||
};
|
};
|
||||||
web.init();
|
|
Loading…
Reference in New Issue