Battle of Slots
`), firstAnchor; if ($(".mrvegas-encores-faq__content").length >= 1 && brand_name == 'mrvegas') { firstAnchor = $(".mrvegas-encores-faq__content h2").eq(0); faqButtonHTMLContent.insertBefore(firstAnchor); } else { firstAnchor = $(".battle-of-slots-faq__content h2").eq(0); faqButtonHTMLContent.insertBefore(firstAnchor); } //Hide button for desktop version, show only for API $('.faq__button-container-mobile').hide(); if (!is_bos) { $('.faq__button-container').hide(); } $('.faq__button').on('click', function (e) { if (siteType == 'mobile') { licJson('beforePlay', {}, function (ret) { if (ret.url) { goTo(ret.url + '?redirect_after_action=' + bos_url); } else { goToMobileBattleOfSlots(bos_url); } }); } else { showMpBox('/tournament/') } }); }
'; } tmp += ''+ looreButton + '
'; sr.html(tmp); } if (!multiSelectorClicked) { var nItems = $(window).width() / (97 +10); if(sr.find('img').length > nItems){ sr.flexslider({ touch: false, animation: "slide", animationLoop: false, slideshow: false, itemWidth: 97, itemMargin: 5, minItems: nItems, maxItems: nItems, controlNav: false, prevText: '«', nextText: '»', namespace: "gfooter-", move: Math.round(nItems / 2), before: function () { var games = allGames.splice(0, 20); _.each(games, function(game){ var tmp = getGameThumbnail(game, 'playGameDepositCheckBonus'); sr.data('flexslider').addSlide(tmp); }); } }); }else{ $("#gfooter-result").animate({'margin-left': '-30px'}); } gamesFooterUp(); }else{ gamesFooterMove('up', 110, (wH - os.top) - 110); $('#gfooter-result').css({'margin-left' : '0px'}); $('#nano-holder').nanoScroller(); } } function gameThumbnailPopupRedirect(gameId, gameUrl){ var redirectString = "playGameDepositCheckBonus(\'" + gameId + '\', \'\', \''+gameUrl+"\')"; gameCloseRedirection(redirectString); } function getGameThumbnail(game, type){ var mediaUrl = 'https://www.videoslots.com/file_s/thumbs/'+ game.game_id +'_c.jpg'; var liElement; if(type === 'chooseGame'){ liElement = '
  • '; }else if(type === 'playGameDepositCheckBonus'){ if((typeof extSessHandler !== 'undefined') && (typeof mpId === 'undefined') && (cur_country === 'ES')){ liElement = '
  • '; }else{ liElement = '
  • '; } } liElement += ''; if(game.ribbon_pic){ liElement += getRibbon(game); } liElement += "
  • "; return liElement; } function getRibbon(game){ var ribbon = ''; if(game.ribbon_pic.includes('live-casino')){ // Live casino ribbon += '' }else if(game.ribbon_pic){ // Others ribbon = '' } return ribbon; } function looreGames() { var games = allGames.splice(0, looreAMount); _.each(games, function(game){ var tempChildEl= getGameThumbnail(game, 'chooseGame'); $("#nano-holder ul").append(tempChildEl); currentGameIndex = gameTarget; }); } function upFooterList(func, sel, params) { gamesFooterUp(); footerList(func, sel, params); } function footerList(func, sel, params){ if(typeof params == 'undefined') { params = {"func": func}; } else { params.func = func; } // this variables comes from MgPlayBoxBase4 when playing with 2/4 games. if(typeof currentGames != "undefined") { params.currentGames = currentGames; } if(typeof currentGameIndex != "undefined") { params.currentGameIndex = currentGameIndex; } $(".games-footer").find('li').removeClass('gfooter-selected'); $(sel).addClass('gfooter-selected'); ajaxGetBoxJson(params, cur_lang, 967, function(ret){ onFooterResult(ret); }); } function hideNotifications(){ $("#notifications").animate({"right": '-220px'}, 200, 'linear', function(){ $('.notification-item').remove(); }); } function showNotifications(){ $("#notifications").animate({"right": '20px'}, 200, 'linear'); } var notificationListStatus = 'down'; function showNotificationList(){ notificationListStatus = 'up'; $('#notifications-list').animate({"bottom": '40px'}, 400, 'linear'); } function hideNotificationList(){ notificationListStatus = 'down'; $('#notifications-list').animate({"bottom": '-500px'}, 400, 'linear'); } function toggleNotificationList(){ if(notificationListStatus == 'up'){ hideNotificationList(); return; } if (hasCustomNotificationHandler() && messageProcessor.pauseNotifications()) { showNotificationList(); return; } ajaxGetBoxHtml({func: 'getLatestNotifications'}, cur_lang, 967, function(ret){ if(ret != 'no'){ $("#notification-count") .data('count', 0) .html('') ; $("#notifications-nano-content").html(ret); $("#notifications-nano").nanoScroller(); showNotificationList(); } }); } function hasCustomNotificationHandler() { return typeof messageProcessor !== 'undefined' && typeof messageProcessor.handleNotifications === "function"; } function doNotification(content){ if (hasCustomNotificationHandler()){ messageProcessor.handleNotifications(content, showNotification); return; } showNotification(content); } function updateNotificationsCounter(){ var $notificationCount = $('#notification-count'); var notificationCount = parseInt($notificationCount.data('count')); if (notificationCount >= 0 && notificationCount < 9) { notificationCount = notificationCount + 1; $notificationCount.data('count', notificationCount); $notificationCount.html(''); } else if (notificationCount >= 9) { $notificationCount.html(''); } } function showNotification(content) { updateNotificationsCounter(); var notification = $(content); $("#notifications").append(notification); notification.animate({"top": '-=75px', "min-height": '75px'}, 200, 'linear'); setTimeout(function(){ notification.animate({"margin-left": '220px'}, 200, 'linear', function(){ notification.remove(); }); }, 10000); notification.find('.notification-x').click(function(){ notification.hide(200); }); } function getNotifications(){ ajaxGetBoxHtml({func: 'getNotifications'}, cur_lang, 967, function(ret){ if(ret != 'no'){ $(ret).each(function(i){ doNotification($(this).clone().wrap('

    ').parent().html()); }); } }); } $(document).ready(function(){ ajaxGetBoxHtml({func: 'getLatestNotifications'}, cur_lang, 967, function(ret){ if(ret != 'no'){ $("#notifications-nano-content").html(ret); $("#notifications-nano").nanoScroller(); } }); $(".games-footer").find("li[class*='cgames']").each(function(){ $(this).click(function(){ var cls = $(this).classes(function(c, i){ return c.match(/cgames/); })[0]; gamesFooterUp(); // 2024.06.28 -- this makes the gamesFooterUp function execute twice footerList('getBySubTag', '.'+cls, {tag: cls.replace(/-/g, '.')}); }); }); $("#games-footer-down").click(function(){ gamesFooterDown(); }); $('body').click(function (e){ if($('.games-footer').length > 0){ var tmp = $('.games-footer').offset(); if(e.pageY < tmp.top) gamesFooterDown(); } }); $("#footer_search").click(function(){ $("#gfooter-result").html('

    '); if(!multiSelectorClicked || gamesFooterMode != 'multi'){ clearSlider(); gamesFooterUp(); } }); setupCasinoSearch( function(i, o){ var lang = (cur_lang === default_lang) ? '' : ('/' + cur_lang); li = $('
  • '); if (gamesFooterMode == 'multi' && multiSelectorClicked) { currentGameIndex = gameTarget; li.attr("onclick", "chooseGame(this, "+gameTarget+")"); li.attr("data-game-id", this.game_id); }else { if((typeof extSessHandler !== 'undefined') && (typeof mpId === 'undefined') && (cur_country === 'ES')) { li.attr("onclick", "playGameDepositCheckBonusRef('"+this.game_id+"', '', '"+this.game_url+"')"); } else { li.attr("onclick", "playGameDepositCheckBonus('"+this.game_id+"', '', '"+this.game_url+"');"); } } img = $(''); //IMGTODO img = img.attr("src", "https://www.videoslots.com/file_s/thumbs/"+this.game_id+"_c.jpg"); li.append(img); if(this.ribbon_pic){ var ribbon = getRibbon(this); li.append(ribbon); } // FILTERING if (gamesFooterMode == 'multi' && multiSelectorClicked == true && this.network != unlockNetwork) { if (isCurrentlyPlaying(this)) return; // if (filterNetwork.indexOf(this.network) != -1) return; } $("#gfooter-result-ul").append(li); }, function(){ $("#gfooter-result").html(''); }, "#gfooter-result-ul", "#footer_search", function(){ if(multiSelectorClicked === false){ var nItems = $(window).width() / (97 +10); var gfooterResult = $("#gfooter-result"); if(gfooterResult.find('img').length > nItems){ //Calling the clearSlider function to remove the slider and associated navigation(prev,next) links. clearSlider({clearFlex: true, clearViewPort: false, clearDirectionNav: true}); gfooterResult.flexslider({ touch: false, animation: "slide", animationLoop: false, slideshow: false, itemWidth: 97, itemMargin: 5, minItems: nItems, maxItems: nItems, controlNav: false, prevText: '«', nextText: '»', namespace: "gfooter-", move: Math.round(nItems / 2) }); gfooterResult.removeClass('remove-slide'); gamesFooterUp(); }else{ gfooterResult.addClass('remove-slide'); // Calling the clearSlider function to remove the associated navigation(prev,next) links. clearSlider({clearFlex: false, clearViewPort: false, clearDirectionNav: true}); } } } ); setupClock(); if($("#play-box").length == 0) $(window).on("resize", gamesFooterDown); $(".games-footer-hot").click(function(){ upFooterList('getHot', '.games-footer-hot'); }); $(".games-footer-popular").click(function(){ upFooterList('getPopular', '.games-footer-popular'); }); $(".games-footer-lastplayed").click(function(){ upFooterList('getLastPlayed', '.games-footer-lastplayed'); }); $(".games-footer-favorites").click(function(){ upFooterList('getFavs', '.games-footer-favorites', {uid: ''}); }); });
    Deposit