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
Shopify.queue = []; | |
Shopify.moveAlong = function() { | |
if (Shopify.queue.length) { | |
var request = Shopify.queue.shift(); | |
Shopify.addItem(request.variantId, request.quantity, request.properties, Shopify.moveAlong); | |
} | |
else { | |
document.location.href = '/cart'; | |
} | |
}; |
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
/** | |
* Created by David Maser | |
*/ | |
var generator = { | |
dom : document, | |
accept : ['button','div','section','ul','li','nav','form','radio','checkbox','footer','header'], | |
build:function(obj){ | |
function testParentType(s){ | |
if(s.indexOf('.')>-1){ | |
return 'c'; // c for class |
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
/** | |
* Created by David Maser. | |
*/ | |
var generator = { | |
accept : ['button','div','section','ul','li','nav','form','radio','checkbox','footer','header'], | |
build:function(obj){ | |
if(typeof obj == 'object') { | |
var _core = obj.core; | |
for (var i in _core) { | |
var _valid = $.inArray(_core[i].type,generator.accept); |
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
jQuery(window).bind('orientationchange', function() { | |
/* a */ | |
var client = { | |
/* | |
Let's put all the client values in an object | |
to keep the code as readable as possible. | |
DOM manipulations by jQuery can cause errors | |
in values read from the browser. If we receive | |
inconsistent values for the client.width or | |
client.height objects, use vanilla javascript |
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
<!DOCTYPE html> | |
<html> | |
<head lang="en"> | |
<meta charset="UTF-8"> | |
<title></title> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script> | |
</head> | |
<body> |
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
{"element":[ | |
{ | |
"tag":"section", | |
"id":"main", | |
"class":"", | |
"count":1, | |
"parent":"", | |
"parentMap":"", | |
"parentChild":0 | |
}, |
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
<script> | |
$(document).ready(function(){ | |
$(this).organizr({ | |
jsonData:'assets/ajax/bones.json', | |
jsFiles: false, | |
dataAsync:true | |
}); | |
}); | |
</script> |
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
/** | |
* Created by david-maser on 31/12/14. | |
*/ | |
(function( $ ) { | |
$.fn.organizr = function (options) { | |
var defaults = { | |
parent: 'body', | |
margin: 0, | |
padding: 0, | |
dataType: 'json', |
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
{"image":[ | |
{ | |
"src":"assets/images/arcterys.png", | |
"width":2000, | |
"height":1125, | |
"id":"home", | |
"type":"background", | |
"tag":"article", | |
"text":"This is the home section", | |
"textSize":30, |
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
<script> | |
$(document).ready(function(){ | |
$(this).parallax(); | |
}); | |
</script> |
NewerOlder