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
/* | |
Autoprefixer | |
https://github.com/nDmitry/grunt-autoprefixer | |
Adds vendor prefixes automatically | |
https://github.com/nDmitry/grunt-autoprefixer | |
*/ | |
autoprefixer: { | |
options: { | |
browsers: [ |
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
<!-- This is the Block --> | |
<div class="carousel" data-widgettype="carousel"> | |
<!-- This is an Element. Notice that Elements class names use the name of the Block followed by a double underscore, then the name of the Element --> | |
<ul class="carousel__list" data-js="carousel-list"> | |
<li class="carousel__item"> | |
<span>List item</span> | |
</li> | |
<li class="carousel__item carousel__item--is-active"> <!-- This is an Element, which also contains a Modifier, Modifiers are named the same as the Element, but with a double dash followed by a modifier description --> | |
<span>List item</span> | |
</li> |
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
{ | |
"always_show_minimap_viewport": true, | |
"auto_close_tags": false, | |
"auto_complete": false, | |
"auto_indent": true, | |
"auto_match_enabled": false, | |
"bold_folder_labels": true, | |
"caret_style": "phase", | |
"close_windows_when_empty": true, | |
"color_scheme": "Packages/User/predawn (SL).tmTheme", |
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
var is32Bit = function (c) { | |
return c.codePointAt(0) > 0xFFFF; | |
} | |
console.log(is32Bit('𠮷')); // true | |
console.log(is32Bit('a')); // false |
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[rel*=external]').click(function() { | |
window.open(this.href); | |
return false; | |
}); |
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
var placeholder = $('.how-to-order'); | |
var orderSidebar = $('.how-to-order .bodyRPanelContent'); | |
var view = $(window); | |
view.bind( | |
'scroll resize', | |
function () { | |
var placeholderTop = placeholder.offset().top; | |
var viewTop = view.scrollTop(); |
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
.opacity-class{ | |
-ms-filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=50); // IE8 | |
filter:alpha(opacity=50); // IE5-7 | |
-moz-opacity:0.5; // Netscape | |
-khtml-opacity:0.5; // Safari 1.x | |
opacity:0.5; // Good browsers | |
} |
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
FB.init({ | |
appId: '383046638449372', | |
status: true, | |
cookie: true, | |
xfbml: true | |
}); | |
FB.Canvas.setSize({ height: 600 }); | |
setTimeout('FB.Canvas.setAutoGrow()', 500); | |
FB.Canvas.scrollTo(0,0); |
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
%clearfix { | |
*zoom: 1; | |
&:before, &:after { | |
content: " "; | |
display: table; | |
} | |
&:after { | |
clear: both; | |
} | |
} |
OlderNewer