PageSourceSearch

https://ankarabarosu.org.tr/static/js/site.js

js ankarabarosu.org.tr collected 2026-09-24 22:01:06 UTC 1,130 bytes, 42 lines download raw bytes

1var genericModal = modalComponent();
2var handleClick = function(e){
3  e.preventDefault();
4  var d = {
5    header:"",
6    modalType: e.target.parentNode.dataset.modalType,
7    okUrl: e.target.parentNode.dataset.confirmUrl,
8    modalText: e.target.parentNode.dataset.confirmText
9  };
10  genericModal.renderModal(d);
11};
12
13var source = rxjs.fromEvent($(".modal-request"), 'click');
14source.subscribe(handleClick);
15
16$(document).ready(function() {
17  var popup = `{{cx['popup']|safe}}`;
18  if( popup != 'None'){
19    let localItem = ''
20    try{
21      localItem = JSON.parse(localStorage.getItem('popState')) 
22    }catch(e){}
23    if(localItem == null){
24      localItem = {'value': 'not_shown'}
25    }
26    if(localItem.value != 'shown'){
27      $('#popup_item').modal('toggle')
28      const now = new Date()
29      const item = {
30        value: 'shown',
31        expiry: now.getTime() + 600000, // 10mins
32      }
33      localStorage.setItem('popState',JSON.stringify(item))
34    }else{
35      const item = localItem;
36      const now = new Date()
37      if (now.getTime() > item.expiry) {
38        localStorage.removeItem('popState')
39      }
40    }
41  }
42});

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.