Created
November 9, 2017 13:53
-
-
Save 12Aleks/f0c0b22e4480ed7620fe0b6f0621cf0e to your computer and use it in GitHub Desktop.
JS Bin // source https://jsbin.com/damaqiw
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
<script src="https://code.jquery.com/jquery-3.1.0.js"></script> | |
<style id="jsbin-css"> | |
.color{ | |
color:red; | |
} | |
.button{ | |
backround: green; | |
} | |
</style> | |
</head> | |
<body> | |
<p class='color'>Color</p> | |
<input class='button' type='button' value='button'> | |
<script id="jsbin-javascript"> | |
$('.button').click(function(){ | |
$('p').fadeToggle(1000); | |
}); | |
</script> | |
</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
.color{ | |
color:red; | |
} | |
.button{ | |
backround: green; | |
} |
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
$('.button').click(function(){ | |
$('p').fadeToggle(1000); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment