1$(document).ready( 2 function(){ 3 if(/iPhone/.test(navigator.userAgent) && !window.MSStream){ 4 var el = document.getElementsByClassName("apstor_bg")[0] 5 el.className += " iphone-device"; 6 } 7 $('div.menuabout:first').not('.abouton').hover( 8 function(elem){ 9 $(elem).addClass('abouthover').removeClass('aboutoff'); 10 }, 11 function(elem){ 12 $(elem).removeClass('abouthover').addClass('aboutoff'); 13 } 14 ); 15 $('div.menufaq:first').not('.faqon').hover( 16 function(elem){ 17 $(elem).addClass('faqhover').removeClass('faqoff'); 18 }, 19 function(elem){ 20 $(elem).removeClass('faqhover').addClass('faqoff'); 21 } 22 ); 23 $('div.menufeedback').not('.feedbackon').hover( 24 function(elem){ 25 $(elem).addClass('feedbackhover').removeClass('feedbackoff'); 26 }, 27 function(elem){ 28 $(elem).removeClass('feedbackhover').addClass('feedbackoff'); 29 } 30 ); 31 $('div.menuhelp:first').not('.helpon').hover( 32 function(elem){ 33 $(elem).addClass('helphover').removeClass('helpoff'); 34 }, 35 function(elem){ 36 $(elem).removeClass('helphover').addClass('helpoff'); 37 } 38 ); 39 40 41 $('.redis .hp_search .lastsearch a').hover(function(){ 42 $(this).stop().css('text-decoration','none').animate({'color':'#ffffff'},200); 43 }, function(){ 44 var $thisSel = $(this); 45 $thisSel.stop().animate({'color':'#8d9092'},400); 46 setTimeout(function() { 47 $thisSel.attr('style',''); 48 },400); 49 }); 50 51 52 $('.redis .hp_search .lastsearch a').mouseleave(function(){ 53 setTimeout(function() { 54 $(this).stop().css({'color':'#8d9092'}).attr('style',''); 55 },400); 56 }); 57 58 59 60 $('.redis .hp_search .search_list1 a, .redis .hp_search .search_list2 a').hover(function(){ 61 $(this).stop().css('text-decoration','none').animate({'color':'#cbcbcc'},200); 62 }, function(){ 63 var $thisSel = $(this); 64 $thisSel.stop().animate({'color':'#ffffff'},400); 65 setTimeout(function() { 66 $thisSel.attr('style',''); 67 },400); 68 }); 69 70 71 $('.redis .hp_search .search_list1 a, .redis .hp_search .search_list2 a').mouseleave(function(){ 72 setTimeout(function() { 73 $(this).stop().css({'color':'#ffffff'}).attr('style',''); 74 },400); 75 }); 76 77 78 79 $('.redis .hp_search .searchtip p span').hover(function(){ 80 $(this).stop().css('text-decoration','none').animate({'color':'#ffffff','border-color':'#25292a'},200); 81 }, function(){ 82 var $thisSel = $(this); 83 $thisSel.stop().animate({'color':'#939596','border-color':'#939596'},400); 84 setTimeout(function() { 85 $thisSel.stop(); 86 },400); 87 }); 88 89 90 $('.redis .hp_search .searchtip p span').mouseleave(function(){ 91 setTimeout(function() { 92 $(this).stop().css({'color':'#939596','border-color':'#939596'}); 93 },400); 94 }); 95 96 97 // Donat block 98 // if (localStorage.getItem("isDonationVisible") === null) { 99 // $('.js-donation').css("display", "flex") 100 // setTimeout(function(){ 101 // $('.js-donation--banner').css("display", "flex") 102 // }, 10000) 103 // localStorage.setItem("isDonationVisible", true) 104 // } 105 $('.js-close-dontaion').on('click', function () { 106 $('body').css({ overflow: '' }) 107 $('.js-donation, .js-donation--banner').fadeOut(200) 108 }) 109// $('.flashmap').on('click', function () { 110// $('body').css({ overflow: 'hidden' }) 111// $('.js-donation').css("display", "flex") 112// }) 113 114 115 //Head Menu items highlight (all pages) 116 $('.head_menu_wrap div a, .side_menu_wrap div a').hover(function(){ 117 if(!$(this).parents('div').hasClass('active')){ 118 $(this).stop().css('text-decoration','none').animate({'color':'#ffffff'},200).find('span').animate({'opacity':1},200); 119 } 120 }, function(){ 121 if(!$(this).parents('div').hasClass('active')){ 122 var $thisSel = $(this); 123 $thisSel.stop().animate({'color':'#cbcbcc'},400).find('span').animate({'opacity':0},200); 124 setTimeout(function() { 125 $thisSel.stop(); 126 },400); 127 } 128 }); 129 130 131 $('.hp_search .searchtip p span, .side_menu_wrap div a').mouseleave(function(){ 132 if(!$(this).parents('div').hasClass('active')){ 133 setTimeout(function() { 134 $(this).stop().css({'color':'#cbcbcc'}).find('span').css({'opacity':0}); 135 },400); 136 } 137 }); 138 139 140 //download buttons hover 141 $('.redis .btn_apstor, .redis .btn_gplay, .redis .btn_download, .redis .hp_search .searchbutton').hover(function(){ 142 $(this).stop().find('span').animate({'opacity':1},200); 143 }, function(){ 144 var $thisSel = $(this); 145 $thisSel.stop().find('span').animate({'opacity':0},400); 146 setTimeout(function() { 147 $thisSel.stop(); 148 },400); 149 }); 150 151 152 $('.redis .btn_apstor, .redis .btn_gplay, .redis .btn_download, .redis .hp_search .searchbutton').mouseleave(function(){ 153 var $thisSel = $(this); 154 setTimeout(function() { 155 $thisSel.stop().find('span').css({'opacity':0}); 156 },400); 157 }); 158 159 160 //select language in header 161 $('.head_menu_wrap div.lang_sel_inner').removeClass('rus').removeClass('eng').removeClass('fra').removeClass('deu'); 162 $('ul.langs_select li').each(function(ndx, elem){ 163 var elem = $(elem); 164 var host = elem.attr('data-lang-host'); 165 if (host != null) { 166 if (location.host == host) { 167 $('.head_menu_wrap div.lang_sel_inner').addClass(elem.attr('class')); 168 } 169 } 170 });
171 $('.head_menu_wrap div.lang_sel').click(function(){ 172 $('.fade').css('height', $('body').height()); 173 $('ul.langs_select, .fade').fadeIn(200); 174 }); 175 176 177 $('ul.langs_select li').click(function(){ 178 var thisSel = $(this); 179 var thisClass = thisSel.attr('class'); 180 $('ul.langs_select').fadeOut(400); 181 $('.head_menu_wrap div.lang_sel_inner').removeClass('rus').removeClass('eng').removeClass('fra').removeClass('deu').addClass(thisClass); 182 var host = thisSel.attr('data-lang-host'); 183 console.log(host, location.host); 184 if (host != null) { 185 if (location.host != host) { 186 location.host = host; 187 } 188 } 189 }); 190 191 192 //show links to AppStore and PlayMarket 193 // $('.redis .btn_apstor').click(function(){ 194 // var topOffset = $('.redis .btn_apstor').offset().top, 195 // leftOffset = $('.redis .btn_apstor').offset().left; 196 // $('.redis .apstor_bg').css({'top':(topOffset + 32), 'left':(leftOffset - 44)}); 197 // $('.redis .fade').css('height', $(document).height()); 198 // $('.redis .apstor_bg, .redis .fade').fadeIn(250) 199 // }); 200 // $('.redis .btn_gplay').click(function(){ 201 // var topOffset = $('.redis .btn_gplay').offset().top, 202 // leftOffset = $('.redis .btn_gplay').offset().left; 203 // $('.redis .gplay_bg').css({'top':(topOffset + 32), 'left':(leftOffset - 189)}); 204 // $('.redis .fade').css('height', $('body').height()); 205 // $('.redis .gplay_bg, .redis .fade').fadeIn(250) 206 // }); 207 $('.redis .fade').click(function(){$('.redis .gplay_bg, .redis .apstor_bg, .redis ul.langs_select, .redis .fade').fadeOut(400); $(".side_menu").slideUp()}); 208 209 $('.inner .fade').click(function(){$('.inner ul.langs_select, .inner .fade').fadeOut(400); $(".side_menu").slideUp()}); 210 211 212 $(".side_menu_btn").click(function() { 213 $('.fade').css('height', $('body').height()); 214 $(".fade").show(); 215 $(".side_menu").slideToggle(); 216 }); 217 218console.log('internal height=' + $('.redis .vborder').height()); 219 if($('.redis .vborder').height() > 505) { 220 var heightDif = $('.redis .vborder').height() + 50 - 504; 221 console.log('height=' + $('.redis .vborder').height() + ' diff=' + heightDif + ' cssBottom=' + (-92 + heightDif)); 222 $('.redis .main_green_bg p.title').css('padding-bottom', (heightDif + 490)); 223 $('.redis .vb_wrapper').css('bottom', (-92 + heightDif)); 224 } else if($('.redis .vborder').height() < 335) { 225 $('.redis .vb_wrapper').css('bottom', -20); 226 $('.redis .main_green_bg p.title').css('padding-bottom', 374); 227 } else { 228 $('.redis .vb_wrapper').css('bottom', -92); 229 $('.redis .main_green_bg p.title').css('padding-bottom', 490); 230 } 231 } 232); 233 234 235$(window).resize(function(){ 236 if($('.redis .vborder').height() > 505) { 237 var heightDif = $('.redis .vborder').height() + 50 - 504; 238 console.log('height=' + $('.redis .vborder').height() + ' diff=' + heightDif + ' cssBottom=' + (-92 + heightDif)); 239 $('.redis .main_green_bg p.title').css('padding-bottom', (heightDif + 490)); 240 $('.redis .vb_wrapper').css('bottom', (-92 + heightDif)); 241 } else if($('.redis .vborder').height() < 335) { 242 $('.redis .vb_wrapper').css('bottom', -20); 243 $('.redis .main_green_bg p.title').css('padding-bottom', 374); 244 } else { 245 $('.redis .vb_wrapper').css('bottom', -92); 246 $('.redis .main_green_bg p.title').css('padding-bottom', 490); 247 } 248});
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.