Version - 1 - 1-38
This commit is contained in:
13
Version - 1/main.js
Normal file
13
Version - 1/main.js
Normal file
@@ -0,0 +1,13 @@
|
||||
window.onload = function(){
|
||||
var red = document.getElementById('red');
|
||||
var green = document.getElementById('green');
|
||||
var button = document.getElementById('button1');
|
||||
button.ontouchstart = function(){
|
||||
red.style.visibility='hidden';
|
||||
green.style.visibility='visible'
|
||||
}
|
||||
button.ontouchend=function(){
|
||||
red.style.visibility='visible';
|
||||
green.style.visibility='hidden'
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user