-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
11 lines (11 loc) · 844 Bytes
/
index.html
1
2
3
4
5
6
7
8
9
10
11
v1.0.7
<textarea id="code"></textarea>
<br>
<button onclick="alert(eval($('#code')[0].value))">eval</button>
<button onclick="var i=0, y=eval($('#code')[0].value); for(var x in y) alert([++i,x,y[x]])">list</button>
<button onclick="var a=eval($('#code')[0].value);b=a.splice(4);alert(a);alert(b);alert(cordova.exec(a[0],a[1],a[2],a[3],b));">exec</button>
<button onclick="cordova.exec(function(){for(var x in arguments)alert([x,arguments[x]])},function(e){alert(['failed',e])},'Echo','echo',[$('#code')[0].value])">Echo</button>
<button onclick="cordova.exec(function(){for(var x in arguments)alert([x,arguments[x]])},function(e){alert(['failed',e])},'Jeucko','echo',[$('#code')[0].value])">Jeucko</button>
<script master src="phonegap.js"></script>
<script master src="PushNotification.js"></script>
<script master src="js/mylib.js"></script>