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
<link rel="import" href="../core-scaffold/core-scaffold.html"> | |
<link rel="import" href="../core-header-panel/core-header-panel.html"> | |
<link rel="import" href="../core-menu/core-menu.html"> | |
<link rel="import" href="../core-item/core-item.html"> | |
<link rel="import" href="../core-icon-button/core-icon-button.html"> | |
<link rel="import" href="../core-toolbar/core-toolbar.html"> | |
<link rel="import" href="../core-menu/core-submenu.html"> | |
<link rel="import" href="../core-input/core-input.html"> | |
<link rel="import" href="../core-icons/core-icons.html"> | |
<link rel="import" href="../paper-icon-button/paper-icon-button.html"> |
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
// Run vender prefexed method. | |
// Usage: | |
// if (prefixedMethod(document, 'FullScreen') || prefixedMethod(document, 'IsFullScreen')) { | |
// prefixedMethod(document, 'CancelFullScreen'); | |
// } | |
// else { | |
// prefixedMethod(e, 'RequestFullScreen'); | |
// } | |
var prefixedMethod = function (obj, method) { |
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
// Add vender prefexed event. | |
// Usage: prefixedEvent($(parent), $(element), 'AnimationEnd', changeIndex); | |
var prefixedEvent = function (parent, element, type, callback) { | |
var pfx = ['webkit', 'moz', 'MS', 'o', '']; | |
for (var p = 0; p < pfx.length; p += 1) { | |
if (!pfx[p]) { |
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
// From http://blog.thehippo.de/2012/04/programming/do-a-loop-with-less-css/ | |
@iterations: 30; | |
// helper class, will never show up in resulting css | |
// will be called as long the index is above 0 | |
.loopingClass (@index) when (@index > 0) { | |
// create the actual css selector, example will result in | |
// .myclass_30, .myclass_28, .... , .myclass_1 |
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 maxHeight = 0; | |
$("div").each(function(){ | |
if ($(this).height() > maxHeight) { maxHeight = $(this).height(); } | |
}); | |
$("div").height(maxHeight); |
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
// CSS | |
.module{ | |
width: 940px; | |
margin:auto | |
} | |
.content{ | |
background: blue; |
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
/* | |
Breakpoint Mixin | |
*/ | |
// Vars | |
/* Breakpoints */ | |
$bp-small-w : 650px; | |
$bp-medium-w : 1250px; |
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
// Skip past URL bar on browser. Should be used on Mobile. | |
// http://24ways.org/2011/raising-the-bar-on-mobile/ | |
// ======================================================== | |
skipChrome : function(){ | |
var win = window, | |
doc = win.document; | |
// If there's a hash, or addEventListener is undefined, stop here | |
if( !location.hash && win.addEventListener ){ | |
//scroll to 1 |
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
Equal Heights - http://andreaslagerkvist.com/jquery/equal-height/ |
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
/* | |
Infinate carousel | |
Modified from Jquery for Designers | |
*/ | |
$.fn.infiniteCarousel = function () { | |
return this.each(function () { | |
var wrapper = $('> div#spotlight', this), |
NewerOlder