1localStorage.setItem('t_', document.title); 2var oldTitle = "", 3 lastScrollPosition = 0, 4 rightPageDefaultOffset = 186, 5 isMobile = (window.innerWidth <= 760); 6/*google.load('search', '1', {language: 'uk'});*/ 7var Loaded = false; 8var tmp; 9/*function initialize(query) { 10 var searchControl = new google.search.CustomSearchControl(); 11 searchControl.draw('search-google'); 12 searchControl.setLinkTarget(google.search.Search.LINK_TARGET_SELF); 13 searchControl.execute(query); 14 searchControl.setSearchCompleteCallback(this, function() { 15 $('#popup-google').slideDown("fast"); 16 }); 17}*/ 18 19function getCookie(name) { 20 var i,x,y,ARRcookies=document.cookie.split(";"); 21 for (i=0;i<ARRcookies.length;i++) { 22 x=ARRcookies[i].substr(0,ARRcookies[i].indexOf("=")); 23 y=ARRcookies[i].substr(ARRcookies[i].indexOf("=")+1); 24 x=x.replace(/^\s+|\s+$/g,""); 25 if (x==name) { 26 return unescape(y); 27 } 28 } 29} 30 31function setCookie(name,value,exdays){ 32 var exdate=new Date(); 33 exdate.setDate(exdate.getDate() + exdays); 34 var c_value=escape(value) + ((exdays==null) ? "" : "; expires="+exdate.toUTCString()) + '; path=/'; 35 document.cookie=name + "=" + c_value; 36} 37function setCookieDomain(name,value,exdays){ 38 var exdate=new Date(); 39 exdate.setDate(exdate.getDate() + exdays); 40 var c_value=escape(value) + ((exdays==null) ? "" : "; expires="+exdate.toUTCString()) + '; path=/;domain=radiojazz.ua'; 41 document.cookie=name + "=" + c_value; 42} 43 44function makeUL(lst) { 45 var html = []; 46 html.push('<ul id="geoSelectActiveUl">'); 47 html.push('<li id="gs">не визнаÑено</li>'); 48 $(lst).each(function(index ) { html.push(makeLI(this, index )) }); 49 html.push('</ul>'); 50 return html.join("\n"); 51} 52 53function makeLI(elem, index) { 54 var html = []; 55 html.push('<li id="regionSub'+index+'">'); 56 html.push(elem.title); 57 58 html.push('</li>'); 59 $(elem).each(function() { html.push(makeUlSub(this.cities, index )) }); 60 return html.join("\n"); 61} 62 63function makeUlSub(lst, index) { 64 var html = []; 65 html.push('<ul id="gsau'+index+'" class="geoSelectActiveUlSub" style="display: none;"> '); 66 $(lst).each(function(index2 ) { html.push(makeLISub(this, index, index2 )) }); 67 html.push('</ul>'); 68 return html.join("\n"); 69} 70 71function makeLISub(elem, index, index2) { 72 var html = []; 73 html.push('<li id="gs'+index+index2+'" style="font-weight: normal;">'); 74 html.push(elem); 75 html.push('</li>'); 76 return html.join("\n"); 77} 78 79function onYouTubePlayerReady(playerId) { 80 var player = document.getElementById(playerId); 81 player.playVideo(); 82} 83 84 85function getArtistVideo(singer, song) { 86 var url = "https://www.googleapis.com/youtube/v3/search?part=snippet&maxResults=1&key=AIzaSyDwjRhIrnvxLteJtV0mOZl0zNgVo9tmazM&q="+singer+" "+song; 87 88 $.ajax( { 89 async: false, 90 url: url, 91 dataType: "json", 92 success: function(data){ 93 result = data; 94 } 95 }); 96 97 return result.items[0].id.videoId; 98} 99 100function escapeHtml(text) { 101 return text 102 .replace(/&/g, " and ") 103 .replace(/</g, "<") 104 .replace(/>/g, ">") 105 .replace(/"/g, """) 106 .replace(/'/g, "'"); 107} 108 109function Random(min, max) 110{ 111 return Math.floor(Math.random() * (max - min + 1)) + min; 112} 113 114// 115function cList(l){ 116 var h = ''; 117 for(o in l) { 118 if(o != 'now' && o > 0) { 119 h += '<div class="song-item">'; 120 h += '<div id="time' + o + '">' + l[o][3] + '</div>'; 121 if (l[o].video !="") { 122 h += '<div id="youtube'+ o +'" ><img src="https://img.youtube.com/vi/'+ l[o].video +'/mqdefault.jpg" style="width:300px;height:170px;" /></div>'; 123 } else { 124 h += '<div id="youtube'+ o +'" ><img src="'+ l[o].singer_img+ '" style="width:300px;height:170px;" /></div>'; 125 // h += '<div id="youtube'+ o +'" ><img src="https://www.radiojazz.ua/static/img/HitFM_Playlist_noyoutube_pic_240x136.png" style="width:240px;height:136px;" /></div>'; 126 } 127 //****ÐÑо вÑнеÑено Ð´Ð»Ñ Ñого ÑÑо Ð±Ñ ÐºÐ½Ð¾Ð¿ÐºÐ° плей оÑбÑажалаÑÑ Ð½Ð¾ÑмалÑно в блоке, а не Ñ ÐºÐ¾ÑÑÑлÑми!!!!!****** 128 if(l[o].video != "no" && l[0].video != "") 129 h += '<div class="play_youtube" id="video'+o+'"><div style="margin-right: 0" class="play-button-youtube" data-singer="' + l[o].singer + '" data-song="' + l[o].song + '" data-video="' + l[o].video + '" style="float: right;"><i class="fa fa-play"></i></div></div>'; 130 else 131 h += '<div class="play_youtube" style="display: none;" id="video'+o+'"><div style="margin-right: 0" class="play-button-youtube" data-singer="' + l[o].singer + '" data-song="' + l[o].song + '" data-video="' + l[o].video + '" style="float: right;"><i class="fa fa-play"></i></div></div>'; 132 //************************END***************************** 133 h += '<div class="current_song_title">'; 134 if (l[o].id) { 135 h += '<span class="" id="singer'+o+'"><a href="' + domen + '/music/' + l[o].id + '-' + l[o].singerT + '/">' + l[o].singer + '</a></span>'; 136 } else { 137 h += '<span class="bold" id="singer'+o+'"><a href="/playlist/">' + l[o].singer + '</a></span>'; 138 } 139 140 if (l[o].id && l[o].songId) { 141 h += '<span id="song'+o+'"><a href="' + domen + '/music/' + l[o].id + '-' + l[o].singerT + '/' + l[o].songId + '-' + l[o].songT + '/">' + l[o].song + '</a></span>'; 142 } else { 143 h += '<span id="song'+o+'"><a href="/playlist/">' + l[o].song + '</a></span>'; 144 } 145 // h += '</div><div class="clear-hor-9"></div>'; 146 // h += '<div class="player" id="' + o + '-player"></div>'; 147 148 if(l[o].perevod == 0){ 149 var t = 'ТекÑÑ Ð¿ÐµÑни'; 150 } else { 151 var t = 'ТекÑÑ Ð¸ пеÑевод'; 152 } 153 154 h += '</div></div>'; 155 } 156 } 157 $('#songsListOff').html(h); 158} 159$(window).scroll(function() { 160 var top = $(window).scrollTop(); 161 // console.log(top); 162 if(top < 1139) { 163 $("#fixed").removeClass("fixed-stop"); 164 } 165 if(top >= 1140) { 166 $("#fixed").addClass("fixed-stop"); 167 var heightMenu = $(".mn_bg").height(); 168 var heightMenu2 = $(".submenu").height(); 169 $("#fixed").css({top: heightMenu + heightMenu2}); 170 } 171}); 172// function cList(l){ 173// var h = '';
174// for(o in l) { 175// if(o != 'now' && o > 0) { 176// h += '<div class="song-item">'; 177// h += '<div class="left" id="time' + o + '">' + l[o][3] + '</div>'; 178// if (l[o].video !="") { 179// h += '<span id="youtube'+ o +'"><img src="https://img.youtube.com/vi/'+ l[o].video +'/mqdefault.jpg" style="width:240px;height:136px;" /></span>'; 180// } else { 181// h += '<span id="youtube'+ o +'"><img src="https://www.radiojazz.ua/static/img/HitFM_Playlist_noyoutube_pic_240x136.png" style="width:240px;height:136px;" /></span>'; 182// } 183// h += '<div class="right">'; 184// if(l[o].video !== "no" && l[0].video !== "") 185// h += '<div class="rightYuotubeBtn" id="video'+o+'"><div class="play-button-youtube" data-singer="' + l[o].singer + '" data-song="' + l[o].song + '" data-video="' + l[o].video + '" style="float: right;"><i class="fa fa-play"></i></div></div>'; 186// else 187// h += '<div class="rightYuotubeBtn" style="display: block;" id="video'+o+'"><div class="play-button-youtube" data-singer="' + l[o].singer + '" data-song="' + l[o].song + '" data-video="' + l[o].video + '" style="float: right;"><i class="fa fa-play"></i></div></div>'; 188// if (l[o].id) { 189// h += '<span class="rightSongWidth" id="singer'+o+'"><a style="font-weight: bold;" href="' + domen + '/music/' + l[o].id + '-' + l[o].singerT + '/">' + l[o].singer + '</a></span><br>'; 190// } else { 191// h += '<span class="rightSongWidth" id="singer'+o+'">' + l[o].singer + '</span><br>'; 192// } 193// 194// if (l[o].id && l[o].songId) { 195// h += '<span class="rightSongWidth" id="song'+o+'"><a href="' + domen + '/music/' + l[o].id + '-' + l[o].singerT + '/' + l[o].songId + '-' + l[o].songT + '/">' + l[o].song + '</a></span><br>'; 196// } else { 197// h += '<span class="rightSongWidth" id="song'+o+'">' + l[o].song + '</span><br>'; 198// } 199// // h += '</div><div class="clear-hor-9"></div>'; 200// // h += '<div class="player" id="' + o + '-player"></div>'; 201// 202// if(l[o].perevod == 0){ 203// var t = 'ТекÑÑ Ð¿ÐµÑни'; 204// } else { 205// var t = 'ТекÑÑ Ð¸ пеÑевод'; 206// } 207// 208// h += '</div></div>'; 209// } 210// } 211// $('#songsList').html(h); 212// } 213 214 215function showSuccess() { 216 var width = $(window).width(); 217 var height = $(window).height(); 218 var pos = $(window).scrollTop(); 219 var on = 1; 220 $('#mail-success-popup').css("display", "block"); 221 $('#mail-success-popup').css("left", (width / 2 - 300) + "px"); 222 $('#mail-success-popup').css("top", (height / 2 + pos - 200) + "px"); 223 $('#mail-success-popup').css('display', 'block'); 224 $('#w').css("display", "block"); 225 $('#w').css("width", $(document).width()); 226 $('#w').css("height", $(document).height()); 227} 228 229function showDialogue() { 230 var width = $(window).width(); 231 var height = $(window).height(); 232 var pos = $(window).scrollTop(); 233 var on = 1; 234 $('#mailer-dialogue').css("display", "block"); 235 $('#mailer-dialogue').css("left", (width / 2 - 300) + "px"); 236 $('#mailer-dialogue').css("top", (height / 2 + pos - 200) + "px"); 237 $('#mailer-dialogue').css('display', 'block'); 238 $('#w').css("display", "block"); 239 $('#w').css("width", $(document).width()); 240 $('#w').css("height", $(document).height()); 241} 242 243 244function close(){ 245 $('#mail-popup').css("display", "none"); 246 $('#mailer-popup').css("display", "none"); 247 $('#mail-cancel-popup').css("display", "none"); 248 $('#mail-success-popup').css("display", "none"); 249 $('#mailer-dialogue').css("display", "none"); 250 $('#w').css("display", "none"); 251 var on = 0; 252} 253 254$(function() { 255 256 /*$(".radio-player-container, .efir-btn-small").click(function(e) { 257 var url = e.target.getAttribute('url'); 258 if(url == null) { 259 url = e.target.parentElement.getAttribute('url'); 260 } 261 if(url !== null){ 262 window.open(url, 'online', 'width=960,height=650,scrollbars=yes,location=no,directories=no,status=no,toolbar=no,menubar=no') 263 } 264 265 return false;
266 });*/ 267 268 269 // $("#geoSelectActive").html(makeUL(json_geo)); 270 271 $(".shuba_diamant_left").click(function() { 272 setCookie('shuba_diamat_not_show', true, 1); 273 location.href = "https://www.radiojazz.ua/action/83-shubamaniia-diamantoviy-sezon/"; 274 }); 275 276 $(".shuba_diamant_right").click(function() { 277 setCookie('shuba_diamat_not_show', true, 1); 278 // location.href = "https://www.radiojazz.ua/"; 279 $(".shuba_diamant").hide(); 280 }); 281 282 $('#geoSelectActiveUl').click(function(e){ 283 var key = e.target.id.match(/\d+/); 284 if(key == null) { 285 $('#geoSelect').hide(); 286 $('#geoSelectNo').show(); 287 setCookie('geoPlace', 'not', null); 288 dropShadow(1); 289 } else { 290 $('#geoSelectActiveUl .geoSelectActiveUlSub').hide(); 291 $('#gsau' + key).show(); 292 $('#gsau' + key).click(function(ev){ 293 var geoPlace = $('#' + ev.target.id).html(); 294 $('#geoCaption').html(geoPlace); 295 $('#geoSelectActive').hide(); 296 dropShadow(1); 297 setCookie('geoPlace', geoPlace, null); 298 }); 299 $('#geoSelectNo').hide(); 300 301 } 302 }); 303 304 305 $('#geoCaption').click(function(){ 306 if($('#geoSelectActive').css('display')=='none'){ 307 $('#geoSelectActive').show(); 308 dropShadow(0); 309 } else { 310 $('#geoSelectNo').hide(); 311 setCookie('geoPlace', $('#geoCaption').html(), null); 312 $('#geoSelectActive').hide(); 313 dropShadow(1); 314 } 315 }); 316 317 $('#geoSelectNo').click(function(){ 318 dropShadow(0); 319 $('#geoSelect').show(); 320 $('#geoSelectActive').show(); 321 }); 322 323 $('#geoStep1').click(function(){ 324 $('#geoBlock').hide(); 325 dropShadow(0); 326 $('#geoSelect').show(); 327 $('#geoSelectActive').show(); 328 }); 329 330 $('#dropShadow').click(function(){ 331 $('#geoSelectNo').hide(); 332 setCookie('geoPlace', $('#geoCaption').html(), null); 333 $('#geoSelectActive').hide(); 334 dropShadow(1); 335 }); 336 function dropShadow(s) { 337 if(s == 0) { 338 $('#dropShadow').show(); 339 var w = $(document).width(); 340 var h = $(document).height(); 341 $('#dropShadow').width(w); 342 $('#dropShadow').height(h); 343 } else { 344 $('#dropShadow').hide(); 345 } 346 } 347 348 var visible = $.cookie('slide_visible'); 349 if(typeof visible == 'undefined') { 350 minipromoAction(false); 351 } 352 $('#slide_btn').click(function() { 353 minipromoAction(visible == 0); 354 }); 355 356 function minipromoAction(hidden) { 357 $("a[id=slide_menu]").stop(); 358 if(hidden) { 359 $("a[id=slide_menu]").animate({"right": "0"}); 360 $("#slide_btn").removeClass('slide_open').addClass('slide_close') 361 $("#slide_btn div").html('згоÑнÑÑи'); 362 $.cookie('slide_visible', 1, {expires: 1, path: "/"}); 363 visible = 1; 364 } else { 365 $("#slide_btn").removeClass('slide_close').addClass('slide_open'); 366 $("#slide_btn div").html(''); 367 $("a[id=slide_menu]").animate({"right": "-300px"}); 368 $.cookie("slide_visible", 0, {expires: 1, path: "/"}); 369 visible = 0; 370 } 371 } 372 373 var visible_fullscreen = $.cookie('fullscreen_visible'); 374 var newFullScreen = $.cookie('fullscreen_new'); 375 if(typeof visible_fullscreen == 'undefined') { 376 fullscreenAction(true); 377 } 378 $('.fullscreen__btn').click(function() { 379 $('.fullscreen' ).css('display', 'none'); 380 fullscreenAction(visible_fullscreen == 0); 381 }); 382 383 function fullscreenAction(hidden) { 384 if(hidden) { 385 $.cookie('fullscreen_visible', 1, {expires: 2, path: '/'}); 386 visible_fullscreen = 1; 387 } else { 388 $.cookie("fullscreen_visible", 0, {expires: 2, path: '/'}); 389 visible_fullscreen = 0; 390 } 391 } 392 393 var lock; 394 var flag = 0; 395 var playing; 396 var playerr = new Array; 397 var pauseFlag = 0; 398 399 try { 400 cList(songsList3); 401 } catch (e) {} 402 403 var lockList = false;
404 var timerList = false; 405 $('.song').mouseover(function(e){ 406 id = e.currentTarget.id; 407 if(id != '' && lockList != id){ 408 if(timerList != 'undefined' || id != e.currentTarget.id){ 409 clearTimeout(timerList); 410 } 411 $('#' + lockList + ' .subsong').hide('slow'); 412 lockList = id; 413 timerList = setTimeout(function(){ 414 $('#' + id + ' .subsong').show('blind'); 415 }, 500); 416 } 417 }); 418 419 420 $('#listen').click(function(){ 421 flag = 1; 422 $('#listenField').toggle(); 423 $('.player').flash().remove(); 424 $('#radioplayer').flash({ 425 swf:'/static/radioplayer.swf', 426 width: 90, 427 height: 26, 428 flashvars: {path:'http://online-hitfm.tavrmedia.ua/HitFM'} 429 }); 430 }); 431 432 $('.play-button').click(function(e){ 433 id = e.currentTarget.id; 434 for (i in songsList3){ 435 if (i == id){ 436 var path = songsList3[i]['songPath']; 437 } 438 } 439 $('.player').flash().remove(); 440 if (flag == 1){ 441 flag = 0; 442 $('#listenField').toggle(); 443 $('#radioplayer').flash().remove(); 444 } 445 446 $('#' + id + '-player').css('display', 'block'); 447 $('#' + id + '-player').flash({ 448 swf:'/static/player.swf', 449 width: 205, 450 height: 26, 451 flashvars: {path: path} 452 }); 453 454 }); 455 456 $('.play-button-pod').click(function(e){ 457 id = e.currentTarget.id; 458 $('.player').flash().remove(); 459 if (flag == 1){ 460 flag = 0; 461 $('#listenField').toggle(); 462 $('#radioplayer').flash().remove(); 463 } 464 $('#' + id + '-player').css('display', 'block'); 465 $('#' + id + '-player').flash({ 466 swf:'/static/player.swf', 467 width: 205, 468 height: 26, 469 flashvars: {path: id + '.mp3?a=' + Math.random(), podcast:1} 470 }); 471 }); 472 473 $('.play-button-pod-all').click(function(e){ 474 id = e.currentTarget.id; 475 $('.player').flash().remove(); 476 if (flag == 1){ 477 flag = 0; 478 $('#listenField').toggle(); 479 $('#radioplayer').flash().remove(); 480 } 481 $('#' + id + '-allplayer').css('display', 'block'); 482 483 $('#' + id + '-allplayer').flash({ 484 swf:'/static/player.swf', 485 width: 205, 486 height: 26, 487 flashvars: {path: id + '.mp3?a=' + Math.random(), podcast:1} 488 }); 489 }); 490 491 $('#webcam').click(function(){ 492 window.open ("https://www.radiojazz.ua/static/cam.html?1298017172", "cam","width=650,height=400"); 493 }); 494 495 $('.mob-but').click(function(){ 496 setCookieDomain('nomobile', '0', 30); 497 location.href = 'http://m.radiojazz.ua' 498 }); 499 500 $('.url-player, .play-button-youtube, .playlist-play-button, .main_big_play, .main_mini_play').click(function(e) { 501 e.preventDefault(); 502 reload_rontar(); 503 504 var singer = $(this).data('singer'); 505 var song = $(this).data('song'); 506 var video = $(this).data('video'); 507 var song_url = $(this).data("song-url"); 508 var singer_url = $(this).data("singer-url"); 509 var params = { allowScriptAccess: "always" }; 510 var atts = { id: "player-y" }; 511 // changeTitle(singer, song); 512 /*document.title = singer + ' - ' + song + ' на Ð¥ÑÑ FM';*/ 513 changeUrl(song_url); 514 515 if (video != '') 516 $("#player-y").html('<iframe id="video_preroll" allowfullscreen="" frameborder="0" height="410" src="//www.youtube.com/embed/'+video+'?autoplay=1;rel=0&showinfo=0" width="728"></iframe>'); 517 518 $("#player-title").html("<a href=" + singer_url + " class='bold'>" + singer + "</a>" + " - <a href=" + song_url + " >" + song + "</a><div class='clear-hor-9'></div>"); 519 $('.player-popup, .player-content').css('display', 'block'); 520 521 if(typeof player != "undefined" && player.getPlayerState() == 1) { 522 player.pauseVideo(); 523 } 524 }); 525 526 $('.player-close').click(function(e) { 527 e.preventDefault(); 528 window.history.back(); 529 $("#player-title").html(""); 530 $('.player-popup, .player-content').css('display', 'none'); 531 $("#player-y").html(""); 532 // changeTitle(); 533 /*document.title = 'Ð¥ÑÑ FM. ТÑлÑки Ñ ÑÑи!'*/ 534 }); 535 536 $('.player-content').click(function(e) { 537 var container = $(".player-y"); 538 539 if (!container.is(e.target) // if the target of the click isn't the container... 540 && container.has(e.target).length === 0) // ... nor a descendant of the container 541 { 542 e.preventDefault(); 543 $('.player-popup, .player-content').css('display', 'none'); 544 $("#player-y").html(""); 545 // changeTitle(); 546 document.title = 'Radio Jazz' 547 window.history.back(); 548 } 549 }); 550 551 $(document).keyup(function(e) { 552 if (e.keyCode == 27) { 553 $("#player-title").html(""); 554 $('.player-popup, .player-content').css('display', 'none'); 555 $("#player-y").html(""); 556 } 557 }); 558 559 $(".textbody a").each(function() { 560 $(this).attr('target', '_blank'); 561 }); 562 563 /*--- MAIL START ---*/ 564 var on = 0; 565 566 var mailing = null; 567 var name = null; 568 var surname = null; 569 var phone = null; 570 var city = null; 571 var email = null; 572 var about = null; 573 var sex = null; 574 var birth = null; 575 var response = null; 576 $('.form').bind("submit", function(e){ 577 578 id = e.currentTarget.id; 579 580 mailing = $("#" + id + " input[name=mailing]").val(); 581 name = $("#" + id + " input[name=name]:text").val(); 582 surname = $("#" + id + " input[name=surname]:text").val(); 583 phone = $("#" + id + " input[name=phone]:text").val(); 584 city = $("#" + id + " input[name=city]:text").val(); 585 email = $("#" + id + " input[name=email]:text").val(); 586 response = grecaptcha.getResponse(); 587 if (id == 'ol' || id == 'mail' || id == 'vykrutasy' || id == 'chn' || id == 'box-reklama'){ 588 about = $("#" + id + " textarea[name=about]").val(); 589 } else if(id == 'mailer') { 590 sex = $("#" + id + " select[name=sex] option:selected").val(); 591 birth = $("#" + id + " select[name=day] option:selected").val() + '.' + $("#" + id + " select[name=month] option:selected").val() + '.' + $("#" + id + " select[name=year] option:selected").val(); 592 } else { 593 about = $("#" + id + " input[name=about]:text").val(); 594 } 595 if (id == 'mail' && about == ''){ 596 $("#" + id + " .msg").html('<span style="color: red; font-weight: bold;">ÐеÑевÑÑÑе пÑавилÑнÑÑÑÑ Ð·Ð°Ð¿Ð¾Ð²Ð½ÐµÐ½Ð½Ñ ÑоÑми!</span>'); 597 return false;
598 } else if (id != 'mail' && id != 'korona' && (name == '' || phone == '' || city == '' || email == '' || about == '')){ 599 $("#" + id + " .msg").html('<span style="color: red; font-weight: bold;">ÐеÑевÑÑÑе пÑавилÑнÑÑÑÑ Ð·Ð°Ð¿Ð¾Ð²Ð½ÐµÐ½Ð½Ñ ÑоÑми!</span>'); 600 return false; 601 } 602 603 $.ajax({ 604 type: "POST", 605 url: "/ajax/sendmail/send", 606 success: function(data){ 607 var ms = null; 608 var data = $.parseJSON(data); 609 if (data != null && data.error.length > 0) { 610 $("#" + id + " .msg").html('<span style="color: red; font-weight: bold;">'+ data.error.join("<br/>") +'</span>'); 611 return false; 612 } 613 if (id == 'mailer'){ 614 close(); 615 showSuccess(); 616 } else if(id == 'box-reklama') { 617 $('#box-reklama table').hide(); 618 $("#" + id + " .msg").html('<span style="color: yellowgreen; font-weight: bold;">ÐÑкÑÑмо! ÐаÑÑ Ð·Ð°ÑÐ²ÐºÑ Ð¿ÑийнÑÑо. ÐÐµÐ½ÐµÐ´Ð¶ÐµÑ Ð· пÑÐ¾Ð´Ð°Ð¶Ñ Ñеклами заÑелеÑонÑÑ Ð½Ð°Ð¹Ð±Ð»Ð¸Ð¶Ñим ÑаÑом.</span><br><br><a href="/reklama/">ÐадÑÑлаÑи Ñе Ð¾Ð´Ð½Ñ Ð·Ð°ÑвкÑ</a>'); 619 } else { 620 $("#" + id + " .msg").html('<span style="color: yellowgreen; font-weight: bold;">ÐÑкÑÑмо! ÐаÑÑ Ð·Ð°ÑÐ²ÐºÑ Ð¿ÑийнÑÑо.</span>'); 621 } 622 623 624 $("#" + id + " input:not([type='submit'])").val(''); 625 $("#" + id + " textarea").val(''); 626 if (id == 'ol' || id == 'mail'){ 627 $("#" + id + " textarea[name=about]").val(''); 628 } 629 630 if (mailing == 'on' && id != 'mailer'){ 631 if (id == 'mail'){ 632 close(); 633 } 634 showDialogue(); 635 } else { 636 if (id == 'mail'){ 637 $('#mail-popup').css("display", "none"); 638 $('#w').css("display", "none"); 639 } 640 } 641 }, 642 data: "type="+ id +"&name="+ name +"&surname="+ surname +"&phone="+ phone +"&city="+ city +"&email="+ email +"&about="+ about +"&mailing="+ mailing +"&sex="+ sex +"&birth="+ birth + "&recaptcha=" + response 643 }); 644 return false; 645 646 }); 647 648 649 650 $('.button-napisat, .icon-feedback').click(function(){ 651 window.location.href = "https://www.radiojazz.ua/feedback/"; 652 }); 653 654 655 656 $('#w').click(close); 657 $('.close').click(close); 658 $('.button-cancel').click(close); 659 660 /*--- MAIL END ---*/ 661 662 $('.refresh-main-program').click(function () { 663 664 665 var refresh_button = $(this); 666 let name_program = $(this).attr('data-program'); 667 let id_program = $(this).attr('data-id'); 668 let id = $(this).attr('data-media'); 669 670 671 var rotation = function (){ 672 $(refresh_button).rotate({ 673 angle:0, 674 animateTo:360, 675 callback: rotation 676 }); 677 } 678 rotation(); 679 680 $.getJSON( 681 '/inc/program.php', 682 { 683 'key':'program_main', 684 'program':id_program, 685 'id':id 686 } 687 ).done(function (data) { 688 $(refresh_button).attr('data-media', data.absnum); 689 690 if(id_program == 1) { 691 player[0].playNext("/happy/listen/" + data.absnum); 692 } 693 if(id_program == 2) { 694 player[1].playNext("/happy/listen/" + data.absnum); 695 } 696 697 $('#program-main-' + name_program + ' img').attr('src', 'https://static.radiojazz.ua/radiojazz/img/jazz_programs/' + Math.floor(data.absnum/100) + '/' + data.absnum % 100 + '/730x384.jpg'); 698 $('#program-main-' + name_program + ' .part-main-title').html(data.title); 699 $('#program-main-' + name_program + ' .part-main-about').html(data.subtitle); 700 $('#program-main-' + name_program + ' .read-more').attr('href',data.href); 701 702 $(refresh_button).stopRotate(); 703 }); 704 }); 705}); 706 707 708//TODO Ð²Ð¾Ð·Ð¼Ð¾Ð¶Ð½Ð°Ñ Ð¿ÑиÑина бага 709$(window).scroll(function(){ 710 var top = $(window).scrollTop(); 711 712 if ($(this).scrollTop() > 145) {
713 $('.logo-mini-fixed, .online-player-but-mini-fixed').fadeIn(); 714 } else { 715 $('.logo-mini-fixed, .online-player-but-mini-fixed').fadeOut(0); 716 } 717 718 if(top >= 145 && window.innerWidth > 730) { 719 $('#wrapper').css({'margin-top' : 0}); 720 $(".scroll-top").show(); 721 } 722 if(top < 145 && window.innerWidth > 730) { 723 $('#wrapper').css({'margin-top' : '0px'}); 724 $(".scroll-top").hide(); 725 } 726 /*scrollRightBlock(top);*/ 727 728}); 729 730$(document).keyup(function(e) { 731 if (e.keyCode == 27) { 732 $("#player-title").html(""); 733 $('.player-popup, .player-content').css('display', 'none'); 734 } 735}); 736 737/*$('.play-btn-header').click(function () { 738 window.open('https://play.tavr.media/radiojazz/', '_blank'); 739})*/ 740 741function reload_rontar() { 742 // (function (w, d, n) { 743 // var ri = { rontar_site_id: 1777, rontar_adplace_id: 7282, rontar_place_id: 'rontar_adplace_7282', adCode_rootUrl: 'https://adcode.rontar.com/' }; 744 // w[n] = w[n] || []; 745 // w[n].push( 746 // ri 747 // ); 748 // var a = document.createElement('script'); 749 // a.type = 'text/javascript'; 750 // a.async = true; 751 // a.src = 'https://adcode.rontar.com/rontar2_async.js?rnd=' + Math.round(Math.random() * 100000); 752 // var b = document.getElementById('rontar_adplace_' + ri.rontar_adplace_id); 753 // b.parentNode.insertBefore(a, b); 754 // })(window, document, 'rontar_ads'); 755} 756 757 758 759 760$(document).ready(function() { 761 762 var subMenu = $('.panel .submenu').length; 763 764 if(subMenu === 1) { 765 $('.happy_notification').css('margin-top','46px'); 766 $('#right-page').css('top','85px') 767 } 768 769 /*******************17-08-2018******************************/ 770 771 /*************************************************/ 772 773 /*Updater.update();*/ 774 /* 775 try { 776 $(".cityAC").autocomplete({ 777 source: function (request, response) { 778 $.ajax({ 779 url: 'https://www.radiojazz.ua/ajax/city/locate', 780 dataType: 'json', 781 type: 'POST', 782 data: request, 783 success: function (data) { 784 response(data); 785 } 786 }); 787 788 789 }, 790 minLength: 2 791 }); 792 } catch(e){} 793 */ 794 795 function imgMobile() { 796 $('.title-img-mobile').attr('src',function(i,e){ 797 if(e.indexOf('fanzona') === -1) { 798 return e.replace("356x97","728x200"); 799 }else{ 800 return e.replace("370x102","728x200"); 801 } 802 }); 803 804 $('.Slider li img').attr('src',function (i,e) { 805 return e.replace("/o.","/700x340.").replace('/static/img/content/slider/','https://static.radiojazz.ua/radiojazz/img/slider/'); 806 }); 807 } 808 809 var userAgent = navigator.userAgent || navigator.vendor || window.opera; 810 811 if (/android/i.test(userAgent)) { 812 imgMobile(); 813 $('#app-mobile-android').show(); 814 } else if (/iPad|iPhone|iPod/.test(userAgent) && !window.MSStream) { 815 imgMobile(); 816 $('#app-mobile-ios').html('<svg id="Слой_1" data-name="Слой 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1018 179"><defs><style>.cls-1{fill:#e1e1e1;}.cls-2,.cls-3{fill:#424242;}.cls-3{fill-rule:evenodd;}</style></defs><title>ÐаванÑажиÑи з App Store</title><rect class="cls-1" width="1018" height="179" rx="6" ry="6"/><path class="cls-2" d="M339.92,383.31a5.91,5.91,0,0,0,4.75-1.81,7.53,7.53,0,0,0,1.54-5,7.45,7.45,0,0,0-1.69-5,6.19,6.19,0,0,0-5-2,5.73,5.73,0,0,0-4.41,1.94,7.1,7.1,0,0,0-1.77,5H328l-.05-.16a9.78,9.78,0,0,1,3.26-7.94,12,12,0,0,1,8.34-3.05q5.66,0,8.95,2.94t3.28,8.38a9.31,9.31,0,0,1-1.5,5.15,10.11,10.11,0,0,1-4.11,3.61,9.14,9.14,0,0,1,4.55,3.53,10.56,10.56,0,0,1,1.58,5.92,10.74,10.74,0,0,1-3.53,8.55,13.53,13.53,0,0,1-9.22,3.08,13.19,13.19,0,0,1-8.59-2.94q-3.61-2.94-3.48-8.58l.05-.16h5.36a7.81,7.81,0,0,0,1.86,5.32,6.07,6.07,0,0,0,4.8,2.13,6.92,6.92,0,0,0,5.26-2,7.41,7.41,0,0,0,1.91-5.33q0-3.74-1.72-5.51a6.79,6.79,0,0,0-5.1-1.77h-4v-4.23Z" transform="translate(-174.03 -295.28)"/><path class="cls-2" d="M373,405.82q-.3-1-.49-2a14.22,14.22,0,0,1-.25-2,10.61,10.61,0,0,1-3.11,3.27,7.24,7.24,0,0,1-4.15,1.26,7.51,7.51,0,0,1-5.9-2.38,9.18,9.18,0,0,1-2.13-6.36,8.27,8.27,0,0,1,2.9-6.69q2.9-2.43,8.15-2.43h4.15v-3a6.6,6.6,0,0,0-1.21-4.22,4.58,4.58,0,0,0-6.67-.15,4.93,4.93,0,0,0-1.22,3.42l-5.3,0-.08-.17a7.73,7.73,0,0,1,2.75-6.13,10.49,10.49,0,0,1,7.45-2.69,9.93,9.93,0,0,1,7.13,2.6q2.73,2.6,2.73,7.41v13.8a26.25,26.25,0,0,0,.21,3.34,19.23,19.23,0,0,0,.67,3.15Zm-6.73-3.66a6,6,0,0,0,3.56-1.16,6.85,6.85,0,0,0,2.35-2.9V392H367.9a5,5,0,0,0-4,1.64,6,6,0,0,0-1.42,4,5.18,5.18,0,0,0,1,3.26A3.27,3.27,0,0,0,366.22,402.16Z" transform="translate(-174.03 -295.28)"/><path class="cls-2" d="M384.42,405.82V376.08h10.17q4.95,0,7.72,2a7.06,7.06,0,0,1,2.78,6.08,6.4,6.4,0,0,1-1.2,3.81,7.09,7.09,0,0,1-3.39,2.5,7.18,7.18,0,0,1,4.22,2.52,6.94,6.94,0,0,1,1.47,4.39,7.61,7.61,0,0,1-2.61,6.28q-2.61,2.12-7.39,2.12Zm5.55-17h5a5,5,0,0,0,3.44-1.09,4.78,4.78,0,0,0-.08-6.32,5.59,5.59,0,0,0-3.71-1.06H390Zm0,3.93v8.88h6.21a4.49,4.49,0,0,0,3.33-1.14,5.39,5.39,0,0,0,0-6.58,4.41,4.41,0,0,0-3.34-1.16Z" transform="translate(-174.03 -295.28)"/><path class="cls-2" d="M426.69,405.82q-.3-1-.49-2a14.22,14.22,0,0,1-.25-2,10.61,10.61,0,0,1-3.11,3.27,7.24,7.24,0,0,1-4.15,1.26,7.51,7.51,0,0,1-5.9-2.38,9.18,9.18,0,0,1-2.13-6.36,8.27,8.27,0,0,1,2.9-6.69q2.9-2.43,8.15-2.43h4.15v-3a6.6,6.6,0,0,0-1.21-4.22,4.58,4.58,0,0,0-6.67-.15,4.93,4.93,0,0,0-1.22,3.42l-5.3,0-.08-.17a7.73,7.73,0,0,1,2.75-6.13,10.49,10.49,0,0,1,7.45-2.69,9.93,9.93,0,0,1,7.13,2.6q2.73,2.6,2.73,7.41v13.8a26.25,26.25,0,0,0,.21,3.34,19.23,19.23,0,0,0,.67,3.15ZM420,402.16a6,6,0,0,0,3.56-1.16,6.85,6.85,0,0,0,2.35-2.9V392h-4.23a5,5,0,0,0-4,1.64,6,6,0,0,0-1.42,4,5.18,5.18,0,0,0,1,3.26A3.27,3.27,0,0,0,420,402.16Z" transform="translate(-174.03 -295.28)"/><path class="cls-2" d="M458.93,405.82h-5.58v-12.7h-9.89v12.7h-5.58V376.08h5.58v12.81h9.89V376.08h5.58Z" transform="translate(-174.03 -295.28)"/><path class="cls-2" d="M485.26,380.31H477v25.51h-5.61V380.31h-8.08v-4.23h21.93Z" transform="translate(-174.03 -295.28)"/><path class="cls-2" d="M504.28,405.82q-.3-1-.49-2a14.22,14.22,0,0,1-.25-2,10.61,10.61,0,0,1-3.11,3.27,7.24,7.24,0,0,1-4.15,1.26,7.51,7.51,0,0,1-5.9-2.38,9.18,9.18,0,0,1-2.13-6.36,8.27,8.27,0,0,1,2.9-6.69q2.9-2.43,8.15-2.43h4.15v-3a6.6,6.6,0,0,0-1.21-4.22,4.58,4.58,0,0,0-6.67-.15,4.93,4.93,0,0,0-1.22,3.42l-5.3,0-.08-.17a7.73,7.73,0,0,1,2.75-6.13,10.49,10.49,0,0,1,7.45-2.69,9.93,9.93,0,0,1,7.13,2.6q2.73,2.6,2.73,7.41v13.8a26.25,26.25,0,0,0,.21,3.34,19.23,19.23,0,0,0,.67,3.15Zm-6.73-3.66a6,6,0,0,0,3.56-1.16,6.85,6.85,0,0,0,2.35-2.9V392h-4.23a5,5,0,0,0-4,1.64,6,6,0,0,0-1.42,4,5.18,5.18,0,0,0,1,3.26A3.27,3.27,0,0,0,497.55,402.16Z" transform="translate(-174.03 -295.28)"/><path class="cls-2" d="M537.43,393.12h-2.91v12.7H529v-12.7h-2.89l-6,12.7H513l8.82-16.11-8.22-13.63h6.93l5.8,12.29H529V376.08h5.55v12.29h2.75l5.8-12.29H550l-8.22,13.63,8.82,16.11h-7.09Z" transform="translate(-174.03 -295.28)"/>
816<path class="cls-2" d="M562.88,395.57l.41,2h.16l5.72-21.44h6.07l-10.42,34.36a16.35,16.35,0,0,1-2.83,5.24,6.29,6.29,0,0,1-5.14,2.16,7.78,7.78,0,0,1-1.47-.15q-.78-.15-1.55-.34l.6-4.12.82.11q.52.05.82.05a3,3,0,0,0,2.57-1.39,10.91,10.91,0,0,0,1.47-3.28l1-3-9.18-29.6h6Z" transform="translate(-174.03 -295.28)"/><path class="cls-2" d="M594.65,376.08h5.55v29.74h-5.55V385.64l-.16,0-9.78,20.2h-5.58V376.08h5.58v20.15l.16,0Zm2.64-12.23.05.16a6.59,6.59,0,0,1-2,5.25,9.07,9.07,0,0,1-11.38,0,6.52,6.52,0,0,1-2-5.25l.05-.16h4.15a4.93,4.93,0,0,0,.84,3,3,3,0,0,0,2.62,1.15,2.94,2.94,0,0,0,2.54-1.15,4.93,4.93,0,0,0,.84-3Z" transform="translate(-174.03 -295.28)"/><path class="cls-2" d="M626.51,380.31h-8.25v25.51h-5.61V380.31h-8.08v-4.23h21.93Z" transform="translate(-174.03 -295.28)"/><path class="cls-2" d="M641.08,406.39a10.67,10.67,0,0,1-8.49-3.68,13.89,13.89,0,0,1-3.19-9.43v-4.34a14.64,14.64,0,0,1,3.12-9.62,9.82,9.82,0,0,1,7.93-3.79,9.33,9.33,0,0,1,7.78,3.45q2.72,3.45,2.72,9.28v3.85h-16v1.18a11.17,11.17,0,0,0,1.69,6.36,5.44,5.44,0,0,0,4.8,2.51,9.75,9.75,0,0,0,4-.73,11.12,11.12,0,0,0,3.13-2.13l1.76,3.46a10.37,10.37,0,0,1-3.77,2.61A13.66,13.66,0,0,1,641.08,406.39Zm-.63-26.63a4.4,4.4,0,0,0-3.88,2.37,12.35,12.35,0,0,0-1.62,6h10.47V387a9.67,9.67,0,0,0-1.26-5.2A4.11,4.11,0,0,0,640.44,379.76Z" transform="translate(-174.03 -295.28)"/><path class="cls-2" d="M668.15,401.59a15.19,15.19,0,0,0,3.06-5.52,38.62,38.62,0,0,0,1.17-9.32l.25-10.66H690v25.51h3.44l-.44,13h-5.11v-8.8H671.72v8.8h-5.11l-.49-13Zm9.78-14.84a37.58,37.58,0,0,1-1.28,8.78,20.31,20.31,0,0,1-2.76,6.06h10.58V380.67h-6.4Z" transform="translate(-174.03 -295.28)"/><path class="cls-2" d="M696.9,389.08a15,15,0,0,1,3.09-9.73,11.32,11.32,0,0,1,16.94,0,14.91,14.91,0,0,1,3.11,9.74v3.79a14.89,14.89,0,0,1-3.09,9.74,11.4,11.4,0,0,1-17,0,14.89,14.89,0,0,1-3.09-9.74Zm5.58,3.77a13.46,13.46,0,0,0,1.48,6.69,5.18,5.18,0,0,0,9,0,13.35,13.35,0,0,0,1.5-6.69V389a13.31,13.31,0,0,0-1.5-6.65,5.17,5.17,0,0,0-9,0,13.4,13.4,0,0,0-1.48,6.67Z" transform="translate(-174.03 -295.28)"/><path class="cls-2" d="M723.37,401.59a15.19,15.19,0,0,0,3.06-5.52,38.62,38.62,0,0,0,1.17-9.32l.25-10.66h17.4v25.51h3.44l-.44,13h-5.11v-8.8H726.94v8.8h-5.11l-.49-13Zm9.78-14.84a37.58,37.58,0,0,1-1.28,8.78,20.31,20.31,0,0,1-2.76,6.06h10.58V380.67h-6.4Z" transform="translate(-174.03 -295.28)"/><path class="cls-2" d="M768.36,405.82q-.3-1-.49-2a14.22,14.22,0,0,1-.25-2,10.61,10.61,0,0,1-3.11,3.27,7.24,7.24,0,0,1-4.15,1.26,7.51,7.51,0,0,1-5.9-2.38,9.18,9.18,0,0,1-2.13-6.36,8.27,8.27,0,0,1,2.9-6.69q2.9-2.43,8.15-2.43h4.15v-3a6.6,6.6,0,0,0-1.21-4.22,4.58,4.58,0,0,0-6.67-.15,4.93,4.93,0,0,0-1.22,3.42l-5.3,0-.08-.17a7.73,7.73,0,0,1,2.75-6.13,10.49,10.49,0,0,1,7.45-2.69,9.93,9.93,0,0,1,7.13,2.6q2.73,2.6,2.73,7.41v13.8a26.25,26.25,0,0,0,.21,3.34,19.23,19.23,0,0,0,.67,3.15Zm-6.73-3.66a6,6,0,0,0,3.56-1.16,6.85,6.85,0,0,0,2.35-2.9V392H763.3a5,5,0,0,0-4,1.64,6,6,0,0,0-1.42,4,5.18,5.18,0,0,0,1,3.26A3.27,3.27,0,0,0,761.62,402.16Z" transform="translate(-174.03 -295.28)"/><path class="cls-2" d="M798.84,380.31h-8.25v25.51H785V380.31h-8.08v-4.23h21.93Z" transform="translate(-174.03 -295.28)"/><path class="cls-2" d="M800.9,389.08a15,15,0,0,1,3.09-9.73,11.32,11.32,0,0,1,16.94,0,14.91,14.91,0,0,1,3.11,9.74v3.79a14.89,14.89,0,0,1-3.09,9.74,11.4,11.4,0,0,1-17,0,14.89,14.89,0,0,1-3.09-9.74Zm5.58,3.77a13.46,13.46,0,0,0,1.48,6.69,5.18,5.18,0,0,0,9,0,13.35,13.35,0,0,0,1.5-6.69V389a13.31,13.31,0,0,0-1.5-6.65,5.17,5.17,0,0,0-9,0,13.4,13.4,0,0,0-1.48,6.67Z" transform="translate(-174.03 -295.28)"/><path class="cls-2" d="M838,393.26h-2.78v12.56h-5.58V376.08h5.58v12.45h2.64l6.84-12.45h7L842.46,390l10,15.8h-7.26Z" transform="translate(-174.03 -295.28)"/><path class="cls-2" d="M877.72,388.67a3.87,3.87,0,0,0,3.11-1.13,4.86,4.86,0,0,0,1-3.24,5.22,5.22,0,0,0-1-3.3,3.77,3.77,0,0,0-3.17-1.29,4.3,4.3,0,0,0-3.2,1.31,4.57,4.57,0,0,0-1.28,3.34H867.8l-.05-.16a7.37,7.37,0,0,1,2.69-6.21,10.45,10.45,0,0,1,7-2.39,11,11,0,0,1,7.3,2.23,7.79,7.79,0,0,1,2.65,6.32,6.86,6.86,0,0,1-1.07,3.75,7.39,7.39,0,0,1-3,2.65,6.76,6.76,0,0,1,3.35,2.64A8.74,8.74,0,0,1,885,404a11.54,11.54,0,0,1-7.54,2.35,11.39,11.39,0,0,1-7.17-2.34,7.64,7.64,0,0,1-2.89-6.71l.05-.16h5.33a5.3,5.3,0,0,0,1.32,3.66,4.51,4.51,0,0,0,3.55,1.48,4.34,4.34,0,0,0,3.46-1.36,5.19,5.19,0,0,0,1.18-3.53,5,5,0,0,0-1.11-3.59,4.59,4.59,0,0,0-3.42-1.14h-3.93v-4Z" transform="translate(-174.03 -295.28)"/><path class="cls-2" d="M924.25,395.7H911.5l-2.91,10.11h-5.66l12.31-40h5.39l12.2,40h-5.66Zm-11.46-4.43H923l-5-17.48h-.16Z" transform="translate(-174.03 -295.28)"/><path class="cls-2" d="M958.61,393.42q0,5.88-2.58,9.43a8.38,8.38,0,0,1-7.17,3.55,8.21,8.21,0,0,1-3.82-.85,8,8,0,0,1-2.83-2.5v14.21h-5.58V376.08h5l.36,3.41a8.74,8.74,0,0,1,2.89-2.93,7.5,7.5,0,0,1,4-1,8.2,8.2,0,0,1,7.23,3.9q2.58,3.9,2.58,10.33ZM953,389.77a15.38,15.38,0,0,0-1.44-7.13,4.61,4.61,0,0,0-4.3-2.76,4.71,4.71,0,0,0-3.05,1,7.16,7.16,0,0,0-2,2.78v15a6,6,0,0,0,2,2.57,5.25,5.25,0,0,0,3.11.89,4.66,4.66,0,0,0,4.3-2.4,12.41,12.41,0,0,0,1.42-6.34Z" transform="translate(-174.03 -295.28)"/><path class="cls-2" d="M986,393.42q0,5.88-2.58,9.43a8.38,8.38,0,0,1-7.17,3.55,8.21,8.21,0,0,1-3.82-.85,8,8,0,0,1-2.83-2.5v14.21H964V376.08h5l.36,3.41a8.74,8.74,0,0,1,2.89-2.93,7.5,7.5,0,0,1,4-1,8.2,8.2,0,0,1,7.23,3.9q2.58,3.9,2.58,10.33Zm-5.58-3.66a15.38,15.38,0,0,0-1.44-7.13,4.61,4.61,0,0,0-4.3-2.76,4.71,4.71,0,0,0-3.05,1,7.16,7.16,0,0,0-2,2.78v15a6,6,0,0,0,2,2.57,5.25,5.25,0,0,0,3.11.89,4.66,4.66,0,0,0,4.3-2.4,12.41,12.41,0,0,0,1.42-6.34Z" transform="translate(-174.03 -295.28)"/><path class="cls-2" d="M1022.57,395.73a6.78,6.78,0,0,0-1.59-4.64,13.1,13.1,0,0,0-5.58-3.19,22.57,22.57,0,0,1-8.77-4.52,9.5,9.5,0,0,1-3.05-7.37,9.94,9.94,0,0,1,3.39-7.76,12.6,12.6,0,0,1,8.73-3,11.89,11.89,0,0,1,8.95,3.5,11.32,11.32,0,0,1,3.28,8.45l-.05.16h-5.36a8.68,8.68,0,0,0-1.8-5.7,7.08,7.08,0,0,0-9.87-.37,6.59,6.59,0,0,0-1.69,4.66,5.73,5.73,0,0,0,1.81,4.3,16.43,16.43,0,0,0,6,3.17,19.47,
81619.47,0,0,1,8.33,4.65,10.48,10.48,0,0,1,2.86,7.62,9.75,9.75,0,0,1-3.38,7.81,13.19,13.19,0,0,1-8.88,2.89,14.61,14.61,0,0,1-9.36-3.17q-4-3.17-3.86-8.95l.05-.16h5.36q0,4.11,2.16,6.08a8,8,0,0,0,5.65,2,6.69,6.69,0,0,0,4.91-1.75A6.28,6.28,0,0,0,1022.57,395.73Z" transform="translate(-174.03 -295.28)"/><path class="cls-2" d="M1040.57,368.69v7.39h4.64v4h-4.64v17.7a5.9,5.9,0,0,0,.69,3.28,2.1,2.1,0,0,0,1.79,1,8.47,8.47,0,0,0,1.22-.08q.56-.08,1.33-.25l.58,3.85a11.39,11.39,0,0,1-2.1.62,12.23,12.23,0,0,1-2.4.23,6.06,6.06,0,0,1-4.91-2.08q-1.75-2.08-1.75-6.56v-17.7h-3.88v-4H1035v-7.39Z" transform="translate(-174.03 -295.28)"/><path class="cls-2" d="M1049.06,389.08a15,15,0,0,1,3.09-9.73,11.32,11.32,0,0,1,16.94,0,14.91,14.91,0,0,1,3.11,9.74v3.79a14.89,14.89,0,0,1-3.09,9.74,11.4,11.4,0,0,1-17,0,14.89,14.89,0,0,1-3.09-9.74Zm5.58,3.77a13.46,13.46,0,0,0,1.48,6.69,5.18,5.18,0,0,0,9,0,13.35,13.35,0,0,0,1.5-6.69V389a13.31,13.31,0,0,0-1.5-6.65,5.17,5.17,0,0,0-9,0,13.4,13.4,0,0,0-1.48,6.67Z" transform="translate(-174.03 -295.28)"/><path class="cls-2" d="M1090.32,380.78l-2.61-.14a4.09,4.09,0,0,0-2.87,1,6.61,6.61,0,0,0-1.75,2.94v21.19h-5.58V376.08h5.08l.41,4.48a9.45,9.45,0,0,1,2.45-3.7,5.12,5.12,0,0,1,3.49-1.33,6.85,6.85,0,0,1,1.13.1,4.26,4.26,0,0,1,.91.23Z" transform="translate(-174.03 -295.28)"/><path class="cls-2" d="M1105.13,406.39a10.67,10.67,0,0,1-8.49-3.68,13.89,13.89,0,0,1-3.19-9.43v-4.34a14.64,14.64,0,0,1,3.12-9.62,9.82,9.82,0,0,1,7.93-3.79,9.33,9.33,0,0,1,7.78,3.45q2.72,3.45,2.72,9.28v3.85h-16v1.18a11.17,11.17,0,0,0,1.69,6.36,5.44,5.44,0,0,0,4.8,2.51,9.75,9.75,0,0,0,4-.73,11.12,11.12,0,0,0,3.13-2.13l1.76,3.46a10.37,10.37,0,0,1-3.77,2.61A13.66,13.66,0,0,1,1105.13,406.39Zm-.63-26.63a4.4,4.4,0,0,0-3.88,2.37,12.35,12.35,0,0,0-1.62,6h10.47V387a9.67,9.67,0,0,0-1.26-5.2A4.11,4.11,0,0,0,1104.5,379.76Z" transform="translate(-174.03 -295.28)"/><path class="cls-3" d="M295.9,406.38a66.47,66.47,0,0,1-6,11.21c-3.9,5.94-9.39,13.33-16.19,13.4-6,.06-7.6-3.94-15.8-3.89s-9.92,4-16,3.91c-6.8-.06-12-6.74-15.9-12.68-10.9-16.6-12-36.09-5.31-46.45,4.78-7.36,12.31-11.67,19.39-11.67s11.75,4,17.71,4c5.78,0,9.31-4,17.65-4,6.3,0,13,3.44,17.74,9.38-15.59,8.55-13.06,30.85,2.69,36.81Z" transform="translate(-174.03 -295.28)"/><path class="cls-3" d="M269.15,353.57c3-3.89,5.33-9.39,4.5-15-4.95.34-10.74,3.49-14.12,7.6-3.07,3.73-5.6,9.26-4.61,14.64,5.4.17,11-3.06,14.23-7.23Z" transform="translate(-174.03 -295.28)"/></svg>'); 817 $('#app-mobile-ios').show(); 818 } else { 819 820 } 821 822 $(".login-close, .player-popup").click(function(){ 823 $(".login-popup, .player-popup").hide(); 824 $("#login-content").html(""); 825 }); 826 827 $("#login-link").click(loginPopup); 828 function loginPopup(e) { 829 if(typeof e != "undefined") 830 e.preventDefault(); 831 $(".login-popup, .player-popup").show(); 832 $("#login-content").load("/club/profile/login.php #center-page"); 833 } 834 835 $(".header-bar-search-icon").click(function () { 836 $("#___gcse_0").show(); 837 $("#popup").show(); 838 $(".close_1 img").css("display","block"); 839 }); 840 841 $(".close_1 img").click(function() { 842 $('#___gcse_0').hide(); 843 $("#popup").hide(); 844 $(".close_1 img").css("display","none"); 845 }); 846 847 /*window.addEventListener("orientationchange", function() { 848 // ÐÑводим ÑиÑловое знаÑение оÑиенÑаÑии 849 document.location.reload(true); 850 }, false);*/ 851}); 852 853function changeUrl(href) { 854 window.history.pushState("", "", href) 855 $('.player-y .social-likes').socialLikes({ 856 url: window.location.href, 857 title: document.title, 858 forceUpdate: true 859 }); 860} 861 862function changeTitle(singer, song) { 863 oldTitle = oldTitle || ""; 864 if(oldTitle != "") { 865 document.title = oldTitle; 866 oldTitle = ""; 867 return; 868 } 869 870 oldTitle = document.title; 871 document.title = singer + ' - ' + song + ' на Ð¥ÑÑ FM'; 872 console.log( document.title + ' ------------------ ---------------' ); 873 874} 875 876// VERSION: 2.3 LAST UPDATE: 11.07.2013 877/* 878 * Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php 879 * 880 * Made by Wilq32, [email protected], Wroclaw, Poland, 01.2009 881 * Website: http://jqueryrotate.com 882 */ 883 884(function($) { 885 var supportedCSS,supportedCSSOrigin, styles=document.getElementsByTagName("head")[0].style,toCheck="transformProperty WebkitTransform OTransform msTransform MozTransform".split(" "); 886 for (var a = 0; a < toCheck.length; a++) if (styles[toCheck[a]] !== undefined) { supportedCSS = toCheck[a]; } 887 if (supportedCSS) { 888 supportedCSSOrigin = supportedCSS.replace(/[tT]ransform/,"TransformOrigin");
889 if (supportedCSSOrigin[0] == "T") supportedCSSOrigin[0] = "t"; 890 } 891 892 // Bad eval to preven google closure to remove it from code o_O 893 eval('IE = "v"=="\v"'); 894 895 jQuery.fn.extend({ 896 rotate:function(parameters) 897 { 898 if (this.length===0||typeof parameters=="undefined") return; 899 if (typeof parameters=="number") parameters={angle:parameters}; 900 var returned=[]; 901 for (var i=0,i0=this.length;i<i0;i++) 902 { 903 var element=this.get(i); 904 if (!element.Wilq32 || !element.Wilq32.PhotoEffect) { 905 906 var paramClone = $.extend(true, {}, parameters); 907 var newRotObject = new Wilq32.PhotoEffect(element,paramClone)._rootObj; 908 909 returned.push($(newRotObject)); 910 } 911 else { 912 element.Wilq32.PhotoEffect._handleRotation(parameters); 913 } 914 } 915 return returned; 916 }, 917 getRotateAngle: function(){ 918 var ret = [0]; 919 for (var i=0,i0=this.length;i<i0;i++) 920 { 921 var element=this.get(i); 922 if (element.Wilq32 && element.Wilq32.PhotoEffect) { 923 ret[i] = element.Wilq32.PhotoEffect._angle; 924 } 925 } 926 return ret; 927 }, 928 stopRotate: function(){ 929 for (var i=0,i0=this.length;i<i0;i++) 930 { 931 var element=this.get(i); 932 if (element.Wilq32 && element.Wilq32.PhotoEffect) { 933 clearTimeout(element.Wilq32.PhotoEffect._timer); 934 } 935 } 936 } 937 }); 938 939 // Library agnostic interface 940 941 Wilq32=window.Wilq32||{}; 942 Wilq32.PhotoEffect=(function(){ 943 944 if (supportedCSS) { 945 return function(img,parameters){ 946 img.Wilq32 = { 947 PhotoEffect: this 948 }; 949 950 this._img = this._rootObj = this._eventObj = img; 951 this._handleRotation(parameters); 952 } 953 } else { 954 return function(img,parameters) { 955 this._img = img; 956 this._onLoadDelegate = [parameters]; 957 958 this._rootObj=document.createElement('span'); 959 this._rootObj.style.display="inline-block"; 960 this._rootObj.Wilq32 = 961 { 962 PhotoEffect: this 963 }; 964 img.parentNode.insertBefore(this._rootObj,img); 965 966 if (img.complete) { 967 this._Loader(); 968 } else { 969 var self=this;
970 // TODO: Remove jQuery dependency 971 jQuery(this._img).bind("load", function(){ self._Loader(); }); 972 } 973 } 974 } 975 })(); 976 977 Wilq32.PhotoEffect.prototype = { 978 _setupParameters : function (parameters){ 979 this._parameters = this._parameters || {}; 980 if (typeof this._angle !== "number") { this._angle = 0 ; } 981 if (typeof parameters.angle==="number") { this._angle = parameters.angle; } 982 this._parameters.animateTo = (typeof parameters.animateTo === "number") ? (parameters.animateTo) : (this._angle); 983 984 this._parameters.step = parameters.step || this._parameters.step || null; 985 this._parameters.easing = parameters.easing || this._parameters.easing || this._defaultEasing; 986 this._parameters.duration = 'duration' in parameters ? parameters.duration : parameters.duration || this._parameters.duration || 1000; 987 this._parameters.callback = parameters.callback || this._parameters.callback || this._emptyFunction; 988 this._parameters.center = parameters.center || this._parameters.center || ["50%","50%"]; 989 if (typeof this._parameters.center[0] == "string") { 990 this._rotationCenterX = (parseInt(this._parameters.center[0],10) / 100) * this._imgWidth * this._aspectW; 991 } else { 992 this._rotationCenterX = this._parameters.center[0]; 993 } 994 if (typeof this._parameters.center[1] == "string") { 995 this._rotationCenterY = (parseInt(this._parameters.center[1],10) / 100) * this._imgHeight * this._aspectH; 996 } else { 997 this._rotationCenterY = this._parameters.center[1]; 998 } 999 1000 if (parameters.bind && parameters.bind != this._parameters.bind) { this._BindEvents(parameters.bind); } 1001 }, 1002 _emptyFunction: function(){}, 1003 _defaultEasing: function (x, t, b, c, d) { return -c * ((t=t/d-1)*t*t*t - 1) + b }, 1004 _handleRotation : function(parameters, dontcheck){ 1005 if (!supportedCSS && !this._img.complete && !dontcheck) { 1006 this._onLoadDelegate.push(parameters); 1007 return; 1008 } 1009 this._setupParameters(parameters); 1010 if (this._angle==this._parameters.animateTo) { 1011 this._rotate(this._angle); 1012 } 1013 else { 1014 this._animateStart(); 1015 } 1016 }, 1017 1018 _BindEvents:function(events){ 1019 if (events && this._eventObj) 1020 { 1021 // Unbinding previous Events 1022 if (this._parameters.bind){ 1023 var oldEvents = this._parameters.bind; 1024 for (var a in oldEvents) if (oldEvents.hasOwnProperty(a))
1025 // TODO: Remove jQuery dependency 1026 jQuery(this._eventObj).unbind(a,oldEvents[a]); 1027 } 1028 1029 this._parameters.bind = events; 1030 for (var a in events) if (events.hasOwnProperty(a)) 1031 // TODO: Remove jQuery dependency 1032 jQuery(this._eventObj).bind(a,events[a]); 1033 } 1034 }, 1035 1036 _Loader:(function() 1037 { 1038 if (IE) 1039 return function() { 1040 var width=this._img.width; 1041 var height=this._img.height; 1042 this._imgWidth = width; 1043 this._imgHeight = height; 1044 this._img.parentNode.removeChild(this._img); 1045 1046 this._vimage = this.createVMLNode('image'); 1047 this._vimage.src=this._img.src; 1048 this._vimage.style.height=height+"px"; 1049 this._vimage.style.width=width+"px"; 1050 this._vimage.style.position="absolute"; // FIXES IE PROBLEM - its only rendered if its on absolute position! 1051 this._vimage.style.top = "0px"; 1052 this._vimage.style.left = "0px"; 1053 this._aspectW = this._aspectH = 1; 1054 1055 /* Group minifying a small 1px precision problem when rotating object */ 1056 this._container = this.createVMLNode('group'); 1057 this._container.style.width=width; 1058 this._container.style.height=height; 1059 this._container.style.position="absolute"; 1060 this._container.style.top="0px"; 1061 this._container.style.left="0px"; 1062 this._container.setAttribute('coordsize',width-1+','+(height-1)); // This -1, -1 trying to fix ugly problem with small displacement on IE 1063 this._container.appendChild(this._vimage); 1064 1065 this._rootObj.appendChild(this._container); 1066 this._rootObj.style.position="relative"; // FIXES IE PROBLEM 1067 this._rootObj.style.width=width+"px"; 1068 this._rootObj.style.height=height+"px"; 1069 this._rootObj.setAttribute('id',this._img.getAttribute('id')); 1070 this._rootObj.className=this._img.className; 1071 this._eventObj = this._rootObj; 1072 var parameters; 1073 while (parameters = this._onLoadDelegate.shift()) { 1074 this._handleRotation(parameters, true); 1075 } 1076 } 1077 else return function () { 1078 this._rootObj.setAttribute('id',this._img.getAttribute('id')); 1079 this._rootObj.className=this._img.className; 1080 1081 this._imgWidth=this._img.naturalWidth; 1082 this._imgHeight=this._img.naturalHeight; 1083 var _widthMax=Math.sqrt((this._imgHeight)*(this._imgHeight) + (this._imgWidth) * (this._imgWidth)); 1084 this._width = _widthMax * 3; 1085 this._height = _widthMax * 3; 1086 1087 this._aspectW = this._img.offsetWidth/this._img.naturalWidth; 1088 this._aspectH = this._img.offsetHeight/this._img.naturalHeight; 1089 1090 this._img.parentNode.removeChild(this._img); 1091 1092 1093 this._canvas=document.createElement('canvas'); 1094 this._canvas.setAttribute('width',this._width); 1095 this._canvas.style.position="relative"; 1096 this._canvas.style.left = -this._img.height * this._aspectW + "px"; 1097 this._canvas.style.top = -this._img.width * this._aspectH + "px"; 1098 this._canvas.Wilq32 = this._rootObj.Wilq32; 1099 1100 this._rootObj.appendChild(this._canvas); 1101 this._rootObj.style.width=this._img.width*this._aspectW+"px"; 1102 this._rootObj.style.height=this._img.height*this._aspectH+"px"; 1103 this._eventObj = this._canvas; 1104 1105 this._cnv=this._canvas.getContext('2d'); 1106 var parameters; 1107 while (parameters = this._onLoadDelegate.shift()) { 1108 this._handleRotation(parameters, true); 1109 } 1110 } 1111 })(), 1112 1113 _animateStart:function() 1114 { 1115 if (this._timer) { 1116 clearTimeout(this._timer); 1117 } 1118 this._animateStartTime = +new Date; 1119 this._animateStartAngle = this._angle; 1120 this._animate(); 1121 }, 1122 _animate:function() 1123 { 1124 var actualTime = +new Date; 1125 var checkEnd = actualTime - this._animateStartTime > this._parameters.duration; 1126 1127 // TODO: Bug for animatedGif for static rotation ? (to test) 1128 if (checkEnd && !this._parameters.animatedGif) 1129 { 1130 clearTimeout(this._timer); 1131 } 1132 else 1133 { 1134 if (this._canvas||this._vimage||this._img) { 1135 var angle = this._parameters.easing(0, actualTime - this._animateStartTime, this._animateStartAngle, this._parameters.animateTo - this._animateStartAngle, this._parameters.duration); 1136 this._rotate((~~(angle*10))/10); 1137 } 1138 if (this._parameters.step) { 1139 this._parameters.step(this._angle); 1140 } 1141 var self = this; 1142 this._timer = setTimeout(function() 1143 { 1144 self._animate.call(self); 1145 }, 10); 1146 } 1147 1148 // To fix Bug that prevents using recursive function in callback I moved this function to back 1149 if (this._parameters.callback && checkEnd){ 1150 this._angle = this._parameters.animateTo; 1151 this._rotate(this._angle); 1152 this._parameters.callback.call(this._rootObj); 1153 } 1154 }, 1155 1156 _rotate : (function() 1157 { 1158 var rad = Math.PI/180; 1159 if (IE) 1160 return function(angle) 1161 { 1162 this._angle = angle; 1163 this._container.style.rotation=(angle%360)+"deg"; 1164 this._vimage.style.top = -(this._rotationCenterY - this._imgHeight/2) + "px"; 1165 this._vimage.style.left = -(this._rotationCenterX - this._imgWidth/2) + "px"; 1166 this._container.style.top = this._rotationCenterY - this._imgHeight/2 + "px"; 1167 this._container.style.left = this._rotationCenterX - this._imgWidth/2 + "px"; 1168 1169 } 1170 else if (supportedCSS) 1171 return function(angle){ 1172 this._angle = angle; 1173 this._img.style[supportedCSS]="rotate("+(angle%360)+"deg)"; 1174 this._img.style[supportedCSSOrigin]=this._parameters.center.join(" "); 1175 } 1176 else 1177 return function(angle) 1178 { 1179 this._angle = angle; 1180 angle=(angle%360)* rad; 1181 // clear canvas 1182 this._canvas.width = this._width;//+this._widthAdd; 1183 this._canvas.height = this._height;//+this._heightAdd; 1184 1185 // REMEMBER: all drawings are read from backwards.. so first function is translate, then rotate, then translate, translate.. 1186 this._cnv.translate(this._imgWidth*this._aspectW,this._imgHeight*this._aspectH); // at least center image on screen 1187 this._cnv.translate(this._rotationCenterX,this._rotationCenterY); // we move image back to its orginal 1188 this._cnv.rotate(angle); // rotate image 1189 this._cnv.translate(-this._rotationCenterX,-this._rotationCenterY); // move image to its center, so we can rotate around its center 1190 this._cnv.scale(this._aspectW,this._aspectH); // SCALE - if needed ;) 1191 this._cnv.drawImage(this._img, 0, 0); // First - we draw image 1192 } 1193 1194 })() 1195 } 1196 1197 if (IE) 1198 { 1199 Wilq32.PhotoEffect.prototype.createVMLNode=(function(){ 1200 document.createStyleSheet().addRule(".rvml", "behavior:url(#default#VML)"); 1201 try { 1202 !document.namespaces.rvml && document.namespaces.add("rvml", "urn:schemas-microsoft-com:vml"); 1203 return function (tagName) { 1204 return document.createElement('<rvml:' + tagName + ' class="rvml">'); 1205 }; 1206 } catch (e) { 1207 return function (tagName) { 1208 return document.createElement('<' + tagName + ' xmlns="urn:schemas-microsoft.com:vml" class="rvml">'); 1209 }; 1210 } 1211 })(); 1212 } 1213 1214})(jQuery); 1215 1216 1217//Shit code here 1218function scrollRightBlock(top) { 1219 if(isMobile) { 1220 return false;
1221 } 1222 var right = $("#right-page"), 1223 center = $("#center-page"), 1224 H = {"center": center.height(), "right": right.height()}, 1225 scrollStep = top - lastScrollPosition, 1226 isUpScroll = (scrollStep < 0 ? true : false), 1227 cssTop = parseInt(right.css("top")) || 0, 1228 newTop = rightPageDefaultOffset; 1229 lastScrollPosition = top; 1230 if(top < rightPageDefaultOffset-50 || H.right*1.15 > H.center) { 1231 // right.css({"position": "relative", "top": 0, "margin-left": "inherit"}); 1232 right.css({"position": "relative", "top": 0}); 1233 return true; 1234 } 1235 var tmp = cssTop - scrollStep, 1236 max = parseInt(right.css("margin-top")) || 0, 1237 minTop = window.innerHeight/1.2 - (H.right + max); 1238 1239 max = 50 + Math.abs(max); 1240 newTop = (tmp > max ? max : tmp); 1241 newTop = (newTop < minTop ? minTop : newTop); 1242 1243 if(!isUpScroll && top < rightPageDefaultOffset + 10) { 1244 return true; 1245 } 1246 centerEndCord = center.offset().top + H.center; 1247 rightEndCord = right.offset().top + H.right; 1248 1249 if(rightEndCord > centerEndCord) { 1250 newTop += centerEndCord - rightEndCord; 1251 } 1252 /*console.log(newTop);*/ 1253 //right.css({"position": "fixed", "margin-left": "16px", "margin-top": "none", "top": newTop}); 1254 // right.css({"position": "fixed", "margin-left": "16px", "margin-top": "none", "top": newTop}); 1255} 1256$('body').removeAttr("style");//РедакÑÐ¾Ñ ÑекÑÑа добавлÑл ÑÑили
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.