Created
February 8, 2015 22:17
-
-
Save im7mortal/004edbcdd22cf1175d51 to your computer and use it in GitHub Desktop.
azVaxz
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
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<title></title> | |
</head> | |
<body> | |
<div id='Hello' class='world' onclick="hello()"> | |
Hello world!!! | |
</div> | |
</body> | |
</html> |
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 hello () { | |
var element = document.getElementById("Hello"); | |
element.innerHTML = "Hi!!!Lol!!!"; | |
element.style.backgroundColor = "yellow"; | |
} |
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
div { | |
height: 100px; | |
} | |
#Hello { | |
width: 100px; | |
} | |
.world { | |
background-color: orange | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment