PageSourceSearch

https://pomorland.travel/local/templates/f5-pomorland/js/helper.js?14885464002290

js pomorland.travel collected 2026-10-02 17:30:59 UTC 2,290 bytes, 108 lines download raw bytes

1$(function(){
2    $("#print_tab").click(function(e) {
3        e.preventDefault();
4        var href = $(this).data('href');
5        var new_wnd = window.open(href);
6        new_wnd.print();
7    });
8});
9
10function insertParam(key, value, search)
11{
12    key = encodeURI(key); value = encodeURI(value);
13
14    search = search.toString();
15
16    if(search=='')
17        search = document.location.search;
18
19    if(search[0]=="?")
20        search = search.substr(1);
21
22    var kvp = [];
23    if(search.search("&")==-1 && search!='')
24        kvp = [search];
25    else if(search=='')
26        kvp = [];
27    else
28        kvp = search.split('&');
29
30    var i=kvp.length;
31    var x;
32
33    while(i--)
34    {
35        x = kvp[i].split('=');
36
37        if (x[0]==key)
38        {
39            x[1] = value;
40            kvp[i] = x.join('=');
41            break;
42        }
43    }
44
45    if(i<0) {kvp[kvp.length] = [key,value].join('=');}
46
47    return kvp.join('&');
48
49}
50
51function getDatePeriod( dates ){
52    var date1 = moment(dates[0]).format('Y-MM-DD').split('-');
53    var date2 = moment(dates[1]).format('Y-MM-DD').split('-');
54    var curDate = moment().format('Y-MM-DD').split('-');
55    var str = '';
56
57    var yearDiffers = false;
58    var monthDiffers = false;
59    var daysDiffers = false;
60
61    if(date1[0] !== date2[0]){
62        yearDiffers = true;
63    }
64
65    if(date1[1] !== date2[1]){
66        monthDiffers = true;
67    }
68
69    if(date1[2] !== date2[2]){
70        daysDiffers = true;
71    }
72
73    if(yearDiffers){
74        str = date1[2]+' '+getMonth(date1[1])+' '+date1[0]+' - '+date2[2]+' '+getMonth(date2[1])+' '+date2[0];
75        return str;
76    } else {
77        if(curDate[0] !== date1[0]){
78            str = date1[0];
79        }
80    }
81
82    if(monthDiffers){
83        str = date1[2]+' '+getMonth(date1[1])+' - '+date2[2]+' '+getMonth(date2[1])+' '+str;
84        return str;
85    } else {
86        str = getMonth(date1[1])+' '+str;
87    }
88
89    if(daysDiffers){
90        str = date1[2]+' - '+date2[2]+' '+str;
91        return str;
92    } else {
93        str = date1[2]+' '+str;
94        return str;
95    }
96
97}
98
99function getMonth( mm ){
100    var months = calendar_locale[$('html').attr('lang')]['months'];
101
102    return months[mm];
103}
104$(function(){
105    if(parseInt($('.load-more').data('pagecount')) <= 1){
106        $('.load-more').hide();
107    }
108});

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.