import of all dependencies

can be updated using the update script
This commit is contained in:
Jaromil 2013-08-07 15:47:44 +02:00
parent 1e5d3d290a
commit 5f76793a25
31 changed files with 11889 additions and 0 deletions

View File

@ -0,0 +1,67 @@
@charset 'UTF-8';
/*
* blueimp Gallery Indicator CSS 1.0.0
* https://github.com/blueimp/Gallery
*
* Copyright 2013, Sebastian Tschan
* https://blueimp.net
*
* Licensed under the MIT license:
* http://www.opensource.org/licenses/MIT
*/
.blueimp-gallery > .indicator {
position: absolute;
top: auto;
right: 15px;
bottom: 15px;
left: 15px;
margin: 0 40px;
padding: 0;
list-style: none;
text-align: center;
line-height: 10px;
display: none;
}
.blueimp-gallery > .indicator > li {
display: inline-block;
width: 9px;
height: 9px;
margin: 6px 3px 0 3px;
border: 1px solid transparent;
background: #ccc;
background: rgba(255, 255, 255, 0.25) center no-repeat;
border-radius: 5px;
box-shadow: 0 0 2px #000;
opacity: 0.5;
cursor: pointer;
}
.blueimp-gallery > .indicator > .active {
background-color: #fff;
border-color: #fff;
opacity: 0.8;
}
.blueimp-gallery-controls > .indicator {
display: block;
/* Fix z-index issues (controls behind slide element) on Android: */
-webkit-transform: translateZ(0);
-moz-transform: translateZ(0);
-ms-transform: translateZ(0);
-o-transform: translateZ(0);
transform: translateZ(0);
}
.blueimp-gallery-single > .indicator {
display: none;
}
.blueimp-gallery > .indicator {
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
/* IE7 fixes */
*+html .blueimp-gallery > .indicator > li {
display: inline;
}

View File

@ -0,0 +1,69 @@
@charset 'UTF-8';
/*
* blueimp Gallery Video Factory CSS 1.0.0
* https://github.com/blueimp/Gallery
*
* Copyright 2013, Sebastian Tschan
* https://blueimp.net
*
* Licensed under the MIT license:
* http://www.opensource.org/licenses/MIT
*/
.blueimp-gallery > .slides > .slide > .video-content > video,
.blueimp-gallery > .slides > .slide > .video-content > img {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
/* Prevent artifacts in Mozilla Firefox: */
-moz-backface-visibility: hidden;
}
.blueimp-gallery > .slides > .slide > .video-content > video,
.blueimp-gallery > .slides > .slide > .video-content > img {
margin: auto;
max-width: 100%;
max-height: 100%;
opacity: 1;
}
.blueimp-gallery > .slides > .slide > .video-content > a {
position: absolute;
top: 50%;
right: 0;
left: 0;
margin: -64px auto 0;
width: 128px;
height: 128px;
background: url(../img/video-play.png) center no-repeat;
opacity: 0.8;
cursor: pointer;
}
.blueimp-gallery > .slides > .slide > .video-playing > a,
.blueimp-gallery > .slides > .slide > .video-playing > img {
display: none;
}
.blueimp-gallery > .slides > .slide > .video-content > video {
display: none;
}
.blueimp-gallery > .slides > .slide > .video-playing > video {
display: block;
}
.blueimp-gallery > .slides > .slide > .video-loading > a {
background: url(../img/loading.gif) center no-repeat;
background-size: 64px 64px;
}
/* Replace PNGs with SVGs for capable browsers (excluding IE<9) */
body:last-child .blueimp-gallery > .slides > .slide > .video-content > a {
background-image: url(../img/video-play.svg);
}
/* IE7 fixes */
*+html .blueimp-gallery > .slides > .slide > .video-content {
height: 100%;
}
*+html .blueimp-gallery > .slides > .slide > .video-content > a {
left: 50%;
margin-left: -64px;
}

216
css/blueimp-gallery.css Normal file
View File

@ -0,0 +1,216 @@
@charset 'UTF-8';
/*
* blueimp Gallery CSS 2.5.1
* https://github.com/blueimp/Gallery
*
* Copyright 2013, Sebastian Tschan
* https://blueimp.net
*
* Licensed under the MIT license:
* http://www.opensource.org/licenses/MIT
*/
.blueimp-gallery,
.blueimp-gallery > .slides > .slide > .slide-content {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
/* Prevent artifacts in Mozilla Firefox: */
-moz-backface-visibility: hidden;
}
.blueimp-gallery > .slides > .slide > .slide-content {
margin: auto;
max-width: 100%;
max-height: 100%;
opacity: 1;
}
.blueimp-gallery {
position: fixed;
z-index: 9999;
overflow: hidden;
background: #000;
background: rgba(0, 0, 0, 0.9);
opacity: 0;
visibility: hidden;
display: none;
direction: ltr;
-ms-touch-action: none;
}
.blueimp-gallery-carousel {
position: relative;
z-index: auto;
height: 432px;
max-width: 768px;
margin: 1em auto;
box-shadow: 0 0 10px #000;
}
.blueimp-gallery-display {
display: block;
visibility: visible;
opacity: 1;
}
.blueimp-gallery > .slides {
position: relative;
height: 100%;
overflow: hidden;
}
.blueimp-gallery > .slides > .slide {
position: relative;
float: left;
height: 100%;
text-align: center;
-webkit-transition-timing-function: cubic-bezier(0.645, 0.045, 0.355, 1.000);
-moz-transition-timing-function: cubic-bezier(0.645, 0.045, 0.355, 1.000);
-ms-transition-timing-function: cubic-bezier(0.645, 0.045, 0.355, 1.000);
-o-transition-timing-function: cubic-bezier(0.645, 0.045, 0.355, 1.000);
transition-timing-function: cubic-bezier(0.645, 0.045, 0.355, 1.000);
}
.blueimp-gallery,
.blueimp-gallery > .slides > .slide > .slide-content {
-webkit-transition: opacity 0.5s linear;
-moz-transition: opacity 0.5s linear;
-ms-transition: opacity 0.5s linear;
-o-transition: opacity 0.5s linear;
transition: opacity 0.5s linear;
}
.blueimp-gallery > .slides > .slide-loading {
background: url(../img/loading.gif) center no-repeat;
background-size: 64px 64px;
}
.blueimp-gallery > .slides > .slide-loading > .slide-content {
opacity: 0;
}
.blueimp-gallery > .slides > .slide-error {
background: url(../img/error.png) center no-repeat;
}
.blueimp-gallery > .slides > .slide-error > .slide-content {
display: none;
}
.blueimp-gallery > .prev,
.blueimp-gallery > .next {
position: absolute;
top: 50%;
left: 15px;
width: 40px;
height: 40px;
margin-top: -23px;
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
font-size: 60px;
font-weight: 100;
line-height: 30px;
color: #fff;
text-decoration: none;
text-shadow: 0 0 2px #000;
text-align: center;
background: #222;
background: rgba(0, 0, 0, 0.5);
border: 3px solid #fff;
-webkit-border-radius: 23px;
-moz-border-radius: 23px;
border-radius: 23px;
opacity: 0.5;
cursor: pointer;
display: none;
}
.blueimp-gallery > .next {
left: auto;
right: 15px;
}
.blueimp-gallery > .close,
.blueimp-gallery > .title {
position: absolute;
top: 15px;
left: 15px;
margin: 0 40px 0 0;
font-size: 20px;
line-height: 30px;
color: #fff;
text-shadow: 0 0 2px #000;
opacity: 0.8;
display: none;
}
.blueimp-gallery > .close {
padding: 15px;
right: 15px;
left: auto;
margin: -15px;
font-size: 30px;
text-decoration: none;
cursor: pointer;
}
.blueimp-gallery > .play-pause {
position: absolute;
right: 15px;
bottom: 15px;
width: 15px;
height: 15px;
background: url(../img/play-pause.png) 0 0 no-repeat;
cursor: pointer;
opacity: 0.5;
display: none;
}
.blueimp-gallery-playing > .play-pause {
background-position: -15px 0;
}
.blueimp-gallery-controls > .prev,
.blueimp-gallery-controls > .next,
.blueimp-gallery-controls > .close,
.blueimp-gallery-controls > .title,
.blueimp-gallery-controls > .play-pause {
display: block;
/* Fix z-index issues (controls behind slide element) on Android: */
-webkit-transform: translateZ(0);
-moz-transform: translateZ(0);
-ms-transform: translateZ(0);
-o-transform: translateZ(0);
transform: translateZ(0);
}
.blueimp-gallery-single > .prev,
.blueimp-gallery-left > .prev,
.blueimp-gallery-single > .next,
.blueimp-gallery-right > .next,
.blueimp-gallery-single > .play-pause {
display: none;
}
.blueimp-gallery > .slides > .slide > .slide-content,
.blueimp-gallery > .prev,
.blueimp-gallery > .next,
.blueimp-gallery > .close,
.blueimp-gallery > .play-pause {
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
/* Replace PNGs with SVGs for capable browsers (excluding IE<9) */
body:last-child .blueimp-gallery > .slides > .slide-error {
background-image: url(../img/error.svg);
}
body:last-child .blueimp-gallery > .play-pause {
width: 20px;
height: 20px;
background-size: 40px 20px;
background-image: url(../img/play-pause.svg);
}
body:last-child .blueimp-gallery-playing > .play-pause {
background-position: -20px 0;
}
@media (max-width: 767px) {
.blueimp-gallery-carousel {
height: 270px;
max-width: 480px;
}
}
/* IE7 fixes */
*+html .blueimp-gallery > .slides > .slide {
min-height: 300px;
}
*+html .blueimp-gallery > .slides > .slide > .slide-content {
position: relative;
}

1
css/blueimp-gallery.min.css vendored Normal file

File diff suppressed because one or more lines are too long

1109
css/bootstrap-responsive.css vendored Normal file

File diff suppressed because it is too large Load Diff

9
css/bootstrap-responsive.min.css vendored Normal file

File diff suppressed because one or more lines are too long

6167
css/bootstrap.css vendored Normal file

File diff suppressed because it is too large Load Diff

9
css/bootstrap.min.css vendored Normal file

File diff suppressed because one or more lines are too long

BIN
img/error.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

5
img/error.svg Normal file
View File

@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="64" height="64">
<circle cx="32" cy="32" r="25" stroke="red" stroke-width="7" fill="black" fill-opacity="0.2"/>
<rect x="28" y="7" width="8" height="50" fill="red" transform="rotate(45, 32, 32)"/>
</svg>

After

Width:  |  Height:  |  Size: 306 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

BIN
img/loading.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

BIN
img/play-pause.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 606 B

6
img/play-pause.svg Normal file
View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="30" height="15">
<polygon points="2,1 2,14 13,7" stroke="black" stroke-width="1" fill="white"/>
<rect x="17" y="2" width="4" height="11" stroke="black" stroke-width="1" fill="white"/>
<rect x="24" y="2" width="4" height="11" stroke="black" stroke-width="1" fill="white"/>
</svg>

After

Width:  |  Height:  |  Size: 382 B

BIN
img/video-play.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

5
img/video-play.svg Normal file
View File

@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="64" height="64">
<circle cx="32" cy="32" r="25" stroke="white" stroke-width="7" fill="black" fill-opacity="0.2"/>
<polygon points="26,22 26,42 43,32" fill="white"/>
</svg>

After

Width:  |  Height:  |  Size: 274 B

View File

@ -0,0 +1,85 @@
/*
* blueimp Gallery Fullscreen JS 1.0.0
* https://github.com/blueimp/Gallery
*
* Copyright 2013, Sebastian Tschan
* https://blueimp.net
*
* Licensed under the MIT license:
* http://www.opensource.org/licenses/MIT
*/
/*global define, window, document */
(function (factory) {
'use strict';
if (typeof define === 'function' && define.amd) {
// Register as an anonymous AMD module:
define([
'./blueimp-helper',
'./blueimp-gallery'
], factory);
} else {
// Browser globals:
factory(
window.blueimp.helper || window.jQuery,
window.blueimp.Gallery
);
}
}(function ($, Gallery) {
'use strict';
$.extend(Gallery.prototype.options, {
// Defines if the gallery should open in fullscreen mode:
fullScreen: false
});
var initialize = Gallery.prototype.initialize,
close = Gallery.prototype.close;
$.extend(Gallery.prototype, {
getFullScreenElement: function () {
return document.fullscreenElement ||
document.webkitFullscreenElement ||
document.mozFullScreenElement;
},
requestFullScreen: function (element) {
if (element.requestFullscreen) {
element.requestFullscreen();
} else if (element.webkitRequestFullscreen) {
element.webkitRequestFullscreen();
} else if (element.mozRequestFullScreen) {
element.mozRequestFullScreen();
}
},
exitFullScreen: function () {
if (document.exitFullscreen) {
document.exitFullscreen();
} else if (document.webkitCancelFullScreen) {
document.webkitCancelFullScreen();
} else if (document.mozCancelFullScreen) {
document.mozCancelFullScreen();
}
},
initialize: function () {
initialize.call(this);
if (this.options.fullScreen && !this.getFullScreenElement()) {
this.requestFullScreen(this.container[0]);
}
},
close: function () {
if (this.getFullScreenElement() === this.container[0]) {
this.exitFullScreen();
}
close.call(this);
}
});
return Gallery;
}));

View File

@ -0,0 +1,153 @@
/*
* blueimp Gallery Indicator JS 1.0.0
* https://github.com/blueimp/Gallery
*
* Copyright 2013, Sebastian Tschan
* https://blueimp.net
*
* Licensed under the MIT license:
* http://www.opensource.org/licenses/MIT
*/
/*global define, window, document */
(function (factory) {
'use strict';
if (typeof define === 'function' && define.amd) {
// Register as an anonymous AMD module:
define([
'./blueimp-helper',
'./blueimp-gallery'
], factory);
} else {
// Browser globals:
factory(
window.blueimp.helper || window.jQuery,
window.blueimp.Gallery
);
}
}(function ($, Gallery) {
'use strict';
$.extend(Gallery.prototype.options, {
// The tag name, Id, element or querySelector of the indicator container:
indicatorContainer: 'ol',
// The class for the active indicator:
activeIndicatorClass: 'active',
// The list object property (or data attribute) with the thumbnail URL,
// used as alternative to a thumbnail child element:
thumbnailProperty: 'thumbnail',
// Defines if the gallery indicators should display a thumbnail:
thumbnailIndicators: true
});
var initSlides = Gallery.prototype.initSlides,
addSlide = Gallery.prototype.addSlide,
resetSlides = Gallery.prototype.resetSlides,
handleClick = Gallery.prototype.handleClick,
handleSlide = Gallery.prototype.handleSlide,
close = Gallery.prototype.close;
$.extend(Gallery.prototype, {
createIndicator: function (obj) {
var indicator = this.indicatorPrototype.cloneNode(false),
title = this.getItemProperty(obj, this.options.titleProperty),
thumbnailProperty = this.options.thumbnailProperty,
thumbnailUrl,
thumbnail;
if (this.options.thumbnailIndicators) {
thumbnail = obj.getElementsByTagName && $(obj).find('img')[0];
if (thumbnail) {
thumbnailUrl = thumbnail.src;
} else if (thumbnailProperty) {
thumbnailUrl = this.getItemProperty(obj, thumbnailProperty);
}
if (thumbnailUrl) {
indicator.style.backgroundImage = 'url("' + thumbnailUrl + '")';
}
}
if (title) {
indicator.title = title;
}
return indicator;
},
addIndicator: function (index) {
if (this.indicatorContainer.length) {
var indicator = this.createIndicator(this.list[index]);
indicator.setAttribute('data-index', index);
this.indicatorContainer[0].appendChild(indicator);
this.indicators.push(indicator);
}
},
setActiveIndicator: function (index) {
if (this.indicators) {
if (this.activeIndicator) {
this.activeIndicator
.removeClass(this.options.activeIndicatorClass);
}
this.activeIndicator = $(this.indicators[index]);
this.activeIndicator
.addClass(this.options.activeIndicatorClass);
}
},
initSlides: function (reload) {
if (!reload) {
this.indicatorContainer = this.container.find(
this.options.indicatorContainer
);
if (this.indicatorContainer.length) {
this.indicatorPrototype = document.createElement('li');
this.indicators = this.indicatorContainer[0].children;
}
}
initSlides.call(this, reload);
},
addSlide: function (index) {
addSlide.call(this, index);
this.addIndicator(index);
},
resetSlides: function () {
resetSlides.call(this);
this.indicatorContainer.empty();
this.indicators = [];
},
handleClick: function (event) {
var target = event.target || event.srcElement,
parent = target.parentNode;
if (parent === this.indicatorContainer[0]) {
// Click on indicator element
this.preventDefault(event);
this.slide(this.getNodeIndex(target));
} else if (parent.parentNode === this.indicatorContainer[0]) {
// Click on indicator child element
this.preventDefault(event);
this.slide(this.getNodeIndex(parent));
} else {
return handleClick.call(this, event);
}
},
handleSlide: function (index) {
handleSlide.call(this, index);
this.setActiveIndicator(index);
},
close: function () {
if (this.activeIndicator) {
this.activeIndicator
.removeClass(this.options.activeIndicatorClass);
}
close.call(this);
}
});
return Gallery;
}));

156
js/blueimp-gallery-video.js Normal file
View File

@ -0,0 +1,156 @@
/*
* blueimp Gallery Video Factory JS 1.0.0
* https://github.com/blueimp/Gallery
*
* Copyright 2013, Sebastian Tschan
* https://blueimp.net
*
* Licensed under the MIT license:
* http://www.opensource.org/licenses/MIT
*/
/*global define, window, document */
(function (factory) {
'use strict';
if (typeof define === 'function' && define.amd) {
// Register as an anonymous AMD module:
define([
'./blueimp-helper',
'./blueimp-gallery'
], factory);
} else {
// Browser globals:
factory(
window.blueimp.helper || window.jQuery,
window.blueimp.Gallery
);
}
}(function ($, Gallery) {
'use strict';
$.extend(Gallery.prototype.options, {
// The class for video content elements:
videoContentClass: 'video-content',
// The class for video when it is loading:
videoLoadingClass: 'video-loading',
// The class for video when it is playing:
videoPlayingClass: 'video-playing',
// The list object property (or data attribute) for the video poster URL:
videoPosterProperty: 'poster',
// The list object property (or data attribute) for the video sources array:
videoSourcesProperty: 'sources'
});
Gallery.prototype.videoFactory = function (obj, callback) {
var that = this,
options = this.options,
videoContainerNode = this.elementPrototype.cloneNode(false),
videoContainer = $(videoContainerNode),
errorArgs = [{
type: 'error',
target: videoContainerNode
}],
video = document.createElement('video'),
url = this.getItemProperty(obj, options.urlProperty),
type = this.getItemProperty(obj, options.typeProperty),
title = this.getItemProperty(obj, options.titleProperty),
posterUrl = this.getItemProperty(obj, options.videoPosterProperty),
posterImage,
sources = this.getItemProperty(
obj,
options.videoSourcesProperty
),
source,
playMediaControl,
isLoading,
hasControls;
videoContainer.addClass(options.videoContentClass);
if (title) {
videoContainerNode.title = title;
}
if (video.canPlayType) {
if (url && type && video.canPlayType(type)) {
video.src = url;
} else if (sources) {
if (typeof sources === 'string') {
sources = $.parseJSON(sources);
}
while (sources && sources.length) {
source = sources.shift();
url = this.getItemProperty(source, options.urlProperty);
type = this.getItemProperty(source, options.typeProperty);
if (url && type && video.canPlayType(type)) {
video.src = url;
break;
}
}
}
}
if (posterUrl) {
video.setAttribute('poster', posterUrl);
posterImage = this.imagePrototype.cloneNode(false);
$(posterImage).addClass(options.toggleClass);
posterImage.src = posterUrl;
posterImage.draggable = false;
videoContainerNode.appendChild(posterImage);
}
playMediaControl = document.createElement('a');
playMediaControl.setAttribute('target', '_blank');
playMediaControl.setAttribute('download', title);
playMediaControl.href = url;
if (video.src) {
video.controls = true;
$(video)
.on('error', function () {
that.setTimeout(callback, errorArgs);
})
.on('pause', function () {
isLoading = false;
videoContainer
.removeClass(that.options.videoLoadingClass)
.removeClass(that.options.videoPlayingClass);
if (hasControls) {
that.container.addClass(that.options.controlsClass);
}
if (that.interval) {
that.play();
}
})
.on('playing', function () {
isLoading = false;
videoContainer
.removeClass(that.options.videoLoadingClass)
.addClass(that.options.videoPlayingClass);
if (that.container.hasClass(that.options.controlsClass)) {
hasControls = true;
that.container.removeClass(that.options.controlsClass);
} else {
hasControls = false;
}
})
.on('play', function () {
window.clearTimeout(that.timeout);
isLoading = true;
videoContainer.addClass(that.options.videoLoadingClass);
});
$(playMediaControl).on('click', function (event) {
event.preventDefault();
if (isLoading) {
video.pause();
} else {
video.play();
}
});
videoContainerNode.appendChild(video);
}
videoContainerNode.appendChild(playMediaControl);
this.setTimeout(callback, [{
type: 'load',
target: videoContainerNode
}]);
return videoContainerNode;
};
return Gallery;
}));

1176
js/blueimp-gallery.js Normal file

File diff suppressed because it is too large Load Diff

1
js/blueimp-gallery.min.js vendored Normal file

File diff suppressed because one or more lines are too long

187
js/blueimp-helper.js Normal file
View File

@ -0,0 +1,187 @@
/*
* blueimp helper JS 1.1.0
* https://github.com/blueimp/Gallery
*
* Copyright 2013, Sebastian Tschan
* https://blueimp.net
*
* Licensed under the MIT license:
* http://www.opensource.org/licenses/MIT
*/
/*global define, window, document */
(function () {
'use strict';
function extend(obj1, obj2) {
var prop;
for (prop in obj2) {
if (obj2.hasOwnProperty(prop)) {
obj1[prop] = obj2[prop];
}
}
return obj1;
}
function Helper(query) {
if (!this || this.find !== Helper.prototype.find) {
// Called as function instead of as constructor,
// so we simply return a new instance:
return new Helper(query);
}
this.length = 0;
if (query) {
if (typeof query === 'string') {
query = this.find(query);
}
if (query.nodeType || query === query.window) {
// Single HTML element
this.length = 1;
this[0] = query;
} else {
// HTML element collection
var i = query.length;
this.length = i;
while (i) {
i -= 1;
this[i] = query[i];
}
}
}
}
Helper.extend = extend;
Helper.contains = function (container, element) {
do {
element = element.parentNode;
if (element === container) {
return true;
}
} while (element);
return false;
};
Helper.parseJSON = function (string) {
return window.JSON && JSON.parse(string);
};
extend(Helper.prototype, {
find: function (query) {
var container = this[0] || document;
if (typeof query === 'string') {
if (container.querySelectorAll) {
query = container.querySelectorAll(query);
} else if (query.charAt(0) === '#') {
query = container.getElementById(query.slice(1));
} else {
query = container.getElementsByTagName(query);
}
}
return new Helper(query);
},
hasClass: function (className) {
if (!this[0]) {
return false;
}
return new RegExp('(^|\\s+)' + className +
'(\\s+|$)').test(this[0].className);
},
addClass: function (className) {
var i = this.length,
element;
while (i) {
i -= 1;
element = this[i];
if (!element.className) {
element.className = className;
return this;
}
if (this.hasClass(className)) {
return this;
}
element.className += ' ' + className;
}
return this;
},
removeClass: function (className) {
var regexp = new RegExp('(^|\\s+)' + className + '(\\s+|$)'),
i = this.length,
element;
while (i) {
i -= 1;
element = this[i];
element.className = element.className.replace(regexp, ' ');
}
return this;
},
on: function (eventName, handler) {
var eventNames = eventName.split(/\s+/),
i,
element;
while (eventNames.length) {
eventName = eventNames.shift();
i = this.length;
while (i) {
i -= 1;
element = this[i];
if (element.addEventListener) {
element.addEventListener(eventName, handler, false);
} else if (element.attachEvent) {
element.attachEvent('on' + eventName, handler);
}
}
}
return this;
},
off: function (eventName, handler) {
var eventNames = eventName.split(/\s+/),
i,
element;
while (eventNames.length) {
eventName = eventNames.shift();
i = this.length;
while (i) {
i -= 1;
element = this[i];
if (element.removeEventListener) {
element.removeEventListener(eventName, handler, false);
} else if (element.detachEvent) {
element.detachEvent('on' + eventName, handler);
}
}
}
return this;
},
empty: function () {
var i = this.length,
element;
while (i) {
i -= 1;
element = this[i];
while (element.hasChildNodes()) {
element.removeChild(element.lastChild);
}
}
return this;
}
});
if (typeof define === 'function' && define.amd) {
define(function () {
return Helper;
});
} else {
window.blueimp = window.blueimp || {};
window.blueimp.helper = Helper;
}
}());

2280
js/bootstrap.js vendored Normal file

File diff suppressed because it is too large Load Diff

6
js/bootstrap.min.js vendored Normal file

File diff suppressed because one or more lines are too long

9
js/html5.js Normal file
View File

@ -0,0 +1,9 @@
/*
HTML5 Shiv v3.6.2pre | @afarkas @jdalton @jon_neal @rem | MIT/GPL2 Licensed
Uncompressed source: https://github.com/aFarkas/html5shiv
*/
(function(l,f){function m(){var a=e.elements;return"string"==typeof a?a.split(" "):a}function i(a){var b=n[a[o]];b||(b={},h++,a[o]=h,n[h]=b);return b}function p(a,b,c){b||(b=f);if(g)return b.createElement(a);c||(c=i(b));b=c.cache[a]?c.cache[a].cloneNode():r.test(a)?(c.cache[a]=c.createElem(a)).cloneNode():c.createElem(a);return b.canHaveChildren&&!s.test(a)?c.frag.appendChild(b):b}function t(a,b){if(!b.cache)b.cache={},b.createElem=a.createElement,b.createFrag=a.createDocumentFragment,b.frag=b.createFrag();
a.createElement=function(c){return!e.shivMethods?b.createElem(c):p(c,a,b)};a.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+m().join().replace(/\w+/g,function(a){b.createElem(a);b.frag.createElement(a);return'c("'+a+'")'})+");return n}")(e,b.frag)}function q(a){a||(a=f);var b=i(a);if(e.shivCSS&&!j&&!b.hasCSS){var c,d=a;c=d.createElement("p");d=d.getElementsByTagName("head")[0]||d.documentElement;c.innerHTML="x<style>article,aside,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}mark{background:#FF0;color:#000}</style>";
c=d.insertBefore(c.lastChild,d.firstChild);b.hasCSS=!!c}g||t(a,b);return a}var k=l.html5||{},s=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,r=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,j,o="_html5shiv",h=0,n={},g;(function(){try{var a=f.createElement("a");a.innerHTML="<xyz></xyz>";j="hidden"in a;var b;if(!(b=1==a.childNodes.length)){f.createElement("a");var c=f.createDocumentFragment();b="undefined"==typeof c.cloneNode||
"undefined"==typeof c.createDocumentFragment||"undefined"==typeof c.createElement}g=b}catch(d){g=j=!0}})();var e={elements:k.elements||"abbr article aside audio bdi canvas data datalist details figcaption figure footer header hgroup main mark meter nav output progress section summary time video",version:"3.6.2pre",shivCSS:!1!==k.shivCSS,supportsUnknownElements:g,shivMethods:!1!==k.shivMethods,type:"default",shivDocument:q,createElement:p,createDocumentFragment:function(a,b){a||(a=f);if(g)return a.createDocumentFragment();
for(var b=b||i(a),c=b.frag.cloneNode(),d=0,e=m(),h=e.length;d<h;d++)c.createElement(e[d]);return c}};l.html5=e;q(f)})(this,document);

View File

@ -0,0 +1,75 @@
/*
* blueimp Gallery jQuery plugin 1.1.0
* https://github.com/blueimp/Gallery
*
* Copyright 2013, Sebastian Tschan
* https://blueimp.net
*
* Licensed under the MIT license:
* http://www.opensource.org/licenses/MIT
*/
/*global define, window, document */
(function (factory) {
'use strict';
if (typeof define === 'function' && define.amd) {
define([
'jquery',
'./blueimp-gallery.js'
], factory);
} else {
factory(
window.jQuery,
window.blueimp.Gallery
);
}
}(function ($, Gallery) {
'use strict';
// Global click handler to open links with data-gallery attribute
// in the Gallery lightbox:
$(document.body).on('click', '[data-gallery]', function (event) {
// Get the container id from the data-gallery attribute:
var id = $(this).data('gallery'),
widget = $(id),
container = (widget.length && widget) ||
$(Gallery.prototype.options.container),
options = $.extend(
// Retrieve custom options from data-attributes
// on the Gallery widget:
container.data(),
{
container: container[0],
index: this,
event: event,
onopen: function () {
container
.data('gallery', this)
.trigger('open', arguments);
},
onslide: function () {
container.trigger('slide', arguments);
},
onslideend: function () {
container.trigger('slideend', arguments);
},
onslidecomplete: function () {
container.trigger('slidecomplete', arguments);
},
onclose: function () {
container
.trigger('close')
.removeData('gallery');
}
}
),
// Select all links with the same data-gallery attribute:
links = $('[data-gallery="' + id + '"]');
if (options.filter) {
links = links.filter(options.filter);
}
return new Gallery(links, options);
});
}));

1
js/jquery.blueimp-gallery.min.js vendored Normal file

File diff suppressed because one or more lines are too long

13
tmpl/header.html Normal file
View File

@ -0,0 +1,13 @@
<!-- You are inside your <head> here -->
<link rel="shortcut icon" href="/favicon.ico" />
<!-- pad down for the header -->
<style type="text/css">
body {
padding-top: 3em;
padding-bottom: .5em;
}
.brand { padding: 1em 1em 1em 1em; }
.sidebar-nav { padding: 40px; }
</style>

34
tmpl/navbar.html Normal file
View File

@ -0,0 +1,34 @@
<nav>
<div class="navbar navbar-fixed-top">
<div class="navbar-inner">
<a href="index">
<!-- customise this with your icon and brand -->
<i class="icon-home></i> &nbsp;&nbsp;Welcome
</div>
</a>
<ul class="nav">
<li class="divider-vertical"></li>
<!-- customise below with a list of pages -->
<li><a href="artworks">artworks</a></li>
<li><a href="writings">writings</a></li>
<li><a href="media">media</a></li>
<li class="divider-vertical"></li>
<li><a href="contact">contact</a></li>
</ul>
</div>
</div>
</nav>

50
update Executable file
View File

@ -0,0 +1,50 @@
#!/usr/bin/env zsh
#
# Jaro Web, your slick and static website publisher
#
# Copyleft (C) 2012-2013 Denis Roio <jaromil@dyne.org>
#
# This source code is free software; you can redistribute it and/or
# modify it under the terms of the GNU Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This source code is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# Please refer to the GNU Public License for more details.
#
# You should have received a copy of the GNU Public License along with
# this source code; if not, write to:
# Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
{ test -r init } || {
echo "Error: update must be run from inside the hipweb directory"
return 1 }
source utils
# eventually these will need an update
bootstrap2="http://twitter.github.io/bootstrap/assets/bootstrap.zip"
blueimp_gallery="https://github.com/blueimp/Gallery.git"
notice "Downloading and installing the latest Bootstrap2"
act "url: $bootstrap2"
curl "$bootstrap2" -o bootstrap.zip
unzip -q bootstrap.zip
rsync -r bootstrap/css .
rsync -r bootstrap/js .
rsync -r bootstrap/img .
rm -rf bootstrap bootstrap.zip
act "Bootstrap2 installed"
notice "Downloading and installing BlueImp gallery"
git clone ${blueimp_gallery} blueimp
rsync -r blueimp/css .
rsync -r blueimp/js .
rsync -r blueimp/img .
rm -rf blueimp
act "BlueImp installed"