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
/** | |
* a file that can be safely reloaded multiple times in the same page view, | |
* allowing some stuff to run once and some stuff to run every time the | |
* page is loaded | |
*/ | |
var myInitiallyFalseThing = false || myInitiallyFalseThing; | |
(function() { | |
if (!myInitiallyFalseThing) { |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>author</key> | |
<string>Jacob Rus</string> | |
<key>comment</key> | |
<string>Created by Jacob Rus. Based on ‘Slate’ by Wilson Miner</string> | |
<key>name</key> | |
<string>RebeccaMurphey</string> |
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
# | |
# Based upon the NCSA server configuration files originally by Rob McCool. | |
# | |
# This is the main Apache server configuration file. It contains the | |
# configuration directives that give the server its instructions. | |
# See <URL:http://httpd.apache.org/docs-2.0/> for detailed information about | |
# the directives. | |
# | |
# Do NOT simply read the instructions in here without understanding | |
# what they do. They're here only as hints or reminders. If you are unsure |
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
// some non-working in-theory code | |
dojo.declare("Tabs", dijit._Widget, { | |
postCreate:function(){ | |
this.controller = dojo.create("ul"); | |
dojo.place(this.conroller, this.domNode, "before"); | |
this._scanChildren(); | |
}, | |
_scanChildren: function(){ |
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
dojo.provide('myProject.Stars'); | |
dojo.require('dijit._Widget'); | |
dojo.declare('myProject.Stars', dijit._Widget, { | |
postCreate : function() { | |
this.stars = dojo.query('div', this.domNode)[0]; | |
this.input = dojo.query('input', this.domNode)[0]; | |
this.hoverConnections = []; | |
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
dojo.provide('myProject.Callouts'); | |
dojo.require('dijit._Widget'); | |
dojo.require('myProject.Services'); | |
dojo.declare('myProject.Callouts', dijit._Widget, { | |
cache : {}, | |
services : new myProject.Services(), | |
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
dojo.provide('hitpost.ActivityMonitor'); | |
dojo.declare('hitpost.ActivityMonitor', null, { | |
constructor : function(props) { | |
this._settings = { | |
domNode : dojo.body(), | |
events : [ 'mousemove', 'keypress' ], | |
allowedInactivePeriods : 3, | |
periodLength : 15, |
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
/* | |
selecting and traversing exercises | |
- get the third list item (hint: eq()) | |
- change its color to red | |
- change the color of the rest of the list items to blue | |
- *without doing another selection*, find the div.module | |
and remove the class module | |
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
/* | |
- get the third list item (hint: eq()) | |
- change its color to red | |
- change the color of the rest of the list items to blue | |
- *without doing another selection*, find the div.module | |
and remove the class "module" | |
$(document).ready(function() { | |
var $li = $('li').eq(2); |
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
$(document).ready(function() { | |
// move the slideshow up to the top | |
var $slideshow = $('#hero'); | |
$slideshow.prependTo('#main'); | |
// create the counter element | |
var $counter = $('<div/>') | |
.insertAfter($slideshow); | |
// get the items and figure out |
OlderNewer