[ Launch: INFO247 / Lab 5 / #3 ] 5009923 by fchasen[ Launch: INFO247 / Lab 5 / #1 ] 5002821 by poezn[ Launch: lab5_1 ] 5001505 by poezn
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
| //-- Get all nodes with Ids | |
| this.$ = {}; | |
| Array.prototype.map.call(document.querySelectorAll('[id]'), | |
| function(node){ this.$[node.id] = node; }.bind(this)); |
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
| /* | |
| Fred Chasen | |
| Pulse Light | |
| */ | |
| // Connect to Pin 11, for analog | |
| int led = 11; | |
| int minamount = 5; | |
| int x = minamount; |
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
| function Stage(el) { | |
| this.el = document.getElementById(el); | |
| this.position(); | |
| this.listeners(); | |
| return this; | |
| } | |
| Stage.prototype = { | |
| position: function(){ |
#Proposal for $ Fragments
##Example:
If we have:
<a name = "jump1">Jump To Me</a>
According to the W3 spec: >"Having defined the anchor, we may link to it from the same or another document. URIs that designate anchors contain a "#" character followed by the anchor name"
NewerOlder