1var config = { 2 lobbyFooter : { 3 items : 5 4 } 5}; 6//main function 7// NOTE: anchors using these classes have a real `href` (so SEO crawlers 8// see a destination). The handler intercepts the click, opens a popup, 9// and prevents normal navigation. 10$('.opennew a').on('click', function (e) { 11 if ($(this).attr('target') == "_parent") return; 12 e.preventDefault(); 13 CenterPopup($(this).data('href') || $(this).attr('href'), '', 830, 690, 'Tab'); 14}); 15 16$('a.opennew').on('click', function (e) { 17 if ($(this).attr('target') == "_parent") return; 18 e.preventDefault(); 19 CenterPopup($(this).data('href') || $(this).attr('href'), '', 830, 690, 'Tab'); 20}); 21 22$('.opennewbig a').on('click', function (e) { 23 if ($(this).attr('target') == "_parent") return; 24 e.preventDefault(); 25 CenterPopup($(this).data('href') || $(this).attr('href'), '', 1024, 725, 'Banking'); 26}); 27 28$('a.opennewbig').on('click', function (e) { 29 if ($(this).attr('target') == "_parent") return; 30 e.preventDefault(); 31 CenterPopup($(this).data('href') || $(this).attr('href'), '', 1024, 725, 'Banking'); 32}); 33 34$('.openlobby').on('click', function (e) { 35 if ($(this).attr('target') == "_parent") return; 36 e.preventDefault(); 37 CenterPopup($(this).data('href') || $(this).attr('href'), '', 1060, 665, ''); 38}); 39 40//Terms & Conditions and Rules & Regulations. open new window 41$('#reg-main td:last').parent().prev().on('click', 'a', function (e) { 42 if ($(this).attr('target') == "_parent") return; 43 e.preventDefault(); 44 CenterPopup($(this).data('href') || $(this).attr('href'), '', 830, 690, 'Tab'); 45}); 46 47// Centering popup for casino lobby 48function CenterPopup(url, params, width, height, name) { 49 var screenLeft=0, screenTop=0; 50 51 if(!name) name = 'Live Casino'; 52 if(!width) width = 1060; 53 if(!height) height = 665; 54 55 var defaultParams = { } 56 57 if(typeof window.screenLeft !== 'undefined') { 58 screenLeft = window.screenLeft; 59 screenTop = window.screenTop; 60 } else if(typeof window.screenX !== 'undefined') { 61 screenLeft = window.screenX; 62 screenTop = window.screenY; 63 } 64 65 var features_dict = { 66 toolbar: 'no', 67 location: 'no', 68 directories: 'no', 69 left: screenLeft + ($(window).width() - width) / 2, 70 top: screenTop + ($(window).height() - height) / 2, 71 status: 'yes', 72 menubar: 'no', 73 scrollbars: 'yes', 74 resizable: 'no', 75 width: width, 76 height: height 77 }; 78 features_arr = []; 79 for(var k in features_dict) { 80 features_arr.push(k+'='+features_dict[k]); 81 } 82 features_str = features_arr.join(',') 83 84 // var qs = '?'+$.param($.extend({}, defaultParams, params)); 85 var win = window.open(url, name, features_str); 86 win.focus(); 87 return false; 88} 89 90function openNewWindow(url, name, width, height, left, top, scrollbars) { 91 window.open(url, name, 'left=' + left + ', top=' + top + ', width=' + width + ', height=' + height + ', scrollbars=' + scrollbars + ', location=no, menubar=no, titlebar=no, hotkeys=no, toolbars=no, status =no, resizable=yes'); 92} 93 94function SetMainContent() { 95 var bodyHeight = parent.window.document.documentElement.clientHeight; 96 var hdHeight = $('.header').height(); 97 var ftHeight = $('.footer').height(); 98 var mainHeight = bodyHeight - hdHeight - ftHeight; 99 //$('.main').css('min-height', mainHeight); 100} 101 102////start subnavbar 103$(function () { 104 var subnavtimeout = 0; 105 $('.nav li.sub').hover(function () { 106 $('.nav li.sub a').removeClass('hover'); 107 $(this).find('a').addClass('hover'); 108 var page = $(this).attr('data-page'); 109 $('.subnavbar .pagetype').hide(); 110 $('.subnavbar .pagetype[data-page=' + page + ']').show(); 111 $('.subnavbar').stop(true, true).slideDown(); 112 //setTimeout(function () { $('.subnavbar').stop(true, true).slideDown(); }, 600); 113 114 clearTimeout(subnavtimeout); 115 }); 116 117 $('.nav li:not(".sub")').hover(function () { 118 $('.nav li.sub a').removeClass('hover'); 119 $('.subnavbar').stop(true, true).slideUp(); 120 }); 121 122 $('.subnavbar').hover(function () { 123 clearTimeout(subnavtimeout); 124 }); 125 126 $('.navbar,.subnavbar').on('mouseleave', function () { 127 //$('.nav li.sub a').removeClass('hover'); 128 subnavtimeout = setTimeout(function () { 129 $('.nav li.sub a').removeClass('hover');
130 $(".subnavbar").stop(true, true).slideUp(); 131 }, 800); 132 }); 133 134}); 135////end subnavbar 136 137//start marquee 138$('.marquee').marquee({ 139 //speed in milliseconds of the marquee 140 duration: 20000, 141 //gap in pixels between the tickers 142 gap: 50, 143 //time in milliseconds before the marquee will start animating 144 delayBeforeStart: 100, 145 //'left' or 'right' 146 direction: 'left', 147 //true or false - should the marquee be duplicated to show an effect of continues flow 148 duplicated: true, 149 pauseOnHover: true 150}); 151//end marquee 152 153//start sroll to top 154$(function () { 155 $('.rollto a.scrolltop').on('click', function () { 156 scrollTo('', 500); 157 }); 158 $('.rollto a.scrollbottom').on('click', function () { 159 scrollTo('.footer'); 160 }); 161 $(window).scroll(function () { 162 var scroller = $('.rollto'); 163 document.documentElement.scrollTop + document.body.scrollTop > 150 ? scroller.fadeIn() : scroller.fadeOut(); 164 }); 165}); 166 167function scrollTo(name, speed) { 168 if (!speed) speed = 300; 169 if (!name) { 170 $('html,body').animate({ 171 scrollTop: 0 172 }, speed); 173 } else { 174 if ($(name).length > 0) { 175 $('html,body').animate({ 176 scrollTop: $(name).offset().top 177 }, speed); 178 } 179 } 180} 181//end sroll to top 182 183// reload captcha 184$(function() 185{ 186 $('#captcha-login, #re-captcha-login').click(function(){ 187 $('#captcha-login').attr('src','/captcha/login?'+Math.random()); 188 }); 189 190 $('#re-captcha-login-popup').click(function(){ 191 $('#captcha-login-popup').attr('src','/captcha/login?'+Math.random()); 192 }); 193}) 194// end of reload captcha 195 196// achor function 197$(function () { 198 $('a[href^="#"]').attr('onclick', 'return false'); 199}); 200// end achor function 201 202// hover effect on casino page 203$('.studio1').hover(function(){ 204 $('.studio1').addClass('studio-hover'); 205 $('.std1').addClass('std-hover');
206 $('.std-play-btn1').addClass('std-play-btn-hover'); 207}, 208function(){ 209 $('.studio1').removeClass('studio1-hover'); 210 $('.std1').removeClass('std-hover'); 211 $('.std-play-btn1').removeClass('std-play-btn-hover'); 212}); 213 214$('.studio2').hover(function(){ 215 $('.studio2').addClass('studio-hover'); 216 $('.std2').addClass('std-hover'); 217 $('.std-play-btn2').addClass('std-play-btn-hover'); 218}, 219function(){ 220 $('.studio2').removeClass('studio-hover'); 221 $('.std2').removeClass('std-hover'); 222 $('.std-play-btn2').removeClass('std-play-btn-hover'); 223}); 224// end hover effect on casino page 225 226// balance popover 227// var popOverSettings = { 228// placement: 'bottom', 229// trigger: 'hover', 230// container: 'body', 231// html: true, 232// selector: '[rel="popover"]', 233// content: function () { 234// return $('#popover-content').html(); 235// } 236// } 237// $('body').popover(popOverSettings); 238// end balance popover 239 240$('[rel="popover"]').each(function() { 241 // console.log($(this).attr('id')); 242 var $pElem= $(this); 243 $pElem.popover( 244 { 245 placement: 'bottom', 246 trigger: 'hover', 247 container: 'body', 248 html: true, 249 // selector: '[rel="popover"]', 250 content: getPopoverContent($pElem.attr("id")) 251 } 252 ); 253}); 254 255function getPopoverContent(target) { 256 return $("#" + target + "-content").html(); 257}; 258 259// loader 260$("#loader").delay(300).fadeOut(8000); 261$(".mask").delay(500).fadeOut(8000);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.