Skip to content

Instantly share code, notes, and snippets.

@tenwy tenwy/index.css
Last active Jan 16, 2018

Embed
What would you like to do?
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
You can’t perform that action at this time.