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 15/07/15. | |
*/ | |
(function ( $ ) { | |
$.fn.makeModal = function( options ) { | |
var settings = $.extend({ | |
// These are the defaults. | |
title: "Title", | |
color: "#fff", |
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 29/12/14. | |
*/ | |
(function( $ ){ | |
$.fn.filterBlocks = function (options) { | |
var defaults = { | |
parent: 'body', | |
buttons: { | |
buttonSectionId: 'filter_buttons', | |
buttonGroupClass: 'btn-group', |
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).filterBlocks({ | |
parent:'#container', | |
filterMethod: 'buttons', //choice is menu or buttons | |
allowQsFilter: true, | |
/** | |
* If allowQsFilter is set to true, you ca add the querystring "?filter=" | |
* or "&filter=" to allow the filter method to be changed from the url | |
* The accepted values are menu or buttons (?filter=menu) |
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
{"entry":[ | |
{ | |
"label":"Men's", | |
"children":5, | |
"color": "#E3E3E3", | |
"display": [{ | |
"id":1, | |
"image":"img/src/assets/", | |
"category":12, | |
"reduction":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
/** | |
* Created by david-maser on 24/12/14. | |
* david.maser@altitude-sports.com | |
* | |
* jQuery plugin to create dynamic pagination | |
* component for navigating between pages. | |
*/ | |
(function( $ ){ | |
$.fn.getParameterByName = function (name) { | |
name = name.replace(/[\[]/, "\\[").replace(/[\]]/, "\\]"); |
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
<div id="demo"></div> | |
<script> | |
$(this).paginator({ | |
total:24, | |
visible:5, | |
start:1, | |
getURI:false, | |
uriOffset:'offset', | |
speed:200, | |
parent:'#demo', |
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 30/12/14. | |
* | |
* jQuery Parallax plugin that creates a parallax enabled | |
* page from data pulled from an external json file. | |
* The json file (elements.json) contains all information | |
* for the section blocks. | |
*/ | |
(function( $ ){ | |
$.fn.parallax = function (options) { |
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> |
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
/** | |
* Created by david-maser on 31/12/14. | |
*/ | |
(function( $ ) { | |
$.fn.organizr = function (options) { | |
var defaults = { | |
parent: 'body', | |
margin: 0, | |
padding: 0, | |
dataType: 'json', |
OlderNewer