Skip to content

Instantly share code, notes, and snippets.

@tenwy
Last active January 16, 2018 07:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tenwy/f7b69b8b8830c876c4e5d865c4fa17c9 to your computer and use it in GitHub Desktop.
Save tenwy/f7b69b8b8830c876c4e5d865c4fa17c9 to your computer and use it in GitHub Desktop.
Sample webpage
h1, h2 {
color: #333;
}
h1::before {
content: "<3 ";
color: #f00;
}
<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>
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