Adding _site to Versioning for git-hook based deplyoment
This commit is contained in:
parent
3ec670b006
commit
774860a00d
192 changed files with 36131 additions and 1 deletions
112
_site/js/custom.js
Normal file
112
_site/js/custom.js
Normal file
|
|
@ -0,0 +1,112 @@
|
|||
var DEBUG = false;
|
||||
var scrolling = false;
|
||||
var navigatorOpen = false;
|
||||
var topButtonVisible = false;
|
||||
|
||||
$(document).ready(function() {
|
||||
|
||||
$(function() {
|
||||
$.scrollIt();
|
||||
});
|
||||
|
||||
$(".artist-media img").imagefill();
|
||||
//$(".upcoming-media img").imagefill();
|
||||
|
||||
var rnd = Math.floor(Math.random() * 12);
|
||||
|
||||
$(function() {
|
||||
$.vegas({
|
||||
src: '/assets/bgphotos/' + rnd + '.png'
|
||||
});
|
||||
$.vegas('overlay', {
|
||||
src: '/assets/bgphotos/overlay.png'
|
||||
});
|
||||
});
|
||||
|
||||
$(".navigator-toggle").click(function() {
|
||||
if (navigatorOpen) {
|
||||
closeTopMenu();
|
||||
} else {
|
||||
openTopMenu();
|
||||
}
|
||||
});
|
||||
|
||||
$(".topic").click(function() {
|
||||
closeTopMenu();
|
||||
});
|
||||
|
||||
function openTopMenu() {
|
||||
if (DEBUG) console.log('openTopMenu');
|
||||
if (!scrolling && !navigatorOpen) {
|
||||
scrolling = true;
|
||||
$(".navigator").slideDown("slow", function() {
|
||||
scrolling = false;
|
||||
navigatorOpen = true;
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
function closeTopMenu() {
|
||||
if (DEBUG) console.log('closeTopMenu');
|
||||
if (!scrolling && navigatorOpen) {
|
||||
scrolling = true;
|
||||
$('.navigator').slideUp("slow", function() {
|
||||
scrolling = false;
|
||||
navigatorOpen = false;
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
function showTopButton() {
|
||||
if (DEBUG) console.log('showTopButton');
|
||||
if (!topButtonVisible) {
|
||||
$('.top-button').fadeTo("slow",1.0, function() {
|
||||
topButtonVisible = true;
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
function hideTopButton() {
|
||||
if (DEBUG) console.log('hideTopButton');
|
||||
if (topButtonVisible) {
|
||||
$('.top-button').fadeTo("slow",0.0, function() {
|
||||
topButtonVisible = false;
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
var timeout = null;
|
||||
|
||||
$(window).scroll(function() {
|
||||
|
||||
var navbarHeight = $('.navbar').height();
|
||||
if (navigatorOpen){
|
||||
navbarHeight += $('.navigator').height() - 40;
|
||||
}
|
||||
|
||||
if (DEBUG) console.log('scroll ' + $(window).scrollTop() + ' ' + navbarHeight);
|
||||
if (!timeout) {
|
||||
timeout = setTimeout(function() {
|
||||
clearTimeout(timeout);
|
||||
timeout = null;
|
||||
if ($(window).scrollTop() >= navbarHeight) {
|
||||
if (navigatorOpen)
|
||||
closeTopMenu();
|
||||
if (!topButtonVisible)
|
||||
showTopButton();
|
||||
} else{
|
||||
if (topButtonVisible)
|
||||
hideTopButton();
|
||||
}
|
||||
}, 250);
|
||||
}
|
||||
});
|
||||
|
||||
if ( $.cookie('firstVisit') != 'yes' ) {
|
||||
setTimeout( function() {
|
||||
openTopMenu();
|
||||
}, 2000 );
|
||||
$.cookie('firstVisit', 'yes');
|
||||
}
|
||||
|
||||
});
|
||||
106
_site/js/jquery.blImageCenter.js
Executable file
106
_site/js/jquery.blImageCenter.js
Executable file
|
|
@ -0,0 +1,106 @@
|
|||
/**
|
||||
* bl-jquery-image-center jQuery Plugin
|
||||
*
|
||||
* @copyright Boxlight Media Ltd. 2012
|
||||
* @license MIT License
|
||||
* @description Centers an image by moving, cropping and filling spaces inside it's parent container. Call
|
||||
* this on a set of images to have them fill their parent whilst maintaining aspect ratio
|
||||
* @author Robert Cambridge
|
||||
*
|
||||
* Usage: See documentation at http://boxlight.github.com/bl-jquery-image-center
|
||||
*/
|
||||
(function($) {
|
||||
$.fn.centerImage = function(method, callback) {
|
||||
callback = callback || function() {};
|
||||
var els = this;
|
||||
var remaining = $(this).length;
|
||||
method = method == 'inside';
|
||||
|
||||
// execute this on an individual image element once it's loaded
|
||||
var fn = function(img) {
|
||||
var $img = $(img);
|
||||
var $div = $img.parent();
|
||||
// parent CSS should be in stylesheet, but to reinforce:
|
||||
$div.css({
|
||||
overflow: 'hidden',
|
||||
position: $div.css('position') == 'absolute' ? 'absolute' : 'relative'
|
||||
});
|
||||
|
||||
// temporarily set the image size naturally so we can get the aspect ratio
|
||||
$img.css({
|
||||
'position': 'static',
|
||||
'width': 'auto',
|
||||
'height': 'auto',
|
||||
'max-width': '100%',
|
||||
'max-height': '100%'
|
||||
});
|
||||
|
||||
// now resize
|
||||
var div = { w: $div.width(), h: $div.height(), r: $div.width() / $div.height() };
|
||||
var img = { w: $img.width(), h: $img.height(), r: $img.width() / $img.height() };
|
||||
$img.css({
|
||||
'max-width': 'none',
|
||||
'max-height': 'none',
|
||||
'width': Math.round((div.r > img.r) ^ method ? '100%' : div.h / img.h * img.w),
|
||||
'height': Math.round((div.r < img.r) ^ method ? '100%' : div.w / img.w * img.h)
|
||||
});
|
||||
|
||||
// now center - but portrait images need to be centered slightly above halfway (33%)
|
||||
var div = { w: $div.width(), h: $div.height() };
|
||||
var img = { w: $img.width(), h: $img.height() };
|
||||
$img.css({
|
||||
'position': 'absolute',
|
||||
'left': Math.round((div.w - img.w) / 2),
|
||||
'top': Math.round((div.h - img.h) / 3)
|
||||
});
|
||||
|
||||
callbackWrapped(img)
|
||||
};
|
||||
|
||||
var callbackWrapped = function(img) {
|
||||
remaining--;
|
||||
callback.apply(els, [ img, remaining ]);
|
||||
};
|
||||
|
||||
// iterate through elements
|
||||
return els.each(function(i) {
|
||||
if (this.complete || this.readyState === 'complete') {
|
||||
// loaded already? run fn
|
||||
// when binding, we can tell whether image loaded or not.
|
||||
// not if it's already failed though :(
|
||||
(function(el) {
|
||||
// use setTimeout to prevent browser locking up
|
||||
setTimeout(function() { fn(el) }, 1);
|
||||
})(this);
|
||||
} else {
|
||||
// not loaded? bind to load
|
||||
(function(el) {
|
||||
$(el)
|
||||
.one('load', function() {
|
||||
// use setTimeout to prevent browser locking up
|
||||
setTimeout(function() {
|
||||
fn(el);
|
||||
}, 1);
|
||||
})
|
||||
.one('error', function() {
|
||||
// the image did not load
|
||||
callbackWrapped(el)
|
||||
})
|
||||
.end();
|
||||
|
||||
// IE9/10 won't always trigger the load event. fix it.
|
||||
if (navigator.userAgent.indexOf("Trident/5") >= 0 || navigator.userAgent.indexOf("Trident/6")) {
|
||||
el.src = el.src;
|
||||
}
|
||||
})(this);
|
||||
}
|
||||
});
|
||||
};
|
||||
// Alias functions which often better describe the use case
|
||||
$.fn.imageCenterResize = function(callback) {
|
||||
return $(this).centerImage('inside', callback);
|
||||
};
|
||||
$.fn.imageCropFill = function(callback) {
|
||||
return $(this).centerImage('outside', callback);
|
||||
};
|
||||
})(jQuery);
|
||||
117
_site/js/jquery.cookie.js
Normal file
117
_site/js/jquery.cookie.js
Normal file
|
|
@ -0,0 +1,117 @@
|
|||
/*!
|
||||
* jQuery Cookie Plugin v1.4.1
|
||||
* https://github.com/carhartl/jquery-cookie
|
||||
*
|
||||
* Copyright 2013 Klaus Hartl
|
||||
* Released under the MIT license
|
||||
*/
|
||||
(function (factory) {
|
||||
if (typeof define === 'function' && define.amd) {
|
||||
// AMD
|
||||
define(['jquery'], factory);
|
||||
} else if (typeof exports === 'object') {
|
||||
// CommonJS
|
||||
factory(require('jquery'));
|
||||
} else {
|
||||
// Browser globals
|
||||
factory(jQuery);
|
||||
}
|
||||
}(function ($) {
|
||||
|
||||
var pluses = /\+/g;
|
||||
|
||||
function encode(s) {
|
||||
return config.raw ? s : encodeURIComponent(s);
|
||||
}
|
||||
|
||||
function decode(s) {
|
||||
return config.raw ? s : decodeURIComponent(s);
|
||||
}
|
||||
|
||||
function stringifyCookieValue(value) {
|
||||
return encode(config.json ? JSON.stringify(value) : String(value));
|
||||
}
|
||||
|
||||
function parseCookieValue(s) {
|
||||
if (s.indexOf('"') === 0) {
|
||||
// This is a quoted cookie as according to RFC2068, unescape...
|
||||
s = s.slice(1, -1).replace(/\\"/g, '"').replace(/\\\\/g, '\\');
|
||||
}
|
||||
|
||||
try {
|
||||
// Replace server-side written pluses with spaces.
|
||||
// If we can't decode the cookie, ignore it, it's unusable.
|
||||
// If we can't parse the cookie, ignore it, it's unusable.
|
||||
s = decodeURIComponent(s.replace(pluses, ' '));
|
||||
return config.json ? JSON.parse(s) : s;
|
||||
} catch(e) {}
|
||||
}
|
||||
|
||||
function read(s, converter) {
|
||||
var value = config.raw ? s : parseCookieValue(s);
|
||||
return $.isFunction(converter) ? converter(value) : value;
|
||||
}
|
||||
|
||||
var config = $.cookie = function (key, value, options) {
|
||||
|
||||
// Write
|
||||
|
||||
if (value !== undefined && !$.isFunction(value)) {
|
||||
options = $.extend({}, config.defaults, options);
|
||||
|
||||
if (typeof options.expires === 'number') {
|
||||
var days = options.expires, t = options.expires = new Date();
|
||||
t.setTime(+t + days * 864e+5);
|
||||
}
|
||||
|
||||
return (document.cookie = [
|
||||
encode(key), '=', stringifyCookieValue(value),
|
||||
options.expires ? '; expires=' + options.expires.toUTCString() : '', // use expires attribute, max-age is not supported by IE
|
||||
options.path ? '; path=' + options.path : '',
|
||||
options.domain ? '; domain=' + options.domain : '',
|
||||
options.secure ? '; secure' : ''
|
||||
].join(''));
|
||||
}
|
||||
|
||||
// Read
|
||||
|
||||
var result = key ? undefined : {};
|
||||
|
||||
// To prevent the for loop in the first place assign an empty array
|
||||
// in case there are no cookies at all. Also prevents odd result when
|
||||
// calling $.cookie().
|
||||
var cookies = document.cookie ? document.cookie.split('; ') : [];
|
||||
|
||||
for (var i = 0, l = cookies.length; i < l; i++) {
|
||||
var parts = cookies[i].split('=');
|
||||
var name = decode(parts.shift());
|
||||
var cookie = parts.join('=');
|
||||
|
||||
if (key && key === name) {
|
||||
// If second argument (value) is a function it's a converter...
|
||||
result = read(cookie, value);
|
||||
break;
|
||||
}
|
||||
|
||||
// Prevent storing a cookie that we couldn't decode.
|
||||
if (!key && (cookie = read(cookie)) !== undefined) {
|
||||
result[name] = cookie;
|
||||
}
|
||||
}
|
||||
|
||||
return result;
|
||||
};
|
||||
|
||||
config.defaults = {};
|
||||
|
||||
$.removeCookie = function (key, options) {
|
||||
if ($.cookie(key) === undefined) {
|
||||
return false;
|
||||
}
|
||||
|
||||
// Must not alter options, thus extending a fresh object...
|
||||
$.cookie(key, '', $.extend({}, options, { expires: -1 }));
|
||||
return !$.cookie(key);
|
||||
};
|
||||
|
||||
}));
|
||||
8
_site/js/jquery.imagefill.min.js
vendored
Normal file
8
_site/js/jquery.imagefill.min.js
vendored
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
/*
|
||||
* jQuery Image Fill
|
||||
* http://pioul.fr/jquery-imagefill
|
||||
*
|
||||
* Copyright 2013, Philippe Masset
|
||||
* Dual licensed under the MIT or GPL Version 2 licenses
|
||||
*/
|
||||
(function(a){a.fn.imagefill=function(b){b=a.extend({},{container:null,fadingDuration:500},b);var c=a(this);return c.each(function(){var c=a(this),d={options:b,image:c,container:b.container?c.closest(b.container):c.parent(),init:function(){this.container.css("overflow","hidden"),this.image.css("position","relative")},show:function(){this.options.fadingDuration?this.image.fadeIn(this.options.fadingDuration):this.image.show()},fillContainer:function(){var a=this.container.width(),b=this.container.height(),c=this.image.width(),d=this.image.height(),e=c/a,f=d/b;if(f>e){var g={width:a,height:d/e};g.top=-(g.height-b)/2}else{var g={width:c/f,height:b};g.left=-(g.width-a)/2}this.image.css(g).trigger("fillsContainer",[g])}};d.image.data("imagefill",d),d.container.length&&(d.init(),d.image[0].complete?setTimeout(a.proxy(function(){this.fillContainer()},d),0):(d.image.hide(),d.image.bind("load",function(){var b=a(this).data("imagefill");b.show(),b.fillContainer()})))}),c}})(jQuery);
|
||||
1
_site/js/scrollIt.min.js
vendored
Executable file
1
_site/js/scrollIt.min.js
vendored
Executable file
|
|
@ -0,0 +1 @@
|
|||
(function(e){"use strict";var t="ScrollIt",n="1.0.3";var r={upKey:38,downKey:40,easing:"linear",scrollTime:600,activeClass:"active",onPageChange:null,topOffset:0};e.scrollIt=function(t){var n=e.extend(r,t),i=0,s=e("[data-scroll-index]:last").attr("data-scroll-index");var o=function(t){if(t<0||t>s)return;var r=e("[data-scroll-index="+t+"]").offset().top+n.topOffset+1;e("html,body").animate({scrollTop:r,easing:n.easing},n.scrollTime)};var u=function(t){var n=e(t.target).closest("[data-scroll-nav]").attr("data-scroll-nav")||e(t.target).closest("[data-scroll-goto]").attr("data-scroll-goto");o(parseInt(n))};var a=function(t){var r=t.which;if(e("html,body").is(":animated")&&(r==n.upKey||r==n.downKey)){return false}if(r==n.upKey&&i>0){o(parseInt(i)-1);return false}else if(r==n.downKey&&i<s){o(parseInt(i)+1);return false}return true};var f=function(t){if(n.onPageChange&&t&&i!=t)n.onPageChange(t);i=t;e("[data-scroll-nav]").removeClass(n.activeClass);e("[data-scroll-nav="+t+"]").addClass(n.activeClass)};var l=function(){var t=e(window).scrollTop();var r=e("[data-scroll-index]").filter(function(r,i){return t>=e(i).offset().top+n.topOffset&&t<e(i).offset().top+n.topOffset+e(i).outerHeight()});var i=r.first().attr("data-scroll-index");f(i)};e(window).on("scroll",l).scroll();e(window).on("keydown",a);e("body").on("click","[data-scroll-nav], [data-scroll-goto]",function(e){e.preventDefault();u(e)})}})(jQuery)
|
||||
Loading…
Add table
Add a link
Reference in a new issue