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 i = 0; | |
function setNewVal(prop) { | |
window.localStorage[prop + "timestamp"] = new Date(); | |
//console.log(localStorage.sectimestamp + ' 1'); | |
} | |
function recursive() { | |
for (var prop in window.localStorage) { | |
//if the property name contains the string "timestamp" |
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
// ---- | |
// Sass (v3.4.14) | |
// Compass (v1.0.3) | |
// ---- | |
//border-radius | |
$radius: 0px; | |
$home-spacer: 90px; |
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
$zoo: ("puma": black, "sea-slug": green, "egret": brown, "salamander": red); | |
@each $animal, $color in $zoo { | |
.#{$animal}-icon { | |
background-color: $color; | |
} | |
} |
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
.platform-android4_1 { | |
/*Any styles for android 4.1*/ | |
} | |
.platform-android4_3 { | |
/*Any styles for android 4.3*/ | |
} | |
.platform-android4_4 { | |
/*Any styles for android 4.4*/ |
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
//margin helpers | |
@for $i from 1 through 50 { | |
//all margins | |
.m--#{$i} { | |
margin: #{$i}px; | |
} | |
//top margins | |
.mt--#{$i} { |
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
//create an array from classes | |
var jsClass = document.getElementsByClassName("jsClass"); | |
//loop through the length of the array | |
for (var i = 0; i < jsClass.length; i++) { | |
//assign a onclick event to each element | |
jsClass[i].onclick = function() { | |
//this will be the actual element. So you can use this.id to get the element's id | |
var thisId = this.id; |