|
Server IP : 10.2.73.233 / Your IP : 216.73.216.59 Web Server : Apache/2.4.59 (Debian) System : Linux polon 4.19.0-27-amd64 #1 SMP Debian 4.19.316-1 (2024-06-25) x86_64 User : www-data ( 33) PHP Version : 5.6.40-64+0~20230107.71+debian10~1.gbp673146 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0755) : /home/polon200/web/backup/js/ |
| [ Home ] | [ C0mmand ] | [ Upload File ] |
|---|
var frameTop = $('.tlo-1').offset().top; // get initial position of the element
$(window).scroll(function() { // assign scroll event listener
var currentScroll = $(window).scrollTop(); // get current position
if (currentScroll >= frameTop) { // apply position: fixed if you
$('.tlo-1').css({ // scroll to that element or below it
'position': 'fixed',
'top': '0vh',
'left': '0',
'width': '100vw',
}),
$('.konferencja').css({
'margin-top': '30vh',
});
} else { // apply position: static
$('.tlo-1').css({
'position': 'relative',
}),
$('.konferencja').css({
'margin-top':'-70vh',
});
}
});
/*
var insideOneTop = $('.panels-details').offset().top;
$(window).scroll(function() {
var currentScroll = $(window).scrollTop();
if (currentScroll >= insideOneTop) {
$('.tlo-1').css({
'position': 'absolute',
'top':'0px',
'left':'0px',
}),
$('.panel').css({
'margin-top': '0vh',
});
} else {
}
});
*/
//przesuwanie strony z konferencjÄ…
/*var frameTop = $('.tlo-1').offset().top; // get initial position of the element
$(window).scroll(function() { // assign scroll event listener
var currentScroll = $(window).scrollTop(); // get current position
if (currentScroll >= frameTop) { // apply position: fixed if you
$('.tlo-1').css({ // scroll to that element or below it
'position': 'fixed',
'top': '0vh',
'left': '0',
'width': '100vw',
}),
$('.konferencja').css({
'margin-top': '30vh',
});
} else { // apply position: static
$('.tlo-1').css({
'position': 'relative',
}),
$('.konferencja').css({
'margin-top':'-70vh',
});
}
});
var insideOneTop = $('.panels-details').offset().top;
$(window).scroll(function() {
var currentScroll = $(window).scrollTop();
if (currentScroll >= insideOneTop) {
$('.tlo-1').css({
'position': 'absolute',
'top':'0px',
'left':'0px',
}),
$('.panel').css({
'margin-top': '0vh',
});
} else {
}
});
*/
//koniec przesuwania strony z konferencjÄ…
var fixmeTop = $('.intro-nav').offset().top; // get initial position of the element
$(window).scroll(function() { // assign scroll event listener
var currentScroll = $(window).scrollTop(); // get current position
if (currentScroll >= fixmeTop) { // apply position: fixed if you
$('.intro-nav').addClass('fixme'),
$('.kafel-link-neutral').addClass('kafel-link2'),
$('.kafel-link-neutral').removeClass('kafel-link1'),
$('.intro-kafel').addClass('intro-kafel2'),
$('.cookies').css({
'top': '13vh',
});
} else { // apply position: static
$('.intro-nav').removeClass('fixme'),
$('.kafel-link-neutral').removeClass('kafel-link2'),
$('.kafel-link-neutral').addClass('kafel-link1'),
$('.intro-kafel').removeClass('intro-kafel2'),
$('.cookies').css({
'top': '0px',
});
}
});
/*
var fixmeTopTwo = $('.hiddentitle').offset().top; // get initial position of the element
$(window).scroll(function() { // assign scroll event listener
var currentScrollTwo = $(window).scrollTop(); // get current position
if (currentScrollTwo >= fixmeTopTwo) { // apply position: fixed if you
$('.hiddentitle').css({ // scroll to that element or below it
'position': 'fixed',
'visibility': 'visible',
'top': '0',
'left': '0',
});
} else { // apply position: static
$('.hiddentitle').css({ // if you scroll above it
'position': 'static',
'visibility': 'hidden'
});
}
});
*/
//zamykanie ciastek
$("#cookies-x").click(function() {
$(".cookies").css({
'display': 'none',
})
});
//slider
$(".plan").click(function(){
$(".konf-plan-menu").slideToggle("fast"),
$(".konf-plan-menu").css({
'display': 'flex',
'dispplay': 'webkit-flex',
});
$(".plan-day1").css({
'display':'none',
});
$(".plan-day2").css({
'display':'none',
});
});
$(".plan-item-1").click(function(){
$("html, body").animate({
scrollTop: $(".plan").offset().top
}, 1000);
$(".plan-day1").slideToggle("slow"),
$(".plan-day1").css({
'display':'block',
});
$(".konferencja").css({
'height': '120vh',
});
$(".plan-day2").css({
'display':'none',
});
$(".motto").css({
'display': 'none',
});
});
$(".plan-item-2").click(function(){
$("html, body").animate({
scrollTop: $(".plan").offset().top
}, 1000);
$(".plan-day2").slideToggle("slow"),
$(".plan-day2").css({
'display':'block',
});
$(".konferencja").css({
'height': '120vh',
});
$(".plan-day1").css({
'display':'none',
});
$(".motto").css({
'display': 'none',
});
});
$(".arrow-down").click(function(){
$("html, body").animate({
scrollTop: $(".welcome").offset().top
}, 1000);
});
$("#about").click(function(){
$("html, body").animate({
scrollTop: $(".welcome").offset().top
}, 1000);
});
$("#panelplan").click(function(){
$("html, body").animate({
scrollTop: $(".konferencja").offset().top
}, 2000);
});
$(".panels").click(function(){
$("html, body").animate({
scrollTop: $(".panels-details").offset().top
}, 2000);
});
$("#extra-events").click(function(){
$("html, body").animate({
scrollTop: $(".cultural-events").offset().top
}, 2000);
});
$(".extra-events").click(function(){
$("html, body").animate({
scrollTop: $(".cultural-events").offset().top
}, 2000);
});
$(".event").click(function(){
$(this).next(".event-full-description").slideToggle("slow");
});