View two-way-validation.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
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<style> | |
label { | |
display: inline-block; | |
width: 160px; | |
} | |
</style> |
View correcting-annoying-validation.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
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<style> | |
label { | |
display: inline-block; | |
width: 96px; | |
} |
View temperatureScatterPlot.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
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>dateTemperatures Scatter Plot</title> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script> | |
<script> | |
var dateTemperatures = { | |
'[2016,8,29]': {low: 63, high: 94}, | |
'[2016,9,2]': {low: 59, high: 81}, | |
'[2016,9,1]': {low: 58, high: 85}, |
View ng-chess
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<style type="text/css"> | |
td.activePly {background-color:yellow;} | |
td.darkSquare { | |
background-color:silver; | |
width:40pt; | |
height:40pt; |
View promiseFormValidity.js
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 values = { | |
chessIsGame : false, | |
chessChampionSurname : 'Carlsen' | |
}; | |
var rules = { | |
chessIsGame : function(value) { | |
if (value !== true) { | |
return new Error("Chess IS a Game"); | |
} |
View meek.js
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
(function(scope) { | |
function destroyAutoGlobals(options) { | |
var allElements = document.getElementsByTagName("*"), elementId; | |
for (var i=allElements.length; i--; ) { | |
elementId = allElements[i].id; | |
if (elementId && window[elementId] instanceof HTMLElement) { | |
options && options.verbose && console.log('Destroying window["' + elementId + '"]'); | |
window[elementId] = null; |