Last active
January 16, 2018 07:32
-
-
Save tenwy/f7b69b8b8830c876c4e5d865c4fa17c9 to your computer and use it in GitHub Desktop.
Sample webpage
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
h1, h2 { | |
color: #333; | |
} | |
h1::before { | |
content: "<3 "; | |
color: #f00; | |
} |
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
<html> | |
<head> | |
<title>Skygear Static Page</title> | |
<link rel="stylesheet" type="text/css" href="index.css"> | |
</head> | |
<body> | |
<h1>Hello World!</h1> | |
<h2></h2> | |
</body> | |
<script src="index.js"></script> | |
</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
var d = new Date(); | |
var datestring = d.getDate() + "-" + (d.getMonth()+1) + "-" + d.getFullYear() + " " + | |
d.getHours() + ":" + d.getMinutes(); | |
var dateHeading = document.querySelector('h2'); | |
dateHeading.textContent = datestring; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment