ACC SHELL
$(document).ready(function(){
//
//
// SFHOVER
$(".menu li").hover(
function(){
$(this).addClass("sfhover");
},
function(){
$(this).removeClass("sfhover");
}
);
//
//
// typografie - odstranění písmen na konci řádku
$('p').contents().filter(function(){
return this.nodeType == 3;
}).each(function(){
this.nodeValue = this.nodeValue.replace(/(\s\w)\s/g,"$1\xA0");
});
$('span').contents().filter(function(){
return this.nodeType == 3;
}).each(function(){
this.nodeValue = this.nodeValue.replace(/(\s\w)\s/g,"$1\xA0");
});
$('ul').contents().filter(function(){
return this.nodeType == 3;
}).each(function(){
this.nodeValue = this.nodeValue.replace(/(\s\w)\s/g,"$1\xA0");
});
$('li').contents().filter(function(){
return this.nodeType == 3;
}).each(function(){
this.nodeValue = this.nodeValue.replace(/(\s\w)\s/g,"$1\xA0");
});
$('h1').contents().filter(function(){
return this.nodeType == 3;
}).each(function(){
this.nodeValue = this.nodeValue.replace(/(\s\w)\s/g,"$1\xA0");
});
$('h2').contents().filter(function(){
return this.nodeType == 3;
}).each(function(){
this.nodeValue = this.nodeValue.replace(/(\s\w)\s/g,"$1\xA0");
});
$('h3').contents().filter(function(){
return this.nodeType == 3;
}).each(function(){
this.nodeValue = this.nodeValue.replace(/(\s\w)\s/g,"$1\xA0");
});
$('h4').contents().filter(function(){
return this.nodeType == 3;
}).each(function(){
this.nodeValue = this.nodeValue.replace(/(\s\w)\s/g,"$1\xA0");
});
$('dt').contents().filter(function(){
return this.nodeType == 3;
}).each(function(){
this.nodeValue = this.nodeValue.replace(/(\s\w)\s/g,"$1\xA0");
});
$('dd').contents().filter(function(){
return this.nodeType == 3;
}).each(function(){
this.nodeValue = this.nodeValue.replace(/(\s\w)\s/g,"$1\xA0");
});
//
//
//
// FITTEXT
//jQuery("#content").fitText(1.2, { minFontSize: '20px', maxFontSize: '120px' });
//
//
//
// SLICKNAV
$(function(){
$('#menu').slicknav();
});
//
//
//
// ZAVRIT
$(".fa-times-circle-o").click(function(){
var div = $("#content");
div.animate({opacity: '0'}, "slow", function() {
div.css({"display": "none"});
});
});
// konec document ready
});
//
//
//
// FORMÁTOVÁNÍ VÝŠKY SLOUPCŮ
$(document).ready(function formatRotNovinky(){
var windowHeight = document.documentElement.clientHeight;
var windowWidth = document.documentElement.clientWidth;
$("#leftcol").css({
"min-height": (windowHeight-50) +"px"
});
$("#content").css({
"min-height": (windowHeight-50) +"px"
});
});
window.onresize = function(event) {
var windowHeight = document.documentElement.clientHeight;
$("#leftcol").css({
"min-height": (windowHeight-50) +"px"
});
$("#content").css({
"min-height": (windowHeight-50) +"px"
});
}
ACC SHELL 2018