PageSourceSearch

https://vadonlesoprogram.hu/index_google.js

js vadonlesoprogram.hu collected 2026-10-01 23:52:45 UTC 7,798 bytes, 241 lines download raw bytes

1
2
3function pad (str, max) {
4  str = str.toString();
5  return str.length < max ? pad("0" + str, max) : str;
6}
7Array.prototype.insert = function (index, item) {
8  this.splice(index, 0, item);
9};
10
11$(document).ready(function() {
12  $.smartbanner();
13  
14  $('[data-toggle="tooltip"]').tooltip();
15  
16  $(document).on('click', '[data-popup="modal"]', function(event) {
17    event.preventDefault();
18    $.get($(this).attr("data-url"),function(html){
19      $("#biomodal .modal-body").html(html)
20      $("#biomodal").modal('show')
21    })
22  });
23  
24  if($("#notification").length==1){
25    $("#notification").modal('show')
26  }
27  
28  $("#fajkereso").on("keyup change", function(){
29    var v = $(this).val().toLowerCase();
30    if(v != ''){
31      $("#fajok-container .vl-fajnev").each(function(i,el){
32        $(el).closest(".vl-slider-item").toggle($(el).text().toLowerCase().indexOf(v) != -1);
33      })
34    }else{
35      $("#fajok-container .vl-slider-item").show();
36    }
37  });
38  $("#clear-species-search").click(function(){
39    $("#fajkereso").val("").change();
40  })
41  $("#fajok-container .vl-slider-item").hover(function(){
42    console.log('in')
43  },function(){
44    console.log('out')
45  })
46
47  $('#from').on('change',function(){
48      $(this).next().attr('min',$(this).val())
49      $('#chart-from-date').html($(this).val())
50      reloadPoints();
51      reloadCharts();
52      setCookie("startdate",new Date($(this).val()).toISOString())
53  })
54  $('#to').on('change',function(){
55      $(this).prev().attr('max',$(this).val())
56      $('#chart-to-date').html($(this).val())
57      reloadPoints();
58      reloadCharts();
59      setCookie("enddate",new Date($(this).val()).toISOString())
60  })
61  var isAnimated = false;
62  $(window).scroll(function() {
63    if (!isAnimated && isScrolledIntoView(".an_num_val:first")) {
64      animate_numbers(function() {
65        isAnimated = true;
66      });
67    }
68  });
69  if (!isAnimated && isInView(".an_num_val:first")) {
70    animate_numbers(function() {
71      isAnimated = true;
72    });
73  }
74
75  function animate_numbers(callback) {
76    $.each($(".an_num_val"), function() {
77      var node_ref = $(this);
78      var target_price = node_ref.attr("data-value");
79      if (typeof target_price != "undefined") {
80        var number_check = 0;
81        $({
82          countNum: 0
83        }).animate({
84          countNum: target_price
85        }, {
86          duration: 3000,
87          easing: 'easeInOutQuart',
88          step: function() {
89            node_ref.html(number_format(this.countNum, 0, ',', ' '));
90            number_check = this.countNum;
91          },
92          complete: function() {
93            if (number_check != target_price) {
94              node_ref.html(number_format(target_price, 0, ',', ' '));
95            }
96          }
97        });
98      }
99    });
100    if (typeof callback != "undefined") {
101      callback();
102    }
103  }
104  
105  var owl = $('.owl-carousel')
106  owl.owlCarousel({
107    loop:true,
108    margin:15,
109    responsive:{
110        0:{
111            items:2
112        },
113        600:{
114            items:3
115        },
116        1000:{
117            items:4
118        }
119    }
120  })
121  $('.vl-carousel-control.next').click(function() {
122    owl.trigger('next.owl.carousel');
123  })
124  $('.vl-carousel-control.prev').click(function() {
125    owl.trigger('prev.owl.carousel');
126  })
127
128  Highcharts.setOptions({
129    lang: {
130      loading: 'Betöltés...',
131      months: ['január', 'február', 'március', 'április', 'május','június','július', 'augusztus', 'szeptember', 'október', 'november', 'december'],
132      shortMonths:  ['jan', 'febr', 'márc', 'ápr', 'máj', 'jún', 'júl', 'aug', 'szept', 'okt', 'nov', 'dec'],
133      weekdays: ['vasámap', 'hétfő', 'kedd', 'szerda', 'csütörtök', 'péntek', 'szombat'],                     
134      exportButtonTitle: "Exportál",
135      printButtonTitle: "Importál",
136      rangeSelectorFrom: "ettől",
137      rangeSelectorTo: "eddig",
138      rangeSelectorZoom: "mutat:",
139      downloadPNG: 'Letöltés PNG képként',
140      downloadJPEG: 'Letöltés JPEG képként',
141      downloadPDF: 'Letöltés PDF dokumentumként',
142      downloadSVG: 'Letöltés SVG formátumban',
143      resetZoom: "Visszaállít",
144      resetZoomTitle: "Visszaállít",
145      thousandsSep: "",
146      decimalPoint: ','
147    }
148  });
149  
150  function reloadCharts(){
151    $.getJSON('/js/charts-json.php',$("#filterform").serializeObject(),function(json){
152      var options = {
153        chart: {plotBackgroundColor: null,plotBorderWidth: null,plotShadow: false,type: 'pie'},
154        title:false,
155        margin:[0,0,0,0],spacing:[0,0,0,0],width:140,height:140,
156        tooltip: {
157          headerFormat:'<span style="font-size: 12px">{point.key}</span><br/>',
158          pointFormat: '<b>{point.y}</b> ({point.percentage:.1f}%)',
159          borderColor:'#666'
160        },
161        plotOptions: {
162          pie: {
163            allowPointSelect: false,
164            dataLabels: {enabled: false}
165          }
166        }
167      };
168      $.each(json,function(k,v){
169        if(v.type=='pie'){
170          try{
171            if(v.data.length != 0){
172              options["series"] = [{name: '',data: v.data}]
173              Highcharts.chart(k+"Pie",options)
174            }else{
175              $("#"+k+"Pie").css({display:"flex","flex-direction":"column","justify-content":"center"}).html("<span>nincs adat</span>")
176            }
177          }catch(e){
178            
179          }
180        }else if(v.type == 'bar'){
181          try{
182            if(v.series.length != 0){
183              Highcharts.chart(k+"Bar",{
184                chart: {plotBackgroundColor: null,plotBorderWidth: null,plotShadow: false,type: 'bar',spacing:0,height:100},
185                title:{text:false},
186                xAxis:{categories: [''],visible:false},
187                yAxis: {min: 0,title: {text: 'Észlelések aránya'},visible:false},
188                plotOptions: {series: {stacking: 'percent'},crisp:true,borderWidth:0},
189                legend:false,
190                tooltip: {
191                  headerFormat:'<span style="font-size: 12px">{series.name}</span><br/>',
192                  pointFormat: '<b>{point.y}</b> ({point.percentage:.1f}%)',
193                  borderColor:'#666'
194                },
195                series:v.series
196              })
197              $("#layerlist input[type='checkbox']").parent().find("span").text("")
198              $.each(v.series,function(i,s){
199                $("#layerlist input[value='"+s.className+"']").parent().find("span").text(s.data[0])
200              })
201            }else{
202              $("#"+k+"Bar").css({display:"flex","flex-direction":"column","justify-content":"center"}).html("<span>nincs adat</span>")
203            }
204          }catch(e){
205            
206          }
207        }
208      })
209      
210      Highcharts.chart('timelineContainer', {
211        xAxis: {type: 'datetime',dateTimeLabelFormats: {year: '%Y'}},
212        yAxis: {min:0,title:{text:'havi észlelések'}},
213        legend: {enabled: false},title:false,
214        tooltip: {headerFormat: '',pointFormat: '{point.x:%Y %b}: {point.y}',borderColor:'#d0c99d',padding:5},
215        plotOptions: {
216          area: {
217            marker: {radius: 2},
218            lineWidth: 1,
219            states: {hover: {lineWidth: 1}},
220            threshold: null
221          }
222        },
223        series: [{
224          type: 'area',
225          name: 'észlelések',className:'total',
226          marker:{states:{hover:{enabled:false}}},
227          data: json.timeline.data
228        }]
229      });
230      $("#avgnum").text(json.avg.toFixed(3).replace(".",","))
231    })
232  }
233  $(document).on('click','#layerSwitcher input[type="checkbox"]',function(){
234    $("#filterform input[name='fajok']").val("'"+$.makeArray($('#layerSwitcher input[type="checkbox"]:checked').map(function(x,el){return $(el).val()})).join("','")+"'")
235    reloadPoints()
236    reloadCharts();
237  })
238
239  reloadCharts();
240
241});

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.