commit 652bed79a85e36c000d8b87ec92ec4625858f2d7 Author: Bruno21 Date: Thu Mar 10 17:17:43 2022 +0100 first commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e43b0f9 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.DS_Store diff --git a/css/style.css b/css/style.css new file mode 100644 index 0000000..b536914 --- /dev/null +++ b/css/style.css @@ -0,0 +1,310 @@ +/* Copyright 1999-2018. Plesk International GmbH. All rights reserved. */ +html { + font: normal 13px/1.4 "-apple-system", "system-ui", "BlinkMacSystemFont", "Segoe UI", "Roboto", "Helvetica Neue", "Arial", sans-serif; + -webkit-text-size-adjust: 100%; + -ms-text-size-adjust: 100%; + -webkit-tap-highlight-color: rgba(0, 0, 0, 0); + overflow-y: scroll; + color: #000; +} +html, +body { + height: 100%; + min-height: 100%; +} +body { margin: 0; } +a { background-color: transparent; } +a:active, +a:hover { outline: 0; } +a { + color: #2498e3; + text-decoration: none; + cursor: pointer; +} +a:hover { + color: #188dd9; + text-decoration: underline; +} +img { + box-sizing: border-box; + border: 0; + vertical-align: middle; + -ms-interpolation-mode: bicubic; +} +.page-container { + position: relative; + display: table; + width: 100%; + height: 100%; + table-layout: fixed; +} +.page-header-wrapper, +.page-content-wrapper, +.page-footer-wrapper { + box-sizing: border-box; + display: table-row; +} +.page-content-wrapper { height: 100%; } +.page-header { + padding: 0 10px; + min-height: 50px; + border-bottom: 1px solid #1c2229; + background: #222a32; +} +.page-header:before, +.page-header:after { + display: table; + content: ""; +} +.page-header:after { clear: both; } +.page-content { + margin: auto; + padding: 20px 10px; + max-width: 960px; +} +.page-footer { + padding: 5px 10px; + text-align: center; + color: rgba(255, 255, 255, 0.6); + border-top: 1px solid #38444f; + background: #222a32; + font-size: 12px; + line-height: 24px; +} +.page-footer a, +.page-footer a:hover { + text-decoration: none; + color: rgba(255, 255, 255, 0.6); +} +.page-footer .separator { + width: 1px; + display: inline-block; + height: 12px; + vertical-align: -2px; + margin: 0 5px; + background: rgba(255, 255, 255, 0.6); +} +.product-logo { float: left; } +.product-logo img { height: 50px; } +.company-logo { + float: right; + margin-top: 9px; +} +.company-logo img { height: 31px; } +.page-info-wrapper { margin-bottom: 15px; } +.page-info { + box-sizing: border-box; + padding: 20px; + border: 1px solid #ccc; + background: #f2f2f2; +} +.page-info-heading { + margin: 0 0 15px; + font-size: 20px; + line-height: 24px; +} +.page-info p, +.page-info ul { margin: 15px 0; } +.page-info ul { padding-left: 20px; } +.product-info-wrapper p { + margin: 0 0 15px; + padding: 0; +} +.product-info-wrapper { margin: 0 -10px; } +.product-info-wrapper:before, +.product-info-wrapper:after { + display: table; + content: ""; +} +.product-info-wrapper:after { clear: both; } +.product-info-wrapper .col { + float: left; + width: 100%; + box-sizing: border-box; + margin-bottom: 15px; + padding: 0 10px; +} + +.product-info-wrapper ul.links { + display: inline-block; + width: 100%; + margin: 0; + padding: 0; + list-style: none; + border-top: 1px solid #ddd; + text-align: center; +} +.links > li { + float: left; + vertical-align: top; + width: 50%; + margin-top: 15px; +} +.links > li > a { + display: inline-block; + margin: 0; + cursor: pointer; + text-align: center; + vertical-align: top; +} +.links > li > a:before { + content: ""; + display: block; + width: 32px; + height: 32px; + margin: 0 auto 5px; + background-repeat: no-repeat; + background-size: 32px 32px; +} +.blog:before { background-image: url(../img/blog.png); } +.forum:before { background-image: url(../img/forum.png); } +.knowledge-base:before { background-image: url(../img/knowledge-base.png); } +.facebook:before { background-image: url(../img/facebook.png); } +.twitter:before { background-image: url(../img/twitter.png); } +.linkedin:before { background-image: url(../img/linkedin.png); } + +.fastcgi:before { background-image: url(../img/fastcgi.png); } +.php:before { background-image: url(../img/php.png); } +.ssi:before { background-image: url(../img/ssi.png); } + +.product-info { + border: 1px solid #bebebe; + background: #fafafa; +} +.product-info-heading { + margin: -1px; + padding: 5px 11px; + font-size: 16px; + color: #fff; + background: #09729f; +} +.product-info-content { padding: 10px; } + +@media (max-width: 767px) { + .page-header-wrapper { height: auto !important; } +} +@media (min-width: 480px) { + .links > li { width: 33.33%; } +} +@media (min-width: 768px) { + .page-header-wrapper { height: 51px; } + .page-header { + box-sizing: border-box; + position: fixed; + z-index: 300; + top: 0; + right: 0; + left: 0; + width: 100%; + min-height: 51px; + } + .page-header, + .page-content, + .page-footer { + padding-right: 20px; + padding-left: 20px; + } + .page-info { + box-sizing: border-box; + min-height: 240px; + padding: 20px 40px 20px 313px; + border: 1px solid #ccc; + background: #f2f2f2 url(../img/globe.png) no-repeat; + background-size: 273px 240px; + } + .links > li { width: 33.33%; } + .product-info-wrapper .col { + width: 50%; + } +} + +.pathbar { + display: inline-block; + width: 100%; + font-size: 12px; +} +.pathbar a { + color: #2c2c2c; + text-decoration: none; + position: relative; + float: left; + margin-right: 3px; + padding: 0 5px 0 15px; + height: 20px; + line-height: 20px; + text-align: center; + background: #ebebeb; +} +.pathbar a:before { + position: absolute; + top: 0; + left: 0; + border-style: solid; + border-width: 10px 0 10px 10px; + border-color: transparent transparent transparent #ffffff; + content: ""; +} +.pathbar a:after { + position: absolute; + top: 0; + right: -10px; + z-index: 1; + border-style: solid; + border-width: 10px 0 10px 10px; + border-color: transparent transparent transparent #ebebeb; + content: ""; +} +.pathbar a:hover { background: #2298cb; color: #fff; } +.pathbar a:hover:after { border-left-color: #2298cb; } +.pathbar a:first-child { padding-left: 10px; } +.pathbar a:first-child:before { display: none; } +.test h1 { + margin: 0 0 12px; + padding: 0; + font-size: 24px; + font-weight: 400; + line-height: 28px; + color: #444; +} +.test h2 { + margin: 0 0 5px; + padding: 0; + font-size: 18px; + font-weight: 400; + line-height: 20px; + color: #444; +} +.test p { margin: 12px 0; } +iframe { border: 1px solid #bebebe; } +.test-data table { + border-collapse: collapse; + border-spacing: 0; + width: 100%; +} +.test-data td, +.test-data th { padding: 0; } +.test-data table > thead > tr > th, +.test-data table > tbody > tr > th, +.test-data table > tfoot > tr > th, +.test-data table > thead > tr > td, +.test-data table > tbody > tr > td, +.test-data table > tfoot > tr > td { + padding: 6px 8px; + line-height: 1.4; + vertical-align: top; + border-top: 1px solid #d6d6d6; +} +.test-data table > thead > tr:first-child > th, +.test-data table > tbody > tr:first-child > th, +.test-data table > tfoot > tr:first-child > th, +.test-data table > thead > tr:first-child > td, +.test-data table > tbody > tr:first-child > td, +.test-data table > tfoot > tr:first-child > td { + border-top: 0; +} +.test-data table th { + text-align: left; + white-space: nowrap; + font-weight: 700; + background: #fafafa; +} \ No newline at end of file diff --git a/icons/_favicon.ico b/icons/_favicon.ico new file mode 100644 index 0000000..a3cdfa0 Binary files /dev/null and b/icons/_favicon.ico differ diff --git a/icons/android-chrome-192x192.png b/icons/android-chrome-192x192.png new file mode 100644 index 0000000..0e51140 Binary files /dev/null and b/icons/android-chrome-192x192.png differ diff --git a/icons/android-chrome-512x512.png b/icons/android-chrome-512x512.png new file mode 100644 index 0000000..4fbfd9b Binary files /dev/null and b/icons/android-chrome-512x512.png differ diff --git a/icons/apple-touch-icon-120x120-precomposed.png b/icons/apple-touch-icon-120x120-precomposed.png new file mode 100644 index 0000000..da326dd Binary files /dev/null and b/icons/apple-touch-icon-120x120-precomposed.png differ diff --git a/icons/apple-touch-icon-120x120.png b/icons/apple-touch-icon-120x120.png new file mode 100644 index 0000000..7a4ca1b Binary files /dev/null and b/icons/apple-touch-icon-120x120.png differ diff --git a/icons/apple-touch-icon-152x152-precomposed.png b/icons/apple-touch-icon-152x152-precomposed.png new file mode 100644 index 0000000..e03d7b3 Binary files /dev/null and b/icons/apple-touch-icon-152x152-precomposed.png differ diff --git a/icons/apple-touch-icon-152x152.png b/icons/apple-touch-icon-152x152.png new file mode 100644 index 0000000..d4b1eb2 Binary files /dev/null and b/icons/apple-touch-icon-152x152.png differ diff --git a/icons/apple-touch-icon-180x180-precomposed.png b/icons/apple-touch-icon-180x180-precomposed.png new file mode 100644 index 0000000..3148180 Binary files /dev/null and b/icons/apple-touch-icon-180x180-precomposed.png differ diff --git a/icons/apple-touch-icon-180x180.png b/icons/apple-touch-icon-180x180.png new file mode 100644 index 0000000..1d9b9be Binary files /dev/null and b/icons/apple-touch-icon-180x180.png differ diff --git a/icons/apple-touch-icon-60x60-precomposed.png b/icons/apple-touch-icon-60x60-precomposed.png new file mode 100644 index 0000000..e9543aa Binary files /dev/null and b/icons/apple-touch-icon-60x60-precomposed.png differ diff --git a/icons/apple-touch-icon-60x60.png b/icons/apple-touch-icon-60x60.png new file mode 100644 index 0000000..aa8d511 Binary files /dev/null and b/icons/apple-touch-icon-60x60.png differ diff --git a/icons/apple-touch-icon-76x76-precomposed.png b/icons/apple-touch-icon-76x76-precomposed.png new file mode 100644 index 0000000..6ff45a7 Binary files /dev/null and b/icons/apple-touch-icon-76x76-precomposed.png differ diff --git a/icons/apple-touch-icon-76x76.png b/icons/apple-touch-icon-76x76.png new file mode 100644 index 0000000..90cb2b0 Binary files /dev/null and b/icons/apple-touch-icon-76x76.png differ diff --git a/icons/apple-touch-icon-precomposed.png b/icons/apple-touch-icon-precomposed.png new file mode 100644 index 0000000..3148180 Binary files /dev/null and b/icons/apple-touch-icon-precomposed.png differ diff --git a/icons/apple-touch-icon.png b/icons/apple-touch-icon.png new file mode 100644 index 0000000..1d9b9be Binary files /dev/null and b/icons/apple-touch-icon.png differ diff --git a/icons/browserconfig.xml b/icons/browserconfig.xml new file mode 100644 index 0000000..ea8cbcc --- /dev/null +++ b/icons/browserconfig.xml @@ -0,0 +1,9 @@ + + + + + + #2b5797 + + + diff --git a/icons/favicon-16x16.png b/icons/favicon-16x16.png new file mode 100644 index 0000000..5e81a13 Binary files /dev/null and b/icons/favicon-16x16.png differ diff --git a/icons/favicon-32x32.png b/icons/favicon-32x32.png new file mode 100644 index 0000000..001557a Binary files /dev/null and b/icons/favicon-32x32.png differ diff --git a/icons/favicon.ico b/icons/favicon.ico new file mode 100644 index 0000000..dcc6ae4 Binary files /dev/null and b/icons/favicon.ico differ diff --git a/icons/mstile-150x150.png b/icons/mstile-150x150.png new file mode 100644 index 0000000..e13a846 Binary files /dev/null and b/icons/mstile-150x150.png differ diff --git a/icons/site.webmanifest b/icons/site.webmanifest new file mode 100644 index 0000000..5b2f361 --- /dev/null +++ b/icons/site.webmanifest @@ -0,0 +1,19 @@ +{ + "name": "", + "short_name": "", + "icons": [ + { + "src": "/icons/android-chrome-192x192.png", + "sizes": "192x192", + "type": "image/png" + }, + { + "src": "/icons/android-chrome-512x512.png", + "sizes": "512x512", + "type": "image/png" + } + ], + "theme_color": "#ffffff", + "background_color": "#ffffff", + "display": "standalone" +} diff --git a/index.php b/index.php new file mode 100644 index 0000000..26453de --- /dev/null +++ b/index.php @@ -0,0 +1,154 @@ + + + + + + + + Sur le sentier... + + + + + + + + + + + + + + + + + + + + gettext('French'), 'en_US' => gettext('English') , 'de_DE' => gettext('German'), 'es_ES' => gettext('Spanish') ); +?> + + + + + + + + +
+ + + +

sur-le-sentier...

+ + + +
+ + +
+ WordPress - Zenphoto - Vegas Background Slideshow 2. License des photos. (c) 2013- sur-le-sentier.fr +
+ + + + \ No newline at end of file diff --git a/js/matomo-sls.js b/js/matomo-sls.js new file mode 100644 index 0000000..fe4e670 --- /dev/null +++ b/js/matomo-sls.js @@ -0,0 +1,11 @@ +var _paq = window._paq || []; + /* tracker methods like "setCustomDimension" should be called before "trackPageView" */ + _paq.push(['trackPageView']); + _paq.push(['enableLinkTracking']); + (function() { + var u="//sur-le-sentier.fr/matomo/"; + _paq.push(['setTrackerUrl', u+'matomo.php']); + _paq.push(['setSiteId', '1']); + var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0]; + g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s); + })(); \ No newline at end of file diff --git a/lib2/localize.php b/lib2/localize.php new file mode 100644 index 0000000..af84e01 --- /dev/null +++ b/lib2/localize.php @@ -0,0 +1,119 @@ + $valeur) { + if ($string == $cle) { + $a = $valeur; + break; + } + } + return $a; + } + +function locale_language_from_browser($languages) { + // Specified by the user via the browser's Accept Language setting + // Samples: "hu, en-us;q=0.66, en;q=0.33", "hu,en-us;q=0.5" + $browser_langs = array(); + + if (isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])) { + $browser_accept = explode(",", $_SERVER['HTTP_ACCEPT_LANGUAGE']); + foreach ($browser_accept as $langpart) { + // The language part is either a code or a code with a quality. + // We cannot do anything with a * code, so it is skipped. + // If the quality is missing, it is assumed to be 1 according to the RFC. + if (preg_match("!([a-z-]+)(;q=([0-9\\.]+))?!", trim($langpart), $found)) { + $browser_langs[$found[1]] = (isset($found[3]) ? (float) $found[3] : 1.0); + } + } + } + + // Order the codes by quality + arsort($browser_langs); + //Array ( [en-us] => 1 [en] => 0.7 [fr] => 0.3 ) Firefox Fr + //Array ( [fr-] => 1 [en-] => 1 [fr] => 0.8 [en] => 0.4 ) Chrome 5 Fr + //Array ( [fr-fr] => 1 ) Safari Fr + //Array ( [fr-fr] => 1 ) iCab Fr + //Array ( [zh-] => 1 [fr] => 1 [pt-] => 1 [en-] => 1 [en] => 0.9 [ja] => 0.7 [de] => 0.6 [es] => 0.5 [it] => 0.4 [pt] => 0.3 [pl] => 0.1 [ru] => 0.1 [ko] => 0.1 [sv] => 0.1 [nl] => 0.1 [nb] => 0.1 [da] => 0.1 [fi] => 0.1 ) Opera 10.6 + + // Try to find the first preferred language we have + foreach ($browser_langs as $langcode => $q) { + foreach ($languages as $value) { + /* + $string = strtolower(str_replace('_','-',$value)); + echo $langcode . '-' . $q . '-' . $value . '
'; + if ($string == $langcode) { + echo $value; + return $value; + break; + } + */ + //echo $langcode . '-' . $q . '-' . $value . '
'; + if (substr($langcode, 0, 2) == substr($value, 0, 2)) { + $lang = $value; + break 2; + } + } + } + + if (!isset($lang)) $lang = 'fr_FR'; + return $lang; +} + +// Affiche sur popup (POST=-1) ou une liste de liens (GET=-1) pour choisir la langue +//echo choose_lang($liste_locale, $get=0, $post=-1); +function choose_lang($select_language,$liste, $get, $post) { + global $nation; + if ($get == true) { + $i = 1; + foreach ($liste as $value) { + //echo "" . recherche($nation,$value) . ""; + $links .= "".gettext("flag").""; + if ($i < count($liste)) $links .= ' | '; + $i++; + } + } + elseif ($post == true) { + $links = "
\n"; + $links .= "\n"; + $links .= "
\n"; + } + return $links; + } + + +?> diff --git a/locales/de_DE/LC_MESSAGES/.DS_Store b/locales/de_DE/LC_MESSAGES/.DS_Store new file mode 100644 index 0000000..5008ddf Binary files /dev/null and b/locales/de_DE/LC_MESSAGES/.DS_Store differ diff --git a/locales/de_DE/LC_MESSAGES/sentier.mo b/locales/de_DE/LC_MESSAGES/sentier.mo new file mode 100644 index 0000000..4ba33db Binary files /dev/null and b/locales/de_DE/LC_MESSAGES/sentier.mo differ diff --git a/locales/de_DE/LC_MESSAGES/sentier.po b/locales/de_DE/LC_MESSAGES/sentier.po new file mode 100644 index 0000000..129e81a --- /dev/null +++ b/locales/de_DE/LC_MESSAGES/sentier.po @@ -0,0 +1,193 @@ +msgid "" +msgstr "" +"Project-Id-Version: sur-le-sentier.fr\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2022-03-05 17:43+0100\n" +"PO-Revision-Date: 2022-03-06 07:35+0100\n" +"Last-Translator: Bruno \n" +"Language-Team: German \n" +"Language: de_DE\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" +"X-Poedit-KeywordsList: _;gettext;gettext_noop\n" +"X-Poedit-SourceCharset: UTF-8\n" +"X-Poedit-Basepath: ../../..\n" +"X-Generator: Poedit 3.0.1\n" +"X-Poedit-SearchPath-0: index.php\n" + +#: index.php:48 +msgid "French" +msgstr "Französisch" + +#: index.php:48 +msgid "English" +msgstr "Englisch" + +#: index.php:48 +msgid "German" +msgstr "Deutsche" + +#: index.php:48 +msgid "Spanish" +msgstr "Spanisch" + +#: index.php:128 +msgid "Blog" +msgstr "Blog" + +#: index.php:128 +msgid "Go to the blog..." +msgstr "Zum Blog..." + +#: index.php:130 +msgid "Gallery" +msgstr "Galeries" + +#: index.php:130 +msgid "Visit the gallery..." +msgstr "Besuchen Sie die Galerie..." + +#: index.php:132 +msgid "Piwigo" +msgstr "Piwigo" + +#: index.php:132 +msgid "Visit the Piwigo gallery..." +msgstr "Besuchen Sie die Piwigo-Galerie..." + +#: index.php:134 +msgid "This month" +msgstr "Diesen Monat" + +#: index.php:134 +msgid "Latest images..." +msgstr "Neueste Bilder..." + +#: index.php:141 +msgid "Powered by" +msgstr "Bereitgestellt von" + +#~ msgid "Enter" +#~ msgstr "Eintragen" + +#~ msgid "Tags clouds:" +#~ msgstr "Schlagwortwolke:" + +#~ msgid "Site news:" +#~ msgstr "Website Neues:" + +#~ msgid "Select language" +#~ msgstr "Auswahl Sprachen" + +#~ msgid "Photo of the month..." +#~ msgstr "Foto Monat..." + +#~ msgid "January" +#~ msgstr "Januar" + +#~ msgid "February" +#~ msgstr "Februar" + +#~ msgid "March" +#~ msgstr "März" + +#~ msgid "April" +#~ msgstr "April" + +#~ msgid "May" +#~ msgstr "Mai" + +#~ msgid "June" +#~ msgstr "Juni" + +#~ msgid "July" +#~ msgstr "Juli" + +#~ msgid "August" +#~ msgstr "August" + +#~ msgid "September" +#~ msgstr "September" + +#~ msgid "October" +#~ msgstr "Oktober" + +#~ msgid "November" +#~ msgstr "November" + +#~ msgid "December" +#~ msgstr "Dezember" + +#~ msgid "Now" +#~ msgstr "Jetzt" + +#~ msgid "The " +#~ msgstr "Der " + +#~ msgid "F j, Y, g:i a" +#~ msgstr "d. F Y H:i" + +#~ msgid " at " +#~ msgstr " auf " + +#~ msgid "Focal " +#~ msgstr "Brennweite " + +#~ msgid "Archives" +#~ msgstr "Archives" + +#~ msgid "Previous Page" +#~ msgstr "Vorheriges Seite" + +#~ msgid "prev" +#~ msgstr "zurück" + +#~ msgid "Page" +#~ msgstr "Seite" + +#~ msgid "Next Page" +#~ msgstr "Nächstes Seite" + +#~ msgid "next" +#~ msgstr "weiter" + +#~ msgid "Photo's licence" +#~ msgstr "Foto Lizenz" + +#~ msgid "Links" +#~ msgstr "Links" + +#~ msgid "Photographers" +#~ msgstr "Fotografs" + +#~ msgid "Festivals, competitions..." +#~ msgstr "Fotofestival, Wettbewerb..." + +#~ msgid "Forums" +#~ msgstr "Forums" + +#~ msgid "Photo news" +#~ msgstr "Foto Neues" + +#~ msgid "Equipment" +#~ msgstr "Ausrüstung" + +#~ msgid "Home" +#~ msgstr "Empfang" + +#~ msgid "Guestbook" +#~ msgstr "Gästebuch" + +#~ msgid "Contact" +#~ msgstr "Kontakt" + +#~ msgid "Linkse" +#~ msgstr "Liense" + +#~ msgid "d.m.Y à H:i" +#~ msgstr "F j, Y, g:i a" + +#~ msgid " à " +#~ msgstr " at " diff --git a/locales/en_US/LC_MESSAGES/sentier.mo b/locales/en_US/LC_MESSAGES/sentier.mo new file mode 100644 index 0000000..7449c60 Binary files /dev/null and b/locales/en_US/LC_MESSAGES/sentier.mo differ diff --git a/locales/en_US/LC_MESSAGES/sentier.po b/locales/en_US/LC_MESSAGES/sentier.po new file mode 100644 index 0000000..aa8b7bc --- /dev/null +++ b/locales/en_US/LC_MESSAGES/sentier.po @@ -0,0 +1,73 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR , YEAR. +# +msgid "" +msgstr "" +"Project-Id-Version: \n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2022-03-05 17:48+0100\n" +"PO-Revision-Date: 2022-03-05 17:48+0100\n" +"Last-Translator: \n" +"Language-Team: \n" +"Language: en_US\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" +"X-Generator: Poedit 3.0.1\n" +"X-Poedit-Basepath: ../../..\n" +"X-Poedit-SearchPath-0: index.php\n" + +#: index.php:48 +msgid "French" +msgstr "" + +#: index.php:48 +msgid "English" +msgstr "" + +#: index.php:48 +msgid "German" +msgstr "" + +#: index.php:48 +msgid "Spanish" +msgstr "" + +#: index.php:128 +msgid "Blog" +msgstr "" + +#: index.php:128 +msgid "Go to the blog..." +msgstr "" + +#: index.php:130 +msgid "Gallery" +msgstr "" + +#: index.php:130 +msgid "Visit the gallery..." +msgstr "" + +#: index.php:132 +msgid "Piwigo" +msgstr "" + +#: index.php:132 +msgid "Visit the Piwigo gallery..." +msgstr "" + +#: index.php:134 +msgid "This month" +msgstr "" + +#: index.php:134 +msgid "Latest images..." +msgstr "" + +#: index.php:141 +msgid "Powered by" +msgstr "" diff --git a/locales/es_ES/LC_MESSAGES/sentier.mo b/locales/es_ES/LC_MESSAGES/sentier.mo new file mode 100644 index 0000000..c6cb676 Binary files /dev/null and b/locales/es_ES/LC_MESSAGES/sentier.mo differ diff --git a/locales/es_ES/LC_MESSAGES/sentier.po b/locales/es_ES/LC_MESSAGES/sentier.po new file mode 100644 index 0000000..a323b19 --- /dev/null +++ b/locales/es_ES/LC_MESSAGES/sentier.po @@ -0,0 +1,176 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR , YEAR. +# +msgid "" +msgstr "" +"Project-Id-Version: sur-le-sentier.fr\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2022-03-05 17:50+0100\n" +"PO-Revision-Date: 2022-03-05 20:54+0100\n" +"Last-Translator: \n" +"Language-Team: French \n" +"Language: es_ES\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" +"X-Generator: Poedit 3.0.1\n" +"X-Poedit-Basepath: ..\n" +"X-Poedit-SearchPath-0: index.php\n" + +#: /Library/WebServer/Documents/photoblog/ce-mois.php:37 +msgid "Enter" +msgstr "Entrar" + +#: /Library/WebServer/Documents/photoblog/ce-mois.php:39 +msgid "French" +msgstr "Francés" + +#: /Library/WebServer/Documents/photoblog/ce-mois.php:39 +msgid "English" +msgstr "Inglés" + +#: /Library/WebServer/Documents/photoblog/ce-mois.php:39 +msgid "German" +msgstr "Alemán" + +#: /Library/WebServer/Documents/photoblog/ce-mois.php:39 +msgid "Spanish" +msgstr "Español" + +#: /Library/WebServer/Documents/photoblog/ce-mois.php:52 +#: /Library/WebServer/Documents/photoblog/ce-mois.php:364 +msgid "Photo of the month..." +msgstr "Foto del mes..." + +#: /Library/WebServer/Documents/photoblog/ce-mois.php:171 +msgid "January" +msgstr "Enero" + +#: /Library/WebServer/Documents/photoblog/ce-mois.php:174 +msgid "February" +msgstr "Febrero" + +#: /Library/WebServer/Documents/photoblog/ce-mois.php:177 +msgid "March" +msgstr "Marzo" + +#: /Library/WebServer/Documents/photoblog/ce-mois.php:180 +msgid "April" +msgstr "Abril" + +#: /Library/WebServer/Documents/photoblog/ce-mois.php:183 +msgid "May" +msgstr "Mayo" + +#: /Library/WebServer/Documents/photoblog/ce-mois.php:186 +msgid "June" +msgstr "Junio" + +#: /Library/WebServer/Documents/photoblog/ce-mois.php:189 +msgid "July" +msgstr "Julio" + +#: /Library/WebServer/Documents/photoblog/ce-mois.php:192 +msgid "August" +msgstr "Agosto" + +#: /Library/WebServer/Documents/photoblog/ce-mois.php:195 +msgid "September" +msgstr "Septiembre" + +#: /Library/WebServer/Documents/photoblog/ce-mois.php:198 +msgid "October" +msgstr "Octubre" + +#: /Library/WebServer/Documents/photoblog/ce-mois.php:201 +msgid "November" +msgstr "Noviembre" + +#: /Library/WebServer/Documents/photoblog/ce-mois.php:204 +msgid "December" +msgstr "Diciembre" + +#: /Library/WebServer/Documents/photoblog/ce-mois.php:344 +msgid "When" +msgstr "Cuando" + +#: /Library/WebServer/Documents/photoblog/ce-mois.php:344 +#: /Library/WebServer/Documents/photoblog/ce-mois.php:349 +msgid "Now" +msgstr "Ahora" + +#: /Library/WebServer/Documents/photoblog/ce-mois.php:350 +msgid "Blog" +msgstr "Blog" + +#: /Library/WebServer/Documents/photoblog/ce-mois.php:351 +msgid "Gallery" +msgstr "Galería" + +#: /Library/WebServer/Documents/photoblog/ce-mois.php:352 +msgid "Guestbook" +msgstr "Libro de visitas" + +#: /Library/WebServer/Documents/photoblog/ce-mois.php:353 +msgid "Contact" +msgstr "Contacto" + +#: /Library/WebServer/Documents/photoblog/ce-mois.php:354 +msgid "Links" +msgstr "Enlaces" + +#: /Library/WebServer/Documents/photoblog/ce-mois.php:476 +msgid "The" +msgstr "El" + +#: /Library/WebServer/Documents/photoblog/ce-mois.php:476 +msgid "F j, Y, g:i a" +msgstr "F j, Y, g:i a" + +#: /Library/WebServer/Documents/photoblog/ce-mois.php:478 +msgid " at " +msgstr " en " + +#: /Library/WebServer/Documents/photoblog/ce-mois.php:478 +msgid "Focal " +msgstr "Focal " + +#: /Library/WebServer/Documents/photoblog/ce-mois.php:629 +#: /Library/WebServer/Documents/photoblog/ce-mois.php:630 +msgid "Archives" +msgstr "Archivos" + +#: /Library/WebServer/Documents/photoblog/ce-mois.php:630 +msgid "Help" +msgstr "Ayuda" + +#: /Library/WebServer/Documents/photoblog/ce-mois.php:673 +msgid "Previous Page" +msgstr "Página anterior" + +#: /Library/WebServer/Documents/photoblog/ce-mois.php:673 +msgid "prev" +msgstr "anterior" + +#: /Library/WebServer/Documents/photoblog/ce-mois.php:676 +msgid "Page" +msgstr "Página" + +#: /Library/WebServer/Documents/photoblog/ce-mois.php:682 +msgid "Next Page" +msgstr "Siguiente página" + +#: /Library/WebServer/Documents/photoblog/ce-mois.php:682 +msgid "next" +msgstr "siguiente" + +#: /Library/WebServer/Documents/photoblog/ce-mois.php:704 +msgid "Select language" +msgstr "Seleccione el idioma" + +#: /Library/WebServer/Documents/photoblog/ce-mois.php:706 +msgid "Photo's licence" +msgstr "Licencia de la foto" diff --git a/locales/fr_FR/LC_MESSAGES/sentier.mo b/locales/fr_FR/LC_MESSAGES/sentier.mo new file mode 100644 index 0000000..ecaaad8 Binary files /dev/null and b/locales/fr_FR/LC_MESSAGES/sentier.mo differ diff --git a/locales/fr_FR/LC_MESSAGES/sentier.po b/locales/fr_FR/LC_MESSAGES/sentier.po new file mode 100644 index 0000000..9c9a45f --- /dev/null +++ b/locales/fr_FR/LC_MESSAGES/sentier.po @@ -0,0 +1,183 @@ +# French translations for PACKAGE package. +# Copyright (C) 2016 THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# Bruno Pesenti <>, 2016. +# +msgid "" +msgstr "" +"Project-Id-Version: sur-le-sentier.fr\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2022-03-05 17:38+0100\n" +"PO-Revision-Date: 2022-03-05 17:51+0100\n" +"Last-Translator: Bruno \n" +"Language-Team: French \n" +"Language: fr\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" +"X-Generator: Poedit 3.0.1\n" +"X-Poedit-KeywordsList: gettext;_\n" +"X-Poedit-Basepath: ../../..\n" +"X-Poedit-SourceCharset: UTF-8\n" +"X-Poedit-SearchPath-0: index.php\n" + +#: index.php:48 +msgid "French" +msgstr "Français" + +#: index.php:48 +msgid "English" +msgstr "Anglais" + +#: index.php:48 +msgid "German" +msgstr "Allemand" + +#: index.php:48 +msgid "Spanish" +msgstr "Espagnol" + +#: index.php:128 +msgid "Blog" +msgstr "Blog" + +#: index.php:128 +msgid "Go to the blog..." +msgstr "Aller sur le blog..." + +#: index.php:130 +msgid "Gallery" +msgstr "Portfolio" + +#: index.php:130 +msgid "Visit the gallery..." +msgstr "Visiter la galerie..." + +#: index.php:132 +msgid "Piwigo" +msgstr "Piwigo" + +#: index.php:132 +msgid "Visit the Piwigo gallery..." +msgstr "Visiter la galerie Piwigo…" + +#: index.php:134 +msgid "This month" +msgstr "Ce mois-çi" + +#: index.php:134 +msgid "Latest images..." +msgstr "Dernières images..." + +#: index.php:141 +msgid "Powered by" +msgstr "Propulsé par" + +#~ msgid "WordPress" +#~ msgstr "WordPress" + +#~ msgid "Zenphoto" +#~ msgstr "Zenphoto" + +#~ msgid "Contact" +#~ msgstr "Contact" + +#~ msgid "Enter" +#~ msgstr "Entrer" + +#~ msgid "Photo of the month..." +#~ msgstr "Photo du mois..." + +#~ msgid "January" +#~ msgstr "Janvier" + +#~ msgid "February" +#~ msgstr "Février" + +#~ msgid "March" +#~ msgstr "Mars" + +#~ msgid "April" +#~ msgstr "Avril" + +#~ msgid "May" +#~ msgstr "Mai" + +#~ msgid "June" +#~ msgstr "Juin" + +#~ msgid "July" +#~ msgstr "Juillet" + +#~ msgid "August" +#~ msgstr "Aout" + +#~ msgid "September" +#~ msgstr "Septembre" + +#~ msgid "October" +#~ msgstr "Octobre" + +#~ msgid "November" +#~ msgstr "Novembre" + +#~ msgid "December" +#~ msgstr "Décembre" + +#~ msgid "Now" +#~ msgstr "En ce moment" + +#~ msgid "Guestbook" +#~ msgstr "Livre d'Or" + +#~ msgid "Links" +#~ msgstr "Liens" + +#~ msgid "The" +#~ msgstr "Le" + +#~ msgid "F j, Y, g:i a" +#~ msgstr "d m Y à G:i" + +#~ msgid " at " +#~ msgstr " à " + +#~ msgid "Focal " +#~ msgstr "Focale " + +#~ msgid "Archives" +#~ msgstr "Archives" + +#~ msgid "Help" +#~ msgstr "Aide" + +#~ msgid "Previous Page" +#~ msgstr "Page précédente" + +#~ msgid "prev" +#~ msgstr "prec" + +#~ msgid "Page" +#~ msgstr "Page" + +#~ msgid "Next Page" +#~ msgstr "Page suivante" + +#~ msgid "next" +#~ msgstr "suiv" + +#~ msgid "Select language" +#~ msgstr "Choix du language" + +#~ msgid "Photo's licence" +#~ msgstr "License des photos" + +#~ msgid "Tags clouds:" +#~ msgstr "Nuage de mot-clés:" + +#~ msgid "Site news:" +#~ msgstr "Nouveautés du site:" + +#~ msgid "See my last work..." +#~ msgstr "Voir mes dernières photos..." diff --git a/locales/sentier.pot b/locales/sentier.pot new file mode 100644 index 0000000..067b66c --- /dev/null +++ b/locales/sentier.pot @@ -0,0 +1,175 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR , YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: sur-le-sentier.fr\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2022-03-05 17:50+0100\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: French \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: Poedit 3.0.1\n" +"X-Poedit-Basepath: ..\n" +"X-Poedit-SearchPath-0: index.php\n" + +#: /Library/WebServer/Documents/photoblog/ce-mois.php:37 +msgid "Enter" +msgstr "" + +#: /Library/WebServer/Documents/photoblog/ce-mois.php:39 +msgid "French" +msgstr "" + +#: /Library/WebServer/Documents/photoblog/ce-mois.php:39 +msgid "English" +msgstr "" + +#: /Library/WebServer/Documents/photoblog/ce-mois.php:39 +msgid "German" +msgstr "" + +#: /Library/WebServer/Documents/photoblog/ce-mois.php:39 +msgid "Spanish" +msgstr "" + +#: /Library/WebServer/Documents/photoblog/ce-mois.php:52 +#: /Library/WebServer/Documents/photoblog/ce-mois.php:364 +msgid "Photo of the month..." +msgstr "" + +#: /Library/WebServer/Documents/photoblog/ce-mois.php:171 +msgid "January" +msgstr "" + +#: /Library/WebServer/Documents/photoblog/ce-mois.php:174 +msgid "February" +msgstr "" + +#: /Library/WebServer/Documents/photoblog/ce-mois.php:177 +msgid "March" +msgstr "" + +#: /Library/WebServer/Documents/photoblog/ce-mois.php:180 +msgid "April" +msgstr "" + +#: /Library/WebServer/Documents/photoblog/ce-mois.php:183 +msgid "May" +msgstr "" + +#: /Library/WebServer/Documents/photoblog/ce-mois.php:186 +msgid "June" +msgstr "" + +#: /Library/WebServer/Documents/photoblog/ce-mois.php:189 +msgid "July" +msgstr "" + +#: /Library/WebServer/Documents/photoblog/ce-mois.php:192 +msgid "August" +msgstr "" + +#: /Library/WebServer/Documents/photoblog/ce-mois.php:195 +msgid "September" +msgstr "" + +#: /Library/WebServer/Documents/photoblog/ce-mois.php:198 +msgid "October" +msgstr "" + +#: /Library/WebServer/Documents/photoblog/ce-mois.php:201 +msgid "November" +msgstr "" + +#: /Library/WebServer/Documents/photoblog/ce-mois.php:204 +msgid "December" +msgstr "" + +#: /Library/WebServer/Documents/photoblog/ce-mois.php:344 +msgid "When" +msgstr "" + +#: /Library/WebServer/Documents/photoblog/ce-mois.php:344 +#: /Library/WebServer/Documents/photoblog/ce-mois.php:349 +msgid "Now" +msgstr "" + +#: /Library/WebServer/Documents/photoblog/ce-mois.php:350 +msgid "Blog" +msgstr "" + +#: /Library/WebServer/Documents/photoblog/ce-mois.php:351 +msgid "Gallery" +msgstr "" + +#: /Library/WebServer/Documents/photoblog/ce-mois.php:352 +msgid "Guestbook" +msgstr "" + +#: /Library/WebServer/Documents/photoblog/ce-mois.php:353 +msgid "Contact" +msgstr "" + +#: /Library/WebServer/Documents/photoblog/ce-mois.php:354 +msgid "Links" +msgstr "" + +#: /Library/WebServer/Documents/photoblog/ce-mois.php:476 +msgid "The" +msgstr "" + +#: /Library/WebServer/Documents/photoblog/ce-mois.php:476 +msgid "F j, Y, g:i a" +msgstr "" + +#: /Library/WebServer/Documents/photoblog/ce-mois.php:478 +msgid " at " +msgstr "" + +#: /Library/WebServer/Documents/photoblog/ce-mois.php:478 +msgid "Focal " +msgstr "" + +#: /Library/WebServer/Documents/photoblog/ce-mois.php:629 +#: /Library/WebServer/Documents/photoblog/ce-mois.php:630 +msgid "Archives" +msgstr "" + +#: /Library/WebServer/Documents/photoblog/ce-mois.php:630 +msgid "Help" +msgstr "" + +#: /Library/WebServer/Documents/photoblog/ce-mois.php:673 +msgid "Previous Page" +msgstr "" + +#: /Library/WebServer/Documents/photoblog/ce-mois.php:673 +msgid "prev" +msgstr "" + +#: /Library/WebServer/Documents/photoblog/ce-mois.php:676 +msgid "Page" +msgstr "" + +#: /Library/WebServer/Documents/photoblog/ce-mois.php:682 +msgid "Next Page" +msgstr "" + +#: /Library/WebServer/Documents/photoblog/ce-mois.php:682 +msgid "next" +msgstr "" + +#: /Library/WebServer/Documents/photoblog/ce-mois.php:704 +msgid "Select language" +msgstr "" + +#: /Library/WebServer/Documents/photoblog/ce-mois.php:706 +msgid "Photo's licence" +msgstr "" diff --git a/mois.php b/mois.php new file mode 100644 index 0000000..a6524cc --- /dev/null +++ b/mois.php @@ -0,0 +1,119 @@ +setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); +$query = "CREATE TABLE IF NOT EXISTS photos ( + id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, + filename TEXT, + date TEXT, + lens TEXT, + width INTEGER, + height INTEGER, + UNIQUE(filename) + )"; +$conn->exec($query); +/* + lens TEXT, + width INTEGER, + height INTEGER, +*/ + +function _pr($d) { + echo "
"; + echo '' . debug_backtrace()[0]['file'] . ' ' . debug_backtrace()[0]['line'] . ''; + echo "
"; + echo '
';
+    if(is_array($d)) {
+    	print_r($d);
+    } else if(is_object($d)) {
+    	var_dump($d);
+    }
+    echo '
'; +} + +#_pr($items); + +// Ajout de données dans la table +foreach($fileList as $file){ + $exif = exif_read_data($file,'EXIF' ,0 ); + #_pr($exif); + $ht = $exif['COMPUTED']['html']; + $wi = $exif['COMPUTED']['Width']; + $he = $exif['COMPUTED']['Height']; + $ap = $exif['COMPUTED']['ApertureFNumber']; + # YYYY-MM-DD HH:MM:SS.SSS - 2019:10:01 14:03:12 + $da = $exif['DateTimeOriginal']; + $mod = $exif['Model']; + $ex = $exif['ExposureTime']; + $iso = $exif['ISOSpeedRatings']; + $obj = isset($exif['UndefinedTag:0xA434']) ? $exif['UndefinedTag:0xA434'] : ""; + + #echo $file . " - " . $ww . " - " . $hh . " - " . $dd . "
"; + + $photos[] = array( + 'filename' => $file, + 'date' => $da, + 'lens' => $obj, + 'width' => $wi, + 'height' => $he + ); + } + +#_pr($photos); + +try { + $conn2 = new PDO('sqlite:db_photo.sqlite3'); + $query2 = "INSERT OR IGNORE INTO photos (filename, date, lens, width, height) VALUES (:filename, :date, :lens, :width, :height)"; + + $stmt = $conn2->prepare($query2); + $stmt->bindParam(':filename', $file); + $stmt->bindParam(':date', $da); + $stmt->bindParam(':lens', $obj); + $stmt->bindParam(':width', $wi); + $stmt->bindParam(':height', $he); + + + foreach ($photos as $item) { + _pr($item); + $file = $item['filename']; + $da = $item['date']; + $obj = $item['lens']; + $wi = $item['width']; + $he = $item['height']; + + $stmt->execute(); + } + + #header('location: index.php'); + + $conn2 = null; + } + catch(PDOException $e) { + echo $e->getMessage(); + } + +// +/**/ +try { + $conn3 = new PDO('sqlite:db_photo.sqlite3'); + $query3 = "SELECT filename, date, lens, width, height FROM photos WHERE id >= ? AND id <= ? ORDER BY date DESC"; + + $stmt = $conn3->prepare($query3); + # id 1 -> 3 + $stmt->execute(array(1, 3)); + + $result = $stmt->fetchAll(PDO::FETCH_ASSOC); + _pr($result); + + $conn3 = null; + } + catch(PDOException $e) { + echo $e->getMessage(); + } + +?> \ No newline at end of file diff --git a/vegas/_js/overlays/01.png b/vegas/_js/overlays/01.png new file mode 100644 index 0000000..75292f6 Binary files /dev/null and b/vegas/_js/overlays/01.png differ diff --git a/vegas/_js/overlays/02.png b/vegas/_js/overlays/02.png new file mode 100644 index 0000000..7073301 Binary files /dev/null and b/vegas/_js/overlays/02.png differ diff --git a/vegas/_js/overlays/03.png b/vegas/_js/overlays/03.png new file mode 100644 index 0000000..a7002f5 Binary files /dev/null and b/vegas/_js/overlays/03.png differ diff --git a/vegas/_js/overlays/04.png b/vegas/_js/overlays/04.png new file mode 100644 index 0000000..21d53ea Binary files /dev/null and b/vegas/_js/overlays/04.png differ diff --git a/vegas/_js/overlays/05.png b/vegas/_js/overlays/05.png new file mode 100644 index 0000000..9cffa18 Binary files /dev/null and b/vegas/_js/overlays/05.png differ diff --git a/vegas/_js/overlays/06.png b/vegas/_js/overlays/06.png new file mode 100644 index 0000000..01aed76 Binary files /dev/null and b/vegas/_js/overlays/06.png differ diff --git a/vegas/_js/overlays/07.png b/vegas/_js/overlays/07.png new file mode 100644 index 0000000..3657cc2 Binary files /dev/null and b/vegas/_js/overlays/07.png differ diff --git a/vegas/_js/overlays/08.png b/vegas/_js/overlays/08.png new file mode 100644 index 0000000..94eea6f Binary files /dev/null and b/vegas/_js/overlays/08.png differ diff --git a/vegas/_js/overlays/09.png b/vegas/_js/overlays/09.png new file mode 100644 index 0000000..14380fb Binary files /dev/null and b/vegas/_js/overlays/09.png differ diff --git a/vegas/_js/vegas-style.css b/vegas/_js/vegas-style.css new file mode 100644 index 0000000..a6f6324 --- /dev/null +++ b/vegas/_js/vegas-style.css @@ -0,0 +1,285 @@ +/* +html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video { + margin: 0; + padding: 0; + border: 0; + font-size: 100%; + font: inherit; + vertical-align:baseline +} + +article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section { + display:block +} + +body { + line-height:1 +} + +ol, ul { + list-style:none +} + +blockquote, q { + quotes:none +} + +blockquote:before, blockquote:after, q:before, q:after { + content: ''; + content:none +} + +table { + border-collapse: collapse; + border-spacing:0 +} + +html { + box-sizing:border-box +} + +*, * :before, * :after { + box-sizing:inherit +} +*/ + +/* — */ + +.vegas-menu { + float: right; + top: 200px; + margin-right: 24px; + text-align: right; +} + +.vegas-menu h1 { + font: bold 64px 'Coming Soon', cursive; + color: #fff; + letter-spacing: 15px; + text-shadow: -1px -1px 1px #fff, 1px 1px 1px #000; +} + +.vegas-menu h1 a { + color: #fff; + text-decoration: none; + } + +/* +Menu +*/ + +.menu { + margin-top: 100px; + margin-bottom: 24px; + float: right; +} + +.texte { + margin-bottom: 40px; +} + +.texte a { + font-family: 'Coming Soon', cursive; + font-size: 32px; + font-variant: small-caps; + text-align: right; + color: #fff; + background-color: rgba(0, 0, 0, 0.5); + + text-decoration: none; + + padding-right: 0.3em; + padding-left: 1.5em; +} + +.texte a:hover { + font-style: italic; + background-color: rgba(0, 0, 0, 0.8); +} + +.clearall { + clear: both; +} + +.green { + color: #cff208; +} + + +/* +Flickr, 500px +*/ + +.tweet-it { + position: fixed; + top: 1.5em; + left: 3.5em; + z-index: 1000; + -webkit-transition: 1s opacity; + transition:1s opacity +} + +@media (max-width: 768px) { + .tweet-it { + top: 80px; + right:1em + } +} + +@media (max-height: 550px) { + .tweet-it { + display:none + } +} + +@media (max-width: 375px) { + .tweet-it { + display:none + } +} + +.icn { + opacity:.5 +} + + +.icn svg { + display: block; + fill: #fff; + border-radius: 50%; + border: 2px solid white; + padding: 15px; + margin: 15px; + text-align: center; + width: 20px; + height: 20px; +} + +.icn:hover { + opacity:1 +} + +/* +Propulsé par … +*/ + +.vegas-info { + position: absolute; + bottom: 0px; + right: 10px; + color: #fff; + font: 12px "Lucida Grande", Lucida, Verdana, sans-serif; + -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=60)"; + filter:alpha(opacity=60); + -moz-opacity:0.6; + opacity: 0.6; +} + +.vegas-info a:hover, .vegas-info-vert a:hover { + -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=90)"; + filter:alpha(opacity=90); + -moz-opacity:0.9; + opacity: 0.9; +} + +.vegas-info a, .vegas-info a:visited, .vegas-info-vert a, .vegas-info-vert a:visited { + color: #cff208; + text-decoration: none; + -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=60)"; + filter:alpha(opacity=60); + -moz-opacity:0.6; + opacity: 0.6; +} + + +/* --------- + +.homepage-header { + width: 100vw; + height: 100vh; + background-color:#000 +} + +.homepage-info { + position: absolute; + overflow: hidden; + font-family: "Raleway"; + text-transform: uppercase; + line-height: 2.2em; + text-align: right; + width: 100%; + font-size: .60em; + right: 1em; + bottom:1em +} + +@media (min-width: 768px) { + .homepage-info { + right: 2em; + bottom: 2.5em; + font-size:.85em + } +} + +@media (min-width: 769px) { + .homepage-info { + font-size: .85em; + right: 3.5em; + bottom:3em + } +} + +.homepage-info h1 { + position: relative; + text-shadow: -1px -1px 1px rgba(0, 0, 0, 0.3), 1px 1px 1px rgba(0, 0, 0, 0.3), 0 0 10px #000; + letter-spacing: -1px; + padding-right: 4.7em; + font-size: 1.9em; + margin: .75em 0; + pointer-events:none +} + +.homepage-info h1 span { + display:block +} + +.homepage-info h1 .line1 { + font-size: 3em; + letter-spacing: -5px; + margin-bottom:.2em +} + +.homepage-menu { + position: relative; + font-weight: 900; + margin: .75em 0; + font-size:2em +} + +.homepage-menu a { + color:#fff +} + +.homepage-menu li { + margin-bottom:4px +} + +.homepage-submenu { + line-height: 1.6; + text-align: left; + font-size: .68em; + width: 140px; + position: absolute; + top: -4px; + right:0 +} + +.homepage-submenu li { + -webkit-transition: .5s cubic-bezier(0, 0.5, 0, 1); + transition: .5s cubic-bezier(0, 0.5, 0, 1); + -webkit-transform: translateY(16px); + transform: translateY(16px); + /* opacity:0*/ +} +*/ + diff --git a/vegas/_js/vegas.css b/vegas/_js/vegas.css new file mode 100644 index 0000000..2bc2702 --- /dev/null +++ b/vegas/_js/vegas.css @@ -0,0 +1,622 @@ +.vegas-wrapper, +.vegas-overlay, +.vegas-timer, +.vegas-slide, +.vegas-slide-inner { + position: absolute; + top: 0; + left: 0; + bottom: 0; + right: 0; + overflow: hidden; + border: none; + padding: 0; + margin: 0; +} + +.vegas-overlay { + opacity: .5; + background: transparent url("overlays/02.png") center center repeat; +} + +.vegas-timer { + top: auto; + bottom: 0; + height: 2px; +} + +.vegas-timer-progress { + width: 0%; + height: 100%; + background: white; + transition: width ease-out; +} + +.vegas-timer-running .vegas-timer-progress { + width: 100%; +} + +.vegas-slide, +.vegas-slide-inner { + margin: 0; + padding: 0; + background: transparent center center no-repeat; + -webkit-transform: translateZ(0); + transform: translateZ(0); + will-change: transform, opacity; +} + +body .vegas-container { + overflow: hidden !important; + position: relative; +} + +.vegas-video { + min-width: 100%; + min-height: 100%; + width: auto; + height: auto; +} + +body.vegas-container { + overflow: auto; + position: static; + z-index: -2; +} + +body.vegas-container > .vegas-timer, +body.vegas-container > .vegas-overlay, +body.vegas-container > .vegas-slide { + position: fixed; + z-index: -1; +} + +/* Target Safari IOS7+ in order to add 76px */ +/*******************************************/ +/* blur transition */ +/*******************************************/ +.vegas-transition-blur, +.vegas-transition-blur2 { + opacity: 0; + -webkit-filter: blur(32px) brightness(1.01); + filter: blur(32px) brightness(1.01); +} + +.vegas-transition-blur-in, +.vegas-transition-blur2-in { + opacity: 1; + -webkit-filter: blur(0px) brightness(1.01); + filter: blur(0px) brightness(1.01); +} + +.vegas-transition-blur2-out { + opacity: 0; +} + +/*******************************************/ +/* burn transition */ +/*******************************************/ +.vegas-transition-burn, +.vegas-transition-burn2 { + opacity: 0; + -webkit-filter: contrast(1000%) saturate(1000%); + filter: contrast(1000%) saturate(1000%); +} + +.vegas-transition-burn-in, +.vegas-transition-burn2-in { + opacity: 1; + -webkit-filter: contrast(100%) saturate(100%); + filter: contrast(100%) saturate(100%); +} + +.vegas-transition-burn2-out { + opacity: 0; + -webkit-filter: contrast(1000%) saturate(1000%); + filter: contrast(1000%) saturate(1000%); +} + +/*******************************************/ +/* fade transition */ +/*******************************************/ +.vegas-transition-fade, +.vegas-transition-fade2 { + opacity: 0; +} + +.vegas-transition-fade-in, +.vegas-transition-fade2-in { + opacity: 1; +} + +.vegas-transition-fade2-out { + opacity: 0; +} + +/*******************************************/ +/* flash transition */ +/*******************************************/ +.vegas-transition-flash, +.vegas-transition-flash2 { + opacity: 0; + -webkit-filter: brightness(25); + filter: brightness(25); +} + +.vegas-transition-flash-in, +.vegas-transition-flash2-in { + opacity: 1; + -webkit-filter: brightness(1); + filter: brightness(1); +} + +.vegas-transition-flash2-out { + opacity: 0; + -webkit-filter: brightness(25); + filter: brightness(25); +} + +/*******************************************/ +/* negative transition */ +/*******************************************/ +.vegas-transition-negative, +.vegas-transition-negative2 { + opacity: 0; + -webkit-filter: invert(100%); + filter: invert(100%); +} + +.vegas-transition-negative-in, +.vegas-transition-negative2-in { + opacity: 1; + -webkit-filter: invert(0); + filter: invert(0); +} + +.vegas-transition-negative2-out { + opacity: 0; + -webkit-filter: invert(100%); + filter: invert(100%); +} + +/*******************************************/ +/* slideDown transition */ +/*******************************************/ +.vegas-transition-slideDown, +.vegas-transition-slideDown2 { + -webkit-transform: translateY(-100%); + transform: translateY(-100%); +} + +.vegas-transition-slideDown-in, +.vegas-transition-slideDown2-in { + -webkit-transform: translateY(0%); + transform: translateY(0%); +} + +.vegas-transition-slideDown2-out { + -webkit-transform: translateY(100%); + transform: translateY(100%); +} + +/*******************************************/ +/* slideLeft transition */ +/*******************************************/ +.vegas-transition-slideLeft, +.vegas-transition-slideLeft2 { + -webkit-transform: translateX(100%); + transform: translateX(100%); +} + +.vegas-transition-slideLeft-in, +.vegas-transition-slideLeft2-in { + -webkit-transform: translateX(0%); + transform: translateX(0%); +} + +.vegas-transition-slideLeft2-out { + -webkit-transform: translateX(-100%); + transform: translateX(-100%); +} + +/*******************************************/ +/* slideRight transition */ +/*******************************************/ +.vegas-transition-slideRight, +.vegas-transition-slideRight2 { + -webkit-transform: translateX(-100%); + transform: translateX(-100%); +} + +.vegas-transition-slideRight-in, +.vegas-transition-slideRight2-in { + -webkit-transform: translateX(0%); + transform: translateX(0%); +} + +.vegas-transition-slideRight2-out { + -webkit-transform: translateX(100%); + transform: translateX(100%); +} + +/*******************************************/ +/* slideUp transition */ +/*******************************************/ +.vegas-transition-slideUp, +.vegas-transition-slideUp2 { + -webkit-transform: translateY(100%); + transform: translateY(100%); +} + +.vegas-transition-slideUp-in, +.vegas-transition-slideUp2-in { + -webkit-transform: translateY(0%); + transform: translateY(0%); +} + +.vegas-transition-slideUp2-out { + -webkit-transform: translateY(-100%); + transform: translateY(-100%); +} + +/*******************************************/ +/* swirlLeft transition */ +/*******************************************/ +.vegas-transition-swirlLeft, +.vegas-transition-swirlLeft2 { + -webkit-transform: scale(2) rotate(35deg); + transform: scale(2) rotate(35deg); + opacity: 0; +} + +.vegas-transition-swirlLeft-in, +.vegas-transition-swirlLeft2-in { + -webkit-transform: scale(1) rotate(0deg); + transform: scale(1) rotate(0deg); + opacity: 1; +} + +.vegas-transition-swirlLeft2-out { + -webkit-transform: scale(2) rotate(-35deg); + transform: scale(2) rotate(-35deg); + opacity: 0; +} + +/*******************************************/ +/* swirlRight transition */ +/*******************************************/ +.vegas-transition-swirlRight, +.vegas-transition-swirlRight2 { + -webkit-transform: scale(2) rotate(-35deg); + transform: scale(2) rotate(-35deg); + opacity: 0; +} + +.vegas-transition-swirlRight-in, +.vegas-transition-swirlRight2-in { + -webkit-transform: scale(1) rotate(0deg); + transform: scale(1) rotate(0deg); + opacity: 1; +} + +.vegas-transition-swirlRight2-out { + -webkit-transform: scale(2) rotate(35deg); + transform: scale(2) rotate(35deg); + opacity: 0; +} + +/*******************************************/ +/* zoomIn transition */ +/*******************************************/ +.vegas-transition-zoomIn, +.vegas-transition-zoomIn2 { + -webkit-transform: scale(0); + transform: scale(0); + opacity: 0; +} + +.vegas-transition-zoomIn-in, +.vegas-transition-zoomIn2-in { + -webkit-transform: scale(1); + transform: scale(1); + opacity: 1; +} + +.vegas-transition-zoomIn2-out { + -webkit-transform: scale(2); + transform: scale(2); + opacity: 0; +} + +/*******************************************/ +/* zoomOut transition */ +/*******************************************/ +.vegas-transition-zoomOut, +.vegas-transition-zoomOut2 { + -webkit-transform: scale(2); + transform: scale(2); + opacity: 0; +} + +.vegas-transition-zoomOut-in, +.vegas-transition-zoomOut2-in { + -webkit-transform: scale(1); + transform: scale(1); + opacity: 1; +} + +.vegas-transition-zoomOut2-out { + -webkit-transform: scale(0); + transform: scale(0); + opacity: 0; +} + +/*******************************************/ +/* kenburns animation */ +/*******************************************/ +.vegas-animation-kenburns { + -webkit-animation: kenburns ease-out; + animation: kenburns ease-out; +} + +@-webkit-keyframes kenburns { + 0% { + -webkit-transform: scale(1.5); + transform: scale(1.5); + } + 100% { + -webkit-transform: scale(1); + transform: scale(1); + } +} + +@keyframes kenburns { + 0% { + -webkit-transform: scale(1.5); + transform: scale(1.5); + } + 100% { + -webkit-transform: scale(1); + transform: scale(1); + } +} + +/*******************************************/ +/* kenburnsDownLeft animation */ +/*******************************************/ +.vegas-animation-kenburnsDownLeft { + -webkit-animation: kenburnsDownLeft ease-out; + animation: kenburnsDownLeft ease-out; +} + +@-webkit-keyframes kenburnsDownLeft { + 0% { + -webkit-transform: scale(1.5) translate(10%, -10%); + transform: scale(1.5) translate(10%, -10%); + } + 100% { + -webkit-transform: scale(1) translate(0, 0); + transform: scale(1) translate(0, 0); + } +} + +@keyframes kenburnsDownLeft { + 0% { + -webkit-transform: scale(1.5) translate(10%, -10%); + transform: scale(1.5) translate(10%, -10%); + } + 100% { + -webkit-transform: scale(1) translate(0, 0); + transform: scale(1) translate(0, 0); + } +} + +/*******************************************/ +/* kenburnsDownRight animation */ +/*******************************************/ +.vegas-animation-kenburnsDownRight { + -webkit-animation: kenburnsDownRight ease-out; + animation: kenburnsDownRight ease-out; +} + +@-webkit-keyframes kenburnsDownRight { + 0% { + -webkit-transform: scale(1.5) translate(-10%, -10%); + transform: scale(1.5) translate(-10%, -10%); + } + 100% { + -webkit-transform: scale(1) translate(0, 0); + transform: scale(1) translate(0, 0); + } +} + +@keyframes kenburnsDownRight { + 0% { + -webkit-transform: scale(1.5) translate(-10%, -10%); + transform: scale(1.5) translate(-10%, -10%); + } + 100% { + -webkit-transform: scale(1) translate(0, 0); + transform: scale(1) translate(0, 0); + } +} + +/*******************************************/ +/* kenburnsDown animation */ +/*******************************************/ +.vegas-animation-kenburnsDown { + -webkit-animation: kenburnsDown ease-out; + animation: kenburnsDown ease-out; +} + +@-webkit-keyframes kenburnsDown { + 0% { + -webkit-transform: scale(1.5) translate(0, -10%); + transform: scale(1.5) translate(0, -10%); + } + 100% { + -webkit-transform: scale(1) translate(0, 0); + transform: scale(1) translate(0, 0); + } +} + +@keyframes kenburnsDown { + 0% { + -webkit-transform: scale(1.5) translate(0, -10%); + transform: scale(1.5) translate(0, -10%); + } + 100% { + -webkit-transform: scale(1) translate(0, 0); + transform: scale(1) translate(0, 0); + } +} + +/*******************************************/ +/* kenburnsLeft animation */ +/*******************************************/ +.vegas-animation-kenburnsLeft { + -webkit-animation: kenburnsLeft ease-out; + animation: kenburnsLeft ease-out; +} + +@-webkit-keyframes kenburnsLeft { + 0% { + -webkit-transform: scale(1.5) translate(10%, 0); + transform: scale(1.5) translate(10%, 0); + } + 100% { + -webkit-transform: scale(1) translate(0, 0); + transform: scale(1) translate(0, 0); + } +} + +@keyframes kenburnsLeft { + 0% { + -webkit-transform: scale(1.5) translate(10%, 0); + transform: scale(1.5) translate(10%, 0); + } + 100% { + -webkit-transform: scale(1) translate(0, 0); + transform: scale(1) translate(0, 0); + } +} + +/*******************************************/ +/* kenburnsRight animation */ +/*******************************************/ +.vegas-animation-kenburnsRight { + -webkit-animation: kenburnsRight ease-out; + animation: kenburnsRight ease-out; +} + +@-webkit-keyframes kenburnsRight { + 0% { + -webkit-transform: scale(1.5) translate(-10%, 0); + transform: scale(1.5) translate(-10%, 0); + } + 100% { + -webkit-transform: scale(1) translate(0, 0); + transform: scale(1) translate(0, 0); + } +} + +@keyframes kenburnsRight { + 0% { + -webkit-transform: scale(1.5) translate(-10%, 0); + transform: scale(1.5) translate(-10%, 0); + } + 100% { + -webkit-transform: scale(1) translate(0, 0); + transform: scale(1) translate(0, 0); + } +} + +/*******************************************/ +/* kenburnsUpLeft animation */ +/*******************************************/ +.vegas-animation-kenburnsUpLeft { + -webkit-animation: kenburnsUpLeft ease-out; + animation: kenburnsUpLeft ease-out; +} + +@-webkit-keyframes kenburnsUpLeft { + 0% { + -webkit-transform: scale(1.5) translate(10%, 10%); + transform: scale(1.5) translate(10%, 10%); + } + 100% { + -webkit-transform: scale(1) translate(0, 0); + transform: scale(1) translate(0, 0); + } +} + +@keyframes kenburnsUpLeft { + 0% { + -webkit-transform: scale(1.5) translate(10%, 10%); + transform: scale(1.5) translate(10%, 10%); + } + 100% { + -webkit-transform: scale(1) translate(0, 0); + transform: scale(1) translate(0, 0); + } +} + +/*******************************************/ +/* kenburnsUpRight animation */ +/*******************************************/ +.vegas-animation-kenburnsUpRight { + -webkit-animation: kenburnsUpRight ease-out; + animation: kenburnsUpRight ease-out; +} + +@-webkit-keyframes kenburnsUpRight { + 0% { + -webkit-transform: scale(1.5) translate(-10%, 10%); + transform: scale(1.5) translate(-10%, 10%); + } + 100% { + -webkit-transform: scale(1) translate(0, 0); + transform: scale(1) translate(0, 0); + } +} + +@keyframes kenburnsUpRight { + 0% { + -webkit-transform: scale(1.5) translate(-10%, 10%); + transform: scale(1.5) translate(-10%, 10%); + } + 100% { + -webkit-transform: scale(1) translate(0, 0); + transform: scale(1) translate(0, 0); + } +} + +/*******************************************/ +/* kenburnsUp animation */ +/*******************************************/ +.vegas-animation-kenburnsUp { + -webkit-animation: kenburnsUp ease-out; + animation: kenburnsUp ease-out; +} + +@-webkit-keyframes kenburnsUp { + 0% { + -webkit-transform: scale(1.5) translate(0, 10%); + transform: scale(1.5) translate(0, 10%); + } + 100% { + -webkit-transform: scale(1) translate(0, 0); + transform: scale(1) translate(0, 0); + } +} + +@keyframes kenburnsUp { + 0% { + -webkit-transform: scale(1.5) translate(0, 10%); + transform: scale(1.5) translate(0, 10%); + } + 100% { + -webkit-transform: scale(1) translate(0, 0); + transform: scale(1) translate(0, 0); + } +} diff --git a/vegas/_js/vegas.js b/vegas/_js/vegas.js new file mode 100644 index 0000000..69346d7 --- /dev/null +++ b/vegas/_js/vegas.js @@ -0,0 +1,751 @@ +/*!----------------------------------------------------------------------------- + * Vegas - Fullscreen Backgrounds and Slideshows. + * v2.4.4 - built 2018-10-30 + * Licensed under the MIT License. + * http://vegas.jaysalvat.com/ + * ---------------------------------------------------------------------------- + * Copyright (C) 2010-2018 Jay Salvat + * http://jaysalvat.com/ + * --------------------------------------------------------------------------*/ + +(function ($) { + 'use strict'; + + var defaults = { + slide: 0, + delay: 5000, + loop: true, + preload: false, + preloadImage: false, + preloadVideo: false, + timer: true, + overlay: false, + autoplay: true, + shuffle: false, + cover: true, + color: null, + align: 'center', + valign: 'center', + firstTransition: null, + firstTransitionDuration: null, + transition: 'fade', + transitionDuration: 1000, + transitionRegister: [], + animation: null, + animationDuration: 'auto', + animationRegister: [], + slidesToKeep: 1, + init: function () {}, + play: function () {}, + pause: function () {}, + walk: function () {}, + slides: [ + // { + // src: null, + // color: null, + // delay: null, + // align: null, + // valign: null, + // transition: null, + // transitionDuration: null, + // animation: null, + // animationDuration: null, + // cover: true, + // video: { + // src: [], + // mute: true, + // loop: true + // } + // ... + ] + }; + + var videoCache = {}; + + var Vegas = function (elmt, options) { + this.elmt = elmt; + this.settings = $.extend({}, defaults, $.vegas.defaults, options); + this.slide = this.settings.slide; + this.total = this.settings.slides.length; + this.noshow = this.total < 2; + this.paused = !this.settings.autoplay || this.noshow; + this.ended = false; + this.$elmt = $(elmt); + this.$timer = null; + this.$overlay = null; + this.$slide = null; + this.timeout = null; + this.first = true; + + this.transitions = [ + 'fade', 'fade2', + 'blur', 'blur2', + 'flash', 'flash2', + 'negative', 'negative2', + 'burn', 'burn2', + 'slideLeft', 'slideLeft2', + 'slideRight', 'slideRight2', + 'slideUp', 'slideUp2', + 'slideDown', 'slideDown2', + 'zoomIn', 'zoomIn2', + 'zoomOut', 'zoomOut2', + 'swirlLeft', 'swirlLeft2', + 'swirlRight', 'swirlRight2' + ]; + + this.animations = [ + 'kenburns', + 'kenburnsLeft', 'kenburnsRight', + 'kenburnsUp', 'kenburnsUpLeft', 'kenburnsUpRight', + 'kenburnsDown', 'kenburnsDownLeft', 'kenburnsDownRight' + ]; + + if (this.settings.transitionRegister instanceof Array === false) { + this.settings.transitionRegister = [ this.settings.transitionRegister ]; + } + + if (this.settings.animationRegister instanceof Array === false) { + this.settings.animationRegister = [ this.settings.animationRegister ]; + } + + this.transitions = this.transitions.concat(this.settings.transitionRegister); + this.animations = this.animations.concat(this.settings.animationRegister); + + this.support = { + objectFit: 'objectFit' in document.body.style, + transition: 'transition' in document.body.style || 'WebkitTransition' in document.body.style, + video: $.vegas.isVideoCompatible() + }; + + if (this.settings.shuffle === true) { + this.shuffle(); + } + + this._init(); + }; + + Vegas.prototype = { + _init: function () { + var $wrapper, + $overlay, + $timer, + isBody = this.elmt.tagName === 'BODY', + timer = this.settings.timer, + overlay = this.settings.overlay, + self = this; + + // Preloading + this._preload(); + + // Wrapper with content + if (!isBody) { + this.$elmt.css('height', this.$elmt.css('height')); + + $wrapper = $('
') + .css('overflow', this.$elmt.css('overflow')) + .css('padding', this.$elmt.css('padding')); + + // Some browsers don't compute padding shorthand + if (!this.$elmt.css('padding')) { + $wrapper + .css('padding-top', this.$elmt.css('padding-top')) + .css('padding-bottom', this.$elmt.css('padding-bottom')) + .css('padding-left', this.$elmt.css('padding-left')) + .css('padding-right', this.$elmt.css('padding-right')); + } + + this.$elmt.clone(true).children().appendTo($wrapper); + this.elmt.innerHTML = ''; + } + + // Timer + if (timer && this.support.transition) { + $timer = $('
'); + this.$timer = $timer; + this.$elmt.prepend($timer); + } + + // Overlay + if (overlay) { + $overlay = $('
'); + + if (typeof overlay === 'string') { + $overlay.css('background-image', 'url(' + overlay + ')'); + } + + this.$overlay = $overlay; + this.$elmt.prepend($overlay); + } + + // Container + this.$elmt.addClass('vegas-container'); + + if (!isBody) { + this.$elmt.append($wrapper); + } + + setTimeout(function () { + self.trigger('init'); + self._goto(self.slide); + + if (self.settings.autoplay) { + self.trigger('play'); + } + }, 1); + }, + + _preload: function () { + var img, i; + + for (i = 0; i < this.settings.slides.length; i++) { + if (this.settings.preload || this.settings.preloadImages) { + if (this.settings.slides[i].src) { + img = new Image(); + img.src = this.settings.slides[i].src; + } + } + + if (this.settings.preload || this.settings.preloadVideos) { + if (this.support.video && this.settings.slides[i].video) { + if (this.settings.slides[i].video instanceof Array) { + this._video(this.settings.slides[i].video); + } else { + this._video(this.settings.slides[i].video.src); + } + } + } + } + }, + + _random: function (array) { + return array[Math.floor(Math.random() * array.length)]; + }, + + _slideShow: function () { + var self = this; + + if (this.total > 1 && !this.ended && !this.paused && !this.noshow) { + this.timeout = setTimeout(function () { + self.next(); + }, this._options('delay')); + } + }, + + _timer: function (state) { + var self = this; + + clearTimeout(this.timeout); + + if (!this.$timer) { + return; + } + + this.$timer + .removeClass('vegas-timer-running') + .find('div') + .css('transition-duration', '0ms'); + + if (this.ended || this.paused || this.noshow) { + return; + } + + if (state) { + setTimeout(function () { + self.$timer + .addClass('vegas-timer-running') + .find('div') + .css('transition-duration', self._options('delay') - 100 + 'ms'); + }, 100); + } + }, + + _video: function (srcs) { + var video, + source, + cacheKey = srcs.toString(); + + if (videoCache[cacheKey]) { + return videoCache[cacheKey]; + } + + if (srcs instanceof Array === false) { + srcs = [ srcs ]; + } + + video = document.createElement('video'); + video.preload = true; + + srcs.forEach(function (src) { + source = document.createElement('source'); + source.src = src; + video.appendChild(source); + }); + + videoCache[cacheKey] = video; + + return video; + }, + + _fadeOutSound: function (video, duration) { + var self = this, + delay = duration / 10, + volume = video.volume - 0.09; + + if (volume > 0) { + video.volume = volume; + + setTimeout(function () { + self._fadeOutSound(video, duration); + }, delay); + } else { + video.pause(); + } + }, + + _fadeInSound: function (video, duration) { + var self = this, + delay = duration / 10, + volume = video.volume + 0.09; + + if (volume < 1) { + video.volume = volume; + + setTimeout(function () { + self._fadeInSound(video, duration); + }, delay); + } + }, + + _options: function (key, i) { + if (i === undefined) { + i = this.slide; + } + + if (this.settings.slides[i][key] !== undefined) { + return this.settings.slides[i][key]; + } + + return this.settings[key]; + }, + + _goto: function (nb) { + if (typeof this.settings.slides[nb] === 'undefined') { + nb = 0; + } + + this.slide = nb; + + var $slide, + $inner, + $video, + $slides = this.$elmt.children('.vegas-slide'), + src = this.settings.slides[nb].src, + videoSettings = this.settings.slides[nb].video, + delay = this._options('delay'), + align = this._options('align'), + valign = this._options('valign'), + cover = this._options('cover'), + color = this._options('color') || this.$elmt.css('background-color'), + self = this, + total = $slides.length, + video, + img; + + var transition = this._options('transition'), + transitionDuration = this._options('transitionDuration'), + animation = this._options('animation'), + animationDuration = this._options('animationDuration'); + + if (this.settings.firstTransition && this.first) { + transition = this.settings.firstTransition || transition; + } + + if (this.settings.firstTransitionDuration && this.first) { + transitionDuration = this.settings.firstTransitionDuration || transitionDuration; + } + + if (this.first) { + this.first = false; + } + + if (cover !== 'repeat') { + if (cover === true) { + cover = 'cover'; + } else if (cover === false) { + cover = 'contain'; + } + } + + if (transition === 'random' || transition instanceof Array) { + if (transition instanceof Array) { + transition = this._random(transition); + } else { + transition = this._random(this.transitions); + } + } + + if (animation === 'random' || animation instanceof Array) { + if (animation instanceof Array) { + animation = this._random(animation); + } else { + animation = this._random(this.animations); + } + } + + if (transitionDuration === 'auto' || transitionDuration > delay) { + transitionDuration = delay; + } + + if (animationDuration === 'auto') { + animationDuration = delay; + } + + $slide = $('
'); + + if (this.support.transition && transition) { + $slide.addClass('vegas-transition-' + transition); + } + + // Video + + if (this.support.video && videoSettings) { + if (videoSettings instanceof Array) { + video = this._video(videoSettings); + } else { + video = this._video(videoSettings.src); + } + + video.loop = videoSettings.loop !== undefined ? videoSettings.loop : true; + video.muted = videoSettings.mute !== undefined ? videoSettings.mute : true; + + if (video.muted === false) { + video.volume = 0; + this._fadeInSound(video, transitionDuration); + } else { + video.pause(); + } + + $video = $(video) + .addClass('vegas-video') + .css('background-color', color); + + if (this.support.objectFit) { + $video + .css('object-position', align + ' ' + valign) + .css('object-fit', cover) + .css('width', '100%') + .css('height', '100%'); + } else if (cover === 'contain') { + $video + .css('width', '100%') + .css('height', '100%'); + } + + $slide.append($video); + + // Image + + } else { + img = new Image(); + + $inner = $('
') + .css('background-image', 'url("' + src + '")') + .css('background-color', color) + .css('background-position', align + ' ' + valign); + + if (cover === 'repeat') { + $inner.css('background-repeat', 'repeat'); + } else { + $inner.css('background-size', cover); + } + + if (this.support.transition && animation) { + $inner + .addClass('vegas-animation-' + animation) + .css('animation-duration', animationDuration + 'ms'); + } + + $slide.append($inner); + } + + if (!this.support.transition) { + $slide.css('display', 'none'); + } + + if (total) { + $slides.eq(total - 1).after($slide); + } else { + this.$elmt.prepend($slide); + } + + $slides + .css('transition', 'all 0ms') + .each(function () { + this.className = 'vegas-slide'; + + if (this.tagName === 'VIDEO') { + this.className += ' vegas-video'; + } + + if (transition) { + this.className += ' vegas-transition-' + transition; + this.className += ' vegas-transition-' + transition + '-in'; + } + } + ); + + self._timer(false); + + function go () { + self._timer(true); + + setTimeout(function () { + if (transition) { + if (self.support.transition) { + $slides + .css('transition', 'all ' + transitionDuration + 'ms') + .addClass('vegas-transition-' + transition + '-out'); + + $slides.each(function () { + var video = $slides.find('video').get(0); + + if (video) { + video.volume = 1; + self._fadeOutSound(video, transitionDuration); + } + }); + + $slide + .css('transition', 'all ' + transitionDuration + 'ms') + .addClass('vegas-transition-' + transition + '-in'); + } else { + $slide.fadeIn(transitionDuration); + } + } + + for (var i = 0; i < $slides.length - self.settings.slidesToKeep; i++) { + $slides.eq(i).remove(); + } + + self.trigger('walk'); + self._slideShow(); + }, 100); + } + if (video) { + if (video.readyState === 4) { + video.currentTime = 0; + } + + video.play(); + go(); + } else { + img.src = src; + + if (img.complete) { + go(); + } else { + img.onload = go; + } + } + }, + + _end: function () { + if (this.settings.autoplay) { + this.ended = false; + } else { + this.ended = true; + } + this._timer(false); + this.trigger('end'); + }, + + shuffle: function () { + var temp, + rand; + + for (var i = this.total - 1; i > 0; i--) { + rand = Math.floor(Math.random() * (i + 1)); + temp = this.settings.slides[i]; + + this.settings.slides[i] = this.settings.slides[rand]; + this.settings.slides[rand] = temp; + } + }, + + play: function () { + if (this.paused) { + this.paused = false; + this.next(); + this.trigger('play'); + } + }, + + pause: function () { + this._timer(false); + this.paused = true; + this.trigger('pause'); + }, + + toggle: function () { + if (this.paused) { + this.play(); + } else { + this.pause(); + } + }, + + playing: function () { + return !this.paused && !this.noshow; + }, + + current: function (advanced) { + if (advanced) { + return { + slide: this.slide, + data: this.settings.slides[this.slide] + }; + } + return this.slide; + }, + + jump: function (nb) { + if (nb < 0 || nb > this.total - 1 || nb === this.slide) { + return; + } + + this.slide = nb; + this._goto(this.slide); + }, + + next: function () { + this.slide++; + + if (this.slide >= this.total) { + if (!this.settings.loop) { + return this._end(); + } + + this.slide = 0; + } + + this._goto(this.slide); + }, + + previous: function () { + this.slide--; + + if (this.slide < 0) { + if (!this.settings.loop) { + this.slide++; + return; + } else { + this.slide = this.total - 1; + } + } + + this._goto(this.slide); + }, + + trigger: function (fn) { + var params = []; + + if (fn === 'init') { + params = [ this.settings ]; + } else { + params = [ + this.slide, + this.settings.slides[this.slide] + ]; + } + + this.$elmt.trigger('vegas' + fn, params); + + if (typeof this.settings[fn] === 'function') { + this.settings[fn].apply(this.$elmt, params); + } + }, + + options: function (key, value) { + var oldSlides = this.settings.slides.slice(); + + if (typeof key === 'object') { + this.settings = $.extend({}, defaults, $.vegas.defaults, key); + } else if (typeof key === 'string') { + if (value === undefined) { + return this.settings[key]; + } + this.settings[key] = value; + } else { + return this.settings; + } + + // In case slides have changed + if (this.settings.slides !== oldSlides) { + this.total = this.settings.slides.length; + this.noshow = this.total < 2; + this._preload(); + } + }, + + destroy: function () { + clearTimeout(this.timeout); + + this.$elmt.removeClass('vegas-container'); + this.$elmt.find('> .vegas-slide').remove(); + this.$elmt.find('> .vegas-wrapper').clone(true).children().appendTo(this.$elmt); + this.$elmt.find('> .vegas-wrapper').remove(); + + if (this.settings.timer) { + this.$timer.remove(); + } + + if (this.settings.overlay) { + this.$overlay.remove(); + } + + this.elmt._vegas = null; + } + }; + + $.fn.vegas = function(options) { + var args = arguments, + error = false, + returns; + + if (options === undefined || typeof options === 'object') { + return this.each(function () { + if (!this._vegas) { + this._vegas = new Vegas(this, options); + } + }); + } else if (typeof options === 'string') { + this.each(function () { + var instance = this._vegas; + + if (!instance) { + throw new Error('No Vegas applied to this element.'); + } + + if (typeof instance[options] === 'function' && options[0] !== '_') { + returns = instance[options].apply(instance, [].slice.call(args, 1)); + } else { + error = true; + } + }); + + if (error) { + throw new Error('No method "' + options + '" in Vegas.'); + } + + return returns !== undefined ? returns : this; + } + }; + + $.vegas = {}; + $.vegas.defaults = defaults; + + $.vegas.isVideoCompatible = function () { + return !/(Android|webOS|Phone|iPad|iPod|BlackBerry|Windows Phone)/i.test(navigator.userAgent); + }; + +})(window.jQuery || window.Zepto); diff --git a/vegas/_js/vegas.min.css b/vegas/_js/vegas.min.css new file mode 100644 index 0000000..4e066a8 --- /dev/null +++ b/vegas/_js/vegas.min.css @@ -0,0 +1,2 @@ +.vegas-overlay,.vegas-slide,.vegas-slide-inner,.vegas-timer,.vegas-wrapper{position:absolute;top:0;left:0;bottom:0;right:0;overflow:hidden;border:none;padding:0;margin:0}.vegas-overlay{opacity:.5;background:url(overlays/02.png) center center}.vegas-timer{top:auto;bottom:0;height:2px}.vegas-timer-progress{width:0;height:100%;background:#fff;transition:width ease-out}.vegas-timer-running .vegas-timer-progress{width:100%}.vegas-slide,.vegas-slide-inner{margin:0;padding:0;background:center center no-repeat;-webkit-transform:translateZ(0);transform:translateZ(0);will-change:transform,opacity}body .vegas-container{overflow:hidden!important;position:relative}.vegas-video{min-width:100%;min-height:100%;width:auto;height:auto}body.vegas-container{overflow:auto;position:static;z-index:-2}body.vegas-container>.vegas-overlay,body.vegas-container>.vegas-slide,body.vegas-container>.vegas-timer{position:fixed;z-index:-1}.vegas-transition-blur,.vegas-transition-blur2{opacity:0;-webkit-filter:blur(32px) brightness(1.01);filter:blur(32px) brightness(1.01)}.vegas-transition-blur-in,.vegas-transition-blur2-in{opacity:1;-webkit-filter:blur(0) brightness(1.01);filter:blur(0) brightness(1.01)}.vegas-transition-blur2-out{opacity:0}.vegas-transition-burn,.vegas-transition-burn2{opacity:0;-webkit-filter:contrast(1000%) saturate(1000%);filter:contrast(1000%) saturate(1000%)}.vegas-transition-burn-in,.vegas-transition-burn2-in{opacity:1;-webkit-filter:contrast(100%) saturate(100%);filter:contrast(100%) saturate(100%)}.vegas-transition-burn2-out{opacity:0;-webkit-filter:contrast(1000%) saturate(1000%);filter:contrast(1000%) saturate(1000%)}.vegas-transition-fade,.vegas-transition-fade2{opacity:0}.vegas-transition-fade-in,.vegas-transition-fade2-in{opacity:1}.vegas-transition-fade2-out{opacity:0}.vegas-transition-flash,.vegas-transition-flash2{opacity:0;-webkit-filter:brightness(25);filter:brightness(25)}.vegas-transition-flash-in,.vegas-transition-flash2-in{opacity:1;-webkit-filter:brightness(1);filter:brightness(1)}.vegas-transition-flash2-out{opacity:0;-webkit-filter:brightness(25);filter:brightness(25)}.vegas-transition-negative,.vegas-transition-negative2{opacity:0;-webkit-filter:invert(100%);filter:invert(100%)}.vegas-transition-negative-in,.vegas-transition-negative2-in{opacity:1;-webkit-filter:invert(0);filter:invert(0)}.vegas-transition-negative2-out{opacity:0;-webkit-filter:invert(100%);filter:invert(100%)}.vegas-transition-slideDown,.vegas-transition-slideDown2{-webkit-transform:translateY(-100%);transform:translateY(-100%)}.vegas-transition-slideDown-in,.vegas-transition-slideDown2-in{-webkit-transform:translateY(0);transform:translateY(0)}.vegas-transition-slideDown2-out{-webkit-transform:translateY(100%);transform:translateY(100%)}.vegas-transition-slideLeft,.vegas-transition-slideLeft2{-webkit-transform:translateX(100%);transform:translateX(100%)}.vegas-transition-slideLeft-in,.vegas-transition-slideLeft2-in{-webkit-transform:translateX(0);transform:translateX(0)}.vegas-transition-slideLeft2-out,.vegas-transition-slideRight,.vegas-transition-slideRight2{-webkit-transform:translateX(-100%);transform:translateX(-100%)}.vegas-transition-slideRight-in,.vegas-transition-slideRight2-in{-webkit-transform:translateX(0);transform:translateX(0)}.vegas-transition-slideRight2-out{-webkit-transform:translateX(100%);transform:translateX(100%)}.vegas-transition-slideUp,.vegas-transition-slideUp2{-webkit-transform:translateY(100%);transform:translateY(100%)}.vegas-transition-slideUp-in,.vegas-transition-slideUp2-in{-webkit-transform:translateY(0);transform:translateY(0)}.vegas-transition-slideUp2-out{-webkit-transform:translateY(-100%);transform:translateY(-100%)}.vegas-transition-swirlLeft,.vegas-transition-swirlLeft2{-webkit-transform:scale(2) rotate(35deg);transform:scale(2) rotate(35deg);opacity:0}.vegas-transition-swirlLeft-in,.vegas-transition-swirlLeft2-in{-webkit-transform:scale(1) rotate(0);transform:scale(1) rotate(0);opacity:1}.vegas-transition-swirlLeft2-out,.vegas-transition-swirlRight,.vegas-transition-swirlRight2{-webkit-transform:scale(2) rotate(-35deg);transform:scale(2) rotate(-35deg);opacity:0}.vegas-transition-swirlRight-in,.vegas-transition-swirlRight2-in{-webkit-transform:scale(1) rotate(0);transform:scale(1) rotate(0);opacity:1}.vegas-transition-swirlRight2-out{-webkit-transform:scale(2) rotate(35deg);transform:scale(2) rotate(35deg);opacity:0}.vegas-transition-zoomIn,.vegas-transition-zoomIn2{-webkit-transform:scale(0);transform:scale(0);opacity:0}.vegas-transition-zoomIn-in,.vegas-transition-zoomIn2-in{-webkit-transform:scale(1);transform:scale(1);opacity:1}.vegas-transition-zoomIn2-out,.vegas-transition-zoomOut,.vegas-transition-zoomOut2{-webkit-transform:scale(2);transform:scale(2);opacity:0}.vegas-transition-zoomOut-in,.vegas-transition-zoomOut2-in{-webkit-transform:scale(1);transform:scale(1);opacity:1}.vegas-transition-zoomOut2-out{-webkit-transform:scale(0);transform:scale(0);opacity:0}.vegas-animation-kenburns{-webkit-animation:kenburns ease-out;animation:kenburns ease-out}@-webkit-keyframes kenburns{0%{-webkit-transform:scale(1.5);transform:scale(1.5)}100%{-webkit-transform:scale(1);transform:scale(1)}}@keyframes kenburns{0%{-webkit-transform:scale(1.5);transform:scale(1.5)}100%{-webkit-transform:scale(1);transform:scale(1)}}.vegas-animation-kenburnsDownLeft{-webkit-animation:kenburnsDownLeft ease-out;animation:kenburnsDownLeft ease-out}@-webkit-keyframes kenburnsDownLeft{0%{-webkit-transform:scale(1.5) translate(10%,-10%);transform:scale(1.5) translate(10%,-10%)}100%{-webkit-transform:scale(1) translate(0,0);transform:scale(1) translate(0,0)}}@keyframes kenburnsDownLeft{0%{-webkit-transform:scale(1.5) translate(10%,-10%);transform:scale(1.5) translate(10%,-10%)}100%{-webkit-transform:scale(1) translate(0,0);transform:scale(1) translate(0,0)}}.vegas-animation-kenburnsDownRight{-webkit-animation:kenburnsDownRight ease-out;animation:kenburnsDownRight ease-out}@-webkit-keyframes kenburnsDownRight{0%{-webkit-transform:scale(1.5) translate(-10%,-10%);transform:scale(1.5) translate(-10%,-10%)}100%{-webkit-transform:scale(1) translate(0,0);transform:scale(1) translate(0,0)}}@keyframes kenburnsDownRight{0%{-webkit-transform:scale(1.5) translate(-10%,-10%);transform:scale(1.5) translate(-10%,-10%)}100%{-webkit-transform:scale(1) translate(0,0);transform:scale(1) translate(0,0)}}.vegas-animation-kenburnsDown{-webkit-animation:kenburnsDown ease-out;animation:kenburnsDown ease-out}@-webkit-keyframes kenburnsDown{0%{-webkit-transform:scale(1.5) translate(0,-10%);transform:scale(1.5) translate(0,-10%)}100%{-webkit-transform:scale(1) translate(0,0);transform:scale(1) translate(0,0)}}@keyframes kenburnsDown{0%{-webkit-transform:scale(1.5) translate(0,-10%);transform:scale(1.5) translate(0,-10%)}100%{-webkit-transform:scale(1) translate(0,0);transform:scale(1) translate(0,0)}}.vegas-animation-kenburnsLeft{-webkit-animation:kenburnsLeft ease-out;animation:kenburnsLeft ease-out}@-webkit-keyframes kenburnsLeft{0%{-webkit-transform:scale(1.5) translate(10%,0);transform:scale(1.5) translate(10%,0)}100%{-webkit-transform:scale(1) translate(0,0);transform:scale(1) translate(0,0)}}@keyframes kenburnsLeft{0%{-webkit-transform:scale(1.5) translate(10%,0);transform:scale(1.5) translate(10%,0)}100%{-webkit-transform:scale(1) translate(0,0);transform:scale(1) translate(0,0)}}.vegas-animation-kenburnsRight{-webkit-animation:kenburnsRight ease-out;animation:kenburnsRight ease-out}@-webkit-keyframes kenburnsRight{0%{-webkit-transform:scale(1.5) translate(-10%,0);transform:scale(1.5) translate(-10%,0)}100%{-webkit-transform:scale(1) translate(0,0);transform:scale(1) translate(0,0)}}@keyframes kenburnsRight{0%{-webkit-transform:scale(1.5) translate(-10%,0);transform:scale(1.5) translate(-10%,0)}100%{-webkit-transform:scale(1) translate(0,0);transform:scale(1) translate(0,0)}}.vegas-animation-kenburnsUpLeft{-webkit-animation:kenburnsUpLeft ease-out;animation:kenburnsUpLeft ease-out}@-webkit-keyframes kenburnsUpLeft{0%{-webkit-transform:scale(1.5) translate(10%,10%);transform:scale(1.5) translate(10%,10%)}100%{-webkit-transform:scale(1) translate(0,0);transform:scale(1) translate(0,0)}}@keyframes kenburnsUpLeft{0%{-webkit-transform:scale(1.5) translate(10%,10%);transform:scale(1.5) translate(10%,10%)}100%{-webkit-transform:scale(1) translate(0,0);transform:scale(1) translate(0,0)}}.vegas-animation-kenburnsUpRight{-webkit-animation:kenburnsUpRight ease-out;animation:kenburnsUpRight ease-out}@-webkit-keyframes kenburnsUpRight{0%{-webkit-transform:scale(1.5) translate(-10%,10%);transform:scale(1.5) translate(-10%,10%)}100%{-webkit-transform:scale(1) translate(0,0);transform:scale(1) translate(0,0)}}@keyframes kenburnsUpRight{0%{-webkit-transform:scale(1.5) translate(-10%,10%);transform:scale(1.5) translate(-10%,10%)}100%{-webkit-transform:scale(1) translate(0,0);transform:scale(1) translate(0,0)}}.vegas-animation-kenburnsUp{-webkit-animation:kenburnsUp ease-out;animation:kenburnsUp ease-out}@-webkit-keyframes kenburnsUp{0%{-webkit-transform:scale(1.5) translate(0,10%);transform:scale(1.5) translate(0,10%)}100%{-webkit-transform:scale(1) translate(0,0);transform:scale(1) translate(0,0)}}@keyframes kenburnsUp{0%{-webkit-transform:scale(1.5) translate(0,10%);transform:scale(1.5) translate(0,10%)}100%{-webkit-transform:scale(1) translate(0,0);transform:scale(1) translate(0,0)}} +/*# sourceMappingURL=vegas.min.css.map */ diff --git a/vegas/_js/vegas.min.css.map b/vegas/_js/vegas.min.css.map new file mode 100644 index 0000000..4d79a12 --- /dev/null +++ b/vegas/_js/vegas.min.css.map @@ -0,0 +1 @@ +{"version":3,"names":[],"mappings":"","sources":["vegas.css"],"sourcesContent":[".vegas-wrapper,\n.vegas-overlay,\n.vegas-timer,\n.vegas-slide,\n.vegas-slide-inner {\n position: absolute;\n top: 0;\n left: 0;\n bottom: 0;\n right: 0;\n overflow: hidden;\n border: none;\n padding: 0;\n margin: 0;\n}\n\n.vegas-overlay {\n opacity: .5;\n background: transparent url(\"overlays/02.png\") center center repeat;\n}\n\n.vegas-timer {\n top: auto;\n bottom: 0;\n height: 2px;\n}\n\n.vegas-timer-progress {\n width: 0%;\n height: 100%;\n background: white;\n transition: width ease-out;\n}\n\n.vegas-timer-running .vegas-timer-progress {\n width: 100%;\n}\n\n.vegas-slide,\n.vegas-slide-inner {\n margin: 0;\n padding: 0;\n background: transparent center center no-repeat;\n -webkit-transform: translateZ(0);\n transform: translateZ(0);\n will-change: transform, opacity;\n}\n\nbody .vegas-container {\n overflow: hidden !important;\n position: relative;\n}\n\n.vegas-video {\n min-width: 100%;\n min-height: 100%;\n width: auto;\n height: auto;\n}\n\nbody.vegas-container {\n overflow: auto;\n position: static;\n z-index: -2;\n}\n\nbody.vegas-container > .vegas-timer,\nbody.vegas-container > .vegas-overlay,\nbody.vegas-container > .vegas-slide {\n position: fixed;\n z-index: -1;\n}\n\n/* Target Safari IOS7+ in order to add 76px */\n/*******************************************/\n/* blur transition */\n/*******************************************/\n.vegas-transition-blur,\n.vegas-transition-blur2 {\n opacity: 0;\n -webkit-filter: blur(32px) brightness(1.01);\n filter: blur(32px) brightness(1.01);\n}\n\n.vegas-transition-blur-in,\n.vegas-transition-blur2-in {\n opacity: 1;\n -webkit-filter: blur(0px) brightness(1.01);\n filter: blur(0px) brightness(1.01);\n}\n\n.vegas-transition-blur2-out {\n opacity: 0;\n}\n\n/*******************************************/\n/* burn transition */\n/*******************************************/\n.vegas-transition-burn,\n.vegas-transition-burn2 {\n opacity: 0;\n -webkit-filter: contrast(1000%) saturate(1000%);\n filter: contrast(1000%) saturate(1000%);\n}\n\n.vegas-transition-burn-in,\n.vegas-transition-burn2-in {\n opacity: 1;\n -webkit-filter: contrast(100%) saturate(100%);\n filter: contrast(100%) saturate(100%);\n}\n\n.vegas-transition-burn2-out {\n opacity: 0;\n -webkit-filter: contrast(1000%) saturate(1000%);\n filter: contrast(1000%) saturate(1000%);\n}\n\n/*******************************************/\n/* fade transition */\n/*******************************************/\n.vegas-transition-fade,\n.vegas-transition-fade2 {\n opacity: 0;\n}\n\n.vegas-transition-fade-in,\n.vegas-transition-fade2-in {\n opacity: 1;\n}\n\n.vegas-transition-fade2-out {\n opacity: 0;\n}\n\n/*******************************************/\n/* flash transition */\n/*******************************************/\n.vegas-transition-flash,\n.vegas-transition-flash2 {\n opacity: 0;\n -webkit-filter: brightness(25);\n filter: brightness(25);\n}\n\n.vegas-transition-flash-in,\n.vegas-transition-flash2-in {\n opacity: 1;\n -webkit-filter: brightness(1);\n filter: brightness(1);\n}\n\n.vegas-transition-flash2-out {\n opacity: 0;\n -webkit-filter: brightness(25);\n filter: brightness(25);\n}\n\n/*******************************************/\n/* negative transition */\n/*******************************************/\n.vegas-transition-negative,\n.vegas-transition-negative2 {\n opacity: 0;\n -webkit-filter: invert(100%);\n filter: invert(100%);\n}\n\n.vegas-transition-negative-in,\n.vegas-transition-negative2-in {\n opacity: 1;\n -webkit-filter: invert(0);\n filter: invert(0);\n}\n\n.vegas-transition-negative2-out {\n opacity: 0;\n -webkit-filter: invert(100%);\n filter: invert(100%);\n}\n\n/*******************************************/\n/* slideDown transition */\n/*******************************************/\n.vegas-transition-slideDown,\n.vegas-transition-slideDown2 {\n -webkit-transform: translateY(-100%);\n transform: translateY(-100%);\n}\n\n.vegas-transition-slideDown-in,\n.vegas-transition-slideDown2-in {\n -webkit-transform: translateY(0%);\n transform: translateY(0%);\n}\n\n.vegas-transition-slideDown2-out {\n -webkit-transform: translateY(100%);\n transform: translateY(100%);\n}\n\n/*******************************************/\n/* slideLeft transition */\n/*******************************************/\n.vegas-transition-slideLeft,\n.vegas-transition-slideLeft2 {\n -webkit-transform: translateX(100%);\n transform: translateX(100%);\n}\n\n.vegas-transition-slideLeft-in,\n.vegas-transition-slideLeft2-in {\n -webkit-transform: translateX(0%);\n transform: translateX(0%);\n}\n\n.vegas-transition-slideLeft2-out {\n -webkit-transform: translateX(-100%);\n transform: translateX(-100%);\n}\n\n/*******************************************/\n/* slideRight transition */\n/*******************************************/\n.vegas-transition-slideRight,\n.vegas-transition-slideRight2 {\n -webkit-transform: translateX(-100%);\n transform: translateX(-100%);\n}\n\n.vegas-transition-slideRight-in,\n.vegas-transition-slideRight2-in {\n -webkit-transform: translateX(0%);\n transform: translateX(0%);\n}\n\n.vegas-transition-slideRight2-out {\n -webkit-transform: translateX(100%);\n transform: translateX(100%);\n}\n\n/*******************************************/\n/* slideUp transition */\n/*******************************************/\n.vegas-transition-slideUp,\n.vegas-transition-slideUp2 {\n -webkit-transform: translateY(100%);\n transform: translateY(100%);\n}\n\n.vegas-transition-slideUp-in,\n.vegas-transition-slideUp2-in {\n -webkit-transform: translateY(0%);\n transform: translateY(0%);\n}\n\n.vegas-transition-slideUp2-out {\n -webkit-transform: translateY(-100%);\n transform: translateY(-100%);\n}\n\n/*******************************************/\n/* swirlLeft transition */\n/*******************************************/\n.vegas-transition-swirlLeft,\n.vegas-transition-swirlLeft2 {\n -webkit-transform: scale(2) rotate(35deg);\n transform: scale(2) rotate(35deg);\n opacity: 0;\n}\n\n.vegas-transition-swirlLeft-in,\n.vegas-transition-swirlLeft2-in {\n -webkit-transform: scale(1) rotate(0deg);\n transform: scale(1) rotate(0deg);\n opacity: 1;\n}\n\n.vegas-transition-swirlLeft2-out {\n -webkit-transform: scale(2) rotate(-35deg);\n transform: scale(2) rotate(-35deg);\n opacity: 0;\n}\n\n/*******************************************/\n/* swirlRight transition */\n/*******************************************/\n.vegas-transition-swirlRight,\n.vegas-transition-swirlRight2 {\n -webkit-transform: scale(2) rotate(-35deg);\n transform: scale(2) rotate(-35deg);\n opacity: 0;\n}\n\n.vegas-transition-swirlRight-in,\n.vegas-transition-swirlRight2-in {\n -webkit-transform: scale(1) rotate(0deg);\n transform: scale(1) rotate(0deg);\n opacity: 1;\n}\n\n.vegas-transition-swirlRight2-out {\n -webkit-transform: scale(2) rotate(35deg);\n transform: scale(2) rotate(35deg);\n opacity: 0;\n}\n\n/*******************************************/\n/* zoomIn transition */\n/*******************************************/\n.vegas-transition-zoomIn,\n.vegas-transition-zoomIn2 {\n -webkit-transform: scale(0);\n transform: scale(0);\n opacity: 0;\n}\n\n.vegas-transition-zoomIn-in,\n.vegas-transition-zoomIn2-in {\n -webkit-transform: scale(1);\n transform: scale(1);\n opacity: 1;\n}\n\n.vegas-transition-zoomIn2-out {\n -webkit-transform: scale(2);\n transform: scale(2);\n opacity: 0;\n}\n\n/*******************************************/\n/* zoomOut transition */\n/*******************************************/\n.vegas-transition-zoomOut,\n.vegas-transition-zoomOut2 {\n -webkit-transform: scale(2);\n transform: scale(2);\n opacity: 0;\n}\n\n.vegas-transition-zoomOut-in,\n.vegas-transition-zoomOut2-in {\n -webkit-transform: scale(1);\n transform: scale(1);\n opacity: 1;\n}\n\n.vegas-transition-zoomOut2-out {\n -webkit-transform: scale(0);\n transform: scale(0);\n opacity: 0;\n}\n\n/*******************************************/\n/* kenburns animation */\n/*******************************************/\n.vegas-animation-kenburns {\n -webkit-animation: kenburns ease-out;\n animation: kenburns ease-out;\n}\n\n@-webkit-keyframes kenburns {\n 0% {\n -webkit-transform: scale(1.5);\n transform: scale(1.5);\n }\n 100% {\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n}\n\n@keyframes kenburns {\n 0% {\n -webkit-transform: scale(1.5);\n transform: scale(1.5);\n }\n 100% {\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n}\n\n/*******************************************/\n/* kenburnsDownLeft animation */\n/*******************************************/\n.vegas-animation-kenburnsDownLeft {\n -webkit-animation: kenburnsDownLeft ease-out;\n animation: kenburnsDownLeft ease-out;\n}\n\n@-webkit-keyframes kenburnsDownLeft {\n 0% {\n -webkit-transform: scale(1.5) translate(10%, -10%);\n transform: scale(1.5) translate(10%, -10%);\n }\n 100% {\n -webkit-transform: scale(1) translate(0, 0);\n transform: scale(1) translate(0, 0);\n }\n}\n\n@keyframes kenburnsDownLeft {\n 0% {\n -webkit-transform: scale(1.5) translate(10%, -10%);\n transform: scale(1.5) translate(10%, -10%);\n }\n 100% {\n -webkit-transform: scale(1) translate(0, 0);\n transform: scale(1) translate(0, 0);\n }\n}\n\n/*******************************************/\n/* kenburnsDownRight animation */\n/*******************************************/\n.vegas-animation-kenburnsDownRight {\n -webkit-animation: kenburnsDownRight ease-out;\n animation: kenburnsDownRight ease-out;\n}\n\n@-webkit-keyframes kenburnsDownRight {\n 0% {\n -webkit-transform: scale(1.5) translate(-10%, -10%);\n transform: scale(1.5) translate(-10%, -10%);\n }\n 100% {\n -webkit-transform: scale(1) translate(0, 0);\n transform: scale(1) translate(0, 0);\n }\n}\n\n@keyframes kenburnsDownRight {\n 0% {\n -webkit-transform: scale(1.5) translate(-10%, -10%);\n transform: scale(1.5) translate(-10%, -10%);\n }\n 100% {\n -webkit-transform: scale(1) translate(0, 0);\n transform: scale(1) translate(0, 0);\n }\n}\n\n/*******************************************/\n/* kenburnsDown animation */\n/*******************************************/\n.vegas-animation-kenburnsDown {\n -webkit-animation: kenburnsDown ease-out;\n animation: kenburnsDown ease-out;\n}\n\n@-webkit-keyframes kenburnsDown {\n 0% {\n -webkit-transform: scale(1.5) translate(0, -10%);\n transform: scale(1.5) translate(0, -10%);\n }\n 100% {\n -webkit-transform: scale(1) translate(0, 0);\n transform: scale(1) translate(0, 0);\n }\n}\n\n@keyframes kenburnsDown {\n 0% {\n -webkit-transform: scale(1.5) translate(0, -10%);\n transform: scale(1.5) translate(0, -10%);\n }\n 100% {\n -webkit-transform: scale(1) translate(0, 0);\n transform: scale(1) translate(0, 0);\n }\n}\n\n/*******************************************/\n/* kenburnsLeft animation */\n/*******************************************/\n.vegas-animation-kenburnsLeft {\n -webkit-animation: kenburnsLeft ease-out;\n animation: kenburnsLeft ease-out;\n}\n\n@-webkit-keyframes kenburnsLeft {\n 0% {\n -webkit-transform: scale(1.5) translate(10%, 0);\n transform: scale(1.5) translate(10%, 0);\n }\n 100% {\n -webkit-transform: scale(1) translate(0, 0);\n transform: scale(1) translate(0, 0);\n }\n}\n\n@keyframes kenburnsLeft {\n 0% {\n -webkit-transform: scale(1.5) translate(10%, 0);\n transform: scale(1.5) translate(10%, 0);\n }\n 100% {\n -webkit-transform: scale(1) translate(0, 0);\n transform: scale(1) translate(0, 0);\n }\n}\n\n/*******************************************/\n/* kenburnsRight animation */\n/*******************************************/\n.vegas-animation-kenburnsRight {\n -webkit-animation: kenburnsRight ease-out;\n animation: kenburnsRight ease-out;\n}\n\n@-webkit-keyframes kenburnsRight {\n 0% {\n -webkit-transform: scale(1.5) translate(-10%, 0);\n transform: scale(1.5) translate(-10%, 0);\n }\n 100% {\n -webkit-transform: scale(1) translate(0, 0);\n transform: scale(1) translate(0, 0);\n }\n}\n\n@keyframes kenburnsRight {\n 0% {\n -webkit-transform: scale(1.5) translate(-10%, 0);\n transform: scale(1.5) translate(-10%, 0);\n }\n 100% {\n -webkit-transform: scale(1) translate(0, 0);\n transform: scale(1) translate(0, 0);\n }\n}\n\n/*******************************************/\n/* kenburnsUpLeft animation */\n/*******************************************/\n.vegas-animation-kenburnsUpLeft {\n -webkit-animation: kenburnsUpLeft ease-out;\n animation: kenburnsUpLeft ease-out;\n}\n\n@-webkit-keyframes kenburnsUpLeft {\n 0% {\n -webkit-transform: scale(1.5) translate(10%, 10%);\n transform: scale(1.5) translate(10%, 10%);\n }\n 100% {\n -webkit-transform: scale(1) translate(0, 0);\n transform: scale(1) translate(0, 0);\n }\n}\n\n@keyframes kenburnsUpLeft {\n 0% {\n -webkit-transform: scale(1.5) translate(10%, 10%);\n transform: scale(1.5) translate(10%, 10%);\n }\n 100% {\n -webkit-transform: scale(1) translate(0, 0);\n transform: scale(1) translate(0, 0);\n }\n}\n\n/*******************************************/\n/* kenburnsUpRight animation */\n/*******************************************/\n.vegas-animation-kenburnsUpRight {\n -webkit-animation: kenburnsUpRight ease-out;\n animation: kenburnsUpRight ease-out;\n}\n\n@-webkit-keyframes kenburnsUpRight {\n 0% {\n -webkit-transform: scale(1.5) translate(-10%, 10%);\n transform: scale(1.5) translate(-10%, 10%);\n }\n 100% {\n -webkit-transform: scale(1) translate(0, 0);\n transform: scale(1) translate(0, 0);\n }\n}\n\n@keyframes kenburnsUpRight {\n 0% {\n -webkit-transform: scale(1.5) translate(-10%, 10%);\n transform: scale(1.5) translate(-10%, 10%);\n }\n 100% {\n -webkit-transform: scale(1) translate(0, 0);\n transform: scale(1) translate(0, 0);\n }\n}\n\n/*******************************************/\n/* kenburnsUp animation */\n/*******************************************/\n.vegas-animation-kenburnsUp {\n -webkit-animation: kenburnsUp ease-out;\n animation: kenburnsUp ease-out;\n}\n\n@-webkit-keyframes kenburnsUp {\n 0% {\n -webkit-transform: scale(1.5) translate(0, 10%);\n transform: scale(1.5) translate(0, 10%);\n }\n 100% {\n -webkit-transform: scale(1) translate(0, 0);\n transform: scale(1) translate(0, 0);\n }\n}\n\n@keyframes kenburnsUp {\n 0% {\n -webkit-transform: scale(1.5) translate(0, 10%);\n transform: scale(1.5) translate(0, 10%);\n }\n 100% {\n -webkit-transform: scale(1) translate(0, 0);\n transform: scale(1) translate(0, 0);\n }\n}\n"],"file":"vegas.min.css"} \ No newline at end of file diff --git a/vegas/_js/vegas.min.js b/vegas/_js/vegas.min.js new file mode 100644 index 0000000..8d1fd38 --- /dev/null +++ b/vegas/_js/vegas.min.js @@ -0,0 +1,11 @@ +/*!----------------------------------------------------------------------------- + * Vegas - Fullscreen Backgrounds and Slideshows. + * v2.4.4 - built 2018-10-30 + * Licensed under the MIT License. + * http://vegas.jaysalvat.com/ + * ---------------------------------------------------------------------------- + * Copyright (C) 2010-2018 Jay Salvat + * http://jaysalvat.com/ + * --------------------------------------------------------------------------*/ +!function(b){"use strict";var e={slide:0,delay:5e3,loop:!0,preload:!1,preloadImage:!1,preloadVideo:!1,timer:!0,overlay:!1,autoplay:!0,shuffle:!1,cover:!0,color:null,align:"center",valign:"center",firstTransition:null,firstTransitionDuration:null,transition:"fade",transitionDuration:1e3,transitionRegister:[],animation:null,animationDuration:"auto",animationRegister:[],slidesToKeep:1,init:function(){},play:function(){},pause:function(){},walk:function(){},slides:[]},n={},t=function(t,s){this.elmt=t,this.settings=b.extend({},e,b.vegas.defaults,s),this.slide=this.settings.slide,this.total=this.settings.slides.length,this.noshow=this.total<2,this.paused=!this.settings.autoplay||this.noshow,this.ended=!1,this.$elmt=b(t),this.$timer=null,this.$overlay=null,this.$slide=null,this.timeout=null,this.first=!0,this.transitions=["fade","fade2","blur","blur2","flash","flash2","negative","negative2","burn","burn2","slideLeft","slideLeft2","slideRight","slideRight2","slideUp","slideUp2","slideDown","slideDown2","zoomIn","zoomIn2","zoomOut","zoomOut2","swirlLeft","swirlLeft2","swirlRight","swirlRight2"],this.animations=["kenburns","kenburnsLeft","kenburnsRight","kenburnsUp","kenburnsUpLeft","kenburnsUpRight","kenburnsDown","kenburnsDownLeft","kenburnsDownRight"],this.settings.transitionRegister instanceof Array==!1&&(this.settings.transitionRegister=[this.settings.transitionRegister]),this.settings.animationRegister instanceof Array==!1&&(this.settings.animationRegister=[this.settings.animationRegister]),this.transitions=this.transitions.concat(this.settings.transitionRegister),this.animations=this.animations.concat(this.settings.animationRegister),this.support={objectFit:"objectFit"in document.body.style,transition:"transition"in document.body.style||"WebkitTransition"in document.body.style,video:b.vegas.isVideoCompatible()},!0===this.settings.shuffle&&this.shuffle(),this._init()};t.prototype={_init:function(){var t,s,i,e="BODY"===this.elmt.tagName,n=this.settings.timer,o=this.settings.overlay,a=this;this._preload(),e||(this.$elmt.css("height",this.$elmt.css("height")),t=b('
').css("overflow",this.$elmt.css("overflow")).css("padding",this.$elmt.css("padding")),this.$elmt.css("padding")||t.css("padding-top",this.$elmt.css("padding-top")).css("padding-bottom",this.$elmt.css("padding-bottom")).css("padding-left",this.$elmt.css("padding-left")).css("padding-right",this.$elmt.css("padding-right")),this.$elmt.clone(!0).children().appendTo(t),this.elmt.innerHTML=""),n&&this.support.transition&&(i=b('
'),this.$timer=i,this.$elmt.prepend(i)),o&&(s=b('
'),"string"==typeof o&&s.css("background-image","url("+o+")"),this.$overlay=s,this.$elmt.prepend(s)),this.$elmt.addClass("vegas-container"),e||this.$elmt.append(t),setTimeout(function(){a.trigger("init"),a._goto(a.slide),a.settings.autoplay&&a.trigger("play")},1)},_preload:function(){var t;for(t=0;t
'),this.support.transition&&f&&s.addClass("vegas-transition-"+f),this.support.video&&h?((n=h instanceof Array?this._video(h):this._video(h.src)).loop=void 0===h.loop||h.loop,n.muted=void 0===h.mute||h.mute,!1===n.muted?(n.volume=0,this._fadeInSound(n,v)):n.pause(),e=b(n).addClass("vegas-video").css("background-color",c),this.support.objectFit?e.css("object-position",l+" "+g).css("object-fit",u).css("width","100%").css("height","100%"):"contain"===u&&e.css("width","100%").css("height","100%"),s.append(e)):(o=new Image,i=b('
').css("background-image",'url("'+r+'")').css("background-color",c).css("background-position",l+" "+g),"repeat"===u?i.css("background-repeat","repeat"):i.css("background-size",u),this.support.transition&&y&&i.addClass("vegas-animation-"+y).css("animation-duration",_+"ms"),s.append(i)),this.support.transition||s.css("display","none"),m?a.eq(m-1).after(s):this.$elmt.prepend(s),a.css("transition","all 0ms").each(function(){this.className="vegas-slide","VIDEO"===this.tagName&&(this.className+=" vegas-video"),f&&(this.className+=" vegas-transition-"+f,this.className+=" vegas-transition-"+f+"-in")}),p._timer(!1),n?(4===n.readyState&&(n.currentTime=0),n.play(),w()):(o.src=r,o.complete?w():o.onload=w)},_end:function(){this.settings.autoplay?this.ended=!1:this.ended=!0,this._timer(!1),this.trigger("end")},shuffle:function(){for(var t,s,i=this.total-1;0this.total-1||t===this.slide||(this.slide=t,this._goto(this.slide))},next:function(){if(this.slide++,this.slide>=this.total){if(!this.settings.loop)return this._end();this.slide=0}this._goto(this.slide)},previous:function(){if(this.slide--,this.slide<0){if(!this.settings.loop)return void this.slide++;this.slide=this.total-1}this._goto(this.slide)},trigger:function(t){var s=[];s="init"===t?[this.settings]:[this.slide,this.settings.slides[this.slide]],this.$elmt.trigger("vegas"+t,s),"function"==typeof this.settings[t]&&this.settings[t].apply(this.$elmt,s)},options:function(t,s){var i=this.settings.slides.slice();if("object"==typeof t)this.settings=b.extend({},e,b.vegas.defaults,t);else{if("string"!=typeof t)return this.settings;if(void 0===s)return this.settings[t];this.settings[t]=s}this.settings.slides!==i&&(this.total=this.settings.slides.length,this.noshow=this.total<2,this._preload())},destroy:function(){clearTimeout(this.timeout),this.$elmt.removeClass("vegas-container"),this.$elmt.find("> .vegas-slide").remove(),this.$elmt.find("> .vegas-wrapper").clone(!0).children().appendTo(this.$elmt),this.$elmt.find("> .vegas-wrapper").remove(),this.settings.timer&&this.$timer.remove(),this.settings.overlay&&this.$overlay.remove(),this.elmt._vegas=null}},b.fn.vegas=function(s){var i,e=arguments,n=!1;if(void 0===s||"object"==typeof s)return this.each(function(){this._vegas||(this._vegas=new t(this,s))});if("string"==typeof s){if(this.each(function(){var t=this._vegas;if(!t)throw new Error("No Vegas applied to this element.");"function"==typeof t[s]&&"_"!==s[0]?i=t[s].apply(t,[].slice.call(e,1)):n=!0}),n)throw new Error('No method "'+s+'" in Vegas.');return void 0!==i?i:this}},b.vegas={},b.vegas.defaults=e,b.vegas.isVideoCompatible=function(){return!/(Android|webOS|Phone|iPad|iPod|BlackBerry|Windows Phone)/i.test(navigator.userAgent)}}(window.jQuery||window.Zepto); +//# sourceMappingURL=vegas.min.js.map diff --git a/vegas/_js/vegas.min.js.map b/vegas/_js/vegas.min.js.map new file mode 100644 index 0000000..a1bb0dc --- /dev/null +++ b/vegas/_js/vegas.min.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["vegas.min.js"],"names":["$","defaults","slide","delay","loop","preload","preloadImage","preloadVideo","timer","overlay","autoplay","shuffle","cover","color","align","valign","firstTransition","firstTransitionDuration","transition","transitionDuration","transitionRegister","animation","animationDuration","animationRegister","slidesToKeep","init","play","pause","walk","slides","videoCache","Vegas","elmt","options","this","settings","extend","vegas","total","length","noshow","paused","ended","$elmt","$timer","$overlay","$slide","timeout","first","transitions","animations","Array","concat","support","objectFit","document","body","style","video","isVideoCompatible","_init","prototype","$wrapper","isBody","tagName","self","_preload","css","clone","children","appendTo","innerHTML","prepend","addClass","append","setTimeout","trigger","_goto","i","preloadImages","src","Image","preloadVideos","_video","_random","array","Math","floor","random","_slideShow","next","_options","_timer","state","clearTimeout","removeClass","find","srcs","source","cacheKey","toString","createElement","forEach","appendChild","_fadeOutSound","duration","volume","_fadeInSound","key","undefined","nb","$inner","$video","img","$slides","videoSettings","go","each","get","fadeIn","eq","remove","muted","mute","after","className","readyState","currentTime","complete","onload","_end","temp","rand","toggle","playing","current","advanced","data","jump","previous","fn","params","apply","value","oldSlides","slice","destroy","_vegas","returns","args","arguments","error","instance","Error","call","test","navigator","userAgent","window","jQuery","Zepto"],"mappings":";;;;;;;;;CAUA,SAAWA,GACP,aAEA,IAAIC,EAAW,CACXC,MAAyB,EACzBC,MAAyB,IACzBC,MAAyB,EACzBC,SAAyB,EACzBC,cAAyB,EACzBC,cAAyB,EACzBC,OAAyB,EACzBC,SAAyB,EACzBC,UAAyB,EACzBC,SAAyB,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sourcesContent":["/*!-----------------------------------------------------------------------------\n * Vegas - Fullscreen Backgrounds and Slideshows.\n * v2.4.4 - built 2018-10-30\n * Licensed under the MIT License.\n * http://vegas.jaysalvat.com/\n * ----------------------------------------------------------------------------\n * Copyright (C) 2010-2018 Jay Salvat\n * http://jaysalvat.com/\n * --------------------------------------------------------------------------*/\n\n(function ($) {\n 'use strict';\n\n var defaults = {\n slide: 0,\n delay: 5000,\n loop: true,\n preload: false,\n preloadImage: false,\n preloadVideo: false,\n timer: true,\n overlay: false,\n autoplay: true,\n shuffle: false,\n cover: true,\n color: null,\n align: 'center',\n valign: 'center',\n firstTransition: null,\n firstTransitionDuration: null,\n transition: 'fade',\n transitionDuration: 1000,\n transitionRegister: [],\n animation: null,\n animationDuration: 'auto',\n animationRegister: [],\n slidesToKeep: 1,\n init: function () {},\n play: function () {},\n pause: function () {},\n walk: function () {},\n slides: [\n // {\n // src: null,\n // color: null,\n // delay: null,\n // align: null,\n // valign: null,\n // transition: null,\n // transitionDuration: null,\n // animation: null,\n // animationDuration: null,\n // cover: true,\n // video: {\n // src: [],\n // mute: true,\n // loop: true\n // }\n // ...\n ]\n };\n\n var videoCache = {};\n\n var Vegas = function (elmt, options) {\n this.elmt = elmt;\n this.settings = $.extend({}, defaults, $.vegas.defaults, options);\n this.slide = this.settings.slide;\n this.total = this.settings.slides.length;\n this.noshow = this.total < 2;\n this.paused = !this.settings.autoplay || this.noshow;\n this.ended = false;\n this.$elmt = $(elmt);\n this.$timer = null;\n this.$overlay = null;\n this.$slide = null;\n this.timeout = null;\n this.first = true;\n\n this.transitions = [\n 'fade', 'fade2',\n 'blur', 'blur2',\n 'flash', 'flash2',\n 'negative', 'negative2',\n 'burn', 'burn2',\n 'slideLeft', 'slideLeft2',\n 'slideRight', 'slideRight2',\n 'slideUp', 'slideUp2',\n 'slideDown', 'slideDown2',\n 'zoomIn', 'zoomIn2',\n 'zoomOut', 'zoomOut2',\n 'swirlLeft', 'swirlLeft2',\n 'swirlRight', 'swirlRight2'\n ];\n\n this.animations = [\n 'kenburns',\n 'kenburnsLeft', 'kenburnsRight',\n 'kenburnsUp', 'kenburnsUpLeft', 'kenburnsUpRight',\n 'kenburnsDown', 'kenburnsDownLeft', 'kenburnsDownRight'\n ];\n\n if (this.settings.transitionRegister instanceof Array === false) {\n this.settings.transitionRegister = [ this.settings.transitionRegister ];\n }\n\n if (this.settings.animationRegister instanceof Array === false) {\n this.settings.animationRegister = [ this.settings.animationRegister ];\n }\n\n this.transitions = this.transitions.concat(this.settings.transitionRegister);\n this.animations = this.animations.concat(this.settings.animationRegister);\n\n this.support = {\n objectFit: 'objectFit' in document.body.style,\n transition: 'transition' in document.body.style || 'WebkitTransition' in document.body.style,\n video: $.vegas.isVideoCompatible()\n };\n\n if (this.settings.shuffle === true) {\n this.shuffle();\n }\n\n this._init();\n };\n\n Vegas.prototype = {\n _init: function () {\n var $wrapper,\n $overlay,\n $timer,\n isBody = this.elmt.tagName === 'BODY',\n timer = this.settings.timer,\n overlay = this.settings.overlay,\n self = this;\n\n // Preloading\n this._preload();\n\n // Wrapper with content\n if (!isBody) {\n this.$elmt.css('height', this.$elmt.css('height'));\n\n $wrapper = $('
')\n .css('overflow', this.$elmt.css('overflow'))\n .css('padding', this.$elmt.css('padding'));\n\n // Some browsers don't compute padding shorthand\n if (!this.$elmt.css('padding')) {\n $wrapper\n .css('padding-top', this.$elmt.css('padding-top'))\n .css('padding-bottom', this.$elmt.css('padding-bottom'))\n .css('padding-left', this.$elmt.css('padding-left'))\n .css('padding-right', this.$elmt.css('padding-right'));\n }\n\n this.$elmt.clone(true).children().appendTo($wrapper);\n this.elmt.innerHTML = '';\n }\n\n // Timer\n if (timer && this.support.transition) {\n $timer = $('
');\n this.$timer = $timer;\n this.$elmt.prepend($timer);\n }\n\n // Overlay\n if (overlay) {\n $overlay = $('
');\n\n if (typeof overlay === 'string') {\n $overlay.css('background-image', 'url(' + overlay + ')');\n }\n\n this.$overlay = $overlay;\n this.$elmt.prepend($overlay);\n }\n\n // Container\n this.$elmt.addClass('vegas-container');\n\n if (!isBody) {\n this.$elmt.append($wrapper);\n }\n\n setTimeout(function () {\n self.trigger('init');\n self._goto(self.slide);\n\n if (self.settings.autoplay) {\n self.trigger('play');\n }\n }, 1);\n },\n\n _preload: function () {\n var img, i;\n\n for (i = 0; i < this.settings.slides.length; i++) {\n if (this.settings.preload || this.settings.preloadImages) {\n if (this.settings.slides[i].src) {\n img = new Image();\n img.src = this.settings.slides[i].src;\n }\n }\n\n if (this.settings.preload || this.settings.preloadVideos) {\n if (this.support.video && this.settings.slides[i].video) {\n if (this.settings.slides[i].video instanceof Array) {\n this._video(this.settings.slides[i].video);\n } else {\n this._video(this.settings.slides[i].video.src);\n }\n }\n }\n }\n },\n\n _random: function (array) {\n return array[Math.floor(Math.random() * array.length)];\n },\n\n _slideShow: function () {\n var self = this;\n\n if (this.total > 1 && !this.ended && !this.paused && !this.noshow) {\n this.timeout = setTimeout(function () {\n self.next();\n }, this._options('delay'));\n }\n },\n\n _timer: function (state) {\n var self = this;\n\n clearTimeout(this.timeout);\n\n if (!this.$timer) {\n return;\n }\n\n this.$timer\n .removeClass('vegas-timer-running')\n .find('div')\n .css('transition-duration', '0ms');\n\n if (this.ended || this.paused || this.noshow) {\n return;\n }\n\n if (state) {\n setTimeout(function () {\n self.$timer\n .addClass('vegas-timer-running')\n .find('div')\n .css('transition-duration', self._options('delay') - 100 + 'ms');\n }, 100);\n }\n },\n\n _video: function (srcs) {\n var video,\n source,\n cacheKey = srcs.toString();\n\n if (videoCache[cacheKey]) {\n return videoCache[cacheKey];\n }\n\n if (srcs instanceof Array === false) {\n srcs = [ srcs ];\n }\n\n video = document.createElement('video');\n video.preload = true;\n\n srcs.forEach(function (src) {\n source = document.createElement('source');\n source.src = src;\n video.appendChild(source);\n });\n\n videoCache[cacheKey] = video;\n\n return video;\n },\n\n _fadeOutSound: function (video, duration) {\n var self = this,\n delay = duration / 10,\n volume = video.volume - 0.09;\n\n if (volume > 0) {\n video.volume = volume;\n\n setTimeout(function () {\n self._fadeOutSound(video, duration);\n }, delay);\n } else {\n video.pause();\n }\n },\n\n _fadeInSound: function (video, duration) {\n var self = this,\n delay = duration / 10,\n volume = video.volume + 0.09;\n\n if (volume < 1) {\n video.volume = volume;\n\n setTimeout(function () {\n self._fadeInSound(video, duration);\n }, delay);\n }\n },\n\n _options: function (key, i) {\n if (i === undefined) {\n i = this.slide;\n }\n\n if (this.settings.slides[i][key] !== undefined) {\n return this.settings.slides[i][key];\n }\n\n return this.settings[key];\n },\n\n _goto: function (nb) {\n if (typeof this.settings.slides[nb] === 'undefined') {\n nb = 0;\n }\n\n this.slide = nb;\n\n var $slide,\n $inner,\n $video,\n $slides = this.$elmt.children('.vegas-slide'),\n src = this.settings.slides[nb].src,\n videoSettings = this.settings.slides[nb].video,\n delay = this._options('delay'),\n align = this._options('align'),\n valign = this._options('valign'),\n cover = this._options('cover'),\n color = this._options('color') || this.$elmt.css('background-color'),\n self = this,\n total = $slides.length,\n video,\n img;\n\n var transition = this._options('transition'),\n transitionDuration = this._options('transitionDuration'),\n animation = this._options('animation'),\n animationDuration = this._options('animationDuration');\n\n if (this.settings.firstTransition && this.first) {\n transition = this.settings.firstTransition || transition;\n }\n\n if (this.settings.firstTransitionDuration && this.first) {\n transitionDuration = this.settings.firstTransitionDuration || transitionDuration;\n }\n\n if (this.first) {\n this.first = false;\n }\n\n if (cover !== 'repeat') {\n if (cover === true) {\n cover = 'cover';\n } else if (cover === false) {\n cover = 'contain';\n }\n }\n\n if (transition === 'random' || transition instanceof Array) {\n if (transition instanceof Array) {\n transition = this._random(transition);\n } else {\n transition = this._random(this.transitions);\n }\n }\n\n if (animation === 'random' || animation instanceof Array) {\n if (animation instanceof Array) {\n animation = this._random(animation);\n } else {\n animation = this._random(this.animations);\n }\n }\n\n if (transitionDuration === 'auto' || transitionDuration > delay) {\n transitionDuration = delay;\n }\n\n if (animationDuration === 'auto') {\n animationDuration = delay;\n }\n\n $slide = $('
');\n\n if (this.support.transition && transition) {\n $slide.addClass('vegas-transition-' + transition);\n }\n\n // Video\n\n if (this.support.video && videoSettings) {\n if (videoSettings instanceof Array) {\n video = this._video(videoSettings);\n } else {\n video = this._video(videoSettings.src);\n }\n\n video.loop = videoSettings.loop !== undefined ? videoSettings.loop : true;\n video.muted = videoSettings.mute !== undefined ? videoSettings.mute : true;\n\n if (video.muted === false) {\n video.volume = 0;\n this._fadeInSound(video, transitionDuration);\n } else {\n video.pause();\n }\n\n $video = $(video)\n .addClass('vegas-video')\n .css('background-color', color);\n\n if (this.support.objectFit) {\n $video\n .css('object-position', align + ' ' + valign)\n .css('object-fit', cover)\n .css('width', '100%')\n .css('height', '100%');\n } else if (cover === 'contain') {\n $video\n .css('width', '100%')\n .css('height', '100%');\n }\n\n $slide.append($video);\n\n // Image\n\n } else {\n img = new Image();\n\n $inner = $('
')\n .css('background-image', 'url(\"' + src + '\")')\n .css('background-color', color)\n .css('background-position', align + ' ' + valign);\n\n if (cover === 'repeat') {\n $inner.css('background-repeat', 'repeat');\n } else {\n $inner.css('background-size', cover);\n }\n\n if (this.support.transition && animation) {\n $inner\n .addClass('vegas-animation-' + animation)\n .css('animation-duration', animationDuration + 'ms');\n }\n\n $slide.append($inner);\n }\n\n if (!this.support.transition) {\n $slide.css('display', 'none');\n }\n\n if (total) {\n $slides.eq(total - 1).after($slide);\n } else {\n this.$elmt.prepend($slide);\n }\n\n $slides\n .css('transition', 'all 0ms')\n .each(function () {\n this.className = 'vegas-slide';\n\n if (this.tagName === 'VIDEO') {\n this.className += ' vegas-video';\n }\n\n if (transition) {\n this.className += ' vegas-transition-' + transition;\n this.className += ' vegas-transition-' + transition + '-in';\n }\n }\n );\n\n self._timer(false);\n\n function go () {\n self._timer(true);\n\n setTimeout(function () {\n if (transition) {\n if (self.support.transition) {\n $slides\n .css('transition', 'all ' + transitionDuration + 'ms')\n .addClass('vegas-transition-' + transition + '-out');\n\n $slides.each(function () {\n var video = $slides.find('video').get(0);\n\n if (video) {\n video.volume = 1;\n self._fadeOutSound(video, transitionDuration);\n }\n });\n\n $slide\n .css('transition', 'all ' + transitionDuration + 'ms')\n .addClass('vegas-transition-' + transition + '-in');\n } else {\n $slide.fadeIn(transitionDuration);\n }\n }\n\n for (var i = 0; i < $slides.length - self.settings.slidesToKeep; i++) {\n $slides.eq(i).remove();\n }\n\n self.trigger('walk');\n self._slideShow();\n }, 100);\n }\n if (video) {\n if (video.readyState === 4) {\n video.currentTime = 0;\n }\n\n video.play();\n go();\n } else {\n img.src = src;\n\n if (img.complete) {\n go();\n } else {\n img.onload = go;\n }\n }\n },\n\n _end: function () {\n if (this.settings.autoplay) {\n this.ended = false;\n } else {\n this.ended = true;\n }\n this._timer(false);\n this.trigger('end');\n },\n\n shuffle: function () {\n var temp,\n rand;\n\n for (var i = this.total - 1; i > 0; i--) {\n rand = Math.floor(Math.random() * (i + 1));\n temp = this.settings.slides[i];\n\n this.settings.slides[i] = this.settings.slides[rand];\n this.settings.slides[rand] = temp;\n }\n },\n\n play: function () {\n if (this.paused) {\n this.paused = false;\n this.next();\n this.trigger('play');\n }\n },\n\n pause: function () {\n this._timer(false);\n this.paused = true;\n this.trigger('pause');\n },\n\n toggle: function () {\n if (this.paused) {\n this.play();\n } else {\n this.pause();\n }\n },\n\n playing: function () {\n return !this.paused && !this.noshow;\n },\n\n current: function (advanced) {\n if (advanced) {\n return {\n slide: this.slide,\n data: this.settings.slides[this.slide]\n };\n }\n return this.slide;\n },\n\n jump: function (nb) {\n if (nb < 0 || nb > this.total - 1 || nb === this.slide) {\n return;\n }\n\n this.slide = nb;\n this._goto(this.slide);\n },\n\n next: function () {\n this.slide++;\n\n if (this.slide >= this.total) {\n if (!this.settings.loop) {\n return this._end();\n }\n\n this.slide = 0;\n }\n\n this._goto(this.slide);\n },\n\n previous: function () {\n this.slide--;\n\n if (this.slide < 0) {\n if (!this.settings.loop) {\n this.slide++;\n return;\n } else {\n this.slide = this.total - 1;\n }\n }\n\n this._goto(this.slide);\n },\n\n trigger: function (fn) {\n var params = [];\n\n if (fn === 'init') {\n params = [ this.settings ];\n } else {\n params = [\n this.slide,\n this.settings.slides[this.slide]\n ];\n }\n\n this.$elmt.trigger('vegas' + fn, params);\n\n if (typeof this.settings[fn] === 'function') {\n this.settings[fn].apply(this.$elmt, params);\n }\n },\n\n options: function (key, value) {\n var oldSlides = this.settings.slides.slice();\n\n if (typeof key === 'object') {\n this.settings = $.extend({}, defaults, $.vegas.defaults, key);\n } else if (typeof key === 'string') {\n if (value === undefined) {\n return this.settings[key];\n }\n this.settings[key] = value;\n } else {\n return this.settings;\n }\n\n // In case slides have changed\n if (this.settings.slides !== oldSlides) {\n this.total = this.settings.slides.length;\n this.noshow = this.total < 2;\n this._preload();\n }\n },\n\n destroy: function () {\n clearTimeout(this.timeout);\n\n this.$elmt.removeClass('vegas-container');\n this.$elmt.find('> .vegas-slide').remove();\n this.$elmt.find('> .vegas-wrapper').clone(true).children().appendTo(this.$elmt);\n this.$elmt.find('> .vegas-wrapper').remove();\n\n if (this.settings.timer) {\n this.$timer.remove();\n }\n\n if (this.settings.overlay) {\n this.$overlay.remove();\n }\n\n this.elmt._vegas = null;\n }\n };\n\n $.fn.vegas = function(options) {\n var args = arguments,\n error = false,\n returns;\n\n if (options === undefined || typeof options === 'object') {\n return this.each(function () {\n if (!this._vegas) {\n this._vegas = new Vegas(this, options);\n }\n });\n } else if (typeof options === 'string') {\n this.each(function () {\n var instance = this._vegas;\n\n if (!instance) {\n throw new Error('No Vegas applied to this element.');\n }\n\n if (typeof instance[options] === 'function' && options[0] !== '_') {\n returns = instance[options].apply(instance, [].slice.call(args, 1));\n } else {\n error = true;\n }\n });\n\n if (error) {\n throw new Error('No method \"' + options + '\" in Vegas.');\n }\n\n return returns !== undefined ? returns : this;\n }\n };\n\n $.vegas = {};\n $.vegas.defaults = defaults;\n\n $.vegas.isVideoCompatible = function () {\n return !/(Android|webOS|Phone|iPad|iPod|BlackBerry|Windows Phone)/i.test(navigator.userAgent);\n };\n\n})(window.jQuery || window.Zepto);\n"]} \ No newline at end of file diff --git a/vegas/_js/zepto.min.js b/vegas/_js/zepto.min.js new file mode 100644 index 0000000..4821a1c --- /dev/null +++ b/vegas/_js/zepto.min.js @@ -0,0 +1,2 @@ +/* Zepto v1.2.0 - zepto event ajax form ie - zeptojs.com/license */ +!function(t,e){"function"==typeof define&&define.amd?define(function(){return e(t)}):e(t)}(this,function(t){var e=function(){function $(t){return null==t?String(t):S[C.call(t)]||"object"}function F(t){return"function"==$(t)}function k(t){return null!=t&&t==t.window}function M(t){return null!=t&&t.nodeType==t.DOCUMENT_NODE}function R(t){return"object"==$(t)}function Z(t){return R(t)&&!k(t)&&Object.getPrototypeOf(t)==Object.prototype}function z(t){var e=!!t&&"length"in t&&t.length,n=r.type(t);return"function"!=n&&!k(t)&&("array"==n||0===e||"number"==typeof e&&e>0&&e-1 in t)}function q(t){return a.call(t,function(t){return null!=t})}function H(t){return t.length>0?r.fn.concat.apply([],t):t}function I(t){return t.replace(/::/g,"/").replace(/([A-Z]+)([A-Z][a-z])/g,"$1_$2").replace(/([a-z\d])([A-Z])/g,"$1_$2").replace(/_/g,"-").toLowerCase()}function V(t){return t in l?l[t]:l[t]=new RegExp("(^|\\s)"+t+"(\\s|$)")}function _(t,e){return"number"!=typeof e||h[I(t)]?e:e+"px"}function B(t){var e,n;return c[t]||(e=f.createElement(t),f.body.appendChild(e),n=getComputedStyle(e,"").getPropertyValue("display"),e.parentNode.removeChild(e),"none"==n&&(n="block"),c[t]=n),c[t]}function U(t){return"children"in t?u.call(t.children):r.map(t.childNodes,function(t){return 1==t.nodeType?t:void 0})}function X(t,e){var n,r=t?t.length:0;for(n=0;r>n;n++)this[n]=t[n];this.length=r,this.selector=e||""}function J(t,r,i){for(n in r)i&&(Z(r[n])||L(r[n]))?(Z(r[n])&&!Z(t[n])&&(t[n]={}),L(r[n])&&!L(t[n])&&(t[n]=[]),J(t[n],r[n],i)):r[n]!==e&&(t[n]=r[n])}function W(t,e){return null==e?r(t):r(t).filter(e)}function Y(t,e,n,r){return F(e)?e.call(t,n,r):e}function G(t,e,n){null==n?t.removeAttribute(e):t.setAttribute(e,n)}function K(t,n){var r=t.className||"",i=r&&r.baseVal!==e;return n===e?i?r.baseVal:r:void(i?r.baseVal=n:t.className=n)}function Q(t){try{return t?"true"==t||("false"==t?!1:"null"==t?null:+t+""==t?+t:/^[\[\{]/.test(t)?r.parseJSON(t):t):t}catch(e){return t}}function tt(t,e){e(t);for(var n=0,r=t.childNodes.length;r>n;n++)tt(t.childNodes[n],e)}var e,n,r,i,O,P,o=[],s=o.concat,a=o.filter,u=o.slice,f=t.document,c={},l={},h={"column-count":1,columns:1,"font-weight":1,"line-height":1,opacity:1,"z-index":1,zoom:1},p=/^\s*<(\w+|!)[^>]*>/,d=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,m=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,g=/^(?:body|html)$/i,v=/([A-Z])/g,y=["val","css","html","text","data","width","height","offset"],x=["after","prepend","before","append"],b=f.createElement("table"),E=f.createElement("tr"),j={tr:f.createElement("tbody"),tbody:b,thead:b,tfoot:b,td:E,th:E,"*":f.createElement("div")},w=/complete|loaded|interactive/,T=/^[\w-]*$/,S={},C=S.toString,N={},A=f.createElement("div"),D={tabindex:"tabIndex",readonly:"readOnly","for":"htmlFor","class":"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},L=Array.isArray||function(t){return t instanceof Array};return N.matches=function(t,e){if(!e||!t||1!==t.nodeType)return!1;var n=t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.oMatchesSelector||t.matchesSelector;if(n)return n.call(t,e);var r,i=t.parentNode,o=!i;return o&&(i=A).appendChild(t),r=~N.qsa(i,e).indexOf(t),o&&A.removeChild(t),r},O=function(t){return t.replace(/-+(.)?/g,function(t,e){return e?e.toUpperCase():""})},P=function(t){return a.call(t,function(e,n){return t.indexOf(e)==n})},N.fragment=function(t,n,i){var o,s,a;return d.test(t)&&(o=r(f.createElement(RegExp.$1))),o||(t.replace&&(t=t.replace(m,"<$1>")),n===e&&(n=p.test(t)&&RegExp.$1),n in j||(n="*"),a=j[n],a.innerHTML=""+t,o=r.each(u.call(a.childNodes),function(){a.removeChild(this)})),Z(i)&&(s=r(o),r.each(i,function(t,e){y.indexOf(t)>-1?s[t](e):s.attr(t,e)})),o},N.Z=function(t,e){return new X(t,e)},N.isZ=function(t){return t instanceof N.Z},N.init=function(t,n){var i;if(!t)return N.Z();if("string"==typeof t)if(t=t.trim(),"<"==t[0]&&p.test(t))i=N.fragment(t,RegExp.$1,n),t=null;else{if(n!==e)return r(n).find(t);i=N.qsa(f,t)}else{if(F(t))return r(f).ready(t);if(N.isZ(t))return t;if(L(t))i=q(t);else if(R(t))i=[t],t=null;else if(p.test(t))i=N.fragment(t.trim(),RegExp.$1,n),t=null;else{if(n!==e)return r(n).find(t);i=N.qsa(f,t)}}return N.Z(i,t)},r=function(t,e){return N.init(t,e)},r.extend=function(t){var e,n=u.call(arguments,1);return"boolean"==typeof t&&(e=t,t=n.shift()),n.forEach(function(n){J(t,n,e)}),t},N.qsa=function(t,e){var n,r="#"==e[0],i=!r&&"."==e[0],o=r||i?e.slice(1):e,s=T.test(o);return t.getElementById&&s&&r?(n=t.getElementById(o))?[n]:[]:1!==t.nodeType&&9!==t.nodeType&&11!==t.nodeType?[]:u.call(s&&!r&&t.getElementsByClassName?i?t.getElementsByClassName(o):t.getElementsByTagName(e):t.querySelectorAll(e))},r.contains=f.documentElement.contains?function(t,e){return t!==e&&t.contains(e)}:function(t,e){for(;e&&(e=e.parentNode);)if(e===t)return!0;return!1},r.type=$,r.isFunction=F,r.isWindow=k,r.isArray=L,r.isPlainObject=Z,r.isEmptyObject=function(t){var e;for(e in t)return!1;return!0},r.isNumeric=function(t){var e=Number(t),n=typeof t;return null!=t&&"boolean"!=n&&("string"!=n||t.length)&&!isNaN(e)&&isFinite(e)||!1},r.inArray=function(t,e,n){return o.indexOf.call(e,t,n)},r.camelCase=O,r.trim=function(t){return null==t?"":String.prototype.trim.call(t)},r.uuid=0,r.support={},r.expr={},r.noop=function(){},r.map=function(t,e){var n,i,o,r=[];if(z(t))for(i=0;i=0?t:t+this.length]},toArray:function(){return this.get()},size:function(){return this.length},remove:function(){return this.each(function(){null!=this.parentNode&&this.parentNode.removeChild(this)})},each:function(t){return o.every.call(this,function(e,n){return t.call(e,n,e)!==!1}),this},filter:function(t){return F(t)?this.not(this.not(t)):r(a.call(this,function(e){return N.matches(e,t)}))},add:function(t,e){return r(P(this.concat(r(t,e))))},is:function(t){return this.length>0&&N.matches(this[0],t)},not:function(t){var n=[];if(F(t)&&t.call!==e)this.each(function(e){t.call(this,e)||n.push(this)});else{var i="string"==typeof t?this.filter(t):z(t)&&F(t.item)?u.call(t):r(t);this.forEach(function(t){i.indexOf(t)<0&&n.push(t)})}return r(n)},has:function(t){return this.filter(function(){return R(t)?r.contains(this,t):r(this).find(t).size()})},eq:function(t){return-1===t?this.slice(t):this.slice(t,+t+1)},first:function(){var t=this[0];return t&&!R(t)?t:r(t)},last:function(){var t=this[this.length-1];return t&&!R(t)?t:r(t)},find:function(t){var e,n=this;return e=t?"object"==typeof t?r(t).filter(function(){var t=this;return o.some.call(n,function(e){return r.contains(e,t)})}):1==this.length?r(N.qsa(this[0],t)):this.map(function(){return N.qsa(this,t)}):r()},closest:function(t,e){var n=[],i="object"==typeof t&&r(t);return this.each(function(r,o){for(;o&&!(i?i.indexOf(o)>=0:N.matches(o,t));)o=o!==e&&!M(o)&&o.parentNode;o&&n.indexOf(o)<0&&n.push(o)}),r(n)},parents:function(t){for(var e=[],n=this;n.length>0;)n=r.map(n,function(t){return(t=t.parentNode)&&!M(t)&&e.indexOf(t)<0?(e.push(t),t):void 0});return W(e,t)},parent:function(t){return W(P(this.pluck("parentNode")),t)},children:function(t){return W(this.map(function(){return U(this)}),t)},contents:function(){return this.map(function(){return this.contentDocument||u.call(this.childNodes)})},siblings:function(t){return W(this.map(function(t,e){return a.call(U(e.parentNode),function(t){return t!==e})}),t)},empty:function(){return this.each(function(){this.innerHTML=""})},pluck:function(t){return r.map(this,function(e){return e[t]})},show:function(){return this.each(function(){"none"==this.style.display&&(this.style.display=""),"none"==getComputedStyle(this,"").getPropertyValue("display")&&(this.style.display=B(this.nodeName))})},replaceWith:function(t){return this.before(t).remove()},wrap:function(t){var e=F(t);if(this[0]&&!e)var n=r(t).get(0),i=n.parentNode||this.length>1;return this.each(function(o){r(this).wrapAll(e?t.call(this,o):i?n.cloneNode(!0):n)})},wrapAll:function(t){if(this[0]){r(this[0]).before(t=r(t));for(var e;(e=t.children()).length;)t=e.first();r(t).append(this)}return this},wrapInner:function(t){var e=F(t);return this.each(function(n){var i=r(this),o=i.contents(),s=e?t.call(this,n):t;o.length?o.wrapAll(s):i.append(s)})},unwrap:function(){return this.parent().each(function(){r(this).replaceWith(r(this).children())}),this},clone:function(){return this.map(function(){return this.cloneNode(!0)})},hide:function(){return this.css("display","none")},toggle:function(t){return this.each(function(){var n=r(this);(t===e?"none"==n.css("display"):t)?n.show():n.hide()})},prev:function(t){return r(this.pluck("previousElementSibling")).filter(t||"*")},next:function(t){return r(this.pluck("nextElementSibling")).filter(t||"*")},html:function(t){return 0 in arguments?this.each(function(e){var n=this.innerHTML;r(this).empty().append(Y(this,t,e,n))}):0 in this?this[0].innerHTML:null},text:function(t){return 0 in arguments?this.each(function(e){var n=Y(this,t,e,this.textContent);this.textContent=null==n?"":""+n}):0 in this?this.pluck("textContent").join(""):null},attr:function(t,r){var i;return"string"!=typeof t||1 in arguments?this.each(function(e){if(1===this.nodeType)if(R(t))for(n in t)G(this,n,t[n]);else G(this,t,Y(this,r,e,this.getAttribute(t)))}):0 in this&&1==this[0].nodeType&&null!=(i=this[0].getAttribute(t))?i:e},removeAttr:function(t){return this.each(function(){1===this.nodeType&&t.split(" ").forEach(function(t){G(this,t)},this)})},prop:function(t,e){return t=D[t]||t,1 in arguments?this.each(function(n){this[t]=Y(this,e,n,this[t])}):this[0]&&this[0][t]},removeProp:function(t){return t=D[t]||t,this.each(function(){delete this[t]})},data:function(t,n){var r="data-"+t.replace(v,"-$1").toLowerCase(),i=1 in arguments?this.attr(r,n):this.attr(r);return null!==i?Q(i):e},val:function(t){return 0 in arguments?(null==t&&(t=""),this.each(function(e){this.value=Y(this,t,e,this.value)})):this[0]&&(this[0].multiple?r(this[0]).find("option").filter(function(){return this.selected}).pluck("value"):this[0].value)},offset:function(e){if(e)return this.each(function(t){var n=r(this),i=Y(this,e,t,n.offset()),o=n.offsetParent().offset(),s={top:i.top-o.top,left:i.left-o.left};"static"==n.css("position")&&(s.position="relative"),n.css(s)});if(!this.length)return null;if(f.documentElement!==this[0]&&!r.contains(f.documentElement,this[0]))return{top:0,left:0};var n=this[0].getBoundingClientRect();return{left:n.left+t.pageXOffset,top:n.top+t.pageYOffset,width:Math.round(n.width),height:Math.round(n.height)}},css:function(t,e){if(arguments.length<2){var i=this[0];if("string"==typeof t){if(!i)return;return i.style[O(t)]||getComputedStyle(i,"").getPropertyValue(t)}if(L(t)){if(!i)return;var o={},s=getComputedStyle(i,"");return r.each(t,function(t,e){o[e]=i.style[O(e)]||s.getPropertyValue(e)}),o}}var a="";if("string"==$(t))e||0===e?a=I(t)+":"+_(t,e):this.each(function(){this.style.removeProperty(I(t))});else for(n in t)t[n]||0===t[n]?a+=I(n)+":"+_(n,t[n])+";":this.each(function(){this.style.removeProperty(I(n))});return this.each(function(){this.style.cssText+=";"+a})},index:function(t){return t?this.indexOf(r(t)[0]):this.parent().children().indexOf(this[0])},hasClass:function(t){return t?o.some.call(this,function(t){return this.test(K(t))},V(t)):!1},addClass:function(t){return t?this.each(function(e){if("className"in this){i=[];var n=K(this),o=Y(this,t,e,n);o.split(/\s+/g).forEach(function(t){r(this).hasClass(t)||i.push(t)},this),i.length&&K(this,n+(n?" ":"")+i.join(" "))}}):this},removeClass:function(t){return this.each(function(n){if("className"in this){if(t===e)return K(this,"");i=K(this),Y(this,t,n,i).split(/\s+/g).forEach(function(t){i=i.replace(V(t)," ")}),K(this,i.trim())}})},toggleClass:function(t,n){return t?this.each(function(i){var o=r(this),s=Y(this,t,i,K(this));s.split(/\s+/g).forEach(function(t){(n===e?!o.hasClass(t):n)?o.addClass(t):o.removeClass(t)})}):this},scrollTop:function(t){if(this.length){var n="scrollTop"in this[0];return t===e?n?this[0].scrollTop:this[0].pageYOffset:this.each(n?function(){this.scrollTop=t}:function(){this.scrollTo(this.scrollX,t)})}},scrollLeft:function(t){if(this.length){var n="scrollLeft"in this[0];return t===e?n?this[0].scrollLeft:this[0].pageXOffset:this.each(n?function(){this.scrollLeft=t}:function(){this.scrollTo(t,this.scrollY)})}},position:function(){if(this.length){var t=this[0],e=this.offsetParent(),n=this.offset(),i=g.test(e[0].nodeName)?{top:0,left:0}:e.offset();return n.top-=parseFloat(r(t).css("margin-top"))||0,n.left-=parseFloat(r(t).css("margin-left"))||0,i.top+=parseFloat(r(e[0]).css("border-top-width"))||0,i.left+=parseFloat(r(e[0]).css("border-left-width"))||0,{top:n.top-i.top,left:n.left-i.left}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent||f.body;t&&!g.test(t.nodeName)&&"static"==r(t).css("position");)t=t.offsetParent;return t})}},r.fn.detach=r.fn.remove,["width","height"].forEach(function(t){var n=t.replace(/./,function(t){return t[0].toUpperCase()});r.fn[t]=function(i){var o,s=this[0];return i===e?k(s)?s["inner"+n]:M(s)?s.documentElement["scroll"+n]:(o=this.offset())&&o[t]:this.each(function(e){s=r(this),s.css(t,Y(this,i,e,s[t]()))})}}),x.forEach(function(n,i){var o=i%2;r.fn[n]=function(){var n,a,s=r.map(arguments,function(t){var i=[];return n=$(t),"array"==n?(t.forEach(function(t){return t.nodeType!==e?i.push(t):r.zepto.isZ(t)?i=i.concat(t.get()):void(i=i.concat(N.fragment(t)))}),i):"object"==n||null==t?t:N.fragment(t)}),u=this.length>1;return s.length<1?this:this.each(function(e,n){a=o?n:n.parentNode,n=0==i?n.nextSibling:1==i?n.firstChild:2==i?n:null;var c=r.contains(f.documentElement,a);s.forEach(function(e){if(u)e=e.cloneNode(!0);else if(!a)return r(e).remove();a.insertBefore(e,n),c&&tt(e,function(e){if(!(null==e.nodeName||"SCRIPT"!==e.nodeName.toUpperCase()||e.type&&"text/javascript"!==e.type||e.src)){var n=e.ownerDocument?e.ownerDocument.defaultView:t;n.eval.call(n,e.innerHTML)}})})})},r.fn[o?n+"To":"insert"+(i?"Before":"After")]=function(t){return r(t)[n](this),this}}),N.Z.prototype=X.prototype=r.fn,N.uniq=P,N.deserializeValue=Q,r.zepto=N,r}();return t.Zepto=e,void 0===t.$&&(t.$=e),function(e){function h(t){return t._zid||(t._zid=n++)}function p(t,e,n,r){if(e=d(e),e.ns)var i=m(e.ns);return(a[h(t)]||[]).filter(function(t){return t&&(!e.e||t.e==e.e)&&(!e.ns||i.test(t.ns))&&(!n||h(t.fn)===h(n))&&(!r||t.sel==r)})}function d(t){var e=(""+t).split(".");return{e:e[0],ns:e.slice(1).sort().join(" ")}}function m(t){return new RegExp("(?:^| )"+t.replace(" "," .* ?")+"(?: |$)")}function g(t,e){return t.del&&!f&&t.e in c||!!e}function v(t){return l[t]||f&&c[t]||t}function y(t,n,i,o,s,u,f){var c=h(t),p=a[c]||(a[c]=[]);n.split(/\s/).forEach(function(n){if("ready"==n)return e(document).ready(i);var a=d(n);a.fn=i,a.sel=s,a.e in l&&(i=function(t){var n=t.relatedTarget;return!n||n!==this&&!e.contains(this,n)?a.fn.apply(this,arguments):void 0}),a.del=u;var c=u||i;a.proxy=function(e){if(e=T(e),!e.isImmediatePropagationStopped()){e.data=o;var n=c.apply(t,e._args==r?[e]:[e].concat(e._args));return n===!1&&(e.preventDefault(),e.stopPropagation()),n}},a.i=p.length,p.push(a),"addEventListener"in t&&t.addEventListener(v(a.e),a.proxy,g(a,f))})}function x(t,e,n,r,i){var o=h(t);(e||"").split(/\s/).forEach(function(e){p(t,e,n,r).forEach(function(e){delete a[o][e.i],"removeEventListener"in t&&t.removeEventListener(v(e.e),e.proxy,g(e,i))})})}function T(t,n){return(n||!t.isDefaultPrevented)&&(n||(n=t),e.each(w,function(e,r){var i=n[e];t[e]=function(){return this[r]=b,i&&i.apply(n,arguments)},t[r]=E}),t.timeStamp||(t.timeStamp=Date.now()),(n.defaultPrevented!==r?n.defaultPrevented:"returnValue"in n?n.returnValue===!1:n.getPreventDefault&&n.getPreventDefault())&&(t.isDefaultPrevented=b)),t}function S(t){var e,n={originalEvent:t};for(e in t)j.test(e)||t[e]===r||(n[e]=t[e]);return T(n,t)}var r,n=1,i=Array.prototype.slice,o=e.isFunction,s=function(t){return"string"==typeof t},a={},u={},f="onfocusin"in t,c={focus:"focusin",blur:"focusout"},l={mouseenter:"mouseover",mouseleave:"mouseout"};u.click=u.mousedown=u.mouseup=u.mousemove="MouseEvents",e.event={add:y,remove:x},e.proxy=function(t,n){var r=2 in arguments&&i.call(arguments,2);if(o(t)){var a=function(){return t.apply(n,r?r.concat(i.call(arguments)):arguments)};return a._zid=h(t),a}if(s(n))return r?(r.unshift(t[n],t),e.proxy.apply(null,r)):e.proxy(t[n],t);throw new TypeError("expected function")},e.fn.bind=function(t,e,n){return this.on(t,e,n)},e.fn.unbind=function(t,e){return this.off(t,e)},e.fn.one=function(t,e,n,r){return this.on(t,e,n,r,1)};var b=function(){return!0},E=function(){return!1},j=/^([A-Z]|returnValue$|layer[XY]$|webkitMovement[XY]$)/,w={preventDefault:"isDefaultPrevented",stopImmediatePropagation:"isImmediatePropagationStopped",stopPropagation:"isPropagationStopped"};e.fn.delegate=function(t,e,n){return this.on(e,t,n)},e.fn.undelegate=function(t,e,n){return this.off(e,t,n)},e.fn.live=function(t,n){return e(document.body).delegate(this.selector,t,n),this},e.fn.die=function(t,n){return e(document.body).undelegate(this.selector,t,n),this},e.fn.on=function(t,n,a,u,f){var c,l,h=this;return t&&!s(t)?(e.each(t,function(t,e){h.on(t,n,a,e,f)}),h):(s(n)||o(u)||u===!1||(u=a,a=n,n=r),(u===r||a===!1)&&(u=a,a=r),u===!1&&(u=E),h.each(function(r,o){f&&(c=function(t){return x(o,t.type,u),u.apply(this,arguments)}),n&&(l=function(t){var r,s=e(t.target).closest(n,o).get(0);return s&&s!==o?(r=e.extend(S(t),{currentTarget:s,liveFired:o}),(c||u).apply(s,[r].concat(i.call(arguments,1)))):void 0}),y(o,t,u,a,n,l||c)}))},e.fn.off=function(t,n,i){var a=this;return t&&!s(t)?(e.each(t,function(t,e){a.off(t,n,e)}),a):(s(n)||o(i)||i===!1||(i=n,n=r),i===!1&&(i=E),a.each(function(){x(this,t,i,n)}))},e.fn.trigger=function(t,n){return t=s(t)||e.isPlainObject(t)?e.Event(t):T(t),t._args=n,this.each(function(){t.type in c&&"function"==typeof this[t.type]?this[t.type]():"dispatchEvent"in this?this.dispatchEvent(t):e(this).triggerHandler(t,n)})},e.fn.triggerHandler=function(t,n){var r,i;return this.each(function(o,a){r=S(s(t)?e.Event(t):t),r._args=n,r.target=a,e.each(p(a,t.type||t),function(t,e){return i=e.proxy(r),r.isImmediatePropagationStopped()?!1:void 0})}),i},"focusin focusout focus blur load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select keydown keypress keyup error".split(" ").forEach(function(t){e.fn[t]=function(e){return 0 in arguments?this.bind(t,e):this.trigger(t)}}),e.Event=function(t,e){s(t)||(e=t,t=e.type);var n=document.createEvent(u[t]||"Events"),r=!0;if(e)for(var i in e)"bubbles"==i?r=!!e[i]:n[i]=e[i];return n.initEvent(t,r,!0),T(n)}}(e),function(e){function p(t,n,r){var i=e.Event(n);return e(t).trigger(i,r),!i.isDefaultPrevented()}function d(t,e,n,i){return t.global?p(e||r,n,i):void 0}function m(t){t.global&&0===e.active++&&d(t,null,"ajaxStart")}function g(t){t.global&&!--e.active&&d(t,null,"ajaxStop")}function v(t,e){var n=e.context;return e.beforeSend.call(n,t,e)===!1||d(e,n,"ajaxBeforeSend",[t,e])===!1?!1:void d(e,n,"ajaxSend",[t,e])}function y(t,e,n,r){var i=n.context,o="success";n.success.call(i,t,o,e),r&&r.resolveWith(i,[t,o,e]),d(n,i,"ajaxSuccess",[e,n,t]),b(o,e,n)}function x(t,e,n,r,i){var o=r.context;r.error.call(o,n,e,t),i&&i.rejectWith(o,[n,e,t]),d(r,o,"ajaxError",[n,r,t||e]),b(e,n,r)}function b(t,e,n){var r=n.context;n.complete.call(r,e,t),d(n,r,"ajaxComplete",[e,n]),g(n)}function E(t,e,n){if(n.dataFilter==j)return t;var r=n.context;return n.dataFilter.call(r,t,e)}function j(){}function w(t){return t&&(t=t.split(";",2)[0]),t&&(t==c?"html":t==f?"json":a.test(t)?"script":u.test(t)&&"xml")||"text"}function T(t,e){return""==e?t:(t+"&"+e).replace(/[&?]{1,2}/,"?")}function S(t){t.processData&&t.data&&"string"!=e.type(t.data)&&(t.data=e.param(t.data,t.traditional)),!t.data||t.type&&"GET"!=t.type.toUpperCase()&&"jsonp"!=t.dataType||(t.url=T(t.url,t.data),t.data=void 0)}function C(t,n,r,i){return e.isFunction(n)&&(i=r,r=n,n=void 0),e.isFunction(r)||(i=r,r=void 0),{url:t,data:n,success:r,dataType:i}}function O(t,n,r,i){var o,s=e.isArray(n),a=e.isPlainObject(n);e.each(n,function(n,u){o=e.type(u),i&&(n=r?i:i+"["+(a||"object"==o||"array"==o?n:"")+"]"),!i&&s?t.add(u.name,u.value):"array"==o||!r&&"object"==o?O(t,u,r,n):t.add(n,u)})}var i,o,n=+new Date,r=t.document,s=/)<[^<]*)*<\/script>/gi,a=/^(?:text|application)\/javascript/i,u=/^(?:text|application)\/xml/i,f="application/json",c="text/html",l=/^\s*$/,h=r.createElement("a");h.href=t.location.href,e.active=0,e.ajaxJSONP=function(i,o){if(!("type"in i))return e.ajax(i);var c,p,s=i.jsonpCallback,a=(e.isFunction(s)?s():s)||"Zepto"+n++,u=r.createElement("script"),f=t[a],l=function(t){e(u).triggerHandler("error",t||"abort")},h={abort:l};return o&&o.promise(h),e(u).on("load error",function(n,r){clearTimeout(p),e(u).off().remove(),"error"!=n.type&&c?y(c[0],h,i,o):x(null,r||"error",h,i,o),t[a]=f,c&&e.isFunction(f)&&f(c[0]),f=c=void 0}),v(h,i)===!1?(l("abort"),h):(t[a]=function(){c=arguments},u.src=i.url.replace(/\?(.+)=\?/,"?$1="+a),r.head.appendChild(u),i.timeout>0&&(p=setTimeout(function(){l("timeout")},i.timeout)),h)},e.ajaxSettings={type:"GET",beforeSend:j,success:j,error:j,complete:j,context:null,global:!0,xhr:function(){return new t.XMLHttpRequest},accepts:{script:"text/javascript, application/javascript, application/x-javascript",json:f,xml:"application/xml, text/xml",html:c,text:"text/plain"},crossDomain:!1,timeout:0,processData:!0,cache:!0,dataFilter:j},e.ajax=function(n){var u,f,s=e.extend({},n||{}),a=e.Deferred&&e.Deferred();for(i in e.ajaxSettings)void 0===s[i]&&(s[i]=e.ajaxSettings[i]);m(s),s.crossDomain||(u=r.createElement("a"),u.href=s.url,u.href=u.href,s.crossDomain=h.protocol+"//"+h.host!=u.protocol+"//"+u.host),s.url||(s.url=t.location.toString()),(f=s.url.indexOf("#"))>-1&&(s.url=s.url.slice(0,f)),S(s);var c=s.dataType,p=/\?.+=\?/.test(s.url);if(p&&(c="jsonp"),s.cache!==!1&&(n&&n.cache===!0||"script"!=c&&"jsonp"!=c)||(s.url=T(s.url,"_="+Date.now())),"jsonp"==c)return p||(s.url=T(s.url,s.jsonp?s.jsonp+"=?":s.jsonp===!1?"":"callback=?")),e.ajaxJSONP(s,a);var P,d=s.accepts[c],g={},b=function(t,e){g[t.toLowerCase()]=[t,e]},C=/^([\w-]+:)\/\//.test(s.url)?RegExp.$1:t.location.protocol,N=s.xhr(),O=N.setRequestHeader;if(a&&a.promise(N),s.crossDomain||b("X-Requested-With","XMLHttpRequest"),b("Accept",d||"*/*"),(d=s.mimeType||d)&&(d.indexOf(",")>-1&&(d=d.split(",",2)[0]),N.overrideMimeType&&N.overrideMimeType(d)),(s.contentType||s.contentType!==!1&&s.data&&"GET"!=s.type.toUpperCase())&&b("Content-Type",s.contentType||"application/x-www-form-urlencoded"),s.headers)for(o in s.headers)b(o,s.headers[o]);if(N.setRequestHeader=b,N.onreadystatechange=function(){if(4==N.readyState){N.onreadystatechange=j,clearTimeout(P);var t,n=!1;if(N.status>=200&&N.status<300||304==N.status||0==N.status&&"file:"==C){if(c=c||w(s.mimeType||N.getResponseHeader("content-type")),"arraybuffer"==N.responseType||"blob"==N.responseType)t=N.response;else{t=N.responseText;try{t=E(t,c,s),"script"==c?(1,eval)(t):"xml"==c?t=N.responseXML:"json"==c&&(t=l.test(t)?null:e.parseJSON(t))}catch(r){n=r}if(n)return x(n,"parsererror",N,s,a)}y(t,N,s,a)}else x(N.statusText||null,N.status?"error":"abort",N,s,a)}},v(N,s)===!1)return N.abort(),x(null,"abort",N,s,a),N;var A="async"in s?s.async:!0;if(N.open(s.type,s.url,A,s.username,s.password),s.xhrFields)for(o in s.xhrFields)N[o]=s.xhrFields[o];for(o in g)O.apply(N,g[o]);return s.timeout>0&&(P=setTimeout(function(){N.onreadystatechange=j,N.abort(),x(null,"timeout",N,s,a)},s.timeout)),N.send(s.data?s.data:null),N},e.get=function(){return e.ajax(C.apply(null,arguments))},e.post=function(){var t=C.apply(null,arguments);return t.type="POST",e.ajax(t)},e.getJSON=function(){var t=C.apply(null,arguments);return t.dataType="json",e.ajax(t)},e.fn.load=function(t,n,r){if(!this.length)return this;var a,i=this,o=t.split(/\s/),u=C(t,n,r),f=u.success;return o.length>1&&(u.url=o[0],a=o[1]),u.success=function(t){i.html(a?e("
").html(t.replace(s,"")).find(a):t),f&&f.apply(i,arguments)},e.ajax(u),this};var N=encodeURIComponent;e.param=function(t,n){var r=[];return r.add=function(t,n){e.isFunction(n)&&(n=n()),null==n&&(n=""),this.push(N(t)+"="+N(n))},O(r,t,n),r.join("&").replace(/%20/g,"+")}}(e),function(t){t.fn.serializeArray=function(){var e,n,r=[],i=function(t){return t.forEach?t.forEach(i):void r.push({name:e,value:t})};return this[0]&&t.each(this[0].elements,function(r,o){n=o.type,e=o.name,e&&"fieldset"!=o.nodeName.toLowerCase()&&!o.disabled&&"submit"!=n&&"reset"!=n&&"button"!=n&&"file"!=n&&("radio"!=n&&"checkbox"!=n||o.checked)&&i(t(o).val())}),r},t.fn.serialize=function(){var t=[];return this.serializeArray().forEach(function(e){t.push(encodeURIComponent(e.name)+"="+encodeURIComponent(e.value))}),t.join("&")},t.fn.submit=function(e){if(0 in arguments)this.bind("submit",e);else if(this.length){var n=t.Event("submit");this.eq(0).trigger(n),n.isDefaultPrevented()||this.get(0).submit()}return this}}(e),function(){try{getComputedStyle(void 0)}catch(e){var n=getComputedStyle;t.getComputedStyle=function(t,e){try{return n(t,e)}catch(r){return null}}}}(),e}); \ No newline at end of file diff --git a/vegas/img/2017-07-02_OulettesDeGaube_4468.jpg b/vegas/img/2017-07-02_OulettesDeGaube_4468.jpg new file mode 100644 index 0000000..b83a918 Binary files /dev/null and b/vegas/img/2017-07-02_OulettesDeGaube_4468.jpg differ diff --git a/vegas/img/2017-07-04_RefugeDesEspuguettes_4812.jpg b/vegas/img/2017-07-04_RefugeDesEspuguettes_4812.jpg new file mode 100644 index 0000000..c727e55 Binary files /dev/null and b/vegas/img/2017-07-04_RefugeDesEspuguettes_4812.jpg differ diff --git a/vegas/img/2017-07-06_CirqueDEstaube_5398.jpg b/vegas/img/2017-07-06_CirqueDEstaube_5398.jpg new file mode 100644 index 0000000..2b501eb Binary files /dev/null and b/vegas/img/2017-07-06_CirqueDEstaube_5398.jpg differ diff --git a/vegas/img/2017-07-07_CirqueDeTroumouse_5615.jpg b/vegas/img/2017-07-07_CirqueDeTroumouse_5615.jpg new file mode 100644 index 0000000..ff79c6f Binary files /dev/null and b/vegas/img/2017-07-07_CirqueDeTroumouse_5615.jpg differ diff --git a/vegas/index.php b/vegas/index.php new file mode 100644 index 0000000..76dbcab --- /dev/null +++ b/vegas/index.php @@ -0,0 +1,118 @@ + + + + +Sur le sentier... + + + + + + + + + + gettext('French'), 'en_US' => gettext('English') , 'de_DE' => gettext('German'), 'es_ES' => gettext('Spanish') ); +?> + + + + + + + + + + +
+ WordPress - Zenphoto - Vegas Background Slideshow 2. License des photos. (c) 2013- sur-le-sentier.fr +
+ + + + \ No newline at end of file diff --git a/vegas/js/overlays/01.png b/vegas/js/overlays/01.png new file mode 100644 index 0000000..75292f6 Binary files /dev/null and b/vegas/js/overlays/01.png differ diff --git a/vegas/js/overlays/02.png b/vegas/js/overlays/02.png new file mode 100644 index 0000000..7073301 Binary files /dev/null and b/vegas/js/overlays/02.png differ diff --git a/vegas/js/overlays/03.png b/vegas/js/overlays/03.png new file mode 100644 index 0000000..a7002f5 Binary files /dev/null and b/vegas/js/overlays/03.png differ diff --git a/vegas/js/overlays/04.png b/vegas/js/overlays/04.png new file mode 100644 index 0000000..21d53ea Binary files /dev/null and b/vegas/js/overlays/04.png differ diff --git a/vegas/js/overlays/05.png b/vegas/js/overlays/05.png new file mode 100644 index 0000000..9cffa18 Binary files /dev/null and b/vegas/js/overlays/05.png differ diff --git a/vegas/js/overlays/06.png b/vegas/js/overlays/06.png new file mode 100644 index 0000000..01aed76 Binary files /dev/null and b/vegas/js/overlays/06.png differ diff --git a/vegas/js/overlays/07.png b/vegas/js/overlays/07.png new file mode 100644 index 0000000..3657cc2 Binary files /dev/null and b/vegas/js/overlays/07.png differ diff --git a/vegas/js/overlays/08.png b/vegas/js/overlays/08.png new file mode 100644 index 0000000..94eea6f Binary files /dev/null and b/vegas/js/overlays/08.png differ diff --git a/vegas/js/overlays/09.png b/vegas/js/overlays/09.png new file mode 100644 index 0000000..14380fb Binary files /dev/null and b/vegas/js/overlays/09.png differ diff --git a/vegas/js/vegas-style.css b/vegas/js/vegas-style.css new file mode 100644 index 0000000..4d87249 --- /dev/null +++ b/vegas/js/vegas-style.css @@ -0,0 +1,284 @@ +/* +html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video { + margin: 0; + padding: 0; + border: 0; + font-size: 100%; + font: inherit; + vertical-align:baseline +} + +article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section { + display:block +} + +body { + line-height:1 +} + +ol, ul { + list-style:none +} + +blockquote, q { + quotes:none +} + +blockquote:before, blockquote:after, q:before, q:after { + content: ''; + content:none +} + +table { + border-collapse: collapse; + border-spacing:0 +} + +html { + box-sizing:border-box +} + +*, * :before, * :after { + box-sizing:inherit +} +*/ + +/* — */ + +.vegas-menu { + float: right; + top: 200px; + margin-right: 24px; + text-align: right; +} + +.vegas-menu h1 { + font: bold 64px 'Coming Soon', cursive; + color: #fff; + letter-spacing: 15px; + text-shadow: -1px -1px 1px #fff, 1px 1px 1px #000; +} + +.vegas-menu h1 a { + color: #fff; + text-decoration: none; + } + +/* +Menu +*/ + +.menu { + margin-top: 100px; + margin-bottom: 24px; + float: right; +} + +.texte { + margin-bottom: 40px; +} + +.texte a { + font-family: 'Coming Soon', cursive; + font-size: 32px; + font-variant: small-caps; + text-align: right; + color: #fff; + background-color: rgba(0, 0, 0, 0.5); + + text-decoration: none; + + padding-right: 0.3em; + padding-left: 1.5em; +} + +.texte a:hover { + font-style: italic; + background-color: rgba(0, 0, 0, 0.8); +} + +.clearall { + clear: both; +} + +.green { + color: #cff208; +} + + +/* +Flickr, 500px +*/ + +.tweet-it { + position: fixed; + top: 1.5em; + left: 3.5em; + z-index: 1000; + -webkit-transition: 1s opacity; + transition:1s opacity +} + +@media (max-width: 768px) { + .tweet-it { + top: 80px; + right:1em + } +} + +@media (max-height: 550px) { + .tweet-it { + display:none + } +} + +@media (max-width: 375px) { + .tweet-it { + display:none + } +} + +.icn { + opacity:.5 +} + + +.icn svg { + display: block; + fill: #fff; + border-radius: 50%; + border: 2px solid white; + padding: 15px; + margin: 15px; + text-align: center; + width: 35px; + height: 35px; +} + +.icn:hover { + opacity:1 +} + +/* +Propulsé par … +*/ + +.vegas-info { + position: absolute; + bottom: 0px; + right: 10px; + color: #fff; + font: 12px "Lucida Grande", Lucida, Verdana, sans-serif; + -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=60)"; + filter:alpha(opacity=60); + -moz-opacity:0.6; + opacity: 0.6; +} + +.vegas-info a:hover, .vegas-info-vert a:hover { + -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=90)"; + filter:alpha(opacity=90); + -moz-opacity:0.9; + opacity: 0.9; +} + +.vegas-info a, .vegas-info a:visited, .vegas-info-vert a, .vegas-info-vert a:visited { + color: #cff208; + text-decoration: none; + -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=60)"; + filter:alpha(opacity=60); + -moz-opacity:0.6; + opacity: 0.6; +} + + +/* --------- + +.homepage-header { + width: 100vw; + height: 100vh; + background-color:#000 +} + +.homepage-info { + position: absolute; + overflow: hidden; + font-family: "Raleway"; + text-transform: uppercase; + line-height: 2.2em; + text-align: right; + width: 100%; + font-size: .60em; + right: 1em; + bottom:1em +} + +@media (min-width: 768px) { + .homepage-info { + right: 2em; + bottom: 2.5em; + font-size:.85em + } +} + +@media (min-width: 769px) { + .homepage-info { + font-size: .85em; + right: 3.5em; + bottom:3em + } +} + +.homepage-info h1 { + position: relative; + text-shadow: -1px -1px 1px rgba(0, 0, 0, 0.3), 1px 1px 1px rgba(0, 0, 0, 0.3), 0 0 10px #000; + letter-spacing: -1px; + padding-right: 4.7em; + font-size: 1.9em; + margin: .75em 0; + pointer-events:none +} + +.homepage-info h1 span { + display:block +} + +.homepage-info h1 .line1 { + font-size: 3em; + letter-spacing: -5px; + margin-bottom:.2em +} + +.homepage-menu { + position: relative; + font-weight: 900; + margin: .75em 0; + font-size:2em +} + +.homepage-menu a { + color:#fff +} + +.homepage-menu li { + margin-bottom:4px +} + +.homepage-submenu { + line-height: 1.6; + text-align: left; + font-size: .68em; + width: 140px; + position: absolute; + top: -4px; + right:0 +} + +.homepage-submenu li { + -webkit-transition: .5s cubic-bezier(0, 0.5, 0, 1); + transition: .5s cubic-bezier(0, 0.5, 0, 1); + -webkit-transform: translateY(16px); + transform: translateY(16px); +} +*/ + diff --git a/vegas/js/vegas.css b/vegas/js/vegas.css new file mode 100644 index 0000000..d70d81d --- /dev/null +++ b/vegas/js/vegas.css @@ -0,0 +1,556 @@ +.vegas-overlay, +.vegas-content-scrollable, +.vegas-timer, +.vegas-slide, +.vegas-slide-inner { + position: absolute; + top: 0; + left: 0; + bottom: 0; + right: 0; + overflow: hidden; + border: none; + padding: 0; + margin: 0; +} + +.vegas-content-scrollable { + position: relative; + height: 100%; + overflow: auto; +} + +.vegas-overlay { + opacity: .5; + background: transparent url("./overlays/02.png") center center repeat; +} + +.vegas-timer { + top: auto; + bottom: 0; + height: 2px; +} + +.vegas-timer-progress { + width: 0%; + height: 100%; + background: white; + transition: width ease-out; +} + +.vegas-timer-running .vegas-timer-progress { + width: 100%; +} + +.vegas-slide, +.vegas-slide-inner { + margin: 0; + padding: 0; + background: transparent center center no-repeat; + transform: translateZ(0); + will-change: transform, opacity; +} + +body .vegas-container { + overflow: hidden !important; + position: relative; +} + +.vegas-video { + min-width: 100%; + min-height: 100%; + width: auto; + height: auto; +} + +body.vegas-container { + overflow: auto; + position: static; + z-index: -2; +} + +body.vegas-container > .vegas-timer, +body.vegas-container > .vegas-overlay, +body.vegas-container > .vegas-slide { + position: fixed; + z-index: -1; +} + +/* Target Safari IOS7+ in order to add 76px */ +/*******************************************/ +/* blur transition */ +/*******************************************/ +.vegas-transition-blur, +.vegas-transition-blur2 { + opacity: 0; + filter: blur(32px) brightness(1.01); +} + +.vegas-transition-blur-in, +.vegas-transition-blur2-in { + opacity: 1; + filter: blur(0px) brightness(1.01); +} + +.vegas-transition-blur2-out { + opacity: 0; +} + +/*******************************************/ +/* burn transition */ +/*******************************************/ +.vegas-transition-burn, +.vegas-transition-burn2 { + opacity: 0; + filter: contrast(1000%) saturate(1000%); +} + +.vegas-transition-burn-in, +.vegas-transition-burn2-in { + opacity: 1; + filter: contrast(100%) saturate(100%); +} + +.vegas-transition-burn2-out { + opacity: 0; + filter: contrast(1000%) saturate(1000%); +} + +/*******************************************/ +/* fade transition */ +/*******************************************/ +.vegas-transition-fade, +.vegas-transition-fade2 { + opacity: 0; +} + +.vegas-transition-fade-in, +.vegas-transition-fade2-in { + opacity: 1; +} + +.vegas-transition-fade2-out { + opacity: 0; +} + +/*******************************************/ +/* flash transition */ +/*******************************************/ +.vegas-transition-flash, +.vegas-transition-flash2 { + opacity: 0; + filter: brightness(25); +} + +.vegas-transition-flash-in, +.vegas-transition-flash2-in { + opacity: 1; + filter: brightness(1); +} + +.vegas-transition-flash2-out { + opacity: 0; + filter: brightness(25); +} + +/*******************************************/ +/* negative transition */ +/*******************************************/ +.vegas-transition-negative, +.vegas-transition-negative2 { + opacity: 0; + filter: invert(100%); +} + +.vegas-transition-negative-in, +.vegas-transition-negative2-in { + opacity: 1; + filter: invert(0); +} + +.vegas-transition-negative2-out { + opacity: 0; + filter: invert(100%); +} + +/*******************************************/ +/* slideDown transition */ +/*******************************************/ +.vegas-transition-slideDown, +.vegas-transition-slideDown2 { + transform: translateY(-100%); +} + +.vegas-transition-slideDown-in, +.vegas-transition-slideDown2-in { + transform: translateY(0%); +} + +.vegas-transition-slideDown2-out { + transform: translateY(100%); +} + +/*******************************************/ +/* slideLeft transition */ +/*******************************************/ +.vegas-transition-slideLeft, +.vegas-transition-slideLeft2 { + transform: translateX(100%); +} + +.vegas-transition-slideLeft-in, +.vegas-transition-slideLeft2-in { + transform: translateX(0%); +} + +.vegas-transition-slideLeft2-out { + transform: translateX(-100%); +} + +/*******************************************/ +/* slideRight transition */ +/*******************************************/ +.vegas-transition-slideRight, +.vegas-transition-slideRight2 { + transform: translateX(-100%); +} + +.vegas-transition-slideRight-in, +.vegas-transition-slideRight2-in { + transform: translateX(0%); +} + +.vegas-transition-slideRight2-out { + transform: translateX(100%); +} + +/*******************************************/ +/* slideUp transition */ +/*******************************************/ +.vegas-transition-slideUp, +.vegas-transition-slideUp2 { + transform: translateY(100%); +} + +.vegas-transition-slideUp-in, +.vegas-transition-slideUp2-in { + transform: translateY(0%); +} + +.vegas-transition-slideUp2-out { + transform: translateY(-100%); +} + +/*******************************************/ +/* swirlLeft transition */ +/*******************************************/ +.vegas-transition-swirlLeft, +.vegas-transition-swirlLeft2 { + transform: scale(2) rotate(35deg); + opacity: 0; +} + +.vegas-transition-swirlLeft-in, +.vegas-transition-swirlLeft2-in { + transform: scale(1) rotate(0deg); + opacity: 1; +} + +.vegas-transition-swirlLeft2-out { + transform: scale(2) rotate(-35deg); + opacity: 0; +} + +/*******************************************/ +/* swirlRight transition */ +/*******************************************/ +.vegas-transition-swirlRight, +.vegas-transition-swirlRight2 { + transform: scale(2) rotate(-35deg); + opacity: 0; +} + +.vegas-transition-swirlRight-in, +.vegas-transition-swirlRight2-in { + transform: scale(1) rotate(0deg); + opacity: 1; +} + +.vegas-transition-swirlRight2-out { + transform: scale(2) rotate(35deg); + opacity: 0; +} + +/*******************************************/ +/* zoomIn transition */ +/*******************************************/ +.vegas-transition-zoomIn, +.vegas-transition-zoomIn2 { + transform: scale(0); + opacity: 0; +} + +.vegas-transition-zoomIn-in, +.vegas-transition-zoomIn2-in { + transform: scale(1); + opacity: 1; +} + +.vegas-transition-zoomIn2-out { + transform: scale(2); + opacity: 0; +} + +/*******************************************/ +/* zoomOut transition */ +/*******************************************/ +.vegas-transition-zoomOut, +.vegas-transition-zoomOut2 { + transform: scale(2); + opacity: 0; +} + +.vegas-transition-zoomOut-in, +.vegas-transition-zoomOut2-in { + transform: scale(1); + opacity: 1; +} + +.vegas-transition-zoomOut2-out { + transform: scale(0); + opacity: 0; +} + +/*******************************************/ +/* kenburns animation */ +/*******************************************/ +.vegas-animation-kenburns { + -webkit-animation: kenburns ease-out; + animation: kenburns ease-out; +} + +@-webkit-keyframes kenburns { + 0% { + transform: scale(1.5); + } + 100% { + transform: scale(1); + } +} + +@keyframes kenburns { + 0% { + transform: scale(1.5); + } + 100% { + transform: scale(1); + } +} + +/*******************************************/ +/* kenburnsDownLeft animation */ +/*******************************************/ +.vegas-animation-kenburnsDownLeft { + -webkit-animation: kenburnsDownLeft ease-out; + animation: kenburnsDownLeft ease-out; +} + +@-webkit-keyframes kenburnsDownLeft { + 0% { + transform: scale(1.5) translate(10%, -10%); + } + 100% { + transform: scale(1) translate(0, 0); + } +} + +@keyframes kenburnsDownLeft { + 0% { + transform: scale(1.5) translate(10%, -10%); + } + 100% { + transform: scale(1) translate(0, 0); + } +} + +/*******************************************/ +/* kenburnsDownRight animation */ +/*******************************************/ +.vegas-animation-kenburnsDownRight { + -webkit-animation: kenburnsDownRight ease-out; + animation: kenburnsDownRight ease-out; +} + +@-webkit-keyframes kenburnsDownRight { + 0% { + transform: scale(1.5) translate(-10%, -10%); + } + 100% { + transform: scale(1) translate(0, 0); + } +} + +@keyframes kenburnsDownRight { + 0% { + transform: scale(1.5) translate(-10%, -10%); + } + 100% { + transform: scale(1) translate(0, 0); + } +} + +/*******************************************/ +/* kenburnsDown animation */ +/*******************************************/ +.vegas-animation-kenburnsDown { + -webkit-animation: kenburnsDown ease-out; + animation: kenburnsDown ease-out; +} + +@-webkit-keyframes kenburnsDown { + 0% { + transform: scale(1.5) translate(0, -10%); + } + 100% { + transform: scale(1) translate(0, 0); + } +} + +@keyframes kenburnsDown { + 0% { + transform: scale(1.5) translate(0, -10%); + } + 100% { + transform: scale(1) translate(0, 0); + } +} + +/*******************************************/ +/* kenburnsLeft animation */ +/*******************************************/ +.vegas-animation-kenburnsLeft { + -webkit-animation: kenburnsLeft ease-out; + animation: kenburnsLeft ease-out; +} + +@-webkit-keyframes kenburnsLeft { + 0% { + transform: scale(1.5) translate(10%, 0); + } + 100% { + transform: scale(1) translate(0, 0); + } +} + +@keyframes kenburnsLeft { + 0% { + transform: scale(1.5) translate(10%, 0); + } + 100% { + transform: scale(1) translate(0, 0); + } +} + +/*******************************************/ +/* kenburnsRight animation */ +/*******************************************/ +.vegas-animation-kenburnsRight { + -webkit-animation: kenburnsRight ease-out; + animation: kenburnsRight ease-out; +} + +@-webkit-keyframes kenburnsRight { + 0% { + transform: scale(1.5) translate(-10%, 0); + } + 100% { + transform: scale(1) translate(0, 0); + } +} + +@keyframes kenburnsRight { + 0% { + transform: scale(1.5) translate(-10%, 0); + } + 100% { + transform: scale(1) translate(0, 0); + } +} + +/*******************************************/ +/* kenburnsUpLeft animation */ +/*******************************************/ +.vegas-animation-kenburnsUpLeft { + -webkit-animation: kenburnsUpLeft ease-out; + animation: kenburnsUpLeft ease-out; +} + +@-webkit-keyframes kenburnsUpLeft { + 0% { + transform: scale(1.5) translate(10%, 10%); + } + 100% { + transform: scale(1) translate(0, 0); + } +} + +@keyframes kenburnsUpLeft { + 0% { + transform: scale(1.5) translate(10%, 10%); + } + 100% { + transform: scale(1) translate(0, 0); + } +} + +/*******************************************/ +/* kenburnsUpRight animation */ +/*******************************************/ +.vegas-animation-kenburnsUpRight { + -webkit-animation: kenburnsUpRight ease-out; + animation: kenburnsUpRight ease-out; +} + +@-webkit-keyframes kenburnsUpRight { + 0% { + transform: scale(1.5) translate(-10%, 10%); + } + 100% { + transform: scale(1) translate(0, 0); + } +} + +@keyframes kenburnsUpRight { + 0% { + transform: scale(1.5) translate(-10%, 10%); + } + 100% { + transform: scale(1) translate(0, 0); + } +} + +/*******************************************/ +/* kenburnsUp animation */ +/*******************************************/ +.vegas-animation-kenburnsUp { + -webkit-animation: kenburnsUp ease-out; + animation: kenburnsUp ease-out; +} + +@-webkit-keyframes kenburnsUp { + 0% { + transform: scale(1.5) translate(0, 10%); + } + 100% { + transform: scale(1) translate(0, 0); + } +} + +@keyframes kenburnsUp { + 0% { + transform: scale(1.5) translate(0, 10%); + } + 100% { + transform: scale(1) translate(0, 0); + } +} diff --git a/vegas/js/vegas.js b/vegas/js/vegas.js new file mode 100644 index 0000000..267b66e --- /dev/null +++ b/vegas/js/vegas.js @@ -0,0 +1,751 @@ +/*!----------------------------------------------------------------------------- + * Vegas - Fullscreen Backgrounds and Slideshows. + * v2.5.4 - built 2021-01-30 + * Licensed under the MIT License. + * http://vegas.jaysalvat.com/ + * ---------------------------------------------------------------------------- + * Copyright (C) 2010-2021 Jay Salvat + * http://jaysalvat.com/ + * --------------------------------------------------------------------------*/ + +(function ($) { + 'use strict'; + + var defaults = { + slide: 0, + delay: 5000, + loop: true, + preload: false, + preloadImage: false, + preloadVideo: false, + timer: true, + overlay: false, + autoplay: true, + shuffle: false, + cover: true, + color: null, + align: 'center', + valign: 'center', + firstTransition: null, + firstTransitionDuration: null, + transition: 'fade', + transitionDuration: 1000, + transitionRegister: [], + animation: null, + animationDuration: 'auto', + animationRegister: [], + slidesToKeep: 1, + init: function () {}, + play: function () {}, + pause: function () {}, + walk: function () {}, + slides: [ + // { + // src: null, + // color: null, + // delay: null, + // align: null, + // valign: null, + // transition: null, + // transitionDuration: null, + // animation: null, + // animationDuration: null, + // cover: true, + // video: { + // src: [], + // mute: true, + // loop: true + // } + // ... + ] + }; + + var videoCache = {}; + + var Vegas = function (elmt, options) { + this.elmt = elmt; + this.settings = $.extend({}, defaults, $.vegas.defaults, options); + this.slide = this.settings.slide; + this.total = this.settings.slides.length; + this.noshow = this.total < 2; + this.paused = !this.settings.autoplay || this.noshow; + this.ended = false; + this.$elmt = $(elmt); + this.$timer = null; + this.$overlay = null; + this.$slide = null; + this.timeout = null; + this.first = true; + + this.transitions = [ + 'fade', 'fade2', + 'blur', 'blur2', + 'flash', 'flash2', + 'negative', 'negative2', + 'burn', 'burn2', + 'slideLeft', 'slideLeft2', + 'slideRight', 'slideRight2', + 'slideUp', 'slideUp2', + 'slideDown', 'slideDown2', + 'zoomIn', 'zoomIn2', + 'zoomOut', 'zoomOut2', + 'swirlLeft', 'swirlLeft2', + 'swirlRight', 'swirlRight2' + ]; + + this.animations = [ + 'kenburns', + 'kenburnsLeft', 'kenburnsRight', + 'kenburnsUp', 'kenburnsUpLeft', 'kenburnsUpRight', + 'kenburnsDown', 'kenburnsDownLeft', 'kenburnsDownRight' + ]; + + if (!(this.settings.transitionRegister instanceof Array)) { + this.settings.transitionRegister = [ this.settings.transitionRegister ]; + } + + if (!(this.settings.animationRegister instanceof Array)) { + this.settings.animationRegister = [ this.settings.animationRegister ]; + } + + this.transitions = this.transitions.concat(this.settings.transitionRegister); + this.animations = this.animations.concat(this.settings.animationRegister); + + this.support = { + objectFit: 'objectFit' in document.body.style, + transition: 'transition' in document.body.style || 'WebkitTransition' in document.body.style, + video: $.vegas.isVideoCompatible() + }; + + if (this.settings.shuffle === true) { + this.shuffle(); + } + + this._init(); + }; + + Vegas.prototype = { + _init: function () { + var $content, + $contentScroll, + $overlay, + $timer, + isBody = this.elmt.tagName === 'BODY', + timer = this.settings.timer, + overlay = this.settings.overlay, + self = this; + + // Preloading + this._preload(); + + // Div with scrollable content + if (!isBody) { + $contentScroll = $('
'); + + $content = $('
') + .css('overflow', this.$elmt.css('overflow')) + .css('padding', this.$elmt.css('padding')); + + // Some browsers don't compute padding shorthand + if (!this.$elmt.css('padding')) { + $content + .css('padding-top', this.$elmt.css('padding-top')) + .css('padding-bottom', this.$elmt.css('padding-bottom')) + .css('padding-left', this.$elmt.css('padding-left')) + .css('padding-right', this.$elmt.css('padding-right')); + } + + this.$elmt.css('padding', 0); + + this.$elmt.clone(true).children().appendTo($content); + this.elmt.innerHTML = ''; + } + + // Timer + if (timer && this.support.transition) { + $timer = $('
'); + this.$timer = $timer; + this.$elmt.prepend($timer); + } + + // Overlay + if (overlay) { + $overlay = $('
'); + + if (typeof overlay === 'string') { + $overlay.css('background-image', 'url(' + overlay + ')'); + } + + this.$overlay = $overlay; + this.$elmt.prepend($overlay); + } + + // Container + this.$elmt.addClass('vegas-container'); + + if (!isBody) { + this.$elmt.append($contentScroll); + $contentScroll.append($content); + } + + setTimeout(function () { + self.trigger('init'); + self._goto(self.slide); + + if (self.settings.autoplay) { + self.trigger('play'); + } + }, 1); + }, + + _preload: function () { + var img, i; + + for (i = 0; i < this.settings.slides.length; i++) { + if (this.settings.preload || this.settings.preloadImages) { + if (this.settings.slides[i].src) { + img = new Image(); + img.src = this.settings.slides[i].src; + } + } + + if (this.settings.preload || this.settings.preloadVideos) { + if (this.support.video && this.settings.slides[i].video) { + if (this.settings.slides[i].video instanceof Array) { + this._video(this.settings.slides[i].video); + } else { + this._video(this.settings.slides[i].video.src); + } + } + } + } + }, + + _random: function (array) { + return array[Math.floor(Math.random() * array.length)]; + }, + + _slideShow: function () { + var self = this; + + if (this.total > 1 && !this.ended && !this.paused && !this.noshow) { + this.timeout = setTimeout(function () { + self.next(); + }, this._options('delay')); + } + }, + + _timer: function (state) { + var self = this; + + clearTimeout(this.timeout); + + if (!this.$timer) { + return; + } + + this.$timer + .removeClass('vegas-timer-running') + .find('div') + .css('transition-duration', '0ms'); + + if (this.ended || this.paused || this.noshow) { + return; + } + + if (state) { + setTimeout(function () { + self.$timer + .addClass('vegas-timer-running') + .find('div') + .css('transition-duration', self._options('delay') - 100 + 'ms'); + }, 100); + } + }, + + _video: function (srcs) { + var video, + source, + cacheKey = srcs.toString(); + + if (videoCache[cacheKey]) { + return videoCache[cacheKey]; + } + + if (!(srcs instanceof Array)) { + srcs = [ srcs ]; + } + + video = document.createElement('video'); + video.preload = true; + + srcs.forEach(function (src) { + source = document.createElement('source'); + source.src = src; + video.appendChild(source); + }); + + videoCache[cacheKey] = video; + + return video; + }, + + _fadeOutSound: function (video, duration) { + var self = this, + delay = duration / 10, + volume = video.volume - 0.09; + + if (volume > 0) { + video.volume = volume; + + setTimeout(function () { + self._fadeOutSound(video, duration); + }, delay); + } else { + video.pause(); + } + }, + + _fadeInSound: function (video, duration) { + var self = this, + delay = duration / 10, + volume = video.volume + 0.09; + + if (volume < 1) { + video.volume = volume; + + setTimeout(function () { + self._fadeInSound(video, duration); + }, delay); + } + }, + + _options: function (key, i) { + if (i === undefined) { + i = this.slide; + } + + if (this.settings.slides[i][key] !== undefined) { + return this.settings.slides[i][key]; + } + + return this.settings[key]; + }, + + _goto: function (nb) { + if (typeof this.settings.slides[nb] === 'undefined') { + nb = 0; + } + + this.slide = nb; + + var $slide, + $inner, + $video, + $slides = this.$elmt.children('.vegas-slide'), + src = this.settings.slides[nb].src, + videoSettings = this.settings.slides[nb].video, + delay = this._options('delay'), + align = this._options('align'), + valign = this._options('valign'), + cover = this._options('cover'), + color = this._options('color') || this.$elmt.css('background-color'), + self = this, + total = $slides.length, + video, + img; + + var transition = this._options('transition'), + transitionDuration = this._options('transitionDuration'), + animation = this._options('animation'), + animationDuration = this._options('animationDuration'); + + if (this.settings.firstTransition && this.first) { + transition = this.settings.firstTransition || transition; + } + + if (this.settings.firstTransitionDuration && this.first) { + transitionDuration = this.settings.firstTransitionDuration || transitionDuration; + } + + if (this.first) { + this.first = false; + } + + if (cover !== 'repeat') { + if (cover === true) { + cover = 'cover'; + } else if (cover === false) { + cover = 'contain'; + } + } + + if (transition === 'random' || transition instanceof Array) { + if (transition instanceof Array) { + transition = this._random(transition); + } else { + transition = this._random(this.transitions); + } + } + + if (animation === 'random' || animation instanceof Array) { + if (animation instanceof Array) { + animation = this._random(animation); + } else { + animation = this._random(this.animations); + } + } + + if (transitionDuration === 'auto' || transitionDuration > delay) { + transitionDuration = delay; + } + + if (animationDuration === 'auto') { + animationDuration = delay; + } + + $slide = $('
'); + + if (this.support.transition && transition) { + $slide.addClass('vegas-transition-' + transition); + } + + // Video + + if (this.support.video && videoSettings) { + if (videoSettings instanceof Array) { + video = this._video(videoSettings); + } else { + video = this._video(videoSettings.src); + } + + video.loop = videoSettings.loop !== undefined ? videoSettings.loop : true; + video.muted = videoSettings.mute !== undefined ? videoSettings.mute : true; + + if (video.muted === false) { + video.volume = 0; + this._fadeInSound(video, transitionDuration); + } else { + video.pause(); + } + + $video = $(video) + .addClass('vegas-video') + .css('background-color', color); + + if (this.support.objectFit) { + $video + .css('object-position', align + ' ' + valign) + .css('object-fit', cover) + .css('width', '100%') + .css('height', '100%'); + } else if (cover === 'contain') { + $video + .css('width', '100%') + .css('height', '100%'); + } + + $slide.append($video); + + // Image + + } else { + img = new Image(); + + $inner = $('
') + .css('background-image', 'url("' + src + '")') + .css('background-color', color) + .css('background-position', align + ' ' + valign); + + if (cover === 'repeat') { + $inner.css('background-repeat', 'repeat'); + } else { + $inner.css('background-size', cover); + } + + if (this.support.transition && animation) { + $inner + .addClass('vegas-animation-' + animation) + .css('animation-duration', animationDuration + 'ms'); + } + + $slide.append($inner); + } + + if (!this.support.transition) { + $slide.css('display', 'none'); + } + + if (total) { + $slides.eq(total - 1).after($slide); + } else { + this.$elmt.prepend($slide); + } + + $slides + .css('transition', 'all 0ms') + .each(function () { + this.className = 'vegas-slide'; + + if (this.tagName === 'VIDEO') { + this.className += ' vegas-video'; + } + + if (transition) { + this.className += ' vegas-transition-' + transition; + this.className += ' vegas-transition-' + transition + '-in'; + } + } + ); + + self._timer(false); + + function go () { + self._timer(true); + + setTimeout(function () { + if (transition) { + if (self.support.transition) { + $slides + .css('transition', 'all ' + transitionDuration + 'ms') + .addClass('vegas-transition-' + transition + '-out'); + + $slides.each(function () { + var video = $slides.find('video').get(0); + + if (video) { + video.volume = 1; + self._fadeOutSound(video, transitionDuration); + } + }); + + $slide + .css('transition', 'all ' + transitionDuration + 'ms') + .addClass('vegas-transition-' + transition + '-in'); + } else { + $slide.fadeIn(transitionDuration); + } + } + + for (var i = 0; i < $slides.length - self.settings.slidesToKeep; i++) { + $slides.eq(i).remove(); + } + + self.trigger('walk'); + self._slideShow(); + }, 100); + } + if (video) { + if (video.readyState === 4) { + video.currentTime = 0; + } + + video.play(); + go(); + } else { + img.src = src; + + if (img.complete) { + go(); + } else { + img.onload = go; + } + } + }, + + _end: function () { + this.ended = !this.settings.autoplay; + this._timer(false); + this.trigger('end'); + }, + + shuffle: function () { + var temp, + rand; + + for (var i = this.total - 1; i > 0; i--) { + rand = Math.floor(Math.random() * (i + 1)); + temp = this.settings.slides[i]; + + this.settings.slides[i] = this.settings.slides[rand]; + this.settings.slides[rand] = temp; + } + }, + + play: function () { + if (this.paused) { + this.paused = false; + this.next(); + this.trigger('play'); + } + }, + + pause: function () { + this._timer(false); + this.paused = true; + this.trigger('pause'); + }, + + toggle: function () { + if (this.paused) { + this.play(); + } else { + this.pause(); + } + }, + + playing: function () { + return !this.paused && !this.noshow; + }, + + current: function (advanced) { + if (advanced) { + return { + slide: this.slide, + data: this.settings.slides[this.slide] + }; + } + return this.slide; + }, + + jump: function (nb) { + if (nb < 0 || nb > this.total - 1 || nb === this.slide) { + return; + } + + this.slide = nb; + this._goto(this.slide); + }, + + next: function () { + this.slide++; + + if (this.slide >= this.total) { + if (!this.settings.loop) { + return this._end(); + } + + this.slide = 0; + } + + this._goto(this.slide); + }, + + previous: function () { + this.slide--; + + if (this.slide < 0) { + if (!this.settings.loop) { + this.slide++; + return; + } else { + this.slide = this.total - 1; + } + } + + this._goto(this.slide); + }, + + trigger: function (fn) { + var params = []; + + if (fn === 'init') { + params = [ this.settings ]; + } else { + params = [ + this.slide, + this.settings.slides[this.slide] + ]; + } + + this.$elmt.trigger('vegas' + fn, params); + + if (typeof this.settings[fn] === 'function') { + this.settings[fn].apply(this.$elmt, params); + } + }, + + options: function (key, value) { + var oldSlides = this.settings.slides.slice(); + + if (typeof key === 'object') { + this.settings = $.extend({}, defaults, $.vegas.defaults, key); + } else if (typeof key === 'string') { + if (value === undefined) { + return this.settings[key]; + } + this.settings[key] = value; + } else { + return this.settings; + } + + // In case slides have changed + if (this.settings.slides !== oldSlides) { + this.total = this.settings.slides.length; + this.noshow = this.total < 2; + this._preload(); + } + }, + + destroy: function () { + clearTimeout(this.timeout); + + this.$elmt.removeClass('vegas-container'); + this.$elmt.find('> .vegas-slide').remove(); + this.$elmt.find('> .vegas-wrapper').clone(true).children().appendTo(this.$elmt); + this.$elmt.find('> .vegas-wrapper').remove(); + + if (this.settings.timer) { + this.$timer.remove(); + } + + if (this.settings.overlay) { + this.$overlay.remove(); + } + + this.elmt._vegas = null; + } + }; + + $.fn.vegas = function(options) { + var args = arguments, + error = false, + returns; + + if (options === undefined || typeof options === 'object') { + return this.each(function () { + if (!this._vegas) { + this._vegas = new Vegas(this, options); + } + }); + } else if (typeof options === 'string') { + this.each(function () { + var instance = this._vegas; + + if (!instance) { + throw new Error('No Vegas applied to this element.'); + } + + if (typeof instance[options] === 'function' && options[0] !== '_') { + returns = instance[options].apply(instance, [].slice.call(args, 1)); + } else { + error = true; + } + }); + + if (error) { + throw new Error('No method "' + options + '" in Vegas.'); + } + + return returns !== undefined ? returns : this; + } + }; + + $.vegas = {}; + $.vegas.defaults = defaults; + + $.vegas.isVideoCompatible = function () { + return !/(Android|webOS|Phone|iPad|iPod|BlackBerry|Windows Phone)/i.test(navigator.userAgent); + }; + +})(window.jQuery || window.Zepto || window.m4q); diff --git a/vegas/js/vegas.min.css b/vegas/js/vegas.min.css new file mode 100644 index 0000000..cc2d082 --- /dev/null +++ b/vegas/js/vegas.min.css @@ -0,0 +1,2 @@ +.vegas-content-scrollable,.vegas-overlay,.vegas-slide,.vegas-slide-inner,.vegas-timer{position:absolute;top:0;left:0;bottom:0;right:0;overflow:hidden;border:none;padding:0;margin:0}.vegas-content-scrollable{position:relative;height:100%;overflow:auto}.vegas-overlay{opacity:.5;background:url(./overlays/02.png) center center}.vegas-timer{top:auto;bottom:0;height:2px}.vegas-timer-progress{width:0%;height:100%;background:#fff;transition:width ease-out}.vegas-timer-running .vegas-timer-progress{width:100%}.vegas-slide,.vegas-slide-inner{margin:0;padding:0;background:center center no-repeat;transform:translateZ(0);will-change:transform,opacity}body .vegas-container{overflow:hidden!important;position:relative}.vegas-video{min-width:100%;min-height:100%;width:auto;height:auto}body.vegas-container{overflow:auto;position:static;z-index:-2}body.vegas-container>.vegas-overlay,body.vegas-container>.vegas-slide,body.vegas-container>.vegas-timer{position:fixed;z-index:-1}.vegas-transition-blur,.vegas-transition-blur2{opacity:0;filter:blur(32px) brightness(1.01)}.vegas-transition-blur-in,.vegas-transition-blur2-in{opacity:1;filter:blur(0) brightness(1.01)}.vegas-transition-blur2-out{opacity:0}.vegas-transition-burn,.vegas-transition-burn2{opacity:0;filter:contrast(1000%) saturate(1000%)}.vegas-transition-burn-in,.vegas-transition-burn2-in{opacity:1;filter:contrast(100%) saturate(100%)}.vegas-transition-burn2-out{opacity:0;filter:contrast(1000%) saturate(1000%)}.vegas-transition-fade,.vegas-transition-fade2{opacity:0}.vegas-transition-fade-in,.vegas-transition-fade2-in{opacity:1}.vegas-transition-fade2-out{opacity:0}.vegas-transition-flash,.vegas-transition-flash2{opacity:0;filter:brightness(25)}.vegas-transition-flash-in,.vegas-transition-flash2-in{opacity:1;filter:brightness(1)}.vegas-transition-flash2-out{opacity:0;filter:brightness(25)}.vegas-transition-negative,.vegas-transition-negative2{opacity:0;filter:invert(100%)}.vegas-transition-negative-in,.vegas-transition-negative2-in{opacity:1;filter:invert(0)}.vegas-transition-negative2-out{opacity:0;filter:invert(100%)}.vegas-transition-slideDown,.vegas-transition-slideDown2{transform:translateY(-100%)}.vegas-transition-slideDown-in,.vegas-transition-slideDown2-in{transform:translateY(0)}.vegas-transition-slideDown2-out{transform:translateY(100%)}.vegas-transition-slideLeft,.vegas-transition-slideLeft2{transform:translateX(100%)}.vegas-transition-slideLeft-in,.vegas-transition-slideLeft2-in{transform:translateX(0)}.vegas-transition-slideLeft2-out,.vegas-transition-slideRight,.vegas-transition-slideRight2{transform:translateX(-100%)}.vegas-transition-slideRight-in,.vegas-transition-slideRight2-in{transform:translateX(0)}.vegas-transition-slideRight2-out{transform:translateX(100%)}.vegas-transition-slideUp,.vegas-transition-slideUp2{transform:translateY(100%)}.vegas-transition-slideUp-in,.vegas-transition-slideUp2-in{transform:translateY(0)}.vegas-transition-slideUp2-out{transform:translateY(-100%)}.vegas-transition-swirlLeft,.vegas-transition-swirlLeft2{transform:scale(2) rotate(35deg);opacity:0}.vegas-transition-swirlLeft-in,.vegas-transition-swirlLeft2-in{transform:scale(1) rotate(0);opacity:1}.vegas-transition-swirlLeft2-out,.vegas-transition-swirlRight,.vegas-transition-swirlRight2{transform:scale(2) rotate(-35deg);opacity:0}.vegas-transition-swirlRight-in,.vegas-transition-swirlRight2-in{transform:scale(1) rotate(0);opacity:1}.vegas-transition-swirlRight2-out{transform:scale(2) rotate(35deg);opacity:0}.vegas-transition-zoomIn,.vegas-transition-zoomIn2{transform:scale(0);opacity:0}.vegas-transition-zoomIn-in,.vegas-transition-zoomIn2-in{transform:scale(1);opacity:1}.vegas-transition-zoomIn2-out,.vegas-transition-zoomOut,.vegas-transition-zoomOut2{transform:scale(2);opacity:0}.vegas-transition-zoomOut-in,.vegas-transition-zoomOut2-in{transform:scale(1);opacity:1}.vegas-transition-zoomOut2-out{transform:scale(0);opacity:0}.vegas-animation-kenburns{-webkit-animation:kenburns ease-out;animation:kenburns ease-out}@-webkit-keyframes kenburns{0%{transform:scale(1.5)}100%{transform:scale(1)}}@keyframes kenburns{0%{transform:scale(1.5)}100%{transform:scale(1)}}.vegas-animation-kenburnsDownLeft{-webkit-animation:kenburnsDownLeft ease-out;animation:kenburnsDownLeft ease-out}@-webkit-keyframes kenburnsDownLeft{0%{transform:scale(1.5) translate(10%,-10%)}100%{transform:scale(1) translate(0,0)}}@keyframes kenburnsDownLeft{0%{transform:scale(1.5) translate(10%,-10%)}100%{transform:scale(1) translate(0,0)}}.vegas-animation-kenburnsDownRight{-webkit-animation:kenburnsDownRight ease-out;animation:kenburnsDownRight ease-out}@-webkit-keyframes kenburnsDownRight{0%{transform:scale(1.5) translate(-10%,-10%)}100%{transform:scale(1) translate(0,0)}}@keyframes kenburnsDownRight{0%{transform:scale(1.5) translate(-10%,-10%)}100%{transform:scale(1) translate(0,0)}}.vegas-animation-kenburnsDown{-webkit-animation:kenburnsDown ease-out;animation:kenburnsDown ease-out}@-webkit-keyframes kenburnsDown{0%{transform:scale(1.5) translate(0,-10%)}100%{transform:scale(1) translate(0,0)}}@keyframes kenburnsDown{0%{transform:scale(1.5) translate(0,-10%)}100%{transform:scale(1) translate(0,0)}}.vegas-animation-kenburnsLeft{-webkit-animation:kenburnsLeft ease-out;animation:kenburnsLeft ease-out}@-webkit-keyframes kenburnsLeft{0%{transform:scale(1.5) translate(10%,0)}100%{transform:scale(1) translate(0,0)}}@keyframes kenburnsLeft{0%{transform:scale(1.5) translate(10%,0)}100%{transform:scale(1) translate(0,0)}}.vegas-animation-kenburnsRight{-webkit-animation:kenburnsRight ease-out;animation:kenburnsRight ease-out}@-webkit-keyframes kenburnsRight{0%{transform:scale(1.5) translate(-10%,0)}100%{transform:scale(1) translate(0,0)}}@keyframes kenburnsRight{0%{transform:scale(1.5) translate(-10%,0)}100%{transform:scale(1) translate(0,0)}}.vegas-animation-kenburnsUpLeft{-webkit-animation:kenburnsUpLeft ease-out;animation:kenburnsUpLeft ease-out}@-webkit-keyframes kenburnsUpLeft{0%{transform:scale(1.5) translate(10%,10%)}100%{transform:scale(1) translate(0,0)}}@keyframes kenburnsUpLeft{0%{transform:scale(1.5) translate(10%,10%)}100%{transform:scale(1) translate(0,0)}}.vegas-animation-kenburnsUpRight{-webkit-animation:kenburnsUpRight ease-out;animation:kenburnsUpRight ease-out}@-webkit-keyframes kenburnsUpRight{0%{transform:scale(1.5) translate(-10%,10%)}100%{transform:scale(1) translate(0,0)}}@keyframes kenburnsUpRight{0%{transform:scale(1.5) translate(-10%,10%)}100%{transform:scale(1) translate(0,0)}}.vegas-animation-kenburnsUp{-webkit-animation:kenburnsUp ease-out;animation:kenburnsUp ease-out}@-webkit-keyframes kenburnsUp{0%{transform:scale(1.5) translate(0,10%)}100%{transform:scale(1) translate(0,0)}}@keyframes kenburnsUp{0%{transform:scale(1.5) translate(0,10%)}100%{transform:scale(1) translate(0,0)}} +/*# sourceMappingURL=vegas.min.css.map */ diff --git a/vegas/js/vegas.min.css.map b/vegas/js/vegas.min.css.map new file mode 100644 index 0000000..d0ea41c --- /dev/null +++ b/vegas/js/vegas.min.css.map @@ -0,0 +1 @@ +{"version":3,"names":[],"mappings":"","sources":["vegas.css"],"sourcesContent":[".vegas-overlay,\n.vegas-content-scrollable,\n.vegas-timer,\n.vegas-slide,\n.vegas-slide-inner {\n position: absolute;\n top: 0;\n left: 0;\n bottom: 0;\n right: 0;\n overflow: hidden;\n border: none;\n padding: 0;\n margin: 0;\n}\n\n.vegas-content-scrollable {\n position: relative;\n height: 100%;\n overflow: auto;\n}\n\n.vegas-overlay {\n opacity: .5;\n background: transparent url(\"./overlays/02.png\") center center repeat;\n}\n\n.vegas-timer {\n top: auto;\n bottom: 0;\n height: 2px;\n}\n\n.vegas-timer-progress {\n width: 0%;\n height: 100%;\n background: white;\n transition: width ease-out;\n}\n\n.vegas-timer-running .vegas-timer-progress {\n width: 100%;\n}\n\n.vegas-slide,\n.vegas-slide-inner {\n margin: 0;\n padding: 0;\n background: transparent center center no-repeat;\n transform: translateZ(0);\n will-change: transform, opacity;\n}\n\nbody .vegas-container {\n overflow: hidden !important;\n position: relative;\n}\n\n.vegas-video {\n min-width: 100%;\n min-height: 100%;\n width: auto;\n height: auto;\n}\n\nbody.vegas-container {\n overflow: auto;\n position: static;\n z-index: -2;\n}\n\nbody.vegas-container > .vegas-timer,\nbody.vegas-container > .vegas-overlay,\nbody.vegas-container > .vegas-slide {\n position: fixed;\n z-index: -1;\n}\n\n/* Target Safari IOS7+ in order to add 76px */\n/*******************************************/\n/* blur transition */\n/*******************************************/\n.vegas-transition-blur,\n.vegas-transition-blur2 {\n opacity: 0;\n filter: blur(32px) brightness(1.01);\n}\n\n.vegas-transition-blur-in,\n.vegas-transition-blur2-in {\n opacity: 1;\n filter: blur(0px) brightness(1.01);\n}\n\n.vegas-transition-blur2-out {\n opacity: 0;\n}\n\n/*******************************************/\n/* burn transition */\n/*******************************************/\n.vegas-transition-burn,\n.vegas-transition-burn2 {\n opacity: 0;\n filter: contrast(1000%) saturate(1000%);\n}\n\n.vegas-transition-burn-in,\n.vegas-transition-burn2-in {\n opacity: 1;\n filter: contrast(100%) saturate(100%);\n}\n\n.vegas-transition-burn2-out {\n opacity: 0;\n filter: contrast(1000%) saturate(1000%);\n}\n\n/*******************************************/\n/* fade transition */\n/*******************************************/\n.vegas-transition-fade,\n.vegas-transition-fade2 {\n opacity: 0;\n}\n\n.vegas-transition-fade-in,\n.vegas-transition-fade2-in {\n opacity: 1;\n}\n\n.vegas-transition-fade2-out {\n opacity: 0;\n}\n\n/*******************************************/\n/* flash transition */\n/*******************************************/\n.vegas-transition-flash,\n.vegas-transition-flash2 {\n opacity: 0;\n filter: brightness(25);\n}\n\n.vegas-transition-flash-in,\n.vegas-transition-flash2-in {\n opacity: 1;\n filter: brightness(1);\n}\n\n.vegas-transition-flash2-out {\n opacity: 0;\n filter: brightness(25);\n}\n\n/*******************************************/\n/* negative transition */\n/*******************************************/\n.vegas-transition-negative,\n.vegas-transition-negative2 {\n opacity: 0;\n filter: invert(100%);\n}\n\n.vegas-transition-negative-in,\n.vegas-transition-negative2-in {\n opacity: 1;\n filter: invert(0);\n}\n\n.vegas-transition-negative2-out {\n opacity: 0;\n filter: invert(100%);\n}\n\n/*******************************************/\n/* slideDown transition */\n/*******************************************/\n.vegas-transition-slideDown,\n.vegas-transition-slideDown2 {\n transform: translateY(-100%);\n}\n\n.vegas-transition-slideDown-in,\n.vegas-transition-slideDown2-in {\n transform: translateY(0%);\n}\n\n.vegas-transition-slideDown2-out {\n transform: translateY(100%);\n}\n\n/*******************************************/\n/* slideLeft transition */\n/*******************************************/\n.vegas-transition-slideLeft,\n.vegas-transition-slideLeft2 {\n transform: translateX(100%);\n}\n\n.vegas-transition-slideLeft-in,\n.vegas-transition-slideLeft2-in {\n transform: translateX(0%);\n}\n\n.vegas-transition-slideLeft2-out {\n transform: translateX(-100%);\n}\n\n/*******************************************/\n/* slideRight transition */\n/*******************************************/\n.vegas-transition-slideRight,\n.vegas-transition-slideRight2 {\n transform: translateX(-100%);\n}\n\n.vegas-transition-slideRight-in,\n.vegas-transition-slideRight2-in {\n transform: translateX(0%);\n}\n\n.vegas-transition-slideRight2-out {\n transform: translateX(100%);\n}\n\n/*******************************************/\n/* slideUp transition */\n/*******************************************/\n.vegas-transition-slideUp,\n.vegas-transition-slideUp2 {\n transform: translateY(100%);\n}\n\n.vegas-transition-slideUp-in,\n.vegas-transition-slideUp2-in {\n transform: translateY(0%);\n}\n\n.vegas-transition-slideUp2-out {\n transform: translateY(-100%);\n}\n\n/*******************************************/\n/* swirlLeft transition */\n/*******************************************/\n.vegas-transition-swirlLeft,\n.vegas-transition-swirlLeft2 {\n transform: scale(2) rotate(35deg);\n opacity: 0;\n}\n\n.vegas-transition-swirlLeft-in,\n.vegas-transition-swirlLeft2-in {\n transform: scale(1) rotate(0deg);\n opacity: 1;\n}\n\n.vegas-transition-swirlLeft2-out {\n transform: scale(2) rotate(-35deg);\n opacity: 0;\n}\n\n/*******************************************/\n/* swirlRight transition */\n/*******************************************/\n.vegas-transition-swirlRight,\n.vegas-transition-swirlRight2 {\n transform: scale(2) rotate(-35deg);\n opacity: 0;\n}\n\n.vegas-transition-swirlRight-in,\n.vegas-transition-swirlRight2-in {\n transform: scale(1) rotate(0deg);\n opacity: 1;\n}\n\n.vegas-transition-swirlRight2-out {\n transform: scale(2) rotate(35deg);\n opacity: 0;\n}\n\n/*******************************************/\n/* zoomIn transition */\n/*******************************************/\n.vegas-transition-zoomIn,\n.vegas-transition-zoomIn2 {\n transform: scale(0);\n opacity: 0;\n}\n\n.vegas-transition-zoomIn-in,\n.vegas-transition-zoomIn2-in {\n transform: scale(1);\n opacity: 1;\n}\n\n.vegas-transition-zoomIn2-out {\n transform: scale(2);\n opacity: 0;\n}\n\n/*******************************************/\n/* zoomOut transition */\n/*******************************************/\n.vegas-transition-zoomOut,\n.vegas-transition-zoomOut2 {\n transform: scale(2);\n opacity: 0;\n}\n\n.vegas-transition-zoomOut-in,\n.vegas-transition-zoomOut2-in {\n transform: scale(1);\n opacity: 1;\n}\n\n.vegas-transition-zoomOut2-out {\n transform: scale(0);\n opacity: 0;\n}\n\n/*******************************************/\n/* kenburns animation */\n/*******************************************/\n.vegas-animation-kenburns {\n -webkit-animation: kenburns ease-out;\n animation: kenburns ease-out;\n}\n\n@-webkit-keyframes kenburns {\n 0% {\n transform: scale(1.5);\n }\n 100% {\n transform: scale(1);\n }\n}\n\n@keyframes kenburns {\n 0% {\n transform: scale(1.5);\n }\n 100% {\n transform: scale(1);\n }\n}\n\n/*******************************************/\n/* kenburnsDownLeft animation */\n/*******************************************/\n.vegas-animation-kenburnsDownLeft {\n -webkit-animation: kenburnsDownLeft ease-out;\n animation: kenburnsDownLeft ease-out;\n}\n\n@-webkit-keyframes kenburnsDownLeft {\n 0% {\n transform: scale(1.5) translate(10%, -10%);\n }\n 100% {\n transform: scale(1) translate(0, 0);\n }\n}\n\n@keyframes kenburnsDownLeft {\n 0% {\n transform: scale(1.5) translate(10%, -10%);\n }\n 100% {\n transform: scale(1) translate(0, 0);\n }\n}\n\n/*******************************************/\n/* kenburnsDownRight animation */\n/*******************************************/\n.vegas-animation-kenburnsDownRight {\n -webkit-animation: kenburnsDownRight ease-out;\n animation: kenburnsDownRight ease-out;\n}\n\n@-webkit-keyframes kenburnsDownRight {\n 0% {\n transform: scale(1.5) translate(-10%, -10%);\n }\n 100% {\n transform: scale(1) translate(0, 0);\n }\n}\n\n@keyframes kenburnsDownRight {\n 0% {\n transform: scale(1.5) translate(-10%, -10%);\n }\n 100% {\n transform: scale(1) translate(0, 0);\n }\n}\n\n/*******************************************/\n/* kenburnsDown animation */\n/*******************************************/\n.vegas-animation-kenburnsDown {\n -webkit-animation: kenburnsDown ease-out;\n animation: kenburnsDown ease-out;\n}\n\n@-webkit-keyframes kenburnsDown {\n 0% {\n transform: scale(1.5) translate(0, -10%);\n }\n 100% {\n transform: scale(1) translate(0, 0);\n }\n}\n\n@keyframes kenburnsDown {\n 0% {\n transform: scale(1.5) translate(0, -10%);\n }\n 100% {\n transform: scale(1) translate(0, 0);\n }\n}\n\n/*******************************************/\n/* kenburnsLeft animation */\n/*******************************************/\n.vegas-animation-kenburnsLeft {\n -webkit-animation: kenburnsLeft ease-out;\n animation: kenburnsLeft ease-out;\n}\n\n@-webkit-keyframes kenburnsLeft {\n 0% {\n transform: scale(1.5) translate(10%, 0);\n }\n 100% {\n transform: scale(1) translate(0, 0);\n }\n}\n\n@keyframes kenburnsLeft {\n 0% {\n transform: scale(1.5) translate(10%, 0);\n }\n 100% {\n transform: scale(1) translate(0, 0);\n }\n}\n\n/*******************************************/\n/* kenburnsRight animation */\n/*******************************************/\n.vegas-animation-kenburnsRight {\n -webkit-animation: kenburnsRight ease-out;\n animation: kenburnsRight ease-out;\n}\n\n@-webkit-keyframes kenburnsRight {\n 0% {\n transform: scale(1.5) translate(-10%, 0);\n }\n 100% {\n transform: scale(1) translate(0, 0);\n }\n}\n\n@keyframes kenburnsRight {\n 0% {\n transform: scale(1.5) translate(-10%, 0);\n }\n 100% {\n transform: scale(1) translate(0, 0);\n }\n}\n\n/*******************************************/\n/* kenburnsUpLeft animation */\n/*******************************************/\n.vegas-animation-kenburnsUpLeft {\n -webkit-animation: kenburnsUpLeft ease-out;\n animation: kenburnsUpLeft ease-out;\n}\n\n@-webkit-keyframes kenburnsUpLeft {\n 0% {\n transform: scale(1.5) translate(10%, 10%);\n }\n 100% {\n transform: scale(1) translate(0, 0);\n }\n}\n\n@keyframes kenburnsUpLeft {\n 0% {\n transform: scale(1.5) translate(10%, 10%);\n }\n 100% {\n transform: scale(1) translate(0, 0);\n }\n}\n\n/*******************************************/\n/* kenburnsUpRight animation */\n/*******************************************/\n.vegas-animation-kenburnsUpRight {\n -webkit-animation: kenburnsUpRight ease-out;\n animation: kenburnsUpRight ease-out;\n}\n\n@-webkit-keyframes kenburnsUpRight {\n 0% {\n transform: scale(1.5) translate(-10%, 10%);\n }\n 100% {\n transform: scale(1) translate(0, 0);\n }\n}\n\n@keyframes kenburnsUpRight {\n 0% {\n transform: scale(1.5) translate(-10%, 10%);\n }\n 100% {\n transform: scale(1) translate(0, 0);\n }\n}\n\n/*******************************************/\n/* kenburnsUp animation */\n/*******************************************/\n.vegas-animation-kenburnsUp {\n -webkit-animation: kenburnsUp ease-out;\n animation: kenburnsUp ease-out;\n}\n\n@-webkit-keyframes kenburnsUp {\n 0% {\n transform: scale(1.5) translate(0, 10%);\n }\n 100% {\n transform: scale(1) translate(0, 0);\n }\n}\n\n@keyframes kenburnsUp {\n 0% {\n transform: scale(1.5) translate(0, 10%);\n }\n 100% {\n transform: scale(1) translate(0, 0);\n }\n}\n"],"file":"vegas.min.css"} \ No newline at end of file diff --git a/vegas/js/vegas.min.js b/vegas/js/vegas.min.js new file mode 100644 index 0000000..739c55c --- /dev/null +++ b/vegas/js/vegas.min.js @@ -0,0 +1,11 @@ +/*!----------------------------------------------------------------------------- + * Vegas - Fullscreen Backgrounds and Slideshows. + * v2.5.4 - built 2021-01-30 + * Licensed under the MIT License. + * http://vegas.jaysalvat.com/ + * ---------------------------------------------------------------------------- + * Copyright (C) 2010-2021 Jay Salvat + * http://jaysalvat.com/ + * --------------------------------------------------------------------------*/ +!function(b){"use strict";function t(t,s){this.elmt=t,this.settings=b.extend({},e,b.vegas.defaults,s),this.slide=this.settings.slide,this.total=this.settings.slides.length,this.noshow=this.total<2,this.paused=!this.settings.autoplay||this.noshow,this.ended=!1,this.$elmt=b(t),this.$timer=null,this.$overlay=null,this.$slide=null,this.timeout=null,this.first=!0,this.transitions=["fade","fade2","blur","blur2","flash","flash2","negative","negative2","burn","burn2","slideLeft","slideLeft2","slideRight","slideRight2","slideUp","slideUp2","slideDown","slideDown2","zoomIn","zoomIn2","zoomOut","zoomOut2","swirlLeft","swirlLeft2","swirlRight","swirlRight2"],this.animations=["kenburns","kenburnsLeft","kenburnsRight","kenburnsUp","kenburnsUpLeft","kenburnsUpRight","kenburnsDown","kenburnsDownLeft","kenburnsDownRight"],this.settings.transitionRegister instanceof Array||(this.settings.transitionRegister=[this.settings.transitionRegister]),this.settings.animationRegister instanceof Array||(this.settings.animationRegister=[this.settings.animationRegister]),this.transitions=this.transitions.concat(this.settings.transitionRegister),this.animations=this.animations.concat(this.settings.animationRegister),this.support={objectFit:"objectFit"in document.body.style,transition:"transition"in document.body.style||"WebkitTransition"in document.body.style,video:b.vegas.isVideoCompatible()},!0===this.settings.shuffle&&this.shuffle(),this._init()}var e={slide:0,delay:5e3,loop:!0,preload:!1,preloadImage:!1,preloadVideo:!1,timer:!0,overlay:!1,autoplay:!0,shuffle:!1,cover:!0,color:null,align:"center",valign:"center",firstTransition:null,firstTransitionDuration:null,transition:"fade",transitionDuration:1e3,transitionRegister:[],animation:null,animationDuration:"auto",animationRegister:[],slidesToKeep:1,init:function(){},play:function(){},pause:function(){},walk:function(){},slides:[]},n={};t.prototype={_init:function(){var t,s,i,e,n="BODY"===this.elmt.tagName,o=this.settings.timer,a=this.settings.overlay,r=this;this._preload(),n||(s=b('
'),t=b('
').css("overflow",this.$elmt.css("overflow")).css("padding",this.$elmt.css("padding")),this.$elmt.css("padding")||t.css("padding-top",this.$elmt.css("padding-top")).css("padding-bottom",this.$elmt.css("padding-bottom")).css("padding-left",this.$elmt.css("padding-left")).css("padding-right",this.$elmt.css("padding-right")),this.$elmt.css("padding",0),this.$elmt.clone(!0).children().appendTo(t),this.elmt.innerHTML=""),o&&this.support.transition&&(e=b('
'),this.$timer=e,this.$elmt.prepend(e)),a&&(i=b('
'),"string"==typeof a&&i.css("background-image","url("+a+")"),this.$overlay=i,this.$elmt.prepend(i)),this.$elmt.addClass("vegas-container"),n||(this.$elmt.append(s),s.append(t)),setTimeout(function(){r.trigger("init"),r._goto(r.slide),r.settings.autoplay&&r.trigger("play")},1)},_preload:function(){var t;for(t=0;t
'),this.support.transition&&f&&s.addClass("vegas-transition-"+f),this.support.video&&h?((n=h instanceof Array?this._video(h):this._video(h.src)).loop=void 0===h.loop||h.loop,n.muted=void 0===h.mute||h.mute,!1===n.muted?(n.volume=0,this._fadeInSound(n,v)):n.pause(),e=b(n).addClass("vegas-video").css("background-color",c),this.support.objectFit?e.css("object-position",l+" "+g).css("object-fit",u).css("width","100%").css("height","100%"):"contain"===u&&e.css("width","100%").css("height","100%"),s.append(e)):(o=new Image,i=b('
').css("background-image",'url("'+r+'")').css("background-color",c).css("background-position",l+" "+g),"repeat"===u?i.css("background-repeat","repeat"):i.css("background-size",u),this.support.transition&&y&&i.addClass("vegas-animation-"+y).css("animation-duration",_+"ms"),s.append(i)),this.support.transition||s.css("display","none"),m?a.eq(m-1).after(s):this.$elmt.prepend(s),a.css("transition","all 0ms").each(function(){this.className="vegas-slide","VIDEO"===this.tagName&&(this.className+=" vegas-video"),f&&(this.className+=" vegas-transition-"+f,this.className+=" vegas-transition-"+f+"-in")}),p._timer(!1),n?(4===n.readyState&&(n.currentTime=0),n.play(),w()):(o.src=r,o.complete?w():o.onload=w)},_end:function(){this.ended=!this.settings.autoplay,this._timer(!1),this.trigger("end")},shuffle:function(){for(var t,s,i=this.total-1;0this.total-1||t===this.slide||(this.slide=t,this._goto(this.slide))},next:function(){if(this.slide++,this.slide>=this.total){if(!this.settings.loop)return this._end();this.slide=0}this._goto(this.slide)},previous:function(){if(this.slide--,this.slide<0){if(!this.settings.loop)return void this.slide++;this.slide=this.total-1}this._goto(this.slide)},trigger:function(t){var s=[];s="init"===t?[this.settings]:[this.slide,this.settings.slides[this.slide]],this.$elmt.trigger("vegas"+t,s),"function"==typeof this.settings[t]&&this.settings[t].apply(this.$elmt,s)},options:function(t,s){var i=this.settings.slides.slice();if("object"==typeof t)this.settings=b.extend({},e,b.vegas.defaults,t);else{if("string"!=typeof t)return this.settings;if(void 0===s)return this.settings[t];this.settings[t]=s}this.settings.slides!==i&&(this.total=this.settings.slides.length,this.noshow=this.total<2,this._preload())},destroy:function(){clearTimeout(this.timeout),this.$elmt.removeClass("vegas-container"),this.$elmt.find("> .vegas-slide").remove(),this.$elmt.find("> .vegas-wrapper").clone(!0).children().appendTo(this.$elmt),this.$elmt.find("> .vegas-wrapper").remove(),this.settings.timer&&this.$timer.remove(),this.settings.overlay&&this.$overlay.remove(),this.elmt._vegas=null}},b.fn.vegas=function(s){var i,e=arguments,n=!1;if(void 0===s||"object"==typeof s)return this.each(function(){this._vegas||(this._vegas=new t(this,s))});if("string"==typeof s){if(this.each(function(){var t=this._vegas;if(!t)throw new Error("No Vegas applied to this element.");"function"==typeof t[s]&&"_"!==s[0]?i=t[s].apply(t,[].slice.call(e,1)):n=!0}),n)throw new Error('No method "'+s+'" in Vegas.');return void 0!==i?i:this}},b.vegas={},b.vegas.defaults=e,b.vegas.isVideoCompatible=function(){return!/(Android|webOS|Phone|iPad|iPod|BlackBerry|Windows Phone)/i.test(navigator.userAgent)}}(window.jQuery||window.Zepto||window.m4q); +//# sourceMappingURL=vegas.min.js.map diff --git a/vegas/js/vegas.min.js.map b/vegas/js/vegas.min.js.map new file mode 100644 index 0000000..8cd99b1 --- /dev/null +++ b/vegas/js/vegas.min.js.map @@ -0,0 +1 @@ +{"version":3,"file":"vegas.min.js","sources":["vegas.min.js"],"sourcesContent":["/*!-----------------------------------------------------------------------------\n * Vegas - Fullscreen Backgrounds and Slideshows.\n * v2.5.4 - built 2021-01-30\n * Licensed under the MIT License.\n * http://vegas.jaysalvat.com/\n * ----------------------------------------------------------------------------\n * Copyright (C) 2010-2021 Jay Salvat\n * http://jaysalvat.com/\n * --------------------------------------------------------------------------*/\n\n(function ($) {\n 'use strict';\n\n var defaults = {\n slide: 0,\n delay: 5000,\n loop: true,\n preload: false,\n preloadImage: false,\n preloadVideo: false,\n timer: true,\n overlay: false,\n autoplay: true,\n shuffle: false,\n cover: true,\n color: null,\n align: 'center',\n valign: 'center',\n firstTransition: null,\n firstTransitionDuration: null,\n transition: 'fade',\n transitionDuration: 1000,\n transitionRegister: [],\n animation: null,\n animationDuration: 'auto',\n animationRegister: [],\n slidesToKeep: 1,\n init: function () {},\n play: function () {},\n pause: function () {},\n walk: function () {},\n slides: [\n // {\n // src: null,\n // color: null,\n // delay: null,\n // align: null,\n // valign: null,\n // transition: null,\n // transitionDuration: null,\n // animation: null,\n // animationDuration: null,\n // cover: true,\n // video: {\n // src: [],\n // mute: true,\n // loop: true\n // }\n // ...\n ]\n };\n\n var videoCache = {};\n\n var Vegas = function (elmt, options) {\n this.elmt = elmt;\n this.settings = $.extend({}, defaults, $.vegas.defaults, options);\n this.slide = this.settings.slide;\n this.total = this.settings.slides.length;\n this.noshow = this.total < 2;\n this.paused = !this.settings.autoplay || this.noshow;\n this.ended = false;\n this.$elmt = $(elmt);\n this.$timer = null;\n this.$overlay = null;\n this.$slide = null;\n this.timeout = null;\n this.first = true;\n\n this.transitions = [\n 'fade', 'fade2',\n 'blur', 'blur2',\n 'flash', 'flash2',\n 'negative', 'negative2',\n 'burn', 'burn2',\n 'slideLeft', 'slideLeft2',\n 'slideRight', 'slideRight2',\n 'slideUp', 'slideUp2',\n 'slideDown', 'slideDown2',\n 'zoomIn', 'zoomIn2',\n 'zoomOut', 'zoomOut2',\n 'swirlLeft', 'swirlLeft2',\n 'swirlRight', 'swirlRight2'\n ];\n\n this.animations = [\n 'kenburns',\n 'kenburnsLeft', 'kenburnsRight',\n 'kenburnsUp', 'kenburnsUpLeft', 'kenburnsUpRight',\n 'kenburnsDown', 'kenburnsDownLeft', 'kenburnsDownRight'\n ];\n\n if (!(this.settings.transitionRegister instanceof Array)) {\n this.settings.transitionRegister = [ this.settings.transitionRegister ];\n }\n\n if (!(this.settings.animationRegister instanceof Array)) {\n this.settings.animationRegister = [ this.settings.animationRegister ];\n }\n\n this.transitions = this.transitions.concat(this.settings.transitionRegister);\n this.animations = this.animations.concat(this.settings.animationRegister);\n\n this.support = {\n objectFit: 'objectFit' in document.body.style,\n transition: 'transition' in document.body.style || 'WebkitTransition' in document.body.style,\n video: $.vegas.isVideoCompatible()\n };\n\n if (this.settings.shuffle === true) {\n this.shuffle();\n }\n\n this._init();\n };\n\n Vegas.prototype = {\n _init: function () {\n var $content,\n $contentScroll,\n $overlay,\n $timer,\n isBody = this.elmt.tagName === 'BODY',\n timer = this.settings.timer,\n overlay = this.settings.overlay,\n self = this;\n\n // Preloading\n this._preload();\n\n // Div with scrollable content\n if (!isBody) {\n $contentScroll = $('
');\n\n $content = $('
')\n .css('overflow', this.$elmt.css('overflow'))\n .css('padding', this.$elmt.css('padding'));\n\n // Some browsers don't compute padding shorthand\n if (!this.$elmt.css('padding')) {\n $content\n .css('padding-top', this.$elmt.css('padding-top'))\n .css('padding-bottom', this.$elmt.css('padding-bottom'))\n .css('padding-left', this.$elmt.css('padding-left'))\n .css('padding-right', this.$elmt.css('padding-right'));\n }\n\n this.$elmt.css('padding', 0);\n\n this.$elmt.clone(true).children().appendTo($content);\n this.elmt.innerHTML = '';\n }\n\n // Timer\n if (timer && this.support.transition) {\n $timer = $('
');\n this.$timer = $timer;\n this.$elmt.prepend($timer);\n }\n\n // Overlay\n if (overlay) {\n $overlay = $('
');\n\n if (typeof overlay === 'string') {\n $overlay.css('background-image', 'url(' + overlay + ')');\n }\n\n this.$overlay = $overlay;\n this.$elmt.prepend($overlay);\n }\n\n // Container\n this.$elmt.addClass('vegas-container');\n\n if (!isBody) {\n this.$elmt.append($contentScroll);\n $contentScroll.append($content);\n }\n\n setTimeout(function () {\n self.trigger('init');\n self._goto(self.slide);\n\n if (self.settings.autoplay) {\n self.trigger('play');\n }\n }, 1);\n },\n\n _preload: function () {\n var img, i;\n\n for (i = 0; i < this.settings.slides.length; i++) {\n if (this.settings.preload || this.settings.preloadImages) {\n if (this.settings.slides[i].src) {\n img = new Image();\n img.src = this.settings.slides[i].src;\n }\n }\n\n if (this.settings.preload || this.settings.preloadVideos) {\n if (this.support.video && this.settings.slides[i].video) {\n if (this.settings.slides[i].video instanceof Array) {\n this._video(this.settings.slides[i].video);\n } else {\n this._video(this.settings.slides[i].video.src);\n }\n }\n }\n }\n },\n\n _random: function (array) {\n return array[Math.floor(Math.random() * array.length)];\n },\n\n _slideShow: function () {\n var self = this;\n\n if (this.total > 1 && !this.ended && !this.paused && !this.noshow) {\n this.timeout = setTimeout(function () {\n self.next();\n }, this._options('delay'));\n }\n },\n\n _timer: function (state) {\n var self = this;\n\n clearTimeout(this.timeout);\n\n if (!this.$timer) {\n return;\n }\n\n this.$timer\n .removeClass('vegas-timer-running')\n .find('div')\n .css('transition-duration', '0ms');\n\n if (this.ended || this.paused || this.noshow) {\n return;\n }\n\n if (state) {\n setTimeout(function () {\n self.$timer\n .addClass('vegas-timer-running')\n .find('div')\n .css('transition-duration', self._options('delay') - 100 + 'ms');\n }, 100);\n }\n },\n\n _video: function (srcs) {\n var video,\n source,\n cacheKey = srcs.toString();\n\n if (videoCache[cacheKey]) {\n return videoCache[cacheKey];\n }\n\n if (!(srcs instanceof Array)) {\n srcs = [ srcs ];\n }\n\n video = document.createElement('video');\n video.preload = true;\n\n srcs.forEach(function (src) {\n source = document.createElement('source');\n source.src = src;\n video.appendChild(source);\n });\n\n videoCache[cacheKey] = video;\n\n return video;\n },\n\n _fadeOutSound: function (video, duration) {\n var self = this,\n delay = duration / 10,\n volume = video.volume - 0.09;\n\n if (volume > 0) {\n video.volume = volume;\n\n setTimeout(function () {\n self._fadeOutSound(video, duration);\n }, delay);\n } else {\n video.pause();\n }\n },\n\n _fadeInSound: function (video, duration) {\n var self = this,\n delay = duration / 10,\n volume = video.volume + 0.09;\n\n if (volume < 1) {\n video.volume = volume;\n\n setTimeout(function () {\n self._fadeInSound(video, duration);\n }, delay);\n }\n },\n\n _options: function (key, i) {\n if (i === undefined) {\n i = this.slide;\n }\n\n if (this.settings.slides[i][key] !== undefined) {\n return this.settings.slides[i][key];\n }\n\n return this.settings[key];\n },\n\n _goto: function (nb) {\n if (typeof this.settings.slides[nb] === 'undefined') {\n nb = 0;\n }\n\n this.slide = nb;\n\n var $slide,\n $inner,\n $video,\n $slides = this.$elmt.children('.vegas-slide'),\n src = this.settings.slides[nb].src,\n videoSettings = this.settings.slides[nb].video,\n delay = this._options('delay'),\n align = this._options('align'),\n valign = this._options('valign'),\n cover = this._options('cover'),\n color = this._options('color') || this.$elmt.css('background-color'),\n self = this,\n total = $slides.length,\n video,\n img;\n\n var transition = this._options('transition'),\n transitionDuration = this._options('transitionDuration'),\n animation = this._options('animation'),\n animationDuration = this._options('animationDuration');\n\n if (this.settings.firstTransition && this.first) {\n transition = this.settings.firstTransition || transition;\n }\n\n if (this.settings.firstTransitionDuration && this.first) {\n transitionDuration = this.settings.firstTransitionDuration || transitionDuration;\n }\n\n if (this.first) {\n this.first = false;\n }\n\n if (cover !== 'repeat') {\n if (cover === true) {\n cover = 'cover';\n } else if (cover === false) {\n cover = 'contain';\n }\n }\n\n if (transition === 'random' || transition instanceof Array) {\n if (transition instanceof Array) {\n transition = this._random(transition);\n } else {\n transition = this._random(this.transitions);\n }\n }\n\n if (animation === 'random' || animation instanceof Array) {\n if (animation instanceof Array) {\n animation = this._random(animation);\n } else {\n animation = this._random(this.animations);\n }\n }\n\n if (transitionDuration === 'auto' || transitionDuration > delay) {\n transitionDuration = delay;\n }\n\n if (animationDuration === 'auto') {\n animationDuration = delay;\n }\n\n $slide = $('
');\n\n if (this.support.transition && transition) {\n $slide.addClass('vegas-transition-' + transition);\n }\n\n // Video\n\n if (this.support.video && videoSettings) {\n if (videoSettings instanceof Array) {\n video = this._video(videoSettings);\n } else {\n video = this._video(videoSettings.src);\n }\n\n video.loop = videoSettings.loop !== undefined ? videoSettings.loop : true;\n video.muted = videoSettings.mute !== undefined ? videoSettings.mute : true;\n\n if (video.muted === false) {\n video.volume = 0;\n this._fadeInSound(video, transitionDuration);\n } else {\n video.pause();\n }\n\n $video = $(video)\n .addClass('vegas-video')\n .css('background-color', color);\n\n if (this.support.objectFit) {\n $video\n .css('object-position', align + ' ' + valign)\n .css('object-fit', cover)\n .css('width', '100%')\n .css('height', '100%');\n } else if (cover === 'contain') {\n $video\n .css('width', '100%')\n .css('height', '100%');\n }\n\n $slide.append($video);\n\n // Image\n\n } else {\n img = new Image();\n\n $inner = $('
')\n .css('background-image', 'url(\"' + src + '\")')\n .css('background-color', color)\n .css('background-position', align + ' ' + valign);\n\n if (cover === 'repeat') {\n $inner.css('background-repeat', 'repeat');\n } else {\n $inner.css('background-size', cover);\n }\n\n if (this.support.transition && animation) {\n $inner\n .addClass('vegas-animation-' + animation)\n .css('animation-duration', animationDuration + 'ms');\n }\n\n $slide.append($inner);\n }\n\n if (!this.support.transition) {\n $slide.css('display', 'none');\n }\n\n if (total) {\n $slides.eq(total - 1).after($slide);\n } else {\n this.$elmt.prepend($slide);\n }\n\n $slides\n .css('transition', 'all 0ms')\n .each(function () {\n this.className = 'vegas-slide';\n\n if (this.tagName === 'VIDEO') {\n this.className += ' vegas-video';\n }\n\n if (transition) {\n this.className += ' vegas-transition-' + transition;\n this.className += ' vegas-transition-' + transition + '-in';\n }\n }\n );\n\n self._timer(false);\n\n function go () {\n self._timer(true);\n\n setTimeout(function () {\n if (transition) {\n if (self.support.transition) {\n $slides\n .css('transition', 'all ' + transitionDuration + 'ms')\n .addClass('vegas-transition-' + transition + '-out');\n\n $slides.each(function () {\n var video = $slides.find('video').get(0);\n\n if (video) {\n video.volume = 1;\n self._fadeOutSound(video, transitionDuration);\n }\n });\n\n $slide\n .css('transition', 'all ' + transitionDuration + 'ms')\n .addClass('vegas-transition-' + transition + '-in');\n } else {\n $slide.fadeIn(transitionDuration);\n }\n }\n\n for (var i = 0; i < $slides.length - self.settings.slidesToKeep; i++) {\n $slides.eq(i).remove();\n }\n\n self.trigger('walk');\n self._slideShow();\n }, 100);\n }\n if (video) {\n if (video.readyState === 4) {\n video.currentTime = 0;\n }\n\n video.play();\n go();\n } else {\n img.src = src;\n\n if (img.complete) {\n go();\n } else {\n img.onload = go;\n }\n }\n },\n\n _end: function () {\n this.ended = !this.settings.autoplay;\n this._timer(false);\n this.trigger('end');\n },\n\n shuffle: function () {\n var temp,\n rand;\n\n for (var i = this.total - 1; i > 0; i--) {\n rand = Math.floor(Math.random() * (i + 1));\n temp = this.settings.slides[i];\n\n this.settings.slides[i] = this.settings.slides[rand];\n this.settings.slides[rand] = temp;\n }\n },\n\n play: function () {\n if (this.paused) {\n this.paused = false;\n this.next();\n this.trigger('play');\n }\n },\n\n pause: function () {\n this._timer(false);\n this.paused = true;\n this.trigger('pause');\n },\n\n toggle: function () {\n if (this.paused) {\n this.play();\n } else {\n this.pause();\n }\n },\n\n playing: function () {\n return !this.paused && !this.noshow;\n },\n\n current: function (advanced) {\n if (advanced) {\n return {\n slide: this.slide,\n data: this.settings.slides[this.slide]\n };\n }\n return this.slide;\n },\n\n jump: function (nb) {\n if (nb < 0 || nb > this.total - 1 || nb === this.slide) {\n return;\n }\n\n this.slide = nb;\n this._goto(this.slide);\n },\n\n next: function () {\n this.slide++;\n\n if (this.slide >= this.total) {\n if (!this.settings.loop) {\n return this._end();\n }\n\n this.slide = 0;\n }\n\n this._goto(this.slide);\n },\n\n previous: function () {\n this.slide--;\n\n if (this.slide < 0) {\n if (!this.settings.loop) {\n this.slide++;\n return;\n } else {\n this.slide = this.total - 1;\n }\n }\n\n this._goto(this.slide);\n },\n\n trigger: function (fn) {\n var params = [];\n\n if (fn === 'init') {\n params = [ this.settings ];\n } else {\n params = [\n this.slide,\n this.settings.slides[this.slide]\n ];\n }\n\n this.$elmt.trigger('vegas' + fn, params);\n\n if (typeof this.settings[fn] === 'function') {\n this.settings[fn].apply(this.$elmt, params);\n }\n },\n\n options: function (key, value) {\n var oldSlides = this.settings.slides.slice();\n\n if (typeof key === 'object') {\n this.settings = $.extend({}, defaults, $.vegas.defaults, key);\n } else if (typeof key === 'string') {\n if (value === undefined) {\n return this.settings[key];\n }\n this.settings[key] = value;\n } else {\n return this.settings;\n }\n\n // In case slides have changed\n if (this.settings.slides !== oldSlides) {\n this.total = this.settings.slides.length;\n this.noshow = this.total < 2;\n this._preload();\n }\n },\n\n destroy: function () {\n clearTimeout(this.timeout);\n\n this.$elmt.removeClass('vegas-container');\n this.$elmt.find('> .vegas-slide').remove();\n this.$elmt.find('> .vegas-wrapper').clone(true).children().appendTo(this.$elmt);\n this.$elmt.find('> .vegas-wrapper').remove();\n\n if (this.settings.timer) {\n this.$timer.remove();\n }\n\n if (this.settings.overlay) {\n this.$overlay.remove();\n }\n\n this.elmt._vegas = null;\n }\n };\n\n $.fn.vegas = function(options) {\n var args = arguments,\n error = false,\n returns;\n\n if (options === undefined || typeof options === 'object') {\n return this.each(function () {\n if (!this._vegas) {\n this._vegas = new Vegas(this, options);\n }\n });\n } else if (typeof options === 'string') {\n this.each(function () {\n var instance = this._vegas;\n\n if (!instance) {\n throw new Error('No Vegas applied to this element.');\n }\n\n if (typeof instance[options] === 'function' && options[0] !== '_') {\n returns = instance[options].apply(instance, [].slice.call(args, 1));\n } else {\n error = true;\n }\n });\n\n if (error) {\n throw new Error('No method \"' + options + '\" in Vegas.');\n }\n\n return returns !== undefined ? returns : this;\n }\n };\n\n $.vegas = {};\n $.vegas.defaults = defaults;\n\n $.vegas.isVideoCompatible = function () {\n return !/(Android|webOS|Phone|iPad|iPod|BlackBerry|Windows Phone)/i.test(navigator.userAgent);\n };\n\n})(window.jQuery || window.Zepto || window.m4q);\n"],"names":["$","Vegas","elmt","options","this","settings","extend","defaults","vegas","slide","total","slides","length","noshow","paused","autoplay","ended","$elmt","$timer","$overlay","$slide","timeout","first","transitions","animations","transitionRegister","Array","animationRegister","concat","support","objectFit","document","body","style","transition","video","isVideoCompatible","shuffle","_init","delay","loop","preload","preloadImage","preloadVideo","timer","overlay","cover","color","align","valign","firstTransition","firstTransitionDuration","transitionDuration","animation","animationDuration","slidesToKeep","init","play","pause","walk","videoCache","prototype","$content","$contentScroll","isBody","tagName","self","_preload","css","clone","children","appendTo","innerHTML","prepend","addClass","append","setTimeout","trigger","_goto","i","preloadImages","src","Image","preloadVideos","_video","_random","array","Math","floor","random","_slideShow","next","_options","_timer","state","clearTimeout","removeClass","find","srcs","source","cacheKey","toString","createElement","forEach","appendChild","_fadeOutSound","duration","volume","_fadeInSound","key","undefined","nb","$inner","$video","img","$slides","videoSettings","go","each","get","fadeIn","eq","remove","muted","mute","after","className","readyState","currentTime","complete","onload","_end","temp","rand","toggle","playing","current","advanced","data","jump","previous","fn","params","apply","value","oldSlides","slice","destroy","_vegas","returns","args","arguments","error","instance","Error","call","test","navigator","userAgent","window","jQuery","Zepto","m4q"],"mappings":";;;;;;;;;CAUA,SAAWA,GACT,aAqDY,SAARC,EAAkBC,EAAMC,GAC1BC,KAAKF,KAAeA,EACpBE,KAAKC,SAAeL,EAAEM,OAAO,GAAIC,EAAUP,EAAEQ,MAAMD,SAAUJ,GAC7DC,KAAKK,MAAeL,KAAKC,SAASI,MAClCL,KAAKM,MAAeN,KAAKC,SAASM,OAAOC,OACzCR,KAAKS,OAAeT,KAAKM,MAAQ,EACjCN,KAAKU,QAAgBV,KAAKC,SAASU,UAAYX,KAAKS,OACpDT,KAAKY,OAAe,EACpBZ,KAAKa,MAAejB,EAAEE,GACtBE,KAAKc,OAAe,KACpBd,KAAKe,SAAe,KACpBf,KAAKgB,OAAe,KACpBhB,KAAKiB,QAAe,KACpBjB,KAAKkB,OAAe,EAEpBlB,KAAKmB,YAAc,CACjB,OAAQ,QACR,OAAQ,QACR,QAAS,SACT,WAAY,YACZ,OAAQ,QACR,YAAa,aACb,aAAc,cACd,UAAW,WACX,YAAa,aACb,SAAU,UACV,UAAW,WACX,YAAa,aACb,aAAc,eAGhBnB,KAAKoB,WAAa,CAChB,WACA,eAAgB,gBAChB,aAAc,iBAAkB,kBAChC,eAAgB,mBAAoB,qBAGhCpB,KAAKC,SAASoB,8BAA8BC,QAChDtB,KAAKC,SAASoB,mBAAqB,CAAErB,KAAKC,SAASoB,qBAG/CrB,KAAKC,SAASsB,6BAA6BD,QAC/CtB,KAAKC,SAASsB,kBAAoB,C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etC,GAdAC,KAAKkH,KAAK,WACR,IAAImC,EAAWrJ,KAAKgJ,OAEpB,IAAKK,EACH,MAAM,IAAIC,MAAM,qCAGe,mBAAtBD,EAAStJ,IAA0C,MAAfA,EAAQ,GACrDkJ,EAAUI,EAAStJ,GAAS4I,MAAMU,EAAU,GAAGP,MAAMS,KAAKL,EAAM,IAEhEE,GAAQ,IAIRA,EACF,MAAM,IAAIE,MAAM,cAAgBvJ,EAAU,eAG5C,YAAmB2G,IAAZuC,EAAwBA,EAAUjJ,OAI7CJ,EAAEQ,MAAQ,GACVR,EAAEQ,MAAMD,SAAWA,EAEnBP,EAAEQ,MAAM4B,kBAAoB,WAC1B,OAAQ,4DAA4DwH,KAAKC,UAAUC,YAjuBvF,CAouBGC,OAAOC,QAAUD,OAAOE,OAASF,OAAOG"} \ No newline at end of file diff --git a/vegas/test.php b/vegas/test.php new file mode 100644 index 0000000..d484acd --- /dev/null +++ b/vegas/test.php @@ -0,0 +1,14 @@ +'; +echo $_SERVER['SCRIPT_NAME'] .'
'; +echo $_SERVER['REQUEST_URI'] .'
'; +echo $_SERVER['PHP_SELF'] .'
'; + +$host = (($_SERVER['SERVER_NAME'] == "sur-le-sentier.fr") ? "blog" : "wordpress"); +echo "A: " . $host; + +if ($_SERVER['SERVER_NAME'] == "sur-le-sentier.fr") $host = "blog"; +else $host = "wordpress"; +echo "B: " . $host; +?>