Created
January 19, 2011 20:24
-
-
Save madrobby/786798 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
function r(){ | |
var s1 = document.getElementById('menu'), | |
s2 = document.getElementById('settings'); | |
s1.style.cssText += ';-webkit-transform:none;'; | |
s1.offsetWidth; | |
s1.style.cssText += ';-webkit-transform:translate3d(0,0,0);'; | |
s2.style.cssText += ';-webkit-transform:none;'; | |
s2.offsetWidth; | |
s2.style.cssText += ';-webkit-transform:translate3d(0,0,0);'; | |
} | |
</script> | |
</head> | |
<body onload="onBodyLoad()"> | |
<!--Game Container--> | |
<div id="container"> | |
<!--Menu Screen--> | |
<section id="menu" class="screen"> | |
<div class="buttons"> | |
<button class="blue" id="btn" rel="slideleft">Slide Left</button> | |
</div> | |
</section> | |
<!--Settings Screen--> | |
<section id="settings" class="screen"> | |
<!--Navbar--> | |
<div class="navbar"> | |
<a class="leftButton" id="backToMenu" href="#menu">Menu</a> | |
<h1>Hello World</h1> | |
</div> | |
<!--Form--> | |
<form> | |
<div class="form-item"> | |
<input type="text" name="name" onchange="r()" /> | |
</div> | |
<div class="form-item"> | |
<input type="email" name="email" onchange="r()" /> | |
</div> | |
</form> | |
</section> | |
</div> <!--/#container--> | |
</body> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment