Created
August 27, 2017 19:21
-
-
Save sail1972/67013b9b151082610f714f251134430f to your computer and use it in GitHub Desktop.
Zepto.js Test Zepto.js Test // source https://jsbin.com/kuwopil
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 name="description" content="Zepto.js Test"> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>Zepto.js Test</title> | |
<script src="https://zeptojs.com/zepto.min.js"></script> | |
</head> | |
<body> | |
<h1>Hello</h1> | |
<p /> | |
<button>Change Title</button> | |
<script id="jsbin-javascript"> | |
$("button").on('click', function(e) { | |
//alert($("h1").html()); | |
$("h1")[0].innerText === "Hello" ? $("h1")[0].innerText = "World" : $("h1")[0].innerText = "Hello"; | |
}); | |
</script> | |
<script id="jsbin-source-javascript" type="text/javascript">$("button").on('click', function(e) { | |
//alert($("h1").html()); | |
$("h1")[0].innerText === "Hello" ? $("h1")[0].innerText = "World" : $("h1")[0].innerText = "Hello"; | |
});</script></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
$("button").on('click', function(e) { | |
//alert($("h1").html()); | |
$("h1")[0].innerText === "Hello" ? $("h1")[0].innerText = "World" : $("h1")[0].innerText = "Hello"; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment