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
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |
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
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |
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
{ | |
"name": "steelsentry-theme", | |
"author": "josh", | |
"version": "0.1.0", | |
"devDependencies": { | |
"grunt": "~0.4.1", | |
"grunt-contrib-uglify": "~0.2.2", | |
"grunt-contrib-concat": "~0.3.0", | |
"grunt-contrib-cssmin": "~0.6.1", | |
"grunt-contrib-imagemin": "~0.3.0", |
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
module.exports = function (grunt) { | |
grunt.initConfig({ | |
pkg: grunt.file.readJSON('package.json'), | |
imagemin: { | |
static: { | |
options: { | |
optimizationLevel: 3 | |
}, | |
files: { | |
'pbimages/pegboard-2424.jpg': 'img_src/pbimages/pegboard-2424.jpg' |
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
# Require any additional compass plugins here. | |
# Set this to the root of your project when deployed: | |
http_path = "/" | |
css_dir = "/" | |
sass_dir = "sass" | |
images_dir = "images" | |
javascripts_dir = "js" | |
fonts_dir = "fonts" |
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
EventUtil.addHandler(window, "load", function() { | |
var question1 = { | |
question: "What's Josh's favorite color?", | |
choices: ["red", "green", "blue"], | |
correctAnswer: 1 | |
}, | |
question2 = { | |
question: "What's Josh's favorite animal?", |
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
// Form Serialization | |
function serialize(form) { | |
var parts = [], | |
field = null, | |
i, | |
len, | |
j, | |
optLen, | |
option, | |
optValue; |
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
// Chapter 13 | |
// Doesn't work | |
// var image = document.getElementById("10-Reasons"); | |
// EventUtil.addHandler(image, "load", function(event){ | |
// event = EventUtil.getEvent(event); | |
// alert(EventUtil.getTarget(event).src); | |
// }); | |
// works! |
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
// Chapter 13 | |
// Doesn't work | |
// var image = document.getElementById("10-Reasons"); | |
// EventUtil.addHandler(image, "load", function(event){ | |
// event = EventUtil.getEvent(event); | |
// alert(EventUtil.getTarget(event).src); | |
// }); | |
// works! |
NewerOlder