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
/** | |
* Description: | |
* simple title case => Simple Title Case | |
* Usage: | |
* {{some_text | titleCase}} | |
*/ | |
app.filter('titleCase', function () { | |
return function (input) { | |
var words = input.split(' '); |
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
/* Fool-proof @font-face */ | |
/* Based on http://coding.smashingmagazine.com/2013/02/14/setting-weights-and-styles-at-font-face-declaration/ */ | |
@mixin font-face($font-family, $file-path, $font-weight:'normal', $font-style:'normal') { | |
@font-face { | |
font-family: $font-family; | |
src: url('#{$file-path}.eot'); | |
src: url('#{$file-path}.eot?#iefix') format('embedded-opentype'), | |
url('#{$file-path}.woff') format('woff'), | |
url('#{$file-path}.ttf') format('truetype'), |
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
iframe[name='google_conversion_frame'] { | |
height: 0 !important; | |
width: 0 !important; | |
line-height: 0 !important; | |
font-size: 0 !important; | |
margin-top: -13px; | |
float: left; | |
} |
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
const oldJQueryEventTrigger = jQuery.event.trigger; | |
jQuery.event.trigger = ( event, data, elem, onlyHandlers ) => { | |
console.log( event, data, elem, onlyHandlers ); | |
oldJQueryEventTrigger( event, data, elem, onlyHandlers ); | |
}; | |
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
/** | |
* Description: | |
* removes white space from text. useful for html values that cannot have spaces | |
* Usage: | |
* {{some_text | nospace}} | |
*/ | |
app.filter('nospace', function () { | |
return function (value) { | |
return (!value) ? '' : value.replace(/ /g, ''); |
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
$(function() { | |
'use strict'; | |
// deps... jquery | |
var $fade_this_in = $('.something-with-opacity-0'); | |
function laneAddClassDelay(jquerobj, theclass, theinterval) { | |
setTimeout(function() { | |
jquerobj.addClass(theclass); | |
}, theinterval); | |
} |
OlderNewer