Files
grzanieplus.pl/apps/frontend/templates/theme/futura/_fonts.html
2025-03-12 17:06:23 +01:00

154 lines
4.9 KiB
HTML

<link href="https://fonts.googleapis.com/css2?family=Comfortaa:wght@300;400;500;600;700&family=Turret+Road:wght@400;700&display=swap&subset=latin-ext" rel="preload" as="style">
<link href="https://fonts.googleapis.com/css2?family=Comfortaa:wght@300;400;500;600;700&family=Turret+Road:wght@400;700&display=swap&subset=latin-ext" rel="stylesheet" type="text/css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/masonry/3.3.2/masonry.pkgd.js"></script>
{literal}
<!--[if IE 9]>
<style type="text/css">
select.form-control
{
padding-right: 0;
background-image: none;
}
</style>
<![endif]-->
<script type="text/javascript">
//<![CDATA[
jQuery(function($) {
var menuHeight = $('#header-navbar').height();
var dropdown = $('#header-navbar .dropdown-menu');
function menuFix() {
if ($(window).width() > 768) {
var scrolled = $(window).scrollTop();
var menuTop = $('#header-navbar-position').offset().top;
var windowHeight = $(window).height();
var headerHeight = $('#header').outerHeight();
if (scrolled > menuTop) {
$('#header-navbar').addClass('navbar-fixed-top');
$('#header-navbar-position').css('min-height', menuHeight - 1);
dropdown.css('max-height', windowHeight - menuHeight - 15);
} else if (scrolled < menuTop) {
$('#header-navbar').removeClass('navbar-fixed-top');
$('#header-navbar-position').css('min-height', '');
dropdown.css('max-height', windowHeight - headerHeight - menuHeight - 15);
};
} else {
dropdown.removeAttr("style");
};
}
function bannerScroll () {
var windowHeight = $(window).height();
var topHeight = $('#top').outerHeight();
var bannerHeight = $('#homepage-baner').outerHeight();
$("html, body").animate({
scrollTop: topHeight + bannerHeight - windowHeight
}, 500, 'easeOutExpo');
}
function scrollBannerHide () {
var windowHeight = $(window).height();
var topHeight = $('#top').outerHeight();
var bannerHeight = $('#homepage-baner').outerHeight();
var scrolled = $(window).scrollTop();
if (scrolled > (topHeight + bannerHeight - windowHeight - 230)) {
$('#show-banner-btn').addClass('hide');
}else{
$('#show-banner-btn').removeClass('hide');
}
}
$(document).ready(function(){
$('body [data-equalizer]').equalizer({ use_tallest: true });
$(window).scroll(function () {
if ($(this).scrollTop() > 200) {
$('#toTopNew').addClass('show');
} else {
$('#toTopNew').removeClass('show');
}
});
$('#toTopNew').click(function () {
$("html, body").animate({
scrollTop: 0
}, 300);
return false;
});
$(window).load(function(){
setTimeout(function(){
if (($('#chat-application').length == 1) || ($('#livechat').length == 1) || ($('.fb_dialog_content iframe').length == 1)) {
$('#toTopNew').addClass('upper');
}
}, 500);
});
var scroll = false;
var $window = $(window);
$window.scroll(function() {
scroll = true;
});
setInterval(function() {
if (scroll) {
if($window.scrollTop() + $window.height() >= $(document).height()-250) {
$('#phone-call').addClass('show');
}else{
$('#phone-call').removeClass('show');
}
scroll = false;
}
}, 255);
$('#nav-button-search.collapsed').click(function() {
setTimeout(function(){
$('#nav-search .form-control').focus();
}, 300);
});
if ($('#nav-settings > ul > li:empty').length == 2)
{
$('#nav-button-settings').hide();
}
if ($(window).width() < 768) {
var windowHeightMobile = $(window).height();
var menuHeightMobile = $('#header-navbar').height();
$('#header-navbar .navbar-collapse').css('max-height', windowHeightMobile - menuHeightMobile);
};
menuFix();
$('#homepage-carousel').append('<span id="show-banner-btn"><svg width="23" height="21" viewBox="0 0 23 21" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1.5 1L11.5 11L21.5 1" stroke="white" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/><path d="M1.5 10.2308L11.5 20.2308L21.5 10.2308" stroke="white" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg></span>');
$("#show-banner-btn").click(function() {
bannerScroll();
});
scrollBannerHide();
});
$(window).scroll(function(){
menuFix();
scrollBannerHide();
});
$(window).resize(function(){
menuFix();
});
$( window ).on( "load", function() {
var showBannerBtn = $("#show-banner-btn");
setTimeout(function(){ showBannerBtn.addClass('onload') }, 2000);
});
});
//]]>
</script>
{/literal}