2018-05-14 07:41:47 +02:00
|
|
|
|
|
|
|
<!-- built-in theme scripts -->
|
|
|
|
<script src="{{ "js/jquery.min.js" | absURL }}"></script>
|
|
|
|
<script src="{{ "js/bootstrap.min.js" | absURL }}"></script>
|
|
|
|
<script src="{{ "js/jquery.cookie.js" | absURL }}"> </script>
|
|
|
|
<script src="{{ "js/ekko-lightbox.js" | absURL }}"></script>
|
|
|
|
<script src="{{ "js/jquery.scrollTo.min.js" | absURL }}"></script>
|
|
|
|
<script src="{{ "js/masonry.pkgd.min.js" | absURL }}"></script>
|
|
|
|
<script src="{{ "js/imagesloaded.pkgd.min.js" | absURL }}"></script>
|
|
|
|
<script src="{{ "js/owl.carousel.min.js" | absURL }}"></script>
|
|
|
|
<script src="{{ "js/front.js" | absURL }}"></script>
|
|
|
|
<!-- custom stuff -->
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
|
|
|
$(function() {
|
|
|
|
|
2018-05-14 22:32:52 +02:00
|
|
|
$('#totop').click(function() {
|
|
|
|
$.scrollTo($('#top'), 1000);
|
|
|
|
});
|
|
|
|
|
|
|
|
$('a.internal').click(function() {
|
|
|
|
$.scrollTo($($(this).data('to')), 1000);
|
|
|
|
});
|
|
|
|
|
2018-05-14 07:59:13 +02:00
|
|
|
var rand = Math.floor(Math.random() * 10) + 1;
|
|
|
|
$('.sidebar-menu li').mouseenter(function() {
|
|
|
|
$(this).css('background', '#f1f4dd url(/img/random/' + rand + '.gif) no-repeat right');
|
|
|
|
}).mouseleave(function() {
|
|
|
|
$(this).css('background', 'none');
|
|
|
|
}).click(function() {
|
|
|
|
location.href = $(this).find('a').attr('href');
|
|
|
|
});
|
|
|
|
|
2018-05-14 07:41:47 +02:00
|
|
|
$('.sidebar-game-platform').height($('.sidebar-content .img-inactive').height());
|
|
|
|
|
2018-05-14 22:32:52 +02:00
|
|
|
var animate = function() {
|
2018-05-14 07:41:47 +02:00
|
|
|
var active = $(this).find('.img-active');
|
|
|
|
if(active.length > 0) {
|
|
|
|
active.css('display', 'block');
|
|
|
|
$(this).find('.img-inactive').css('display', 'none');
|
|
|
|
}
|
2018-05-14 22:32:52 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
var inanimate = function() {
|
2018-05-14 07:41:47 +02:00
|
|
|
var active = $(this).find('.img-active');
|
|
|
|
if(active.length > 0) {
|
|
|
|
active.css('display', 'none');
|
|
|
|
$(this).find('.img-inactive').css('display', 'block');
|
|
|
|
}
|
2018-05-14 22:32:52 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
$('.box-masonry').mouseenter(animate).mouseleave(inanimate);
|
|
|
|
$('.sidebar-game-info').mouseenter(animate).mouseleave(inanimate);
|
2018-05-14 07:41:47 +02:00
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
</script>
|