initial commit to seperate repo

This commit is contained in:
Don Harper 2015-06-09 22:59:04 -05:00
commit 8630e4db13
23669 changed files with 1067407 additions and 0 deletions

File diff suppressed because one or more lines are too long

36
output/assets/js/all.js Normal file

File diff suppressed because one or more lines are too long

2317
output/assets/js/bootstrap.js vendored Normal file

File diff suppressed because it is too large Load diff

7
output/assets/js/bootstrap.min.js vendored Normal file

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1,15 @@
/*
jQuery Colorbox language configuration
language: Arabic (ar)
translated by: A.Rhman Sayes
*/
jQuery.extend(jQuery.colorbox.settings, {
current: "الصورة {current} من {total}",
previous: "السابق",
next: "التالي",
close: "إغلاق",
xhrError: "حدث خطأ أثناء تحميل المحتوى.",
imgError: "حدث خطأ أثناء تحميل الصورة.",
slideshowStart: "تشغيل العرض",
slideshowStop: "إيقاف العرض"
});

View file

@ -0,0 +1,16 @@
/*
jQuery Colorbox language configuration
language: Bulgarian (bg)
translated by: Marian M.Bida
site: webmax.bg
*/
jQuery.extend(jQuery.colorbox.settings, {
current: "изображение {current} от {total}",
previous: "предишна",
next: "следваща",
close: "затвори",
xhrError: "Неуспешно зареждане на съдържанието.",
imgError: "Неуспешно зареждане на изображението.",
slideshowStart: "пусни слайд-шоу",
slideshowStop: "спри слайд-шоу"
});

View file

@ -0,0 +1,16 @@
/*
jQuery Colorbox language configuration
language: Bengali (bn)
translated by: Arkaprava Majumder
http://github.com/arkaindas
*/
jQuery.extend(jQuery.colorbox.settings, {
current: "ছবি {current} এর {total}",
previous: "আগে",
next: "পরে",
close: "বন্ধ",
xhrError: "এই কন্টেন্ট লোড করা যায়নি.",
imgError: "এই ছবিটি লোড করা যায়নি.",
slideshowStart: "স্লাইডশো শুরু",
slideshowStop: "স্লাইডশো বন্ধ"
});

View file

@ -0,0 +1,13 @@
/*
jQuery Colorbox language configuration
language: Catala (ca)
translated by: eduard salla
*/
jQuery.extend(jQuery.colorbox.settings, {
current: "Imatge {current} de {total}",
previous: "Anterior",
next: "Següent",
close: "Tancar",
xhrError: "Error en la càrrega del contingut.",
imgError: "Error en la càrrega de la imatge."
});

View file

@ -0,0 +1,16 @@
/*
jQuery Colorbox language configuration
language: Czech (cs)
translated by: Filip Novak
site: mame.napilno.cz/filip-novak
*/
jQuery.extend(jQuery.colorbox.settings, {
current: "{current}. obrázek z {total}",
previous: "Předchozí",
next: "Následující",
close: "Zavřít",
xhrError: "Obsah se nepodařilo načíst.",
imgError: "Obrázek se nepodařilo načíst.",
slideshowStart: "Spustit slideshow",
slideshowStop: "Zastavit slideshow"
});

View file

@ -0,0 +1,16 @@
/*
jQuery Colorbox language configuration
language: Danish (da)
translated by: danieljuhl
site: danieljuhl.dk
*/
jQuery.extend(jQuery.colorbox.settings, {
current: "Billede {current} af {total}",
previous: "Forrige",
next: "Næste",
close: "Luk",
xhrError: "Indholdet fejlede i indlæsningen.",
imgError: "Billedet fejlede i indlæsningen.",
slideshowStart: "Start slideshow",
slideshowStop: "Stop slideshow"
});

View file

@ -0,0 +1,15 @@
/*
jQuery Colorbox language configuration
language: German (de)
translated by: wallenium
*/
jQuery.extend(jQuery.colorbox.settings, {
current: "Bild {current} von {total}",
previous: "Zurück",
next: "Vor",
close: "Schließen",
xhrError: "Dieser Inhalt konnte nicht geladen werden.",
imgError: "Dieses Bild konnte nicht geladen werden.",
slideshowStart: "Slideshow starten",
slideshowStop: "Slideshow anhalten"
});

View file

@ -0,0 +1,13 @@
/*
jQuery Colorbox language configuration
language: Spanish (es)
translated by: migolo
*/
jQuery.extend(jQuery.colorbox.settings, {
current: "Imagen {current} de {total}",
previous: "Anterior",
next: "Siguiente",
close: "Cerrar",
xhrError: "Error en la carga del contenido.",
imgError: "Error en la carga de la imagen."
});

View file

@ -0,0 +1,15 @@
/*
jQuery Colorbox language configuration
language: Estonian (et)
translated by: keevitaja
*/
jQuery.extend(jQuery.colorbox.settings, {
current: "{current}/{total}",
previous: "eelmine",
next: "järgmine",
close: "sulge",
xhrError: "Sisu ei õnnestunud laadida.",
imgError: "Pilti ei õnnestunud laadida.",
slideshowStart: "Käivita slaidid",
slideshowStop: "Peata slaidid"
});

View file

@ -0,0 +1,18 @@
/*
jQuery Colorbox language configuration
language: Persian (Farsi)
translated by: Mahdi Jaberzadeh Ansari (MJZSoft)
site: www.mjzsoft.ir
email: mahdijaberzadehansari (at) yahoo.co.uk
Please note : Persian language is right to left like arabic.
*/
jQuery.extend(jQuery.colorbox.settings, {
current: "تصویر {current} از {total}",
previous: "قبلی",
next: "بعدی",
close: "بستن",
xhrError: "متاسفانه محتویات مورد نظر قابل نمایش نیست.",
imgError: "متاسفانه بارگذاری این عکس با مشکل مواجه شده است.",
slideshowStart: "آغاز نمایش خودکار",
slideshowStop: "توقف نمایش خودکار"
});

View file

@ -0,0 +1,15 @@
/*
jQuery Colorbox language configuration
language: Finnish (fi)
translated by: Mikko
*/
jQuery.extend(jQuery.colorbox.settings, {
current: "Kuva {current} / {total}",
previous: "Edellinen",
next: "Seuraava",
close: "Sulje",
xhrError: "Sisällön lataaminen epäonnistui.",
imgError: "Kuvan lataaminen epäonnistui.",
slideshowStart: "Aloita kuvaesitys.",
slideshowStop: "Lopeta kuvaesitys."
});

View file

@ -0,0 +1,15 @@
/*
jQuery Colorbox language configuration
language: French (fr)
translated by: oaubert
*/
jQuery.extend(jQuery.colorbox.settings, {
current: "image {current} sur {total}",
previous: "précédente",
next: "suivante",
close: "fermer",
xhrError: "Impossible de charger ce contenu.",
imgError: "Impossible de charger cette image.",
slideshowStart: "démarrer la présentation",
slideshowStop: "arrêter la présentation"
});

View file

@ -0,0 +1,13 @@
/*
jQuery Colorbox language configuration
language: Galician (gl)
translated by: donatorouco
*/
jQuery.extend(jQuery.colorbox.settings, {
current: "Imaxe {current} de {total}",
previous: "Anterior",
next: "Seguinte",
close: "Pechar",
xhrError: "Erro na carga do contido.",
imgError: "Erro na carga da imaxe."
});

View file

@ -0,0 +1,16 @@
/*
jQuery Colorbox language configuration
language: Greek (gr)
translated by: S.Demirtzoglou
site: webiq.gr
*/
jQuery.extend(jQuery.colorbox.settings, {
current: "Εικόνα {current} από {total}",
previous: "Προηγούμενη",
next: "Επόμενη",
close: "Απόκρυψη",
xhrError: "Το περιεχόμενο δεν μπόρεσε να φορτωθεί.",
imgError: "Απέτυχε η φόρτωση της εικόνας.",
slideshowStart: "Έναρξη παρουσίασης",
slideshowStop: "Παύση παρουσίασης"
});

View file

@ -0,0 +1,16 @@
/*
jQuery Colorbox language configuration
language: Hebrew (he)
translated by: DavidCo
site: DavidCo.me
*/
jQuery.extend(jQuery.colorbox.settings, {
current: "תמונה {current} מתוך {total}",
previous: "הקודם",
next: "הבא",
close: "סגור",
xhrError: "שגיאה בטעינת התוכן.",
imgError: "שגיאה בטעינת התמונה.",
slideshowStart: "התחל מצגת",
slideshowStop: "עצור מצגת"
});

View file

@ -0,0 +1,15 @@
/*
jQuery Colorbox language configuration
language: Croatian (hr)
translated by: Mladen Bicanic (base.hr)
*/
jQuery.extend(jQuery.colorbox.settings, {
current: "Slika {current} od {total}",
previous: "Prethodna",
next: "Sljedeća",
close: "Zatvori",
xhrError: "Neuspješno učitavanje sadržaja.",
imgError: "Neuspješno učitavanje slike.",
slideshowStart: "Pokreni slideshow",
slideshowStop: "Zaustavi slideshow"
});

View file

@ -0,0 +1,15 @@
/*
jQuery Colorbox language configuration
language: Hungarian (hu)
translated by: kovadani
*/
jQuery.extend(jQuery.colorbox.settings, {
current: "{current}/{total} kép",
previous: "Előző",
next: "Következő",
close: "Bezár",
xhrError: "A tartalmat nem sikerült betölteni.",
imgError: "A képet nem sikerült betölteni.",
slideshowStart: "Diavetítés indítása",
slideshowStop: "Diavetítés leállítása"
});

View file

@ -0,0 +1,15 @@
/*
jQuery Colorbox language configuration
language: Indonesian (id)
translated by: sarwasunda
*/
jQuery.extend(jQuery.colorbox.settings, {
current: "ke {current} dari {total}",
previous: "Sebelumnya",
next: "Berikutnya",
close: "Tutup",
xhrError: "Konten ini tidak dapat dimuat.",
imgError: "Gambar ini tidak dapat dimuat.",
slideshowStart: "Putar",
slideshowStop: "Berhenti"
});

View file

@ -0,0 +1,15 @@
/*
jQuery Colorbox language configuration
language: Italian (it)
translated by: maur8ino
*/
jQuery.extend(jQuery.colorbox.settings, {
current: "Immagine {current} di {total}",
previous: "Precedente",
next: "Successiva",
close: "Chiudi",
xhrError: "Errore nel caricamento del contenuto.",
imgError: "Errore nel caricamento dell'immagine.",
slideshowStart: "Inizia la presentazione",
slideshowStop: "Termina la presentazione"
});

View file

@ -0,0 +1,15 @@
/*
jQuery Colorbox language configuration
language: Japanaese (ja)
translated by: Hajime Fujimoto
*/
jQuery.extend(jQuery.colorbox.settings, {
current: "{total}枚中{current}枚目",
previous: "前",
next: "次",
close: "閉じる",
xhrError: "コンテンツの読み込みに失敗しました",
imgError: "画像の読み込みに失敗しました",
slideshowStart: "スライドショー開始",
slideshowStop: "スライドショー終了"
});

View file

@ -0,0 +1,15 @@
/*
jQuery Colorbox language configuration
language: Korean (kr)
translated by: lunareffect
*/
jQuery.extend(jQuery.colorbox.settings, {
current: "총 {total} 중 {current}",
previous: "이전",
next: "다음",
close: "닫기",
xhrError: "컨텐츠를 불러오는 데 실패했습니다.",
imgError: "이미지를 불러오는 데 실패했습니다.",
slideshowStart: "슬라이드쇼 시작",
slideshowStop: "슬라이드쇼 중지"
});

View file

@ -0,0 +1,15 @@
/*
jQuery Colorbox language configuration
language: Lithuanian (lt)
translated by: Tomas Norkūnas
*/
jQuery.extend(jQuery.colorbox.settings, {
current: "Nuotrauka {current} iš {total}",
previous: "Atgal",
next: "Pirmyn",
close: "Uždaryti",
xhrError: "Nepavyko užkrauti turinio.",
imgError: "Nepavyko užkrauti nuotraukos.",
slideshowStart: "Pradėti automatinę peržiūrą",
slideshowStop: "Sustabdyti automatinę peržiūrą"
});

View file

@ -0,0 +1,16 @@
/*
jQuery Colorbox language configuration
language: Latvian (lv)
translated by: Matiss Roberts Treinis
site: x0.lv
*/
jQuery.extend(jQuery.colorbox.settings, {
current: "attēls {current} no {total}",
previous: "iepriekšējais",
next: "nākamais",
close: "aizvērt",
xhrError: "Neizdevās ielādēt saturu.",
imgError: "Neizdevās ielādēt attēlu.",
slideshowStart: "sākt slaidrādi",
slideshowStop: "apturēt slaidrādi"
});

View file

@ -0,0 +1,15 @@
/*
jQuery Colorbox language configuration
language: Myanmar (my)
translated by: Yan Naing
*/
jQuery.extend(jQuery.colorbox.settings, {
current: "ပုံ {total} မှာ {current} မြောက်ပုံ",
previous: "ရှေ့သို့",
next: "နောက်သို့",
close: "ပိတ်မည်",
xhrError: "ပါဝင်သော အကြောင်းအရာများ ဖော်ပြရာတွင် အနည်းငယ် ချို့ယွင်းမှုရှိနေပါသည်",
imgError: "ပုံပြသရာတွင် အနည်းငယ် ချို့ယွင်းချက် ရှိနေပါသည်",
slideshowStart: "ပုံများ စတင်ပြသမည်",
slideshowStop: "ပုံပြသခြင်း ရပ်ဆိုင်မည်"
});

View file

@ -0,0 +1,15 @@
/*
jQuery Colorbox language configuration
language: Dutch (nl)
translated by: barryvdh
*/
jQuery.extend(jQuery.colorbox.settings, {
current: "Afbeelding {current} van {total}",
previous: "Vorige",
next: "Volgende",
close: "Sluiten",
xhrError: "Deze inhoud kan niet geladen worden.",
imgError: "Deze afbeelding kan niet geladen worden.",
slideshowStart: "Diashow starten",
slideshowStop: "Diashow stoppen"
});

View file

@ -0,0 +1,16 @@
/*
jQuery Colorbox language configuration
language: Norwegian (no)
translated by: lars-erik
site: markedspartner.no
*/
jQuery.extend(jQuery.colorbox.settings, {
current: "Bilde {current} av {total}",
previous: "Forrige",
next: "Neste",
close: "Lukk",
xhrError: "Feil ved lasting av innhold.",
imgError: "Feil ved lasting av bilde.",
slideshowStart: "Start lysbildefremvisning",
slideshowStop: "Stopp lysbildefremvisning"
});

View file

@ -0,0 +1,16 @@
/*
jQuery Colorbox language configuration
language: Polski (pl)
translated by: Tomasz Wasiński
site: 2bevisible.pl
*/
jQuery.extend(jQuery.colorbox.settings, {
current: "{current}. obrazek z {total}",
previous: "Poprzedni",
next: "Następny",
close: "Zamknij",
xhrError: "Nie udało się załadować treści.",
imgError: "Nie udało się załadować obrazka.",
slideshowStart: "rozpocznij pokaz slajdów",
slideshowStop: "zatrzymaj pokaz slajdów"
});

View file

@ -0,0 +1,15 @@
/*
jQuery Colorbox language configuration
language: Brazilian Portuguese (pt-BR)
translated by: ReinaldoMT
*/
jQuery.extend(jQuery.colorbox.settings, {
current: "Imagem {current} de {total}",
previous: "Anterior",
next: "Próxima",
close: "Fechar",
slideshowStart: "iniciar apresentação de slides",
slideshowStop: "parar apresentação de slides",
xhrError: "Erro ao carregar o conteúdo.",
imgError: "Erro ao carregar a imagem."
});

View file

@ -0,0 +1,15 @@
/*
jQuery Colorbox language configuration
language: Brazilian Portuguese (pt-br)
translated by: ReinaldoMT
*/
jQuery.extend(jQuery.colorbox.settings, {
current: "Imagem {current} de {total}",
previous: "Anterior",
next: "Próxima",
close: "Fechar",
slideshowStart: "iniciar apresentação de slides",
slideshowStop: "parar apresentação de slides",
xhrError: "Erro ao carregar o conteúdo.",
imgError: "Erro ao carregar a imagem."
});

View file

@ -0,0 +1,15 @@
/*
jQuery Colorbox language configuration
language: Romanian (ro)
translated by: shurub3l
*/
jQuery.extend(jQuery.colorbox.settings, {
current: "imagine {current} din {total}",
previous: "precedenta",
next: "următoarea",
close: "închideți",
xhrError: "Acest conținut nu poate fi încărcat.",
imgError: "Această imagine nu poate fi încărcată",
slideshowStart: "începeți prezentarea (slideshow)",
slideshowStop: "opriți prezentarea (slideshow)"
});

View file

@ -0,0 +1,16 @@
/*
jQuery Colorbox language configuration
language: Russian (ru)
translated by: Marfa
site: themarfa.name
*/
jQuery.extend(jQuery.colorbox.settings, {
current: "изображение {current} из {total}",
previous: "назад",
next: "вперёд",
close: "закрыть",
xhrError: "Не удалось загрузить содержимое.",
imgError: "Не удалось загрузить изображение.",
slideshowStart: "начать слайд-шоу",
slideshowStop: "остановить слайд-шоу"
});

View file

@ -0,0 +1,15 @@
/*
jQuery Colorbox language configuration
language: Slovenian (si)
translated by: Boštjan Pišler (pisler.si)
*/
jQuery.extend(jQuery.colorbox.settings, {
current: "Slika {current} od {total}",
previous: "Prejšnja",
next: "Naslednja",
close: "Zapri",
xhrError: "Vsebine ni bilo mogoče naložiti.",
imgError: "Slike ni bilo mogoče naložiti.",
slideshowStart: "Zaženi prezentacijo",
slideshowStop: "Zaustavi prezentacijo"
});

View file

@ -0,0 +1,15 @@
/*
jQuery Colorbox language configuration
language: Slovak (sk)
translated by: Jaroslav Kostal
*/
jQuery.extend(jQuery.colorbox.settings, {
current: "{current}. obrázok z {total}",
previous: "Predchádzajúci",
next: "Následujúci",
close: "Zatvoriť",
xhrError: "Obsah sa nepodarilo načítať.",
imgError: "Obrázok sa nepodarilo načítať.",
slideshowStart: "Spustiť slideshow",
slideshowStop: "zastaviť slideshow"
});

View file

@ -0,0 +1,15 @@
/*
jQuery Colorbox language configuration
language: Serbian (sr)
translated by: Sasa Stefanovic (baguje.com)
*/
jQuery.extend(jQuery.colorbox.settings, {
current: "Slika {current} od {total}",
previous: "Prethodna",
next: "Sledeća",
close: "Zatvori",
xhrError: "Neuspešno učitavanje sadržaja.",
imgError: "Neuspešno učitavanje slike.",
slideshowStart: "Pokreni slideshow",
slideshowStop: "Zaustavi slideshow"
});

View file

@ -0,0 +1,15 @@
/*
jQuery Colorbox language configuration
language: Swedish (sv)
translated by: Mattias Reichel
*/
jQuery.extend(jQuery.colorbox.settings, {
current: "Bild {current} av {total}",
previous: "Föregående",
next: "Nästa",
close: "Stäng",
xhrError: "Innehållet kunde inte laddas.",
imgError: "Den här bilden kunde inte laddas.",
slideshowStart: "Starta bildspel",
slideshowStop: "Stoppa bildspel"
});

View file

@ -0,0 +1,19 @@
/*
jQuery Colorbox language configuration
language: Turkish (tr)
translated by: Caner ÖNCEL
site: egonomik.com
edited by: Sinan Eldem
www.sinaneldem.com.tr
*/
jQuery.extend(jQuery.colorbox.settings, {
current: "Görsel {current} / {total}",
previous: "Önceki",
next: "Sonraki",
close: "Kapat",
xhrError: "İçerik yüklenirken hata meydana geldi.",
imgError: "Resim yüklenirken hata meydana geldi.",
slideshowStart: "Slaytı Başlat",
slideshowStop: "Slaytı Durdur"
});

View file

@ -0,0 +1,16 @@
/*
jQuery ColorBox language configuration
language: Ukrainian (uk)
translated by: Andrew
http://acisoftware.com.ua
*/
jQuery.extend(jQuery.colorbox.settings, {
current: "зображення {current} з {total}",
previous: "попереднє",
next: "наступне",
close: "закрити",
xhrError: "Не вдалося завантажити вміст.",
imgError: "Не вдалося завантажити зображення.",
slideshowStart: "почати слайд-шоу",
slideshowStop: "зупинити слайд-шоу"
});

View file

@ -0,0 +1,15 @@
/*
jQuery Colorbox language configuration
language: Chinese Simplified (zh-CN)
translated by: zhao weiming
*/
jQuery.extend(jQuery.colorbox.settings, {
current: "当前图像 {current} 总共 {total}",
previous: "前一页",
next: "后一页",
close: "关闭",
xhrError: "此内容无法加载",
imgError: "此图片无法加载",
slideshowStart: "开始播放幻灯片",
slideshowStop: "停止播放幻灯片"
});

View file

@ -0,0 +1,15 @@
/*
jQuery Colorbox language configuration
language: Chinese Traditional (zh-TW)
translated by: Atans Chiu
*/
jQuery.extend(jQuery.colorbox.settings, {
current: "圖片 {current} 總共 {total}",
previous: "上一頁",
next: "下一頁",
close: "關閉",
xhrError: "此內容加載失敗.",
imgError: "此圖片加載失敗.",
slideshowStart: "開始幻燈片",
slideshowStop: "結束幻燈片"
});

View file

@ -0,0 +1,20 @@
function fancydates(fanciness, date_format) {
if (fanciness == 0) {
return;
}
dates = $('time.published.dt-published');
i = 0;
l = dates.length;
for (i = 0; i < l; i++) {
d = moment(dates[i].attributes.datetime.value);
if (fanciness == 1) {
o = d.local().format(date_format);
} else {
o = d.fromNow();
}
dates[i].innerHTML = o;
}
}

View file

@ -0,0 +1,265 @@
/**
* Flowr.js - Simple jQuery plugin to emulate Flickr's justified view
* For usage information refer to http://github.com/kalyan02/flowr-js
*
*
* @author: Kalyan Chakravarthy (http://KalyanChakravarthy.net)
* @version: v0.1
*/
(function($){
//$("#container2").css( 'border', '1px solid #ccc');
$.fn.flowr = function(options) {
$this = this;
var ROW_CLASS_NAME = 'flowr-row'; // Class name for the row of flowy
var MAX_LAST_ROW_GAP = 25; // If the width of last row is lesser than max-width, recalculation is needed
var NO_COPY_FIELDS = [ 'complete', 'data', 'responsive' ]; // these attributes will not be carried forward for append related calls
var DEFAULTS = {
'data' : [],
'padding' : 5, // whats the padding between flowy items
'height' : 240, // Minimum height an image row should take
'render' : null, // callback function to get the tag
'append' : false, // TODO
'widthAttr' : 'width', // a custom data structure can specify which attribute refers to height/width
'heightAttr' : 'height',
'maxScale' : 1.5, // In case there is only 1 elment in last row
'maxWidth' : this.width()-1, // 1px is just for offset
'itemWidth' : null, // callback function for width
'itemHeight' : null, // callback function for height
'complete' : null, // complete callback
'rowClassName' : ROW_CLASS_NAME,
'rows' : -1, // Maximum number of rows to render. -1 for no limit.
'responsive' : true // make content responsive
};
var settings = $.extend( DEFAULTS, options);
// If data is being appended, we already have settings
// If we already have settings, retrieve them
if( settings.append && $this.data('lastSettings') ) {
lastSettings = $this.data('lastSettings');
// Copy over the settings from previous init
for( attr in DEFAULTS ) {
if( NO_COPY_FIELDS.indexOf(attr)<0 && settings[attr] == DEFAULTS[attr] ) {
settings[attr] = lastSettings[attr];
}
}
// Check if we have an incomplete last row
lastRow = $this.data('lastRow');
if( lastRow.data.length > 0 && settings.maxWidth-lastRow.width > MAX_LAST_ROW_GAP ) {
// Prepend the incomplete row to newly loaded data and redraw
lastRowData = lastSettings.data.slice( lastSettings.data.length - lastRow.data.length - 1 );
settings.data = lastRowData.concat(settings.data);
// Remove the incomplete row
// TODO: Don't reload this stuff later. Reattach to new row.
$( '.' + settings.rowClassName + ':last', $this ).detach();
} else {
// console.log( lastRow.data.length );
// console.log( lastRow.width );
}
}
// only on the first initial call
if( !settings.responsive && !settings.append )
$this.width( $this.width() );
// Basic sanity checks
if( !(settings.data instanceof Array) )
return;
if( typeof(settings.padding) != 'number' )
settings.padding = parseInt( settings.padding );
if( typeof(settings.itemWidth) != 'function' ) {
settings.itemWidth = function(data) {
return data[ settings.widthAttr ];
}
}
if( typeof(settings.itemHeight) != 'function' ) {
settings.itemHeight = function(data) {
return data[ settings.heightAttr ];
}
}
// A standalone utility to calculate the item widths for a particular row
// Returns rowWidth: width occupied & data : the items in the new row
var utils = {
getNextRow : function( data, settings ) {
var itemIndex = 0;
var itemsLength = data.length;
var lineItems = [];
var lineWidth = 0;
var maxWidth = settings.maxWidth;
var paddingSize = settings.padding;
// console.log( 'maxItems=' + data.length );
requiredPadding = function() {
var extraPads = arguments.length == 1 ? arguments[0] : 0;
return (lineItems.length - 1 + extraPads) * settings.padding;
}
while( lineWidth + requiredPadding() < settings.maxWidth && (itemIndex < itemsLength) ) {
var itemData = data[ itemIndex ];
var itemWidth = settings.itemWidth.call( $this, itemData );
var itemHeight = settings.itemHeight.call( $this, itemData );
var minHeight = settings.height;
var minWidth = Math.floor( itemWidth * settings.height / itemHeight );
var newLineWidth = lineWidth + minWidth + requiredPadding(1);
if (minWidth > settings.maxWidth) {
// very short+wide images like panoramas
// show them even if ugly, as wide as possible
minWidth = settings.maxWidth-1;
minHeight = settings.height * minHeight / minWidth;
}
// console.log( 'lineWidth = ' + lineWidth );
// console.log( 'newLineWidth = ' + newLineWidth );
if( newLineWidth < settings.maxWidth ) {
lineItems.push({
'height' : minHeight,
'width' : minWidth,
'itemData' : itemData
});
lineWidth += minWidth;
itemIndex ++;
} else {
// We'd have exceeded width. So break off to scale.
// console.log( 'breaking off = ' + itemIndex );
// console.log( 'leave off size = ' + lineItems.length );
break;
}
} //while
// Scale the size to max width
testWidth=0;
if( lineWidth < settings.maxWidth ) {
var fullScaleWidth = settings.maxWidth - requiredPadding() - 10;
var currScaleWidth = lineWidth;
var scaleFactor = fullScaleWidth / currScaleWidth;
if( scaleFactor > settings.maxScale )
scaleFactor = 1;
var newHeight = Math.round( settings.height * scaleFactor );
for( i=0; i<lineItems.length; i++ ) {
var lineItem = lineItems[ i ];
lineItem.width = Math.floor(lineItem.width * scaleFactor);
lineItem.height = newHeight;
testWidth += lineItem.width;
}
}
return {
data : lineItems,
width : testWidth + requiredPadding()
};
}, //getNextRow
reorderContent : function(){
/*
TODO: optimize for faster resizing by reusing dom objects instead of killing the dom
*/
var _initialWidth = $this.data('width');
var _newWidth = $this.width();
var _change = _initialWidth - _newWidth;
if(_initialWidth!=_newWidth) {
$this.html('');
var _settings = $this.data( 'lastSettings' );
_settings.data = $this.data( 'data' );
_settings.maxWidth = $this.width() - 1;
$this.flowr( _settings );
}
}
} //utils
// If the resposive var is set to true then listen for resize method
// and prevent resizing from happening twice if responsive is set again during append phase!
if( settings.responsive && !$this.data('__responsive') ) {
$(window).resize(function(){
initialWidth = $this.data('width');
newWidth = $this.width();
//initiate resize
if( initialWidth != newWidth ) {
var task_id = $this.data('task_id');
if( task_id ) {
task_id = clearTimeout( task_id );
task_id = null;
}
task_id = setTimeout( utils.reorderContent, 80 );
$this.data('task_id', task_id );
}
});
$this.data('__responsive',true);
}
return this.each(function(){
// Get a copy of original data. 1 level deep copy is sufficient.
var data = settings.data.slice(0);
var rowData = null;
var currentRow = 0;
var currentItem = 0;
// Store all the data
var allData = $this.data( 'data' ) || [];
for(i=0;i<data.length;i++) {
allData.push( data[i] );
}
$this.data( 'data', allData );
// While we have a new row
while( ( rowData = utils.getNextRow(data,settings) ) != null && rowData.data.length > 0 ) {
if( settings.rows > 0 && currentRow >= settings.rows )
break;
// remove the number of elements in the new row from the top of data stack
data.splice( 0, rowData.data.length );
// Create a new row div, add class, append the htmls and insert the flowy items
var $row = $('<div>').addClass(settings.rowClassName);
for( i=0; i<rowData.data.length; i++ ) {
var displayData = rowData.data[i];
// Get the HTML object from custom render function passed as argument
var displayObject = settings.render.call( $this, displayData );
displayObject = $(displayObject);
// Set some basic stuff
displayObject
.css( 'width', displayData.width )
.css( 'height', displayData.height )
.css( 'margin-left', i==0 ? '0' : settings.padding + "px" ); //TODO:Refactor
$row.append( displayObject );
currentItem++;
}
$this.append( $row );
// console.log ( "I> rowData.data.length="+rowData.data.length +" rowData.width="+rowData.width );
currentRow++;
$this.data('lastRow', rowData );
}
// store the current state of settings and the items in last row
// we'll need this info when we append more items
$this.data('lastSettings', settings );
// onComplete callback
// pass back info about list of rows and items rendered
if( typeof (settings.complete) == 'function' ) {
var completeData = {
renderedRows : currentRow,
renderedItems : currentItem
}
settings.complete.call( $this, completeData );
}
});
};
})(jQuery);

View file

@ -0,0 +1,8 @@
/*
HTML5 Shiv v3.7.0 | @afarkas @jdalton @jon_neal @rem | MIT/GPL2 Licensed
*/
(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,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}mark{background:#FF0;color:#000}template{display:none}</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 dialog figcaption figure footer header hgroup main mark meter nav output progress section summary template time video",version:"3.7.0",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);

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load diff

10351
output/assets/js/jquery.js vendored Normal file

File diff suppressed because it is too large Load diff

6
output/assets/js/jquery.min.js vendored Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1,11 @@
// We wait for the onload function to load MathJax after the page is completely loaded.
// MathJax is loaded 1 unit of time after the page is ready.
// This hack prevent problems when you use social button from addthis.
//
window.onload = function () {
setTimeout(function () {
var script = document.createElement("script");
script.src = "https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML";
document.getElementsByTagName("body")[0].appendChild(script);
},1)
}

File diff suppressed because one or more lines are too long