Skip to content

Instantly share code, notes, and snippets.

View AndyNovo's full-sized avatar

Andy Novocin AndyNovo

View GitHub Profile
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>Sample SPA using HashChange</title>
<script type="text/javascript" charset="utf-8">
var handleHash = function(){
document.body.innerHTML = document.querySelector(location.hash).innerHTML;
};
window.addEventListener("hashchange", handleHash);
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>Sample SPA using HashChange</title>
<script type="text/javascript" charset="utf-8">
var handleHash = function(){
alert("Hash changed to "+location.hash);
document.body.innerHTML = document.querySelector(location.hash).innerHTML;
{
"name": "API-example",
"version": "0.0.0",
"description": "Serving UTC time",
"main": "server.js",
"repository": "",
"author": "Andy Novocin",
"dependencies": {
"express": "~3.2.4"
}
@AndyNovo
AndyNovo / dabblet.css
Created January 5, 2016 22:45
Display play
/**
* Display play
*/
body {
background: #f06;
background: linear-gradient(45deg, #f06, yellow);
min-height: 100%;
}
span {
@AndyNovo
AndyNovo / dabblet.css
Created January 5, 2016 21:49
box model basics
/* box model basics */
div {
background-color: #aaa;
display: block;
outline: 5px dashed white;
margin: 50px;
border: 30px solid hsla(2000,100%,50%, .4);
padding: 10px;
background-clip: padding-box;
}
@AndyNovo
AndyNovo / link.html
Created January 5, 2016 20:38
3 ways to link CSS
@AndyNovo
AndyNovo / dabblet.css
Last active January 5, 2016 05:25
Things you can color
/**
* Things you can color
*/
body {
column-count: 3;
column-gap: 2em;
column-rule: 2px solid salmon;
}
@AndyNovo
AndyNovo / dabblet.css
Created January 4, 2016 04:57
Basic CSS Selectors
/**
* Basic CSS Selectors
*/
p {
background-color: #aaa;
}
.cool {
color: blue;
@AndyNovo
AndyNovo / dabblet.css
Created January 4, 2016 03:01
Gettysburg Address
/**
* Gettysburg Address
*/
@AndyNovo
AndyNovo / index.html
Created January 4, 2016 02:33
Basic HTML file
<!doctype html>
<html>
<head>
<title>Title Here</title>
</head>
<body>
Content Here
</body>
</html>