PageSourceSearch

https://securitycamera.cz/js/core.min.js

js securitycamera.cz collected 2026-09-24 13:00:12 UTC 6,085 bytes, 1 lines download raw bytes

1var language,currentUser,PUBLIC_VAPID_KEY="BBhIhCPOo1P29RD6m1SLLVNnA7lVZInMJC8z4bFO6dx3sIUrJckFO1A-LeBe0D0UctIv0Pmx3QtvK9-x2ePMXkY",url=new URL(window.location.href),urlParams=url.searchParams,db=firebase.firestore();function initLanguage(e,t,o){return coreInit(),urlParams.has("lang")&&storeLanguage(urlParams.get("lang")),new Promise((function(n,a){$.ajax({url:"/languages/"+getLanguage()+".json",dataType:"json",success:function(a){language=a,firebase.auth().languageCode=getLanguage();language.ok,language.confirm,language.cancel;e&&presentLanguage(),checkSignState(t,o),showCookiesWarning(),n()},error:function(e,t,o){console.error("Error: "+o.message),a("Error loading the language")}})}))}function coreInit(){$(".sc-dropdown-btn").each((function(e){const t=$(this)[0],o=document.getElementById(t.dataset.scToggle);t.scPopper=Popper.createPopper(t,o,{placement:"bottom-end"}),enablePopperListener(t.scPopper,!1)})),$(document).on("click",(function(e){const t=$(e.target);if(!$(".google-search").is(":visible")||$(t).hasClass("google-search-icon")||$(t).hasClass("gsc-input")||"gs_cb50"==e.target.id||($(".google-search-icon").show(),$(".sc-nav-brand").show(),$(".google-search").hide()),!$(t).hasClass("sc-dropdown-menu"))if($(t).hasClass("sc-dropdown-btn")){const e=$(t)[0],o=document.getElementById(e.dataset.scToggle),n=$(o).is(":hidden");$(".sc-dropdown-menu").hide(),n&&($(o).show(),e.scPopper.update())}else $(".sc-dropdown-menu").hide()})),$(".google-search-icon").on("click",(function(){$(this).hide(),$(".sc-nav-brand").hide(),$(".google-search").show(),$(".google-search input").focus()}))}function enablePopperListener(e,t){e.setOptions((e=>({...e,modifiers:[...e.modifiers,{name:"eventListeners",enabled:t}]})))}function presentLanguage(){$(".sc-nav-brand").attr("href",language.home_href),$(".sc-nav-brand span").text(language.app_name),$("#menu-home").text(language.home).attr("href",language.home_href),$("#menu-viewer").text(language.web_viewer),$("#menu-help").text(language.help),$("#button-lang").text(getLanguage().toUpperCase()),$("#button-login").text(language.login),$(".menu-logout-item").text(language.logout),$(".menu-delacc-item").text(language.del_account_menu_item),$("header").attr("lang",getLanguage()),$("#footer-privacy").text(language.foot_privacy),$("#footer-terms").text(language.foot_terms),$("#footer-cookie
1s").text(language.foot_cookies),$("#footer-about").text(language.foot_about).attr("href",language.about_href),$("#footer-contact").text(language.foot_contact).attr("href",language.contact_href),$("footer").attr("lang",getLanguage()),$(".cookietext").text(language.cookies_text),$(".cookielearn").text(language.cookies_learn),$(".acceptcookies").text(language.cookies_btn)}function storeLanguage(e){return("cs"==e||"en"==e)&&(localStorage.setItem("language",e),!0)}function changeLanguage(e,t){null!=t&&t.preventDefault(),storeLanguage(e)&&location.reload()}function getLanguage(){var e=localStorage.getItem("language");return e||(storeLanguage("en"),"en")}function checkSignState(e,t){firebase.auth().onAuthStateChanged((function(o){if(currentUser=o){$("#button-login").hide();var n=getUserFirstLetter(currentUser);$("#button-logout").text(n).css("background-color",getUserColor(n)),$(".menu-email-item").text(currentUser.email),$("#button-logout").show();for(var a=!1,r=0;r<currentUser.providerData.length;r++){if(currentUser.providerData[r].providerId==firebase.auth.EmailAuthProvider.PROVIDER_ID){a=!0;break}}a?$(".menu-change-pwd").text(language.changePwd).show():$(".menu-change-pwd").hide(),currentUser.photoURL&&$("<img/>").attr("src",currentUser.photoURL).on("load",(function(){$(this).remove(),$("#button-logout").css("background-image","url("+currentUser.photoURL+")")})),$("#menu-viewer").attr("href","/monitor.html"),e&&e()}else $("#button-logout").hide(),$("#button-login").show(),$("#menu-viewer").attr("href","/signin.html?r=monitor.html"),t&&t()}),(function(e){console.error(e)}))}function signOut(){if(firebase.auth().currentUser){$("#button-login").off("click");var e=localStorage.getItem("monitorId");return e?(localStorage.removeItem("monitorId"),db.collection("monitors").doc(e).delete().catch((e=>{console.error("Error deleting monitor in db")})).then((()=>firebase.auth().signOut()))):firebase.auth().signOut()}}function changePwd(){if(currentUser&&1==confirm(language.pwdChangeReq)){var e={url:"https://securitycamera.cz/signin.html?r="+window.location.pathname.substring(1,window.location.pathname.length),handleCodeInApp:!1};firebase.auth().sendPasswordResetEmail(currentUser.email,e).then((function(){alert(language.pwdConfirm.format(currentUser.email))}))}}function getUserFirstLetter(e){return e.displayName?e.displayName[0]:e.email[0]}function getUserColor(e){const t=["#e57373","#f06292","#ba68c8","#9575cd","#7986cb","#64b5f6","#4fc3f7","#4dd0e1","#4db6ac","#aed581","#ff8a65","#d4e157","#ffd54f","#ffb74d","#a1887f","#90a4ae"];return t[e.charCodeAt(0)%t.length]}function showCookiesWarning(){if(!getCookie("acceptCookies")){var e=document.querySelector(".cookiealert"),t=document.querySelector(".acceptcookies");e&&(e.offsetHeight,t.addEventListener("click",(function(){setCookie("acceptCookies",!0,365),e.classList.remove("show")})),e.classList.add("show"))}}function setCookie(e,t,o){var n=new Date;n.setTime(n.getTime()+24*o*60*60*1e3);var a="expires="+n.toUTCString();document.cookie=e+"="+t+";"+a+";path=/"}function getCookie(e){for(var t=e+"=",o=decodeURIComponent(document.cookie).split(";"),n=0;n<o.length;n++){for(var a=o[n];" "===a.charAt(0);)a=a.substring(1);if(0===a.indexOf(t))return a.substring(t.length,a.length)}return""}function initTitleInfo(){$(".note-title").each((function(){const e=$(this).attr("id");localStorage.getItem(e)&&$(this).hide()})),$(".note-title .close").on("click",(e=>{const t=$(e.target).parent(),o=t.attr("id");localStorage.setItem(o,!0),t.hide()}))}String.prototype.format=function(){var e=this;for(var t in arguments)e=e.replace("{"+t+"}",arguments[t]);return e},Storage.prototype.getInteger=function(e){var t=localStorage.getItem(e);return t=t?parseInt(t):0};

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.