Last active
December 14, 2015 18:38
-
-
Save paoloboschini/5130656 to your computer and use it in GitHub Desktop.
Native MoSync Live
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta http-equiv="Content-type" content="text/html; charset=utf-8"> | |
<script type="text/javascript"> | |
mosync.nativeui.UIReady = function() { | |
var mainScreen = document.getNativeElementById("mainScreen"); | |
mainScreen.show(); | |
var vibrateButton = document.getNativeElementById("vibrateButton"); | |
}; | |
document.addEventListener("deviceready", function() { | |
mosync.nativeui.initUI(); | |
}, true); | |
</script> | |
</head> | |
<body> | |
<div id="NativeUI"> | |
<div data-widgetType="Screen" id="mainScreen"> | |
<div data-widgetType="CameraPreview"> | |
</div> | |
</div> <!--screen widget--> | |
</div> <!--nativeui--> | |
</body> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mosync.nativeui.UIReady = function() { | |
var mainScreen = document.getNativeElementById("mainScreen"); | |
mainScreen.show(); | |
//var vibrateButton = document.getNativeElementById("vibrateButton"); | |
}; | |
document.addEventListener("deviceready", function() { | |
mosync.nativeui.initUI(); | |
},true); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta http-equiv="Content-type" content="text/html; charset=utf-8"> | |
</head> | |
<body> | |
<div id="NativeUI"> | |
<div data-widgetType="Screen" id="mainScreen"> | |
<!-- Image widget --> | |
<div data-widgetType="Image" image="resources/100.jpeg"></div> | |
</div> <!--screen widget--> | |
</div> <!--nativeui--> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment