mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-11 06:46:47 +00:00
assets self-hosted
This commit is contained in:
10993
public/dist/jquery.js
vendored
Normal file
10993
public/dist/jquery.js
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1
public/dist/js-year-calendar.min.css
vendored
Normal file
1
public/dist/js-year-calendar.min.css
vendored
Normal file
File diff suppressed because one or more lines are too long
1
public/dist/js-year-calendar.min.js
vendored
Normal file
1
public/dist/js-year-calendar.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
17
public/dist/locales/js-year-calendar.ca.js
vendored
Normal file
17
public/dist/locales/js-year-calendar.ca.js
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
/**
|
||||
* Catalan translation for js-year-calendar
|
||||
* David Ramirez <david@davidrv.com>
|
||||
* Based on
|
||||
* Catalan translation for bootstrap-datepicker
|
||||
* J. Garcia <jogaco.en@gmail.com>
|
||||
*/
|
||||
|
||||
Calendar.locales['ca'] = {
|
||||
days: ["Diumenge", "Dilluns", "Dimarts", "Dimecres", "Dijous", "Divendres", "Dissabte"],
|
||||
daysShort: ["Diu", "Dill", "Dim", "Dmc", "Dij", "Div", "Dis"],
|
||||
daysMin: ["Dg", "Dl", "Dt", "Dc", "Dj", "Dv", "Ds"],
|
||||
months: ["Gener", "Febrer", "Març", "Abril", "Maig", "Juny", "Juliol", "Agost", "Setembre", "Octubre", "Novembre", "Desembre"],
|
||||
monthsShort: ["Gen", "Feb", "Mar", "Abr", "Mai", "Jun", "Jul", "Ago", "Set", "Oct", "Nov", "Dec"],
|
||||
weekShort: 'S',
|
||||
weekStart: 1
|
||||
};
|
||||
18
public/dist/locales/js-year-calendar.cs.js
vendored
Normal file
18
public/dist/locales/js-year-calendar.cs.js
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
/**
|
||||
* Czech translation for js-year-calendar
|
||||
* @ptica
|
||||
* Based on
|
||||
* German translation for js-year-calendar
|
||||
* Paul DAVID-SIVELLE
|
||||
* and moment.js locale configuration by author : petrbela : https://github.com/petrbela
|
||||
*/
|
||||
|
||||
Calendar.locales['cs'] = {
|
||||
days: ["Neděle", "Pondělí", "Úterý", "Středa", "Čtvrtek", "Pátek", "Sobota"],
|
||||
daysShort: ["Ne", "Po", "Út", "St", "Čt", "Pá", "So"],
|
||||
daysMin: ["Ne", "Po", "Út", "St", "Čt", "Pá", "So"],
|
||||
months: ["Leden", "Únor", "Březen", "Duben", "Květen", "Červen", "Červenec", "Srpen", "Září", "Říjen", "Listopad", "Prosinec"],
|
||||
monthsShort: ["Led", "Úno", "Bře", "Dub", "Kvě", "Čvn", "Čvc", "Srp", "Zář", "Říj", "Lis", "Pro"],
|
||||
weekShort: 'T',
|
||||
weekStart: 1
|
||||
};
|
||||
17
public/dist/locales/js-year-calendar.de.js
vendored
Normal file
17
public/dist/locales/js-year-calendar.de.js
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
/**
|
||||
* German translation for js-year-calendar
|
||||
* Paul DAVID-SIVELLE
|
||||
* Based on
|
||||
* German translation for bootstrap-datepicker
|
||||
* Sam Zurcher <sam@orelias.ch>
|
||||
*/
|
||||
|
||||
Calendar.locales['de'] = {
|
||||
days: ["Sonntag", "Montag", "Dienstag", "Mittwoch", "Donnerstag", "Freitag", "Samstag"],
|
||||
daysShort: ["Son", "Mon", "Die", "Mit", "Don", "Fre", "Sam"],
|
||||
daysMin: ["So", "Mo", "Di", "Mi", "Do", "Fr", "Sa"],
|
||||
months: ["Januar", "Februar", "März", "April", "Mai", "Juni", "Juli", "August", "September", "Oktober", "November", "Dezember"],
|
||||
monthsShort: ["Jan", "Feb", "Mär", "Apr", "Mai", "Jun", "Jul", "Aug", "Sep", "Okt", "Nov", "Dez"],
|
||||
weekShort: 'W',
|
||||
weekStart: 1
|
||||
};
|
||||
17
public/dist/locales/js-year-calendar.es.js
vendored
Normal file
17
public/dist/locales/js-year-calendar.es.js
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
/**
|
||||
* Spanish translation for js-year-calendar
|
||||
* Paul DAVID-SIVELLE
|
||||
* Based on
|
||||
* Spanish translation for bootstrap-datepicker
|
||||
* Bruno Bonamin <bruno.bonamin@gmail.com>
|
||||
*/
|
||||
|
||||
Calendar.locales['es'] = {
|
||||
days: ["Domingo", "Lunes", "Martes", "Miércoles", "Jueves", "Viernes", "Sábado"],
|
||||
daysShort: ["Dom", "Lun", "Mar", "Mié", "Jue", "Vie", "Sáb"],
|
||||
daysMin: ["Do", "Lu", "Ma", "Mi", "Ju", "Vi", "Sa"],
|
||||
months: ["Enero", "Febrero", "Marzo", "Abril", "Mayo", "Junio", "Julio", "Agosto", "Septiembre", "Octubre", "Noviembre", "Diciembre"],
|
||||
monthsShort: ["Ene", "Feb", "Mar", "Abr", "May", "Jun", "Jul", "Ago", "Sep", "Oct", "Nov", "Dic"],
|
||||
weekShort: 'S',
|
||||
weekStart: 1
|
||||
};
|
||||
16
public/dist/locales/js-year-calendar.eu.js
vendored
Normal file
16
public/dist/locales/js-year-calendar.eu.js
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
/**
|
||||
* Basque translation for js-year-calendar
|
||||
* Iker Ibarguren Berasaluze
|
||||
* Based on * Basque translation for bootstrap-datepicker
|
||||
* by Karrikas ( karrikas@karrikas.com )
|
||||
*/
|
||||
|
||||
Calendar.locales['eu'] = {
|
||||
days: ["Igandea", "Astelehena", "Asteartea", "Asteazkena", "Osteguna", "Ostirala", "Larunbata"],
|
||||
daysShort: [ "Ig.", "Al.", "Ar.", "Az.", "Og.", "Ol.", "Lr." ],
|
||||
daysMin: [ "Ig", "Al", "Ar", "Az", "Og", "Ol", "Lr" ],
|
||||
months: [ "Urtarrila", "Otsaila", "Martxoa", "Apirila", "Maiatza", "Ekaina", "Uztaila", "Abuztua", "Iraila", "Urria", "Azaroa", "Abendua" ],
|
||||
monthsShort: [ "Urt", "Ots", "Mar.", "Api", "Mai", "Eka", "Uzt", "Abu", "Ira", "Urr", "Aza", "Abe" ],
|
||||
weekShort: 'A',
|
||||
weekStart: 1
|
||||
};
|
||||
14
public/dist/locales/js-year-calendar.fi.js
vendored
Normal file
14
public/dist/locales/js-year-calendar.fi.js
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
/**
|
||||
* Finnish translation for js-year-calendar
|
||||
* Tuomas Jaakola (iqqmuT) <tuomas.jaakola@iki.fi>
|
||||
*/
|
||||
|
||||
Calendar.locales['fi'] = {
|
||||
days: ["sunnuntai", "maanantai", "tiistai", "keskiviikko", "torstai", "perjantai", "lauantai"],
|
||||
daysShort: ["su", "ma", "ti", "ke", "to", "pe", "la"],
|
||||
daysMin: ["su", "ma", "ti", "ke", "to", "pe", "la"],
|
||||
months: ["tammikuu", "helmikuu", "maaliskuu", "huhtikuu", "toukokuu", "kesäkuu", "heinäkuu", "elokuu", "syyskuu", "lokakuu", "marraskuu", "joulukuu"],
|
||||
monthsShort: ["tammi", "helmi", "maalis", "huhti", "touko", "kesä", "heinä", "elo", "syys", "loka", "marras", "joulu"],
|
||||
weekShort: 'V',
|
||||
weekStart: 1
|
||||
};
|
||||
17
public/dist/locales/js-year-calendar.fr.js
vendored
Normal file
17
public/dist/locales/js-year-calendar.fr.js
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
/**
|
||||
* French translation for js-year-calendar
|
||||
* Paul DAVID-SIVELLE
|
||||
* Based on
|
||||
* French translation for bootstrap-datepicker
|
||||
* Nico Mollet <nico.mollet@gmail.com>
|
||||
*/
|
||||
|
||||
Calendar.locales['fr'] = {
|
||||
days: ["Dimanche", "Lundi", "Mardi", "Mercredi", "Jeudi", "Vendredi", "Samedi"],
|
||||
daysShort: ["Dim", "Lun", "Mar", "Mer", "Jeu", "Ven", "Sam"],
|
||||
daysMin: ["D", "L", "Ma", "Me", "J", "V", "S"],
|
||||
months: ["Janvier", "Février", "Mars", "Avril", "Mai", "Juin", "Juillet", "Août", "Septembre", "Octobre", "Novembre", "Décembre"],
|
||||
monthsShort: ["Jan", "Fév", "Mar", "Avr", "Mai", "Jui", "Jul", "Aou", "Sep", "Oct", "Nov", "Déc"],
|
||||
weekShort:'S',
|
||||
weekStart: 1
|
||||
};
|
||||
14
public/dist/locales/js-year-calendar.hr.js
vendored
Normal file
14
public/dist/locales/js-year-calendar.hr.js
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
/**
|
||||
* Croatian translation for js-year-calendar
|
||||
* Davor Došlnec <davor.doslinec@gmail.com>
|
||||
*/
|
||||
|
||||
Calendar.locales['hr'] = {
|
||||
days: ["Nedjelja", "Ponedjeljak", "Utorak", "Srijeda", "Četvrtak", "Petak", "Subota"],
|
||||
daysShort: ["Ned", "Pon", "Uto", "Sri", "Čet", "Pet", "Sub"],
|
||||
daysMin: ["Ne", "Po", "Ut", "Sr", "Če", "Pe", "Su"],
|
||||
months: ["Siječanj", "Veljača", "Ožujak", "Travanj", "Svibanj", "Lipanj", "Srpanj", "Kolovoz", "Rujan", "Listopad", "Studeni", "Prosinac"],
|
||||
monthsShort: ["Sij", "Vel", "Ožu", "Tra", "Svi", "Lip", "Srp", "Kol", "Ruj", "Lis", "Stu", "Pro"],
|
||||
weekShort: 'T',
|
||||
weekStart: 1
|
||||
};
|
||||
17
public/dist/locales/js-year-calendar.hu.js
vendored
Normal file
17
public/dist/locales/js-year-calendar.hu.js
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
/**
|
||||
* Hungarian translation for js-year-calendar
|
||||
* Tamas Jozsef Balku
|
||||
* Based on
|
||||
* Hungarian translation for bootstrap-datepicker
|
||||
* Tamas Jozsef Balku <https://github.com/btamas86>
|
||||
*/
|
||||
|
||||
Calendar.locales['hu'] = {
|
||||
days: [ "Vasárnap","Hétfő", "Kedd", "Szerda", "Csütörtök", "Péntek", "Szombat"],
|
||||
daysShort: ["Vas", "Hét", "Ked", "Sze", "Csü", "Pén", "Szo"],
|
||||
daysMin: ["Va", "Hé", "Ke", "Sz", "Cs", "Pé", "Sz"],
|
||||
months: ["Január", "Február", "Március", "Április", "Május", "Június", "Július", "Augusztus", "Szeptember", "Október", "November", "December"],
|
||||
monthsShort: ["Jan", "Feb", "Már", "Ápr", "Máj", "Jún", "Júl", "Aug", "Sze", "Okt", "Nov", "Dec"],
|
||||
weekShort: 'h',
|
||||
weekStart: 1
|
||||
};
|
||||
17
public/dist/locales/js-year-calendar.id.js
vendored
Normal file
17
public/dist/locales/js-year-calendar.id.js
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
/**
|
||||
* Indonesian translation for js-year-calendar
|
||||
* Kiki Ldc
|
||||
* Based on
|
||||
* Indonesian translation for bootstrap-datepicker
|
||||
* Kiki Ldc <7x24th@gmail.com>
|
||||
*/
|
||||
|
||||
Calendar.locales ['id'] = {
|
||||
days: ["Minggu", "Senin", "Selasa", "Rabu", "Kamis", "Jumat", "Sabtu"],
|
||||
daysShort: ["Ming", "Sen", "Sel", "Rab", "kam", "Jum", "Sab"],
|
||||
daysMin: ["Mg", "Sn", "Sl", "Rb", "Km", "Jm", "Sb"],
|
||||
months: ["Januari", "Februari", "Maret", "April", "Mai", "Juni", "Juli", "Agustus", "September", "Oktober", "November", "Desember" ],
|
||||
monthsShort: ["Jan", "Feb", "Mar", "Apr", "Mai", "Jun", "Jul", "Agt", "Sep", "Okt", "Nov", "Des"],
|
||||
weekShort: 'W',
|
||||
weekStart: 1
|
||||
};
|
||||
17
public/dist/locales/js-year-calendar.is.js
vendored
Normal file
17
public/dist/locales/js-year-calendar.is.js
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
/**
|
||||
* German translation for js-year-calendar
|
||||
* Paul DAVID-SIVELLE
|
||||
* Based on
|
||||
* German translation for bootstrap-datepicker
|
||||
* Knútur Óli Magnússon <knutur@knutur.is>
|
||||
*/
|
||||
|
||||
Calendar.locales['is'] = {
|
||||
days: ["Sunnudagur", "Mánudagur", "Þriðjudagur", "Miðvikudagur", "Fimmtudagur", "Föstudagur", "Laugardagur"],
|
||||
daysShort: ["Sun", "Mán", "Þri", "Mið", "Fim", "Fös", "Lau"],
|
||||
daysMin: ["Su", "Má", "Þr", "Mi", "Fi", "Fö", "La"],
|
||||
months: ["Janúar", "Febrúar", "Mars", "Apríl", "Maí", "Júní", "Júlí", "Ágúst", "September", "Október", "Nóvember", "Desember"],
|
||||
monthsShort: ["Jan", "Feb", "Mar", "Apr", "Maí", "Jún", "Júl", "Agú", "Sep", "Okt", "Nóv", "Des"],
|
||||
weekShort: 'W',
|
||||
weekStart: 1
|
||||
};
|
||||
17
public/dist/locales/js-year-calendar.it.js
vendored
Normal file
17
public/dist/locales/js-year-calendar.it.js
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
/**
|
||||
* Italian translation for js-year-calendar
|
||||
* Paul DAVID-SIVELLE
|
||||
* Based on
|
||||
* Italian translation for bootstrap-datepicker
|
||||
* Enrico Rubboli <rubboli@gmail.com>
|
||||
*/
|
||||
|
||||
Calendar.locales['it'] = {
|
||||
days: ["Domenica", "Lunedì", "Martedì", "Mercoledì", "Giovedì", "Venerdì", "Sabato"],
|
||||
daysShort: ["Dom", "Lun", "Mar", "Mer", "Gio", "Ven", "Sab"],
|
||||
daysMin: ["Do", "Lu", "Ma", "Me", "Gi", "Ve", "Sa"],
|
||||
months: ["Gennaio", "Febbraio", "Marzo", "Aprile", "Maggio", "Giugno", "Luglio", "Agosto", "Settembre", "Ottobre", "Novembre", "Dicembre"],
|
||||
monthsShort: ["Gen", "Feb", "Mar", "Apr", "Mag", "Giu", "Lug", "Ago", "Set", "Ott", "Nov", "Dic"],
|
||||
weekShort: 'S',
|
||||
weekStart: 1,
|
||||
};
|
||||
17
public/dist/locales/js-year-calendar.ja.js
vendored
Normal file
17
public/dist/locales/js-year-calendar.ja.js
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
/**
|
||||
* Japanese translation for js-year-calendar
|
||||
* Paul DAVID-SIVELLE
|
||||
* Based on
|
||||
* Japanese translation for bootstrap-datepicker
|
||||
* Norio Suzuki <https://github.com/suzuki/>
|
||||
*/
|
||||
|
||||
Calendar.locales['ja'] = {
|
||||
days: ["日曜", "月曜", "火曜", "水曜", "木曜", "金曜", "土曜"],
|
||||
daysShort: ["日", "月", "火", "水", "木", "金", "土"],
|
||||
daysMin: ["日", "月", "火", "水", "木", "金", "土"],
|
||||
months: ["1月", "2月", "3月", "4月", "5月", "6月", "7月", "8月", "9月", "10月", "11月", "12月"],
|
||||
monthsShort: ["1月", "2月", "3月", "4月", "5月", "6月", "7月", "8月", "9月", "10月", "11月", "12月"],
|
||||
weekShort: '週',
|
||||
weekStart:0
|
||||
};
|
||||
13
public/dist/locales/js-year-calendar.ko.js
vendored
Normal file
13
public/dist/locales/js-year-calendar.ko.js
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
/**
|
||||
* Korean translation for js-year-calendar
|
||||
* minho kim <alsghek112@gmail.com>
|
||||
*/
|
||||
Calendar.locales['ko'] = {
|
||||
days: ["일", "월", "화", "수", "목", "금", "토"],
|
||||
daysShort: ["일", "월", "화", "수", "목", "금", "토"],
|
||||
daysMin: ["일", "월", "화", "수", "목", "금", "토"],
|
||||
months: ["1월", "2월", "3월", "4월", "5월", "6월", "7월", "8월", "9월", "10월", "11월", "12월"],
|
||||
monthsShort: ["1월", "2월", "3월", "4월", "5월", "6월", "7월", "8월", "9월", "10월", "11월", "12월"],
|
||||
weekShort: 'T',
|
||||
weekStart: 1
|
||||
};
|
||||
16
public/dist/locales/js-year-calendar.lt.js
vendored
Normal file
16
public/dist/locales/js-year-calendar.lt.js
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
/**
|
||||
* Lithuanian translation for js-year-calendar
|
||||
* Mantas Urbonas mantas.urbonas@gmail.com
|
||||
*
|
||||
* either MIT or BSD or Apache 2 licensed - choose whatever license suits you most.
|
||||
*/
|
||||
|
||||
Calendar.locales['lt'] = {
|
||||
days: ["Sekmadienis", "Pirmadienis", "Antradienis", "Trečiadienis", "Ketvirtadienis", "Penktadienis", "Šeštadienis"],
|
||||
daysShort: ["Sek", "Pir", "Ant", "Tre", "Ket", "Pen", "Šeš"],
|
||||
daysMin: ["Se", "Pr", "An", "Tr", "Kt", "Pn", "Še"],
|
||||
months: ["Sausis", "Vasaris", "Kovas", "Balandis", "Gegužė", "Birželis", "Liepa", "Rugpjūtis", "Rugsėjis", "Spalis", "Lapkritis", "Gruodis"],
|
||||
monthsShort: ["Sau", "Vas", "Kov", "Bal", "Geg", "Bir", "Lie", "Rgp", "Rug", "Spa", "Lap", "Gru"],
|
||||
weekShort: 'S',
|
||||
weekStart: 1
|
||||
};
|
||||
14
public/dist/locales/js-year-calendar.lv.js
vendored
Normal file
14
public/dist/locales/js-year-calendar.lv.js
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
/**
|
||||
* Latvian translation for js-year-calendar
|
||||
* Imants Horsts
|
||||
*/
|
||||
|
||||
Calendar.locales['lv'] = {
|
||||
days: ["Svētdiena", "Pirmdiena", "Otrdiena", "Trešdiena", "Ceturtdiena", "Piektdiena", "Sestdiena"],
|
||||
daysShort: ["Svt", "Prm", "Otr", "Tre", "Ctr", "Pkt", "Sst"],
|
||||
daysMin: ["Sv", "P", "O", "T", "C", "Pk", "S"],
|
||||
months: ["Janvāris", "Februāris", "Marts", "Aprīlis", "Maijs", "Jūnijs", "Jūlijs", "Augusts", "Septembris", "Oktobris", "Novembris", "Decembris"],
|
||||
monthsShort: ["Jan", "Feb", "Mar", "Apr", "Mai", "Jūn", "Jūl", "Aug", "Sep", "Okt", "Nov", "Dec"],
|
||||
weekShort: 'N',
|
||||
weekStart: 1
|
||||
};
|
||||
13
public/dist/locales/js-year-calendar.ms.js
vendored
Normal file
13
public/dist/locales/js-year-calendar.ms.js
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
/**
|
||||
* Malay translation for js-year-calendar
|
||||
* Chia Wei Lim <acelimcw@hotmail.com>
|
||||
*/
|
||||
Calendar.locales['ms'] = {
|
||||
days: ["Ahad", "Isnin", "Selasa", "Rabu", "Khamis", "Jumaat", "Sabtu"],
|
||||
daysShort: ["Ahd", "Isn", "Sel", "Rab", "Kha", "Jum", "Sab"],
|
||||
daysMin: ["Ahd", "Isn", "Sel", "Rab", "Kha", "Jum", "Sab"],
|
||||
months: ["Januari", "Februari", "Mac", "April", "Mei", "Jun", "Julai", "Ogos", "September", "Oktober", "November", "Disember"],
|
||||
monthsShort: ["Jan", "Feb", "Mac", "Apr", "Mei", "Jun", "Jul", "Ogos", "Sep", "Okt", "Nov", "Dis"],
|
||||
weekShort: 'M',
|
||||
weekStart: 1
|
||||
};
|
||||
17
public/dist/locales/js-year-calendar.nl.js
vendored
Normal file
17
public/dist/locales/js-year-calendar.nl.js
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
/**
|
||||
* Dutch translation for js-year-calendar
|
||||
* Paul DAVID-SIVELLE
|
||||
* Based on
|
||||
* Dutch translation for bootstrap-datepicker
|
||||
* Reinier Goltstein <mrgoltstein@gmail.com>
|
||||
*/
|
||||
|
||||
Calendar.locales['nl'] = {
|
||||
days: ["zondag", "maandag", "dinsdag", "woensdag", "donderdag", "vrijdag", "zaterdag"],
|
||||
daysShort: ["zo", "ma", "di", "wo", "do", "vr", "za"],
|
||||
daysMin: ["zo", "ma", "di", "wo", "do", "vr", "za"],
|
||||
months: ["januari", "februari", "maart", "april", "mei", "juni", "juli", "augustus", "september", "oktober", "november", "december"],
|
||||
monthsShort: ["jan", "feb", "mrt", "apr", "mei", "jun", "jul", "aug", "sep", "okt", "nov", "dec"],
|
||||
weekShort: 'w',
|
||||
weekStart: 1
|
||||
};
|
||||
14
public/dist/locales/js-year-calendar.pl.js
vendored
Normal file
14
public/dist/locales/js-year-calendar.pl.js
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
/**
|
||||
* Polish translation for js-year-calendar
|
||||
* Robert 'Wooya' Gaudyn
|
||||
*/
|
||||
|
||||
Calendar.locales['pl'] = {
|
||||
days: ["Niedziela", "Poniedziałek", "Wtorek", "Środa", "Czwartek", "Piatek", "Sobota"],
|
||||
daysShort: ["Nie", "Pon", "Wto", "Śro", "Czw", "Pią", "Sob"],
|
||||
daysMin: ["Ni", "Po", "Wt", "Śr", "Cz", "Pi", "So"],
|
||||
months: ["Styczeń", "Luty", "Marzec", "Kwiecień", "Maj", "Czerwiec", "Lipiec", "Sierpień", "Wrzesień", "Październik", "Listopad", "Grudzień"],
|
||||
monthsShort: ["Sty", "Lut", "Mar", "Kwi", "Maj", "Cze", "Lip", "Sie", "Wrz", "Paź", "Lis", "Gru"],
|
||||
weekShort: 'W',
|
||||
weekStart: 1
|
||||
};
|
||||
18
public/dist/locales/js-year-calendar.pt.js
vendored
Normal file
18
public/dist/locales/js-year-calendar.pt.js
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
/**
|
||||
* Portuguese translation for js-year-calendar
|
||||
* Paul DAVID-SIVELLE
|
||||
* Based on
|
||||
* Portuguese translation for bootstrap-datepicker
|
||||
* Original code: Cauan Cabral <cauan@radig.com.br>
|
||||
* Tiago Melo <tiago.blackcode@gmail.com>
|
||||
*/
|
||||
|
||||
Calendar.locales['pt'] = {
|
||||
days: ["Domingo", "Segunda", "Terça", "Quarta", "Quinta", "Sexta", "Sábado"],
|
||||
daysShort: ["Dom", "Seg", "Ter", "Qua", "Qui", "Sex", "Sáb"],
|
||||
daysMin: ["Do", "Se", "Te", "Qu", "Qu", "Se", "Sa"],
|
||||
months: ["Janeiro", "Fevereiro", "Março", "Abril", "Maio", "Junho", "Julho", "Agosto", "Setembro", "Outubro", "Novembro", "Dezembro"],
|
||||
monthsShort: ["Jan", "Fev", "Mar", "Abr", "Mai", "Jun", "Jul", "Ago", "Set", "Out", "Nov", "Dez"],
|
||||
weekShort: 'S',
|
||||
weekStart:0
|
||||
};
|
||||
17
public/dist/locales/js-year-calendar.ru.js
vendored
Normal file
17
public/dist/locales/js-year-calendar.ru.js
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
/**
|
||||
* Russian translation for js-year-calendar
|
||||
* Paul DAVID-SIVELLE
|
||||
* Based on
|
||||
* Russian translation for bootstrap-datepicker
|
||||
* Victor Taranenko <darwin@snowdale.com>
|
||||
*/
|
||||
|
||||
Calendar.locales['ru'] = {
|
||||
days: ["Воскресенье", "Понедельник", "Вторник", "Среда", "Четверг", "Пятница", "Суббота"],
|
||||
daysShort: ["Вск", "Пнд", "Втр", "Срд", "Чтв", "Птн", "Суб"],
|
||||
daysMin: ["Вс", "Пн", "Вт", "Ср", "Чт", "Пт", "Сб"],
|
||||
months: ["Январь", "Февраль", "Март", "Апрель", "Май", "Июнь", "Июль", "Август", "Сентябрь", "Октябрь", "Ноябрь", "Декабрь"],
|
||||
monthsShort: ["Янв", "Фев", "Мар", "Апр", "Май", "Июн", "Июл", "Авг", "Сен", "Окт", "Ноя", "Дек"],
|
||||
weekShort: 'н',
|
||||
weekStart: 1
|
||||
};
|
||||
15
public/dist/locales/js-year-calendar.sk.js
vendored
Normal file
15
public/dist/locales/js-year-calendar.sk.js
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
/**
|
||||
* Slovak translation for js-year-calendar
|
||||
* Marian Sulgan
|
||||
* marian@sulgan.sk
|
||||
*/
|
||||
|
||||
Calendar.locales['sk'] = {
|
||||
days: ["Nedeľa", "Pondelok", "Utorok", "Streda", "Štvrtok", "Piatok", "Sobota"],
|
||||
daysShort: ["Ned", "Pon", "Uto", "Str", "Štv", "Pia", "Sob"],
|
||||
daysMin: ["Ne", "Po", "Ut", "St", "Št", "Pia", "So"],
|
||||
months: ["Január", "Február", "Marec", "Apríl", "Máj", "Jún", "Júl", "August", "September", "Október", "November", "December"],
|
||||
monthsShort: ["Jan", "Feb", "Mar", "Apr", "Máj", "Jún", "Júl", "Aug", "Sep", "Okt", "Nov", "Dec"],
|
||||
weekShort: 'W',
|
||||
weekStart: 1
|
||||
};
|
||||
14
public/dist/locales/js-year-calendar.sr.js
vendored
Normal file
14
public/dist/locales/js-year-calendar.sr.js
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
/**
|
||||
* Serbian translation for js-year-calendar
|
||||
* Lazarevic Ivica <lazarevic.ivica@gmail.com>
|
||||
*/
|
||||
|
||||
Calendar.locales['sr'] = {
|
||||
days: ["Недеља", "Понедељак", "Уторак", "Среда", "Четвртак", "Петак", "Субота"],
|
||||
daysShort: ["Нед", "Пон", "Уто", "Сре", "Чет", "Пет", "Суб"],
|
||||
daysMin: ["Не", "По", "Ут", "Ср", "Че", "Пе", "Су"],
|
||||
months: ["Јануар", "Фебруар", "Март", "Април", "Мај", "Јун", "Јул", "Август", "Септембар", "Октобар", "Новембар", "Децембар"],
|
||||
monthsShort: ["Јан", "Феб", "Мар", "Апр", "Мај", "Јун", "Јул", "Авг", "Сеп", "Окт", "Нов", "Дец"],
|
||||
weekShort: 'н',
|
||||
weekStart: 1
|
||||
};
|
||||
15
public/dist/locales/js-year-calendar.th.js
vendored
Normal file
15
public/dist/locales/js-year-calendar.th.js
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
/**
|
||||
* Thai translation for js-year-calendar
|
||||
* xypherbo
|
||||
*
|
||||
*/
|
||||
|
||||
Calendar.locales["th"] = {
|
||||
days: ["อาทิตย์", "จันทร์", "อังคาร", "พุธ", "พฤหัสบดี", "ศุกร์", "เสาร์"],
|
||||
daysShort: ["อา.", "จ.", "อ.", "พ.", "พฤ.", "ศ.", "ส."],
|
||||
daysMin: ["อา.", "จ.", "อ.", "พ.", "พฤ.", "ศ.", "ส."],
|
||||
months: ["มกราคม", "กุมภาพันธ์", "มีนาคม", "เมษายน", "พฤษภาคม", "มิถุนายน", "กรกฎาคม", "สิงหาคม", "กันยายน", "ตุลาคม", "พฤศจิกายน", "ธันวาคม"],
|
||||
monthsShort: ["ม.ค.", "ก.พ.", "มี.ค.", "เม.ย.", "พ.ค.", "มิ.ย.", "ก.ค.", "ส.ค.", "ก.ย.", "ต.ค.", "พ.ย.", "ธ.ค."],
|
||||
weekShort: "ส.",
|
||||
weekStart: 0
|
||||
};
|
||||
17
public/dist/locales/js-year-calendar.tr.js
vendored
Normal file
17
public/dist/locales/js-year-calendar.tr.js
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
/**
|
||||
* Turkish translation for js-year-calendar
|
||||
* Paul DAVID-SIVELLE
|
||||
* Based on
|
||||
* Turkish translation for bootstrap-datepicker
|
||||
* Serkan Algur <kaisercrazy_2@hotmail.com>
|
||||
*/
|
||||
|
||||
Calendar.locales['tr'] = {
|
||||
days: ["Pazar", "Pazartesi", "Salı", "Çarşamba", "Perşembe", "Cuma", "Cumartesi"],
|
||||
daysShort: ["Pz", "Pzt", "Sal", "Çrş", "Prş", "Cu", "Cts"],
|
||||
daysMin: ["Pz", "Pzt", "Sa", "Çr", "Pr", "Cu", "Ct"],
|
||||
months: ["Ocak", "Şubat", "Mart", "Nisan", "Mayıs", "Haziran", "Temmuz", "Ağustos", "Eylül", "Ekim", "Kasım", "Aralık"],
|
||||
monthsShort: ["Oca", "Şub", "Mar", "Nis", "May", "Haz", "Tem", "Ağu", "Eyl", "Eki", "Kas", "Ara"],
|
||||
weekShort: 'H',
|
||||
weekStart: 1
|
||||
};
|
||||
14
public/dist/locales/js-year-calendar.ua.js
vendored
Normal file
14
public/dist/locales/js-year-calendar.ua.js
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
/**
|
||||
* Ukrainian translation for js-year-calendar
|
||||
* Petro Franko
|
||||
*/
|
||||
|
||||
Calendar.locales['ua'] = {
|
||||
days: ["Неділя", "Понеділок", "Вівторок", "Середа", "Четвер", "П'ятниця", "Субота"],
|
||||
daysShort: ["Нед", "Пон", "Вт", "Сер", "Чет", "Пт", "Суб"],
|
||||
daysMin: ["Нд", "Пн", "Вт", "Ср", "Чт", "Пт", "Сб"],
|
||||
months: ["Січень", "Лютий", "Березень", "Квітень", "Травень", "Червень", "Липень", "Серпень", "Вересень", "Жовтень", "Листопад", "Грудень"],
|
||||
monthsShort: ["Січ", "Лют", "Бер", "Кві", "Тра", "Чер", "Лип", "Сер", "Вер", "Жов", "Лис", "Гру"],
|
||||
weekShort: 'Т',
|
||||
weekStart: 1
|
||||
};
|
||||
14
public/dist/locales/js-year-calendar.uk.js
vendored
Normal file
14
public/dist/locales/js-year-calendar.uk.js
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
/**
|
||||
* Ukrainian translation for js-year-calendar
|
||||
* by Vadym Korolyuk
|
||||
*/
|
||||
|
||||
Calendar.locales['uk'] = {
|
||||
days: ["Неділя", "Понеділок", "Вівторок", "Середа", "Четвер", "П'ятниця", "Субота"],
|
||||
daysShort: ["Нед", "Пон", "Вів", "Сер", "Чет", "Птн", "Суб"],
|
||||
daysMin: ["Нд", "Пн", "Вт", "Ср", "Чт", "Пт", "Сб"],
|
||||
months: ["Січень", "Лютий", "Березень", "Квітень", "Травень", "Червень", "Липень","Серпень", "Вересень", "Жовтень", "Листопад", "Грудень"],
|
||||
monthsShort: ["Січ", "Лют", "Бер", "Кві", "Тра", "Чер", "Лип", "Сер", "Вер", "Жов", "Лис","Гру"],
|
||||
weekShort: 'н',
|
||||
weekStart: 1
|
||||
};
|
||||
17
public/dist/locales/js-year-calendar.uz.js
vendored
Normal file
17
public/dist/locales/js-year-calendar.uz.js
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
|
||||
/**
|
||||
* Uzbek translation for js-year-calendar
|
||||
* Oqil Karimov
|
||||
* Based on
|
||||
* Uzbek translation for moment
|
||||
*/
|
||||
|
||||
Calendar.locales['uz'] = {
|
||||
days: ["Yakshanba", "Dushanba", "Seshanba", "Chorshanba", "Payshanba", "Juma", "Shanba"],
|
||||
daysShort: ["Yak","Dush","Sesh","Chor","Pay","Jum","Shan"],
|
||||
daysMin: ["Ya","Du","Se","Cho","Pa","Ju","Sha"],
|
||||
months: ["Yanvar", "Fevral", "Mart", "Aprel", "May", "Iyun", "Iyul", "Avgust", "Sentabr", "Oktabr", "Noyabr", "Dekabr"],
|
||||
monthsShort: ["Yan", "Fev", "Mar", "Apr", "May", "Iyun", "Iyul", "Avg", "Sen", "Okt", "Noy", "Dek"],
|
||||
weekShort: 'h',
|
||||
weekStart: 1
|
||||
};
|
||||
17
public/dist/locales/js-year-calendar.zh-CN.js
vendored
Normal file
17
public/dist/locales/js-year-calendar.zh-CN.js
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
/**
|
||||
* Simplified Chinese translation js-year-calendar
|
||||
* William Hernández <>
|
||||
* Based on
|
||||
* Simplified Chinese translation for bootstrap-datepicker
|
||||
* Yuan Cheung <advanimal@gmail.com>
|
||||
*/
|
||||
|
||||
Calendar.locales['zh-CN'] = {
|
||||
days: ["星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六"],
|
||||
daysShort: ["周日", "周一", "周二", "周三", "周四", "周五", "周六"],
|
||||
daysMin: ["日", "一", "二", "三", "四", "五", "六"],
|
||||
months: ["一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月", "十一月", "十二月"],
|
||||
monthsShort: ["1月", "2月", "3月", "4月", "5月", "6月", "7月", "8月", "9月", "10月", "11月", "12月"],
|
||||
weekShort: '周',
|
||||
weekStart: 1
|
||||
};
|
||||
17
public/dist/locales/js-year-calendar.zh-TW.js
vendored
Normal file
17
public/dist/locales/js-year-calendar.zh-TW.js
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
/**
|
||||
* Traditional Chinese translation js-year-calendar
|
||||
* Based on
|
||||
* Traditional Chinese translation for bootstrap-datepicker
|
||||
* Rung-Sheng Jang <daniel@i-trend.co.cc>
|
||||
* FrankWu <frankwu100@gmail.com>
|
||||
*/
|
||||
|
||||
Calendar.locales['zh-TW'] = {
|
||||
days: ["星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六"],
|
||||
daysShort: ["週日", "週一", "週二", "週三", "週四", "週五", "週六"],
|
||||
daysMin: ["日", "一", "二", "三", "四", "五", "六"],
|
||||
months: ["一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月", "十一月", "十二月"],
|
||||
monthsShort: ["1月", "2月", "3月", "4月", "5月", "6月", "7月", "8月", "9月", "10月", "11月", "12月"],
|
||||
weekShort: '週',
|
||||
weekStart: 1
|
||||
};
|
||||
433
public/dist/smoothscroll.js
vendored
Normal file
433
public/dist/smoothscroll.js
vendored
Normal file
@@ -0,0 +1,433 @@
|
||||
/* smoothscroll v0.4.4 - 2019 - Dustan Kasten, Jeremias Menichelli - MIT License */
|
||||
(function () {
|
||||
'use strict';
|
||||
|
||||
// polyfill
|
||||
function polyfill() {
|
||||
// aliases
|
||||
var w = window;
|
||||
var d = document;
|
||||
|
||||
// return if scroll behavior is supported and polyfill is not forced
|
||||
if (
|
||||
'scrollBehavior' in d.documentElement.style &&
|
||||
w.__forceSmoothScrollPolyfill__ !== true
|
||||
) {
|
||||
return;
|
||||
}
|
||||
|
||||
// globals
|
||||
var Element = w.HTMLElement || w.Element;
|
||||
var SCROLL_TIME = 468;
|
||||
|
||||
// object gathering original scroll methods
|
||||
var original = {
|
||||
scroll: w.scroll || w.scrollTo,
|
||||
scrollBy: w.scrollBy,
|
||||
elementScroll: Element.prototype.scroll || scrollElement,
|
||||
scrollIntoView: Element.prototype.scrollIntoView
|
||||
};
|
||||
|
||||
// define timing method
|
||||
var now =
|
||||
w.performance && w.performance.now
|
||||
? w.performance.now.bind(w.performance)
|
||||
: Date.now;
|
||||
|
||||
/**
|
||||
* indicates if a the current browser is made by Microsoft
|
||||
* @method isMicrosoftBrowser
|
||||
* @param {String} userAgent
|
||||
* @returns {Boolean}
|
||||
*/
|
||||
function isMicrosoftBrowser(userAgent) {
|
||||
var userAgentPatterns = ['MSIE ', 'Trident/', 'Edge/'];
|
||||
|
||||
return new RegExp(userAgentPatterns.join('|')).test(userAgent);
|
||||
}
|
||||
|
||||
/*
|
||||
* IE has rounding bug rounding down clientHeight and clientWidth and
|
||||
* rounding up scrollHeight and scrollWidth causing false positives
|
||||
* on hasScrollableSpace
|
||||
*/
|
||||
var ROUNDING_TOLERANCE = isMicrosoftBrowser(w.navigator.userAgent) ? 1 : 0;
|
||||
|
||||
/**
|
||||
* changes scroll position inside an element
|
||||
* @method scrollElement
|
||||
* @param {Number} x
|
||||
* @param {Number} y
|
||||
* @returns {undefined}
|
||||
*/
|
||||
function scrollElement(x, y) {
|
||||
this.scrollLeft = x;
|
||||
this.scrollTop = y;
|
||||
}
|
||||
|
||||
/**
|
||||
* returns result of applying ease math function to a number
|
||||
* @method ease
|
||||
* @param {Number} k
|
||||
* @returns {Number}
|
||||
*/
|
||||
function ease(k) {
|
||||
return 0.5 * (1 - Math.cos(Math.PI * k));
|
||||
}
|
||||
|
||||
/**
|
||||
* indicates if a smooth behavior should be applied
|
||||
* @method shouldBailOut
|
||||
* @param {Number|Object} firstArg
|
||||
* @returns {Boolean}
|
||||
*/
|
||||
function shouldBailOut(firstArg) {
|
||||
if (
|
||||
firstArg === null ||
|
||||
typeof firstArg !== 'object' ||
|
||||
firstArg.behavior === undefined ||
|
||||
firstArg.behavior === 'auto' ||
|
||||
firstArg.behavior === 'instant'
|
||||
) {
|
||||
// first argument is not an object/null
|
||||
// or behavior is auto, instant or undefined
|
||||
return true;
|
||||
}
|
||||
|
||||
if (typeof firstArg === 'object' && firstArg.behavior === 'smooth') {
|
||||
// first argument is an object and behavior is smooth
|
||||
return false;
|
||||
}
|
||||
|
||||
// throw error when behavior is not supported
|
||||
throw new TypeError(
|
||||
'behavior member of ScrollOptions ' +
|
||||
firstArg.behavior +
|
||||
' is not a valid value for enumeration ScrollBehavior.'
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* indicates if an element has scrollable space in the provided axis
|
||||
* @method hasScrollableSpace
|
||||
* @param {Node} el
|
||||
* @param {String} axis
|
||||
* @returns {Boolean}
|
||||
*/
|
||||
function hasScrollableSpace(el, axis) {
|
||||
if (axis === 'Y') {
|
||||
return el.clientHeight + ROUNDING_TOLERANCE < el.scrollHeight;
|
||||
}
|
||||
|
||||
if (axis === 'X') {
|
||||
return el.clientWidth + ROUNDING_TOLERANCE < el.scrollWidth;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* indicates if an element has a scrollable overflow property in the axis
|
||||
* @method canOverflow
|
||||
* @param {Node} el
|
||||
* @param {String} axis
|
||||
* @returns {Boolean}
|
||||
*/
|
||||
function canOverflow(el, axis) {
|
||||
var overflowValue = w.getComputedStyle(el, null)['overflow' + axis];
|
||||
|
||||
return overflowValue === 'auto' || overflowValue === 'scroll';
|
||||
}
|
||||
|
||||
/**
|
||||
* indicates if an element can be scrolled in either axis
|
||||
* @method isScrollable
|
||||
* @param {Node} el
|
||||
* @param {String} axis
|
||||
* @returns {Boolean}
|
||||
*/
|
||||
function isScrollable(el) {
|
||||
var isScrollableY = hasScrollableSpace(el, 'Y') && canOverflow(el, 'Y');
|
||||
var isScrollableX = hasScrollableSpace(el, 'X') && canOverflow(el, 'X');
|
||||
|
||||
return isScrollableY || isScrollableX;
|
||||
}
|
||||
|
||||
/**
|
||||
* finds scrollable parent of an element
|
||||
* @method findScrollableParent
|
||||
* @param {Node} el
|
||||
* @returns {Node} el
|
||||
*/
|
||||
function findScrollableParent(el) {
|
||||
while (el !== d.body && isScrollable(el) === false) {
|
||||
el = el.parentNode || el.host;
|
||||
}
|
||||
|
||||
return el;
|
||||
}
|
||||
|
||||
/**
|
||||
* self invoked function that, given a context, steps through scrolling
|
||||
* @method step
|
||||
* @param {Object} context
|
||||
* @returns {undefined}
|
||||
*/
|
||||
function step(context) {
|
||||
var time = now();
|
||||
var value;
|
||||
var currentX;
|
||||
var currentY;
|
||||
var elapsed = (time - context.startTime) / SCROLL_TIME;
|
||||
|
||||
// avoid elapsed times higher than one
|
||||
elapsed = elapsed > 1 ? 1 : elapsed;
|
||||
|
||||
// apply easing to elapsed time
|
||||
value = ease(elapsed);
|
||||
|
||||
currentX = context.startX + (context.x - context.startX) * value;
|
||||
currentY = context.startY + (context.y - context.startY) * value;
|
||||
|
||||
context.method.call(context.scrollable, currentX, currentY);
|
||||
|
||||
// scroll more if we have not reached our destination
|
||||
if (currentX !== context.x || currentY !== context.y) {
|
||||
w.requestAnimationFrame(step.bind(w, context));
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* scrolls window or element with a smooth behavior
|
||||
* @method smoothScroll
|
||||
* @param {Object|Node} el
|
||||
* @param {Number} x
|
||||
* @param {Number} y
|
||||
* @returns {undefined}
|
||||
*/
|
||||
function smoothScroll(el, x, y) {
|
||||
var scrollable;
|
||||
var startX;
|
||||
var startY;
|
||||
var method;
|
||||
var startTime = now();
|
||||
|
||||
// define scroll context
|
||||
if (el === d.body) {
|
||||
scrollable = w;
|
||||
startX = w.scrollX || w.pageXOffset;
|
||||
startY = w.scrollY || w.pageYOffset;
|
||||
method = original.scroll;
|
||||
} else {
|
||||
scrollable = el;
|
||||
startX = el.scrollLeft;
|
||||
startY = el.scrollTop;
|
||||
method = scrollElement;
|
||||
}
|
||||
|
||||
// scroll looping over a frame
|
||||
step({
|
||||
scrollable: scrollable,
|
||||
method: method,
|
||||
startTime: startTime,
|
||||
startX: startX,
|
||||
startY: startY,
|
||||
x: x,
|
||||
y: y
|
||||
});
|
||||
}
|
||||
|
||||
// ORIGINAL METHODS OVERRIDES
|
||||
// w.scroll and w.scrollTo
|
||||
w.scroll = w.scrollTo = function() {
|
||||
// avoid action when no arguments are passed
|
||||
if (arguments[0] === undefined) {
|
||||
return;
|
||||
}
|
||||
|
||||
// avoid smooth behavior if not required
|
||||
if (shouldBailOut(arguments[0]) === true) {
|
||||
original.scroll.call(
|
||||
w,
|
||||
arguments[0].left !== undefined
|
||||
? arguments[0].left
|
||||
: typeof arguments[0] !== 'object'
|
||||
? arguments[0]
|
||||
: w.scrollX || w.pageXOffset,
|
||||
// use top prop, second argument if present or fallback to scrollY
|
||||
arguments[0].top !== undefined
|
||||
? arguments[0].top
|
||||
: arguments[1] !== undefined
|
||||
? arguments[1]
|
||||
: w.scrollY || w.pageYOffset
|
||||
);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
// LET THE SMOOTHNESS BEGIN!
|
||||
smoothScroll.call(
|
||||
w,
|
||||
d.body,
|
||||
arguments[0].left !== undefined
|
||||
? ~~arguments[0].left
|
||||
: w.scrollX || w.pageXOffset,
|
||||
arguments[0].top !== undefined
|
||||
? ~~arguments[0].top
|
||||
: w.scrollY || w.pageYOffset
|
||||
);
|
||||
};
|
||||
|
||||
// w.scrollBy
|
||||
w.scrollBy = function() {
|
||||
// avoid action when no arguments are passed
|
||||
if (arguments[0] === undefined) {
|
||||
return;
|
||||
}
|
||||
|
||||
// avoid smooth behavior if not required
|
||||
if (shouldBailOut(arguments[0])) {
|
||||
original.scrollBy.call(
|
||||
w,
|
||||
arguments[0].left !== undefined
|
||||
? arguments[0].left
|
||||
: typeof arguments[0] !== 'object' ? arguments[0] : 0,
|
||||
arguments[0].top !== undefined
|
||||
? arguments[0].top
|
||||
: arguments[1] !== undefined ? arguments[1] : 0
|
||||
);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
// LET THE SMOOTHNESS BEGIN!
|
||||
smoothScroll.call(
|
||||
w,
|
||||
d.body,
|
||||
~~arguments[0].left + (w.scrollX || w.pageXOffset),
|
||||
~~arguments[0].top + (w.scrollY || w.pageYOffset)
|
||||
);
|
||||
};
|
||||
|
||||
// Element.prototype.scroll and Element.prototype.scrollTo
|
||||
Element.prototype.scroll = Element.prototype.scrollTo = function() {
|
||||
// avoid action when no arguments are passed
|
||||
if (arguments[0] === undefined) {
|
||||
return;
|
||||
}
|
||||
|
||||
// avoid smooth behavior if not required
|
||||
if (shouldBailOut(arguments[0]) === true) {
|
||||
// if one number is passed, throw error to match Firefox implementation
|
||||
if (typeof arguments[0] === 'number' && arguments[1] === undefined) {
|
||||
throw new SyntaxError('Value could not be converted');
|
||||
}
|
||||
|
||||
original.elementScroll.call(
|
||||
this,
|
||||
// use left prop, first number argument or fallback to scrollLeft
|
||||
arguments[0].left !== undefined
|
||||
? ~~arguments[0].left
|
||||
: typeof arguments[0] !== 'object' ? ~~arguments[0] : this.scrollLeft,
|
||||
// use top prop, second argument or fallback to scrollTop
|
||||
arguments[0].top !== undefined
|
||||
? ~~arguments[0].top
|
||||
: arguments[1] !== undefined ? ~~arguments[1] : this.scrollTop
|
||||
);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
var left = arguments[0].left;
|
||||
var top = arguments[0].top;
|
||||
|
||||
// LET THE SMOOTHNESS BEGIN!
|
||||
smoothScroll.call(
|
||||
this,
|
||||
this,
|
||||
typeof left === 'undefined' ? this.scrollLeft : ~~left,
|
||||
typeof top === 'undefined' ? this.scrollTop : ~~top
|
||||
);
|
||||
};
|
||||
|
||||
// Element.prototype.scrollBy
|
||||
Element.prototype.scrollBy = function() {
|
||||
// avoid action when no arguments are passed
|
||||
if (arguments[0] === undefined) {
|
||||
return;
|
||||
}
|
||||
|
||||
// avoid smooth behavior if not required
|
||||
if (shouldBailOut(arguments[0]) === true) {
|
||||
original.elementScroll.call(
|
||||
this,
|
||||
arguments[0].left !== undefined
|
||||
? ~~arguments[0].left + this.scrollLeft
|
||||
: ~~arguments[0] + this.scrollLeft,
|
||||
arguments[0].top !== undefined
|
||||
? ~~arguments[0].top + this.scrollTop
|
||||
: ~~arguments[1] + this.scrollTop
|
||||
);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
this.scroll({
|
||||
left: ~~arguments[0].left + this.scrollLeft,
|
||||
top: ~~arguments[0].top + this.scrollTop,
|
||||
behavior: arguments[0].behavior
|
||||
});
|
||||
};
|
||||
|
||||
// Element.prototype.scrollIntoView
|
||||
Element.prototype.scrollIntoView = function() {
|
||||
// avoid smooth behavior if not required
|
||||
if (shouldBailOut(arguments[0]) === true) {
|
||||
original.scrollIntoView.call(
|
||||
this,
|
||||
arguments[0] === undefined ? true : arguments[0]
|
||||
);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
// LET THE SMOOTHNESS BEGIN!
|
||||
var scrollableParent = findScrollableParent(this);
|
||||
var parentRects = scrollableParent.getBoundingClientRect();
|
||||
var clientRects = this.getBoundingClientRect();
|
||||
|
||||
if (scrollableParent !== d.body) {
|
||||
// reveal element inside parent
|
||||
smoothScroll.call(
|
||||
this,
|
||||
scrollableParent,
|
||||
scrollableParent.scrollLeft + clientRects.left - parentRects.left,
|
||||
scrollableParent.scrollTop + clientRects.top - parentRects.top
|
||||
);
|
||||
|
||||
// reveal parent in viewport unless is fixed
|
||||
if (w.getComputedStyle(scrollableParent).position !== 'fixed') {
|
||||
w.scrollBy({
|
||||
left: parentRects.left,
|
||||
top: parentRects.top,
|
||||
behavior: 'smooth'
|
||||
});
|
||||
}
|
||||
} else {
|
||||
// reveal element in viewport
|
||||
w.scrollBy({
|
||||
left: clientRects.left,
|
||||
top: clientRects.top,
|
||||
behavior: 'smooth'
|
||||
});
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
if (typeof exports === 'object' && typeof module !== 'undefined') {
|
||||
// commonjs
|
||||
module.exports = { polyfill: polyfill };
|
||||
} else {
|
||||
// global
|
||||
polyfill();
|
||||
}
|
||||
|
||||
}());
|
||||
Reference in New Issue
Block a user