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
| @import "typography"; | |
| @import "mediaqueries"; | |
| $top-offset: 25%; //how much we want to offset our row from the top | |
| /** | |
| * From Nicolas Gallagher, "micro clearfix hack" | |
| * http://nicolasgallagher.com/micro-clearfix-hack/ |
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
| //map a value from one range to another | |
| function mapVal(value, start1, stop1, start2, stop2) { | |
| return start2 + (stop2 - start2) * ((value - start1) / (stop1 - start1)); | |
| } |
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
| // A callback function for parsing json | |
| function parseJsonResponse(json) { | |
| for(var obj in json ) { | |
| if (json.hasOwnProperty(obj)) { | |
| var data = json[obj]; | |
| //have fun with your data object here. | |
NewerOlder