This file contains hidden or 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
store = { | |
types: [localStorage,sessionStorage], | |
convertValue: function (v) { | |
return typeof v !== "object" ? v : JSON.stringify(v); | |
}, | |
unconvertValue: function (v) { | |
if (v !== null) { | |
if ( v.indexOf("{") === 0 || v.indexOf("[") === 0 ) { | |
var v = JSON.parse(v); | |
return v; |
This file contains hidden or 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
@using System.IO | |
<style type="text/css"> | |
table{color: #333; text-align: left; min-width: 400px; border-collapse: collapse; border:1px solid gray;} | |
th, td {padding: .618em} | |
thead th, thead td { font-size: 1.15em; border-bottom: 2px solid #494949; background: #f1f1f1} | |
tbody th, tbody td {border-bottom:1px solid #555} | |
tbody td:nth-child(2){} | |
caption{font-size: .95em} | |
.compInfo {color: #333} |
This file contains hidden or 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 http = require("http"), | |
url = require("url"), | |
path = require("path"), | |
fs = require("fs"), | |
port = 8891, | |
types = { | |
'html' : 'text/html', | |
'htm' : 'text/html', | |
'js' : 'application/javascript', | |
'css' : 'text/css' |
This file contains hidden or 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
table { | |
display: flex; | |
flex-direction: column; | |
align-items: stretch; | |
} | |
thead { | |
order: -1; | |
} | |
tbody { | |
flex-grow: 1; |
This file contains hidden or 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
//========== root values | |
phi = 1.618 | |
fi = .618 | |
golden = 1.61803398875 | |
rootPx = 16px | |
rootEm = 1em | |
rootPercent = 100% | |
rootPt = pxToPt(rootPx) |
This file contains hidden or 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
window.analyzer = { | |
init: function (object, id) { | |
this.functions.appendTable(id); | |
this.functions.setupHeaders(object); | |
this.functions.addData(object); | |
this.functions.addCaption("Analysis of the stylesheets"); | |
}, | |
data: {}, | |
helpers: { | |
wrapper: function (id) { |
This file contains hidden or 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
window.cssom = { | |
init: function () { | |
var _this = window.cssom; | |
_this.functions.bootstrapTable(); | |
}, | |
data: { | |
table: {}, | |
rootClass: "CSSOM", | |
tableClass: "table", | |
rowButton: { |
This file contains hidden or 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
speech = function (msg, options, onend) { | |
this.text = msg; | |
this._defaults = { | |
voiceURI: 'native', | |
volume: 3, | |
rate: 2, | |
pitch: 1.5, | |
lang: 'en-US' | |
}; | |
this.defaults = options !== undefined ? options : this._defaults; |
This file contains hidden or 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 mediaManager = {}; | |
mediaManager: { | |
init: function () { | |
var _this = this; | |
//MMPLAYERREADY is the event that fires when the media manager event loads | |
_this.functions.setMetadata($('.js-active')); | |
_this.bindUIEvents(); | |
$(document).bind("MMPLAYERREADY", function (e){ | |
_this.functions.adjustDimensions(); | |
_this.functions.modifyProjekktor(); |
This file contains hidden or 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 tabAway; | |
tabAway = { | |
init: function () { | |
var _this = tabAway; | |
_this.bindEvents(); | |
}, | |
data: { | |
tabAwayMsg: "Don't go, I need you!", | |
tabBackMsg: "I knew you'd never leave me", | |
}, |