<p style="line-height: 18px; font-size: 18px; font-family: times;">
Click "<i>Load samples</i>" to view and edit more JS samples.<br>
<br>
Labyrinth generated with JavaScript:<br><br>
<div id="a"></div>
<script>
var users=[];
var user={name:"abishkar",email:"abishkar"};
users=[user];
users.push(user);
window.alert(users[0]);
var c=document.getElementById("a");
j=document.getElementById("a")
j.innerHTML = "New text!";
app = {
location : 'abc',
api : 'abc',
owner :null,
users:[],
groups:[],
roles:[],
documents:{},
customer:null
}
position();
function position(){
getCurrentPosition(function(position){
window.alert("first callback"+position);
},function(){
window.alert("second callback");
});
}
function getCurrentPosition(callback,callback1){
callback();
callback1();
}
function Data(position,map,clickable,title,animation,icon){
this.position=position;
this.map=map;
this.clickable=clickable;
this.title=title;
this.animation=animation;
this.icon=icon;
}
var minidata = new Data({
position: "userLocation",
map: "s",
clickable: false,
title:"This is your location.",
animation : "paint",
icon: 'image'
});
var minidata1 = new Data(
"userLocation",
"s",
false,
"This is your location.",
"paint",
'image'
);
</script>
</p>
No comments:
Post a Comment