Script backup
<script>
$( "#productsRelated" ).insertAfter( "body.type-product .p-detail-inner" );
</script>
<script>
$('#footer .col-sm-6.box > .topic span').text('Novinky od Berdíka');
</script>
<script>
(function($) {
$.fn.visible = function(partial) {
var $t = $(this),
$w = $(window),
viewTop = $w.scrollTop(),
viewBottom = viewTop + $w.height(),
_top = $t.offset().top,
_bottom = _top + $t.height(),
compareTop = partial === true ? _bottom : _top,
compareBottom = partial === true ? _top : _bottom;
return ((compareBottom <= viewBottom) && (compareTop >= viewTop));
};
})(jQuery);
var win = $(window);
var allMods = $(".module");
allMods.each(function(i, el) {
var el = $(el);
if (el.visible(true)) {
el.addClass("already-visible");
}
});
win.scroll(function(event) {
allMods.each(function(i, el) {
var el = $(el);
if (el.visible(true)) {
el.addClass("come-in");
}
});
});
</script>
<script type="text/javascript">
jQuery(function ($) {
var config = {contentUrl: 'http://www.berdik.bio/hydgrogel/'};
if ($('#hydrogel').length) {$.get(config.contentUrl, function (data) {$('#hydrogel').append($(data).find('.p-detail').html()); }); }
});
</script>
<script type="text/javascript">
jQuery(function ($) {
var config = {contentUrl: 'http://www.berdik.bio/nasada-zizal-kalifornskych/'};
if ($('#zizaly').length) {$.get(config.contentUrl, function (data) {$('#zizaly').append($(data).find('.p-detail').html()); }); }
});
</script>