Code inspired by https://www.w3schools.com/howto/howto_js_slideshow.asp Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>pull/7/head
@ -1,22 +0,0 @@
|
|||||||
<?php
|
|
||||||
// (c) 2014 Trinity Desktop Project
|
|
||||||
// All Rights Reserved
|
|
||||||
// Authors: Elizabeth Liddell, Timothy Pearson, and Calvin Morrison
|
|
||||||
|
|
||||||
function doFooter(){
|
|
||||||
echo(' <!--end content-->');
|
|
||||||
date_default_timezone_set('UTC'); #else the interpreter whines
|
|
||||||
echo(' <P ID="copyright">© 2010-' . date('Y') . ' Trinity Desktop Project');
|
|
||||||
|
|
||||||
?>
|
|
||||||
</DIV>
|
|
||||||
</DIV>
|
|
||||||
</DIV>
|
|
||||||
</DIV>
|
|
||||||
</DIV>
|
|
||||||
</BODY>
|
|
||||||
</HTML>
|
|
||||||
|
|
||||||
<?php
|
|
||||||
} #end of doFooter
|
|
||||||
?>
|
|
After Width: | Height: | Size: 1.5 MiB |
After Width: | Height: | Size: 443 KiB |
After Width: | Height: | Size: 1.3 MiB |
After Width: | Height: | Size: 1.9 MiB |
After Width: | Height: | Size: 1.1 MiB |
After Width: | Height: | Size: 1.1 MiB |
After Width: | Height: | Size: 148 KiB |
After Width: | Height: | Size: 854 KiB |
Before Width: | Height: | Size: 357 KiB |
Before Width: | Height: | Size: 524 KiB |
Before Width: | Height: | Size: 398 KiB |
Before Width: | Height: | Size: 71 KiB |
Before Width: | Height: | Size: 260 KiB |
@ -1,7 +1,75 @@
|
|||||||
.sc_img_holder {float: left;
|
/* Rounded screenshot images */
|
||||||
margin: 5px 5px 5px 0px;
|
img
|
||||||
padding: 5px 5px 5px 0px;}
|
{
|
||||||
.sc_img {clear: both;
|
border-radius: 8px;
|
||||||
margin-bottom: 5px;}
|
}
|
||||||
.sc_txt {display: inline;
|
|
||||||
text-align: center;}
|
/* Slideshow container */
|
||||||
|
.slideshow-container {
|
||||||
|
max-width: 90%;
|
||||||
|
position: relative;
|
||||||
|
margin: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Hide the images by default */
|
||||||
|
.mySlides {
|
||||||
|
border-radius: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Next & previous buttons */
|
||||||
|
.prev, .next {
|
||||||
|
cursor: pointer;
|
||||||
|
position: absolute;
|
||||||
|
top: 50%;
|
||||||
|
width: auto;
|
||||||
|
margin-top: -22px;
|
||||||
|
padding: 16px;
|
||||||
|
color: white;
|
||||||
|
font-weight: bold;
|
||||||
|
font-size: 18px;
|
||||||
|
transition: 0.6s ease;
|
||||||
|
border-radius: 0 10px 10px 0;
|
||||||
|
user-select: none;
|
||||||
|
background-color: rgba(0,0,0,0.0);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Position the "next button" to the right */
|
||||||
|
.next {
|
||||||
|
right: 0;
|
||||||
|
border-radius: 10px 0 0 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* On hover, add a black background color with a little bit see-through */
|
||||||
|
.prev:hover, .next:hover {
|
||||||
|
color: white;
|
||||||
|
background-color: rgba(0,0,0,0.25);
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* The dots/bullets/indicators */
|
||||||
|
.dot {
|
||||||
|
cursor: pointer;
|
||||||
|
height: 15px;
|
||||||
|
width: 15px;
|
||||||
|
margin: 0 2px;
|
||||||
|
background-color: #AAC4E3;
|
||||||
|
border-radius: 50%;
|
||||||
|
display: inline-block;
|
||||||
|
transition: background-color 0.6s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.active, .dot:hover {
|
||||||
|
background-color: #01306F;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Fading animation */
|
||||||
|
.fade {
|
||||||
|
animation-name: fade;
|
||||||
|
animation-duration: 1.5s;
|
||||||
|
border-radius: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes fade {
|
||||||
|
from {opacity: .4}
|
||||||
|
to {opacity: 1}
|
||||||
|
}
|
||||||
|
@ -1,15 +1,37 @@
|
|||||||
hs.registerOverlay({
|
let slideIndex = 1;
|
||||||
html: '<div class="closebutton" onclick="return hs.close(this)" title="Close"></div>',
|
showSlides(slideIndex);
|
||||||
position: 'top right',
|
|
||||||
fade: 2 // fading the semi-transparent overlay looks bad in IE
|
|
||||||
});
|
|
||||||
|
|
||||||
hs.wrapperClassName = 'borderless';
|
function plusSlides(n)
|
||||||
hs.graphicsDir = 'highslide/graphics/';
|
{
|
||||||
hs.align = 'center';
|
showSlides(slideIndex += n);
|
||||||
hs.transitions = ['expand', 'crossfade'];
|
}
|
||||||
hs.outlineType = 'rounded-white';
|
|
||||||
hs.fadeInOut = true;
|
function currentSlide(n)
|
||||||
hs.showCredits = false;
|
{
|
||||||
hs.numberPosition = 'caption';
|
showSlides(slideIndex = n);
|
||||||
hs.dimmingOpacity = 0.75;
|
}
|
||||||
|
|
||||||
|
function showSlides(n)
|
||||||
|
{
|
||||||
|
let i;
|
||||||
|
let slides = document.getElementsByClassName("mySlides");
|
||||||
|
let dots = document.getElementsByClassName("dot");
|
||||||
|
if (n > slides.length)
|
||||||
|
{
|
||||||
|
slideIndex = 1
|
||||||
|
}
|
||||||
|
if (n < 1)
|
||||||
|
{
|
||||||
|
slideIndex = slides.length
|
||||||
|
}
|
||||||
|
for (i = 0; i < slides.length; i++)
|
||||||
|
{
|
||||||
|
slides[i].style.display = "none";
|
||||||
|
}
|
||||||
|
for (i = 0; i < dots.length; i++)
|
||||||
|
{
|
||||||
|
dots[i].className = dots[i].className.replace(" active", "");
|
||||||
|
}
|
||||||
|
slides[slideIndex-1].style.display = "block";
|
||||||
|
dots[slideIndex-1].className += " active";
|
||||||
|
}
|
||||||
|