A Pen by Justin Perry on CodePen.
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
Dough.component('SuperTabSelector', { | |
extends: 'TabSelector', | |
deps: ['lodash _'], | |
config: { | |
selectors: {}, | |
uiEvents: {} | |
}, | |
constructor: function($el, config) { | |
}, |
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
define('ExternalComponent', ['jquery', 'DoughBaseComponent'], function($, DoughBaseComponent){ | |
'use strict'; | |
var defaultConfig = {}, | |
/** | |
* Call base constructor | |
* @constructor | |
*/ | |
ExternalComponent = function($el, config) { |
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 (root, factory) { | |
if (typeof define === 'function' && define.amd) { | |
define('iframeResizer', function (iframeResizer) { | |
return (root.iframeResizer = factory()); | |
}); | |
} else { | |
root.iframeResizer = factory(); | |
} | |
}(this, function () { | |
return function(msgPrefix, targetOrigin, minFrameHeight,) { |
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 (root, factory) { | |
if (typeof define === 'function' && define.amd) { | |
define(['jquery'],function (jQuery) { | |
return (root.iframeResizer = factory(jQuery)); | |
}); | |
} else { | |
root.iframeResizer = factory(root.jQuery); | |
} | |
}(this, function ($) { | |
return function(messageId, minPageHeight, $animatedElements) { |
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.3.14) | |
// Compass (v1.0.1) | |
// ---- | |
$unit: 1px; | |
$item-context: ''; // Set here to make it available in entire scope - NOTE not sure if using global vars like this is good practice | |
$context: ( | |
device-large: ( | |
gutter-width: 20 |
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 Editor = function(){}; | |
Editor.prototype.convert = {}; | |
Editor.prototype.convert.from = function(type) { | |
this.fromType = type; | |
return this; | |
}; | |
Editor.prototype.convert.to = function(type) { |
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 str-concatenate($args){ | |
$str: ''; | |
@for $i from 1 through length($args){ | |
$str: $str + str-slice(nth($args,$i),1, str-length(nth($args,$i))); | |
} | |
@return $str; | |
} | |
.example { | |
width: str-concatenate("hello" "goodbye" "tarrah" "ciao"); |
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.3.9) | |
// Compass (v1.0.0.alpha.20) | |
// By @ourmaninamsterdam | |
// ---- | |
@function px-to-rem($px){ | |
@return ( $px / $base-font-size ) * 1rem; | |
} |
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 delegateEvent(selector, handler) { | |
var that = this; | |
return function(e) { | |
var elem = e.target; | |
if(new RegExp(selector,'gi').test(elem.className)){ | |
if(typeof handler === 'function'){ | |
return handler; | |
} | |
} | |
return this; |