scratch

Subversion Repositories:
Compare Path: Rev
With Path: Rev
?path1? @ 118  →  ?path2? @ 119
/gallery.html
@@ -69,21 +69,15 @@
<a class="prev">‹</a>
<a class="next">›</a>
<a class="play-pause"></a>
<ol class="indicator"></ol>
<!-- <ol class="indicator"></ol> -->
</div>
<div class="swiper-container">
<div id="links" class="swiper-wrapper">
</div>
<!-- If we need pagination -->
<div class="swiper-pagination"></div>
<!-- If we need navigation buttons -->
<div class="swiper-button-prev"></div>
<div class="swiper-button-next"></div>
<!-- If we need scrollbar -->
<div class="swiper-scrollbar"></div>
</div>
</div>
</div>
@@ -141,15 +135,13 @@
$.getJSON('gallery.php', {
timestamp: window.performance.now()
}).then((data) => {
//alert(JSON.stringify(data, null, 4));
// Create slides.
var index = 0;
var indexPage = 0;
data.chunk(50).forEach((page) => {
document.getElementById('links')
.insertAdjacentHTML(
'beforeend',
'<div id="swiper-slide-' + index + '" class="swiper-slide"></div>'
'<div id="swiper-slide-' + indexPage + '" class="swiper-slide"></div>'
);
page.forEach((link) => {
// Generic icon for text / html items.
@@ -158,7 +150,7 @@
link.preview ='img/text.png';
break;
}
document.getElementById('swiper-slide-' + index)
document.getElementById('swiper-slide-' + indexPage)
.insertAdjacentHTML(
'beforeend',
'<a href="' +
@@ -170,8 +162,12 @@
'" width="60" height="40"></a>'
);
});
++index;
++indexPage;
});
// Initialize gallery.
document.getElementById('links').onclick = function (event) {
event = event || window.event;
var target = event.target || event.srcElement,
@@ -179,7 +175,7 @@
options = {
index: link,
event: event,
carousel: true,
carousel: true,
container: '#blueimp-gallery-carousel',
stretchImages: true,
startSlideshow: false,
@@ -191,7 +187,7 @@
.concat(window.location.hostname)
.concat("/").concat(data[index].url)
);
// Check if OpenGraph should be enabled.
switch(data[index].opengraph) {
case true:
@@ -205,7 +201,7 @@
.prop("disabled", true);
break;
}
// Change the URL to OpenGraph when the user clicks the button.
$('#btn-facebook').on('click', () => {
$('#URL')
@@ -227,10 +223,11 @@
new Swiper ('.swiper-container', {
// Optional parameters
direction: 'horizontal',
loop: true,
// Creates duplicate element IDs if set to true.
loop: false,
// If we need pagination
pagination: '.swiper-pagination',
//pagination: '.swiper-pagination',
// Navigation arrows
nextButton: '.swiper-button-next',
@@ -237,7 +234,7 @@
prevButton: '.swiper-button-prev',
// And if we need scrollbar
scrollbar: '.swiper-scrollbar',
//scrollbar: '.swiper-scrollbar',
});
// Enable the Clipboard button.
/vendor/composer/installed.json
@@ -181,6 +181,57 @@
]
},
{
"name": "symfony/filesystem",
"version": "v3.3.4",
"version_normalized": "3.3.4.0",
"source": {
"type": "git",
"url": "https://github.com/symfony/filesystem.git",
"reference": "311fa718389efbd8b627c272b9324a62437018cc"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/filesystem/zipball/311fa718389efbd8b627c272b9324a62437018cc",
"reference": "311fa718389efbd8b627c272b9324a62437018cc",
"shasum": ""
},
"require": {
"php": ">=5.5.9"
},
"time": "2017-06-24T09:29:48+00:00",
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "3.3-dev"
}
},
"installation-source": "dist",
"autoload": {
"psr-4": {
"Symfony\\Component\\Filesystem\\": ""
},
"exclude-from-classmap": [
"/Tests/"
]
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Fabien Potencier",
"email": "fabien@symfony.com"
},
{
"name": "Symfony Community",
"homepage": "https://symfony.com/contributors"
}
],
"description": "Symfony Filesystem Component",
"homepage": "https://symfony.com"
},
{
"name": "neutron/temporary-filesystem",
"version": "2.2.0",
"version_normalized": "2.2.0.0",
@@ -343,6 +394,57 @@
]
},
{
"name": "symfony/process",
"version": "v3.3.2",
"version_normalized": "3.3.2.0",
"source": {
"type": "git",
"url": "https://github.com/symfony/process.git",
"reference": "8e30690c67aafb6c7992d6d8eb0d707807dd3eaf"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/process/zipball/8e30690c67aafb6c7992d6d8eb0d707807dd3eaf",
"reference": "8e30690c67aafb6c7992d6d8eb0d707807dd3eaf",
"shasum": ""
},
"require": {
"php": ">=5.5.9"
},
"time": "2017-05-22T12:32:03+00:00",
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "3.3-dev"
}
},
"installation-source": "dist",
"autoload": {
"psr-4": {
"Symfony\\Component\\Process\\": ""
},
"exclude-from-classmap": [
"/Tests/"
]
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Fabien Potencier",
"email": "fabien@symfony.com"
},
{
"name": "Symfony Community",
"homepage": "https://symfony.com/contributors"
}
],
"description": "Symfony Process Component",
"homepage": "https://symfony.com"
},
{
"name": "alchemy/binary-driver",
"version": "1.6.0",
"version_normalized": "1.6.0.0",
@@ -483,57 +585,6 @@
]
},
{
"name": "symfony/filesystem",
"version": "v3.3.4",
"version_normalized": "3.3.4.0",
"source": {
"type": "git",
"url": "https://github.com/symfony/filesystem.git",
"reference": "311fa718389efbd8b627c272b9324a62437018cc"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/filesystem/zipball/311fa718389efbd8b627c272b9324a62437018cc",
"reference": "311fa718389efbd8b627c272b9324a62437018cc",
"shasum": ""
},
"require": {
"php": ">=5.5.9"
},
"time": "2017-06-24T09:29:48+00:00",
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "3.3-dev"
}
},
"installation-source": "dist",
"autoload": {
"psr-4": {
"Symfony\\Component\\Filesystem\\": ""
},
"exclude-from-classmap": [
"/Tests/"
]
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Fabien Potencier",
"email": "fabien@symfony.com"
},
{
"name": "Symfony Community",
"homepage": "https://symfony.com/contributors"
}
],
"description": "Symfony Filesystem Component",
"homepage": "https://symfony.com"
},
{
"name": "symfony/finder",
"version": "v3.3.4",
"version_normalized": "3.3.4.0",
@@ -583,56 +634,5 @@
],
"description": "Symfony Finder Component",
"homepage": "https://symfony.com"
},
{
"name": "symfony/process",
"version": "v3.3.2",
"version_normalized": "3.3.2.0",
"source": {
"type": "git",
"url": "https://github.com/symfony/process.git",
"reference": "8e30690c67aafb6c7992d6d8eb0d707807dd3eaf"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/process/zipball/8e30690c67aafb6c7992d6d8eb0d707807dd3eaf",
"reference": "8e30690c67aafb6c7992d6d8eb0d707807dd3eaf",
"shasum": ""
},
"require": {
"php": ">=5.5.9"
},
"time": "2017-05-22T12:32:03+00:00",
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "3.3-dev"
}
},
"installation-source": "dist",
"autoload": {
"psr-4": {
"Symfony\\Component\\Process\\": ""
},
"exclude-from-classmap": [
"/Tests/"
]
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Fabien Potencier",
"email": "fabien@symfony.com"
},
{
"name": "Symfony Community",
"homepage": "https://symfony.com/contributors"
}
],
"description": "Symfony Process Component",
"homepage": "https://symfony.com"
}
]