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 dfStripScripts = function(data, type) | |
{ | |
// incase the response is full html with scripts remove them | |
type = type || 'text'; | |
if(type=='html'||type=='text'){ | |
/*return data.replace(/<script.*>.*?<\/script>/gi, '');*/ | |
return data.replace(/<script.*?>([\w\W\d\D\s\S\0\n\f\r\t\v\b\B]*?)<\/script>/gi, ''); | |
} | |
return data; | |
}; |
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
/*! | |
* @author: Rhys Burnie [rb] | |
* | |
* MIT license | |
*/ | |
;(function($){ | |
$.fn.extend({ | |
/** | |
* .imgload |
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
@mixin instrinsic-ratio($width, $height, $position: relative) | |
{ | |
@if unit($width) != unit($height) { | |
@warn "@include instrinsic-ratio-wrapper: $width and $height must share the same unit type, supplied was: #{$width} / #{$height}"; | |
} | |
$w: to-unitless($width); | |
$h: to-unitless($height); | |
$ratio: $h / $w; | |
$percent: $ratio * 100%; |