239 lines
8.1 KiB
Smarty
239 lines
8.1 KiB
Smarty
<!-- beginning of footer tpl //-->
|
|
<script type="text/javascript" src="/js/scripts/jquery-1.11.1.min.js"></script>
|
|
<script type="text/javascript" src="/js/scripts/jquery-ui-1.10.4.min.js"></script>
|
|
<script type="text/javascript" src="/js/scripts/bootstrap.min.js"></script>
|
|
<script type="text/javascript" src="/js/scripts/jquery.hoverIntent.min.js"></script>
|
|
<script type="text/javascript" src="/js/scripts/script.js"></script>
|
|
<script type="text/javascript" src="/js/scripts/styx_side.js"></script>
|
|
<script src="/js/scripts/bootstrap-datepicker.js"></script>
|
|
<script src="/js/scripts/locales/bootstrap-datepicker.de.js"></script>
|
|
<script src="/js/scripts/locales/bootstrap-datepicker.fr.js"></script>
|
|
<script src="/js/scripts/locales/bootstrap-datepicker.ru.js"></script>
|
|
<script src="/js/scripts/bootstrap-datepicker-select.js"></script>
|
|
<script src="/js/scripts/validator.js"></script>
|
|
<script src="/js/scripts/underscore-min.js"></script>
|
|
<!--[if gte IE 9]><script type="text/javascript" src="/js/ie9.js"></script><![endif]-->
|
|
{literal}
|
|
<script>
|
|
jQuery(window).load(function() {
|
|
|
|
var theWindow = jQuery(window),
|
|
bg = jQuery("#imagePL"),
|
|
aspectRatio = jQuery("#imagePL").width() / jQuery("#imagePL").height();
|
|
|
|
function resizeBg() {
|
|
|
|
if ( (theWindow.width() / theWindow.height()) < aspectRatio ) {
|
|
jQuery("#imagePL")
|
|
.removeClass()
|
|
.addClass('bgheight');
|
|
} else {
|
|
jQuery("#imagePL")
|
|
.removeClass()
|
|
.addClass('bgwidth');
|
|
}
|
|
|
|
}
|
|
|
|
theWindow.resize(resizeBg).trigger("resize");
|
|
|
|
});
|
|
|
|
|
|
|
|
// var images = ['signin-bg1.jpg', 'signin-bg2.jpg', 'signin-bg3.jpg', 'signin-bg4.jpg'];
|
|
// $('body').css({'background-image': 'url(graphics/' + images[Math.floor(Math.random() * images.length)] + ')'});
|
|
// $('body').css({'background-image': 'url(graphics/' + imgbg + ')'});
|
|
|
|
|
|
var defaulttext5 = jQuery('.default-text5').text();
|
|
var defaulttext6 = jQuery('.default-text6').text();
|
|
var defaulttext7 = jQuery('.default-text7').text();
|
|
var defaulttext8 = jQuery('.default-text8').text();
|
|
var defaulttext9 = jQuery('.default-text9').text();
|
|
var defaulttext10 = jQuery('.default-text10').text();
|
|
var defaulttext11 = jQuery('.default-text11').text();
|
|
var defaulttext12 = jQuery('.default-text12').text();
|
|
var defaulttext13 = "YOU MUST BE AT LEAST 18" + "<br />" + " YEARS OLD TO JOIN BATEWORLD";
|
|
var defaulttext14 = jQuery('.default-text14').text();
|
|
var defaulttext15 = jQuery('.default-text15').text();
|
|
var defaulttext16 = jQuery('.default-text16').text();
|
|
var defaulttext17 = "YOU MUST BE OVER 18" + "<br />" + "TO JOIN BATEWORLD";
|
|
|
|
|
|
|
|
jQuery('.selectDefault5').text(defaulttext5);
|
|
jQuery('.selectDefault6').text(defaulttext6);
|
|
jQuery('.selectDefault7').text(defaulttext7);
|
|
jQuery('.selectDefault8').text(defaulttext8);
|
|
jQuery('.selectDefault9').text(defaulttext9);
|
|
jQuery('.selectDefault10').text(defaulttext10);
|
|
jQuery('.selectDefault11').text(defaulttext11);
|
|
jQuery('.selectDefault12').text(defaulttext12);
|
|
jQuery('.selectDefault13').html(defaulttext13);
|
|
jQuery('.selectDefault13').addClass('small-def');
|
|
jQuery('.selectDefault14').text(defaulttext14);
|
|
jQuery('.selectDefault15').text(defaulttext15);
|
|
jQuery('.selectDefault16').text(defaulttext16);
|
|
jQuery('.selectDefault17').html(defaulttext17);
|
|
jQuery('.selectDefault17').addClass('small-def');
|
|
|
|
jQuery('.selectBox').on('change',function(){
|
|
|
|
|
|
var defaulttext2 = $(this).find(":selected").text();
|
|
|
|
if(jQuery(this).parent('div').find('.selectDefaultA').hasClass('small-def')){
|
|
jQuery(this).parent('div').find('.selectDefaultA').removeClass('small-def');
|
|
jQuery(this).parent('div').find('.selectDefaultA').addClass('hi-def');
|
|
}
|
|
|
|
jQuery(this).parent('div').find('.selectDefaultA').text(defaulttext2);
|
|
});
|
|
|
|
jQuery('.change-date').on('change',function(){
|
|
|
|
if(jQuery(this).parent('div').find('span:first').hasClass('stile')){
|
|
jQuery(this).parent('div').find('span:first').addClass('hi-def');
|
|
}
|
|
|
|
});
|
|
|
|
jQuery('input').focus(function() {
|
|
jQuery('input').parent('div').find('.with-errors').empty();
|
|
});
|
|
|
|
jQuery('select').focus(function() {
|
|
jQuery('select').parent('div').find('.with-errors').empty();
|
|
});
|
|
|
|
jQuery('textarea')
|
|
.focus(function() { jQuery(this).css("background", "white") })
|
|
.blur(function() { if (jQuery(this)[0].value == '') { jQuery(this).css("background", "url(/css/graphics/comment_bg.png) left top no-repeat") } });
|
|
|
|
jQuery( "#lbl-browse" ).on( "click", function() {
|
|
jQuery( "#browse" ).trigger( "click" );
|
|
});
|
|
|
|
jQuery('#google_translate_element li a').click(function() {
|
|
if((this).id=='en')
|
|
jQuery(this).attr('href',(window.location.pathname+'#googtrans/default'));
|
|
|
|
else
|
|
//$(this).attr('href',(window.location.pathname+"#googtrans/en/"+(this).id));
|
|
window.location.href = (window.location.pathname+"#googtrans/en/"+(this).id);
|
|
location.reload(true);
|
|
});
|
|
|
|
jQuery('#lan-desk li a').click(function() {
|
|
if((this).id=='en') {
|
|
jQuery(this).attr('href',(window.location.pathname+'#googtrans/default'));
|
|
//document.getElementById('lan-desk').style.display = 'none';
|
|
//document.getElementById('mMen-desk').style.display = 'block';
|
|
|
|
} else {
|
|
//$(this).attr('href',(window.location.pathname+"#googtrans/en/"+(this).id));
|
|
window.location.href = (window.location.pathname+"#googtrans/en/"+(this).id);
|
|
//document.getElementById('lan-desk').style.display = 'none';
|
|
//document.getElementById('mMen-desk').style.display = 'block';
|
|
}
|
|
location.reload(true);
|
|
});
|
|
|
|
jQuery(document).ready(function(e) {
|
|
//$('img[usemap]').rwdImageMaps();
|
|
|
|
|
|
|
|
var div1 = document.getElementById('lan-desk'),
|
|
div2 = document.getElementById('mMen-desk');
|
|
|
|
var box = jQuery('#lan-desk');
|
|
|
|
function switchVisible() {
|
|
div2.style.display = 'none';
|
|
jQuery(div1).fadeIn(2000);
|
|
}
|
|
|
|
document.getElementById('Language').addEventListener('click', switchVisible);
|
|
|
|
});
|
|
|
|
// When clicking on a opened mobile menu link it closes the menu and the triggers the related data-target modal
|
|
|
|
var isTouch1 = ('ontouchstart' in window ) || window.DocumentTouch && document instanceof DocumentTouch;
|
|
TorCC = isTouch1 ? 'touchstart' : 'click';
|
|
|
|
jQuery( "#menu a" ).on( TorCC, function( event ) {
|
|
|
|
event.preventDefault();
|
|
var body = jQuery( 'body' ),
|
|
page = jQuery( '.page' ),
|
|
menu = jQuery( '#menu' ),
|
|
|
|
|
|
transitionEnd = 'transitionend webkitTransitionEnd otransitionend MSTransitionEnd';
|
|
|
|
|
|
jQuery(body).addClass( 'animating' );
|
|
|
|
|
|
if ( jQuery( 'body' ).hasClass( 'menu-visible' ) ) {
|
|
jQuery( 'body' ).addClass( 'right' );
|
|
jQuery('.pippro').css('display', 'block');
|
|
} else {
|
|
jQuery( 'body' ).addClass( 'left' );
|
|
jQuery('.pippro').css('display', 'none');
|
|
}
|
|
|
|
jQuery( 'page' ).on( transitionEnd, function() {
|
|
jQuery( 'body' )
|
|
.removeClass( 'animating left right' )
|
|
.toggleClass( 'menu-visible' );
|
|
|
|
var zndxneg = '-2';
|
|
var zndxpos = '200';
|
|
|
|
if( jQuery('.overlay-content').css('z-index') == zndxneg )
|
|
{
|
|
jQuery('.overlay-content').css('z-index', zndxpos);
|
|
jQuery('.overlay-content').css('position', 'fixed');
|
|
jQuery('.overlay-content').css('height', (jQuery("#menu").height()));
|
|
} else {
|
|
jQuery('.overlay-content').removeAttr("style");
|
|
}
|
|
|
|
|
|
jQuery('page').off( transitionEnd );
|
|
|
|
|
|
jQuery(document).scrollTop(0);
|
|
|
|
});
|
|
|
|
if (jQuery(this).attr('target')) {
|
|
window.location.href = jQuery(this).attr('href');
|
|
|
|
} else {
|
|
|
|
var modtar = jQuery(this).data('target');
|
|
jQuery(modtar).removeData('bs.modal');
|
|
jQuery(modtar).modal({remote: jQuery(this).attr("href")});
|
|
jQuery(modtar).modal('show');
|
|
|
|
};
|
|
|
|
});
|
|
|
|
jQuery(document).on("hidden.bs.modal", function (e) {
|
|
jQuery(e.target).removeData("bs.modal").find(".modal-content").empty();
|
|
});
|
|
|
|
jQuery(window).resize(_.debounce(function(){
|
|
var width = jQuery('maincol').width();
|
|
jQuery('#men-pad').css('margin-left', '81.33333333%').css('margin-left', -width);
|
|
},500));
|
|
</script>
|
|
{/literal}
|
|
</body>
|
|
</html> |