Skip to content

Instantly share code, notes, and snippets.

View anthonydillon's full-sized avatar

Anthony Dillon anthonydillon

View GitHub Profile
git submodule add -b v0.0.55 -- git@github.com:ubuntudesign/vanilla-framework.git _sass/vanilla-framework
@anthonydillon
anthonydillon / gist:4df41bfe9b86182f20d6
Created October 13, 2014 16:22
Search function from tour
this.appSearch = function($query){
if($query != ''){
var listFilesContents = '';
fileList = _parent.fileSystem.getFiles();
var listContents = '';
var i = this.totalApps.length;
var tempArray = new Array();
var patt1 = new RegExp($query,"gi");
while(i--){
tempArray = this.totalApps[i].name.match(patt1);
core.setEqualHeight = function() {
var maxHeight = 0;
var heightArray = Array();
var collection = Y.all('.equal-height');
collection.each(function(node) {
node.all(' > div, > ul li').each(function(node) {
if(node.get('clientHeight') > maxHeight){
maxHeight = node.get('clientHeight');
}
});
if(Modernizr){
if (!Modernizr.svg || !Modernizr.backgroundsize) {
Y.all("img[src$='.svg']").each(function(node) {
node.setAttribute("src", node.getAttribute('src').toString().match(/.*\/(.+?)\./)[0]+'png');
});
}
}