PageSourceSearch

https://www.mercekhaber.com/theme/default/js/main.js

js mercekhaber.com collected 2026-09-28 11:49:14 UTC 9,360 bytes, 316 lines download raw bytes

1$(document).ready(function(){
2     $(window).scroll(function () {
3            if ($(this).scrollTop() > 50) {
4                $('#back-to-top').fadeIn();
5            } else {
6                $('#back-to-top').fadeOut();
7            }
8        });
9        // scroll body to 0px on click
10        $('#back-to-top').click(function () {
11            $('#back-to-top').tooltip('hide');
12            $('body,html').animate({
13                scrollTop: 0
14            }, 800);
15            return false;
16        });
17        
18      
19
20});
21
22// SEARCH
23    $(function () {
24        $('a[href="#search_form"]').on('click', function(event) {
25            event.preventDefault();
26            $('#search_form').css('display','block');
27            $('#search_form').addClass('open');
28            $('#search_form > form > input[type="search"]').focus();
29        });
30        $('#search_form, #search_form button.close').on('click keyup', function(event) {
31            if (event.target == this || event.target.className == 'close' || event.keyCode == 27) {
32                $(this).removeClass('open');
33            }
34        });
35    });
36    $(function () {
37        $('a[href="#open_board"]').on('click', function(event) {
38            event.preventDefault();
39            $('#board_overlay').css('display','block');
40            $('#board_overlay').addClass('open');
41        });
42        $('#board_overlay, #board_overlay button.close').on('click keyup', function(event) {
43            if (event.target == this || event.target.className == 'close' || event.keyCode == 27) {
44                $(this).removeClass('open');
45            }
46        });
47    });
48
49
50$('ul.nav li.dropdown').hover(function() {
51  $(this).find('.dropdown-menu').stop(true, true).delay(20).fadeIn(100);
52}, function() {
53  $(this).find('.dropdown-menu').stop(true, true).delay(20).fadeOut(100);
54});
55
56
57
58
59$("#author_line").owlCarousel({
60      autoPlay: 6000, //Set AutoPlay to 3 seconds
61      items : 4,
62	  navigation : true,
63	  pagination: false,
64	  navigationText : ["",""],
65  });
66  
67  
68$("#sub_headline").owlCarousel({
69      autoPlay: 6000, //Set AutoPlay to 3 seconds
70      items : 4,
71	  navigation : true,
72	  pagination: false,
73	  navigationText : ["",""],
74  });
75
76
77  $("#top-man").owlCarousel({
78    navigation : true,
79    slideSpeed : 100,
80    paginationSpeed : 2000,
81    autoPlay: true,
82    singleItem : true,
83  navigationText: ["<",">"],
84  paginationNumbers: true,
85});
86  
87  
88	$("#headline").owlCarousel({
89      navigation : true,
90      slideSpeed : 300,
91      paginationSpeed : 2000,
92      autoplaySpeed : 6000,
93	    autoPlay: false,
94      singleItem : true,
95	    navigationText: ["",""],
96      paginationNumbers: true,
97      paginationhover: true,
98    });
99
100    $('body').on('click', '#headline .owl-numbers', function(){
101      let numbers = $(this).text() - 1;
102      let link = $('#headline .headline-li .new_window')[numbers];
103      let href = $(link).attr('href');
104      window.open(href);
105    });
106
107    $(document).on('mouseover', '#headline .owl-page', function(){
108      let owlNumb = $(this).find('.owl-numbers').text()
109      owlNumb = parseInt(owlNumb) - 1
110      $('#headline .owl-wrapper').trigger('owl.goTo', owlNumb);
111  });
112    
113    $('body').on('click', '#top-man .owl-numbers', function(){
114      let numbers = $(this).text() - 1;
115      let link = $('#top-man .owl-item .item .new_window')[numbers];
116      let href = $(link).attr('href');
117      window.open(href);
118    });
119
120      $(document).on('mouseover', '#top-man .owl-page', function(){
121        let owlNumb = $(this).find('.owl-numbers').text()
122        owlNumb = parseInt(owlNumb) - 1
123        $('#top-man .owl-wrapper').trigger('owl.goTo', owlNumb);
124  });
125
126
127
128  
129    
130
131
132
133$("#home_video").owlCarousel({
134      autoPlay: 2500, //Set AutoPlay to 3 seconds
135      items : 3,
136	  navigation : true,
137	  pagination: false,
138	  navigationText : ["",""],
139  });
140
141
142
143
144
145$("#right_one_slider").owlCarousel({
146      autoPlay: 4500, //Set AutoPlay to 3 seconds
147      items : 1,
148	  navigation : true,
149	  pagination: false,
150	  navigationText : ["",""],
151  });
152
153	$("#burclar").owlCarousel({
154      navigation : true,
155      slideSpeed : 300,
156      paginationSpeed : 400,
157	  autoPlay: 3000,
158      singleItem : true,
159	  pagination : false ,
160	  navigationText: ["",""],
161	});
162
163
164$("#hot-news").owlCarousel({
165      navigation : false,
166	    paginationSpeed : 200,
167	  autoPlay: 5000,
168      singleItem : true,
169	  pagination : false ,
170	   items : 1,
171	});
172
173
174
175
176$(document).ready(function () {
177    $('.lazy').Lazy();
178    $('.lazyAll').Lazy({
179        delay: 0
180    })
181	
182	$('img.lazy').on('load',function(){
183 /* console.log(this)//fires this function when it appears*/
184  
185   $(".imgLiquidFill").imgLiquid({
186        fill: true,
187        horizontalAlign: "center",
188        verticalAlign: "center"
189    });
190});
191   
192})
193
194
195
196
197
198/*$(function() {
199    
200    $(".imgLiquidFill").imgLiquid({
201        fill: true,
202        horizontalAlign: "center",
203        verticalAlign: "center"
204    });
205    
206    $(".imgLiquidNoFill").imgLiquid({
207        fill: false,
208        horizontalAlign: "center",
209        verticalAlign: "50%"
210    });
211    
212});
213
214
215
216$(document).ready(function () {
217    $('.lazy').Lazy();
218    $('.lazyAll').Lazy({
219        delay: 0
220    })
221	
222    $("[data-sticky_column]").stick_in_parent({
223        parent: "[data-sticky_parent]"
224    });
225})*/
226
227
228
229
230 function get_currency() {
231            var request = $.ajax({
232                url: "https://api.gazisoft.com/services.php?service=currency",
233                method: "POST",
234                dataType: "JSON"
235            });
236
237            request.done(function( response ) {
238                $(".currency .dollar .curr").html(response.Dolar[0].sales)
239
240                if(response.Dolar[0].status==-1){
241                    $(".currency .dollar .curr").addClass("red");
242                    $(".currency .dollar .fa").removeClass("fa-minus").addClass("red fa-angle-down");
243                }else if(response.Dolar[0].status==1){
244                    $(".currency .dollar .curr").addClass("green");
245                    $(".currency .dollar .fa").removeClass("fa-minus").addClass("green fa-angle-up");
246                }else{
247                    $(".currency .dollar .curr").addClass("gray");
248                    $(".currency .dollar .fa").addClass("gray");
249                }
250
251
252                $(".currency .euro .curr").html(response.Euro[0].sales)
253
254                if(response.Euro[0].status==-1){
255                    $(".currency .euro .curr").addClass("red");
256                    $(".currency .euro .fa").removeClass("fa-minus").addClass("red fa-angle-down");
257                }else if(response.Euro[0].status==1){
258                    $(".currency .euro .curr").addClass("green");
259                    $(".currency .euro .fa").removeClass("fa-minus").addClass("green fa-angle-up");
260                }else{
261                    $(".currency .euro .curr").addClass("gray");
262                    $(".currency .euro .fa").addClass("gray");
263                }
264				
265				
266				
267				
268				
269				
270				 $(".currency .pound .curr").html(response.Sterlin[0].sales)
271
272                if(response.Sterlin[0].status==-1){
273                    $(".currency .pound .curr").addClass("red");
274                    $(".currency .pound .fa").removeClass("fa-minus").addClass("red fa-angle-down");
275                }else if(response.Euro[0].status==1){
276                    $(".currency .pound .curr").addClass("green");
277                    $(".currency .pound .fa").removeClass("fa-minus").addClass("green fa-angle-up");
278                }else{
279                    $(".currency .pound .curr").addClass("gray");
280                    $(".currency .pound .fa").addClass("gray");
281                }
282				
283				
284				
285				
286				
287
288                $(".currency .gold .curr").html(response.Gold[0].sales)
289
290                if(response.Gold[0].status==-1){
291                    $(".currency .gold .curr").addClass("red");
292                    $(".currency .gold .fa").removeClass("fa-minus").addClass("red fa-angle-down");
293                }else if(response.Gold[0].status==1){
294                    $(".currency .gold .curr").addClass("green");
295                    $(".currency .gold .fa").removeClass("fa-minus").addClass("green fa-angle-up");
296                }else{
297                    $(".currency .gold .curr").addClass("gray");
298                    $(".currency .gold .fa").addClass("gray");
299                }
300
301                $(".currency .bist .curr").html(response.Bits[0].sales)
302
303                if(response.Bits[0].status==-1){
304                    $(".currency .bist .curr").addClass("red");
305                    $(".currency .bist .fa").removeClass("fa-minus").addClass("red fa-angle-down");
306                }else if(response.Bits[0].status==1){
307                    $(".currency .bist .curr").addClass("green");
308                    $(".currency .bist .fa").removeClass("fa-minus").addClass("green fa-angle-up");
309                }else{
310                    $(".currency .bist .curr").addClass("gray");
311                    $(".currency .bist .fa").addClass("gray");
312                }
313
314            });
315
316        }

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.