Last active
October 15, 2018 01:00
-
-
Save rclayton-the-terrible/b9abb3e4474b2b66206cfbedb3b65166 to your computer and use it in GitHub Desktop.
Mindy Code
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> | |
<title>Test Document</title> | |
<style> | |
h1 { | |
font-family: 'Courier New', Courier, monospace; | |
color: red; | |
} | |
</style> | |
<link rel="stylesheet" href="style.css" /> | |
<script src="https://code.jquery.com/jquery-3.3.1.min.js" type="text/javascript"></script> | |
<script type="text/javascript"> | |
console.log('Hello Mindy') | |
console.log('Hello jQuery', jQuery) | |
document.write('<h1>Dynamic H1 top</h1>'); | |
</script> | |
<script src="index.js" type="text/javascript"></script> | |
</head> | |
<body> | |
<h1 style="color: green">Hello World</h1> | |
<h1 id="name-label">Tell us your name:</h1> | |
<input id="name" type="text" /><button id="clickme" type="button">Press Me</button> | |
<script type="text/javascript"> | |
jQuery("#clickme").on('click', function() { | |
var name = jQuery('#name').val() | |
jQuery('#name-label').html('Hello ' + name) | |
}); | |
</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
console.log('Hello from index.js') |
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
h1 { | |
text-decoration: underline; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment