1firebase.initializeApp({apiKey:"AIzaSyCzqSBFxbQWpoxW1d2N_UugoepSmhAB10g",authDomain:"don24-165207.firebaseapp.com",databaseURL:"https://don24-165207.firebaseio.com",projectId:"don24-165207",storageBucket:"don24-165207.appspot.com",messagingSenderId:"104621155629"});if("Notification"in window){var messaging=firebase.messaging();navigator.serviceWorker.getRegistrations().then(function(registrations){for(let registration of registrations){if(registration.active.scriptURL=="https://don24.ru/messaging-sw.js"){registration.unregister()}}});if(Notification.permission==="granted"){subscribe()}else{subscribe()}}function subscribe(){messaging.requestPermission().then(function(){messaging.getToken().then(function(currentToken){console.log(currentToken);if(currentToken){sendTokenToServer(currentToken);if(!window.localStorage.getItem("unsubscribed")){$(".web-push-unsubscribe").removeClass("hidden")}else{$(".web-push-subscribe").removeClass("hidden")}}else{console.warn("Ðе ÑдалоÑÑ Ð¿Ð¾Ð»ÑÑиÑÑ Ñокен.");setTokenSentToServer(false)}}).catch(function(err){console.warn("ÐÑи полÑÑении Ñокена пÑоизоÑла оÑибка.",err);setTokenSentToServer(false)})}).catch(function(err){console.warn("Ðе ÑдалоÑÑ Ð¿Ð¾Ð»ÑÑиÑÑ ÑазÑеÑение на показ Ñведомлений.",err)})}function sendTokenToServer(currentToken){if(!isTokenSentToServer(currentToken)){console.log("ÐÑпÑавка Ñокена на ÑеÑвеÑ...");var url="https://don24.ru/push/subscribe";$.get(url,{adresat:currentToken});setTokenSentToServer(currentToken)}else{console.log("Токен Ñже оÑпÑавлен на ÑеÑвеÑ.")}}function isTokenSentToServer(currentToken){return window.localStorage.getItem("sentFirebaseMessagingToken")===currentToken}function setTokenSentToServer(currentToken){window.localStorage.setItem("sentFirebaseMessagingToken",currentToken?currentToken:"")}$(".web-push-unsubscribe").on("click",function(){messaging.getToken().then(function(currentToken){var url="https://don24.ru/push/unsubscribe";$.get(url,{adresat:currentToken});swal({title:"ÐÑпиÑка пÑоизведена!",text:"ТепеÑÑ ÐÑ Ð½Ðµ бÑдеÑе полÑÑаÑÑ Ð¾Ñ Ð½Ð°Ñ ÑÐ²ÐµÐ´Ð¾Ð¼Ð»ÐµÐ½Ð¸Ñ Ð² бÑаÑзеÑе :(",type:"success",showCancelButton:false,confirmButtonText:"ÐакÑÑÑÑ"});$(".web-push-unsubscribe").addClass("hidden");$(".web-push-subscribe").removeClass("hidden");window.localStorage.setItem("unsubscribed",true)})});$(".web-push-subscribe").on("click",function(){setTokenSentToServer(false);$(".web-push-unsubscribe").removeClass("hidden");$(".web-push-subscribe").addClass("hidden");window.localStorage.removeItem("unsubscribed");subscribe()});
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.