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
| baseImg = "../img/" | |
| img( url ) | |
| background transparent url( baseImg + url ) no-repeat | |
| imgImportant( url ) | |
| background transparent url( baseImg + url ) !important | |
| imgRepeat( url ) | |
| background transparent url( baseImg + url ) |
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
| Grid = ( function Grid() { | |
| var _itemSize = 156, | |
| _$content = null, _w = 0, _h = 0, _spacing, | |
| _cellWidthPercent = 0.0, _totalWidth = 0, _cellWidth = 0, _spacingPercent = 0.5; | |
| function Grid( $content, w, h, spacing ) { | |
| _$content = $content; | |
| _w = w; | |
| _h = h; |
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 href="#" onclick=" | |
| window.open( | |
| 'https://www.facebook.com/sharer/sharer.php?u='+encodeURIComponent('http://urlofthepage.com/share/'), | |
| 'facebook-share-dialog', | |
| 'width=626,height=436'); | |
| return false;" target="_blank"> Share </a> | |
| <html> | |
| <head> | |
| <title></title> |
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
| // http://compass-style.org/reference/compass/helpers/sprites/ | |
| @mixin get-sprite($map, $sprite, $repeat: no-repeat, $height: true, $width: true){ | |
| //http://compass-style.org/reference/compass/helpers/sprites/#sprite-file | |
| $sprite-image: sprite-file($map, $sprite); | |
| // http://compass-style.org/reference/compass/helpers/sprites/#sprite-url | |
| $sprite-map: sprite-url($map); | |
| // http://compass-style.org/reference/compass/helpers/sprites/#sprite-position |
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
| do -> | |
| w = window | |
| for vendor in ['ms', 'moz', 'webkit', 'o'] | |
| break if w.requestAnimationFrame | |
| w.requestAnimationFrame = w["#{vendor}RequestAnimationFrame"] | |
| w.cancelAnimationFrame = (w["#{vendor}CancelAnimationFrame"] or | |
| w["#{vendor}CancelRequestAnimationFrame"]) | |
| # deal with the case where rAF is built in but cAF is not. | |
| if w.requestAnimationFrame |
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() { | |
| var lastTime = 0; | |
| var vendors = ['webkit', 'moz']; | |
| for(var x = 0; x < vendors.length && !window.requestAnimationFrame; ++x) { | |
| window.requestAnimationFrame = window[vendors[x]+'RequestAnimationFrame']; | |
| window.cancelAnimationFrame = | |
| window[vendors[x]+'CancelAnimationFrame'] || window[vendors[x]+'CancelRequestAnimationFrame']; | |
| } | |
| if (!window.requestAnimationFrame) |
NewerOlder