2020-05-06 21:16:36 +02:00
|
|
|
/* Screenshots galery */
|
|
|
|
|
|
|
|
var FIRST_IMG_ID = 1;
|
|
|
|
var LAST_IMG_ID = 6;
|
2021-06-22 12:57:55 +02:00
|
|
|
var current = LAST_IMG_ID;
|
|
|
|
|
|
|
|
window.onload = function() {
|
|
|
|
next();
|
|
|
|
}
|
2020-05-06 21:16:36 +02:00
|
|
|
|
|
|
|
function checkkey(e)
|
|
|
|
{
|
|
|
|
var keycode = window.event ? e.keyCode : e.which;
|
|
|
|
if (keycode==37) { previous(); }
|
|
|
|
else if (keycode==39) { next(); }
|
|
|
|
else if (keycode==27) { dropdown_hide(); }
|
|
|
|
}
|
|
|
|
|
|
|
|
function next() {
|
|
|
|
document.getElementById("slide"+current).className = "minislide";
|
|
|
|
if (current >= LAST_IMG_ID) current = FIRST_IMG_ID; else current++;
|
|
|
|
document.getElementById("slide"+current).className = "visible";
|
2021-06-22 12:57:55 +02:00
|
|
|
document.getElementById("carousel").innerHTML = document.getElementById("slide"+current).alt;
|
2020-05-06 21:16:36 +02:00
|
|
|
}
|
|
|
|
function previous() {
|
|
|
|
document.getElementById("slide"+current).className = "minislide";
|
|
|
|
if (current <= FIRST_IMG_ID) current = LAST_IMG_ID; else current--;
|
|
|
|
document.getElementById("slide"+current).className = "visible";
|
2021-06-22 12:57:55 +02:00
|
|
|
document.getElementById("carousel").innerHTML = document.getElementById("slide"+current).alt;
|
2020-05-06 21:16:36 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* DropDown */
|
|
|
|
|
|
|
|
function dropdown_show(obj)
|
|
|
|
{
|
|
|
|
var x = y = 0;
|
|
|
|
while(obj) {
|
|
|
|
x += obj.offsetLeft;
|
|
|
|
y += obj.offsetTop;
|
|
|
|
obj = obj.offsetParent;
|
|
|
|
}
|
|
|
|
ddown = document.getElementById("lang-dropdown");
|
|
|
|
ddown.style.display = "block";
|
|
|
|
ddown.style.left = (x - 72) + "px";
|
|
|
|
if (ddown.offsetLeft + ddown.offsetWidth +10 > document.body.offsetWidth)
|
|
|
|
{
|
|
|
|
ddown.style.left = document.body.offsetWidth - ddown.offsetWidth - 82 + "px";
|
|
|
|
}
|
|
|
|
ddown.style.top = (y + 48) + "px";
|
|
|
|
op = 0;
|
|
|
|
appear(1);
|
|
|
|
}
|
|
|
|
|
|
|
|
function dropdown_hide()
|
|
|
|
{
|
|
|
|
ddown = document.getElementById("lang-dropdown");
|
|
|
|
ddown.style.display="none";
|
|
|
|
}
|
|
|
|
|
|
|
|
function appear(x)
|
|
|
|
{
|
|
|
|
if(op < x) {
|
|
|
|
op += 0.2;
|
|
|
|
ddown.style.opacity = op;
|
|
|
|
ddown.style.filter='alpha(opacity='+op*100+')';
|
|
|
|
t=setTimeout('appear('+x+')',20);
|
|
|
|
}
|
|
|
|
}
|