PageSourceSearch

https://www.gpw.pl/html/js/script2.js

js gpw.pl collected 2026-10-02 02:32:41 UTC 3,993 bytes, 133 lines download raw bytes

1
2$(document).on('click', '[data-toggle="lightbox"]', function(event) {
3    event.preventDefault();
4    $(this).ekkoLightbox();
5});
6
7function showContent(obj){
8	$(obj).prev('div').slideDown();
9	$(obj).hide();
10	$(obj).next('a.less').show();
11}
12function hideContent(obj){
13	$(obj).prev('a.more').show();
14	$(obj).prev('a.more').prev('div').slideUp();
15	$(obj).hide();
16}
17
18$(function(){
19
20
21	$(".fancybox").fancybox();
22	
23	$(".modal-transparent").on('show.bs.modal', function () {
24	  setTimeout( function() {
25	    $(".modal-backdrop").addClass("modal-backdrop-transparent");
26	  }, 0);
27	});
28	
29	$(".modal-transparent").on('hidden.bs.modal', function () {
30	  $(".modal-backdrop").addClass("modal-backdrop-transparent");
31	});
32	
33	$(".modal-fullscreen").on('show.bs.modal', function () {
34	  setTimeout( function() {
35	    $(".modal-backdrop").addClass("modal-backdrop-fullscreen");
36	  }, 0);
37	});
38	
39	$(".modal-fullscreen").on('hidden.bs.modal', function () {
40	  $(".modal-backdrop").addClass("modal-backdrop-fullscreen");
41	});
42	
43	$('a.download').attr('download', '');
44	
45	/*setTimeout( function(){console.log('debug pustych link�w do wy��czenia w: html/js/script2.js'); brakLinku()}, 2000);
46	function brakLinku(){
47		obj = $('a');
48		$.each( obj, function( key, value ) {
49			a = $(obj[key]);
50			if(a.attr('href')=="" || a.attr('href')=="#"){
51				a.attr('href', 'javascript:void(alert("brak linku"))');
52				console.log(a.html().trim()+' - brak linku');
53			}
54		});
55	}*/
56	
57	
58
59	$('.table-hover td').hover(function(){
60		var col = $(this).parent().children().index($(this));
61		$('.table-hover td').each(function(index){
62			var col2 = $(this).parent().children().index($(this));  
63			if (col2==col){
64				$(this).addClass('td-hover');
65			}            
66		}); 
67		/*$('.table-hover th').each(function(index){
68			var col2 = $(this).parent().children().index($(this));
69			if (col2==col){
70				if(!$(this).attr('colspan')){
71					$(this).addClass('td-hover');
72				}
73			}            
74		});  */
75
76    },
77    function(){        
78        $('.table-hover td').removeClass('td-hover'); 
79        $('.table-hover th').removeClass('td-hover');  
80        
81    });
82	
83	/*$marketCalendarEventTabs = $("#market-calendar-event-tabs").tabs({
84		cache: true,
85		idPrefix: 'market-calendar-event-tab-',
86		ajaxOptions: {
87			dataType: 'xml'
88		},
89		select: function(event, ui){ 
90			document.location.hash=$(ui.tab).attr("hash");
91		}
92	}).tabs('scrollable');*/
93    
94    
95    $(".anchorSubmitForm").click(function(){
96            $(this).parents('form:first').submit();
97            return false;
98        });
99        $(".captchaRefreshAnchor").bind("click", function() {
100		var id = $(this).attr('id');
101		id = id.replace('captcha_refresh_anchor_', '');
102		
103		var imgId = "captcha_img_" + id;
104		var imgBasePath = $("#" + imgId).attr('src').substr(0, $("#" + imgId).attr('src').length - 36);
105		
106		$.post(AJAX_BASE_URL + 'ajaxindex.php?action=GPWCaptcha&start=refreshImage', function(xml) {
107				var newId = $( "response", xml ).find('captcha_id').text();
108				$("#" + imgId).attr('src', imgBasePath + newId + '.jpg');
109				$("#" + imgId).attr('id', 'captcha_img_' + newId);
110				$("#captcha_id_" + id).val(newId);
111				$("#captcha_id_" + id).attr('id', "captcha_id_" + newId);
112				$("#captcha_refresh_anchor_" + id).attr('id', "captcha_refresh_anchor_" + newId);
113		}, 'xml');
114	});
115        $(".anchorClearForm").bind("click", function(){
116	    $form = $(this).closest("form");
117	    $(':input', $form).each(function() {
118	        var type = this.type;
119	        var tag = this.tagName.toLowerCase();
120	
121	        if (type == 'text' || type == 'password' || type == 'email' || tag == 'textarea')
122	
123	            this.value = "";
124	        else if (type == 'checkbox' || type == 'radio')
125	            this.checked = false;
126	
127	        else if (tag == 'select')
128	            this.selectedIndex = -1;
129	    });
130	    return false;
131    }); 
132	
133});

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.