Skip to content

Instantly share code, notes, and snippets.

View jayvolr's full-sized avatar

Jon Love jayvolr

View GitHub Profile
date value
2018-9-11 3
2018-9-20 2
2018-9-30 1
2018-9-15 1
2018-8-30 4
2018-9-26 2
2018-9-29 1
2018-9-22 1
2018-9-13 1
@jayvolr
jayvolr / chessboard.js
Last active May 12, 2020 03:05
"Eloquent JavaScript" chessboard project in 90 characters
s=8,g='',i=1;while(g.length/s-1!=s)g+=(i++%2==0?'# ':' #').repeat(s/2)+'\n';console.log(g)
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Node.js Auth</title>
<link rel="stylesheet" href="/css/master.css">
</head>
<body>
<div id="container">
<form id="loginForm" action="/login" method="post">
var logoutBtn = document.getElementById('logoutBtn');
logoutBtn.addEventListener('click', e => {
axios.post('/logout').then(res => {
if (res.status === 200) {
window.location = '/';
}
});
});
body {
margin: 30px;
font-family: sans-serif;
text-align: center;
}
h1, h2 {
text-align: left;
}
@jayvolr
jayvolr / index.html
Created September 29, 2015 04:45
jbVRMN
<link href='https://fonts.googleapis.com/css?family=PT+Serif:400,700' rel='stylesheet' type='text/css'>
<link href='https://fonts.googleapis.com/css?family=Open+Sans+Condensed:300italic' rel='stylesheet' type='text/css'>
<link href='https://fonts.googleapis.com/css?family=Roboto+Condensed' rel='stylesheet' type='text/css'>
<div id="wrap">
<h1 id="title">Random Quotes Rewritten</h1>
<button class="btn btn-primary generate">Generate</button>
<div id="container" class="">