PageSourceSearch

https://www.ticketmarket.lt/files/baneriai150x200/banners.min.js

js ticketmarket.lt collected 2026-10-02 06:58:35 UTC 7,633 bytes, 83 lines download raw bytes

1/**
2    This program is free software: you can redistribute it and/or modify
3    it under the terms of the GNU General Public License as published by
4    the Free Software Foundation, either version 2 of the License, or
5    (at your option) any later version.
6
7    This program is distributed in the hope that it will be useful,
8    but WITHOUT ANY WARRANTY; without even the implied warranty of
9    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
10    GNU General Public License for more details.
11
12    You should have received a copy of the GNU General Public License
13    along with this program.  If not, see <http://www.gnu.org/licenses/>.
14
15	--------------------------------------------------------------------
16	
17	Simple banner rotator. Version: 1.4.0
18	Download and support: http://www.spyka.net 
19	(c) Copyright 2008, 2009 spyka Web Group
20	
21
22	For full documentation:  http://www.spyka.net/docs/simple-banner-rotator
23	For support:			 http://www.spyka.net/forums
24
25
26**/
27
28//								EDIT FROM HERE
29///////////////////////////////////////////////////////////////////////////////////
30
31/**
32		Script settings
33**/
34
35var settings = {
36	
37	'force_size':			0,         		// 	if set to 1 all banners will be resized to the width and height in the next to settings
38	'img_width':			320,			//	width to resize all banners to, only takes effect if above is 1
39	'img_height':			150, 			// 	height to resize all banners to, only takes effect if above is 1
40	
41	'refresh_time':			3000,			//	the seconds between refreshs of the banners - use 0 to disable
42	'refresh_max':			10000,				//	maximum number of refreshs on each page load
43	
44	'duplicate_banners':	0,				//	keep as 0 to make sure the same banner won't show on the same page. will only take effect
45											//  if show_banners(); is used more than once. You must make sure you have enough banners to fill
46											//  all the slots else the browser may freeze or give a stack overflow error
47	
48	'location_prefix': 		'adLocation-',	//	The prefix of the IDs of the <div> which wraps the banners - this div is generated dynamically.
49											//  a number will be added on the end of this string. adLocation- was used by default before version 1.4.x
50											
51	'location_class':		'swb',			//  A class to add to all of the <div>s which wrap the banners, ideal to use for styling banners - use .swb img in your CSS	
52	
53	'window': 				'_blank',		//	Window to open links in, _self = current, _blank = new. Use _top if in a frame!		
54	
55	'default_ad_loc':		'default'		//	The default adLocation. This is assigned to any banners not given an adLocation in the below banner list
56											//  There is no real reason to need to change this
57}
58
59
60/**
61		Banners
62**/
63// banner list syntax: new banner(website_name, website_url, banner_url, show_until_date, adlocation),  DATE FORMAT: dd/mm/yyyy
64// if you're not using adlocations just leave it empty like '' as in the last example here
65// to make sure a banner is always rotating, just set the date far into the future, i.e. year 3000
66
67var banners = [
68	new banner('Renginiai',	'https://www.ticketmarket.lt/lt/e/renginys/astudio-palangos-koncertu-sale-bilietai-20180714', 		'https://www.ticketmarket.lt/files/baneriai150x200/images150x200/astudio-palanga-320x267-min.png',		'14/07/2018',	''),
69	new banner('Renginiai',	'https://www.ticketmarket.lt/lt/e/renginys/neda-malunaviciute-olegas-ditkovskis-palangos-kurhauzas-bilietai', 		'https://www.ticketmarket.lt/files/baneriai150x200/images150x200/ditkovskis-2018-palanga-320x267-min.png',		'22/07/2018',	''),
70	new banner('Renginiai',	'https://www.ticketmarket.lt/lt/e/renginys/monika-linkyte-palangos-kurhauzas-bilietai', 		'https://www.ticketmarket.lt/files/baneriai150x200/images150x200/linkyte-palanga-2018-320x267-min.png',		'04/08/2018',	''),
71	new banner('Renginiai',	'https://www.ticketmarket.lt/lt/e/renginys/gytis-paskevicius-palangos-koncertu-sale-bilietai-20180817', 		'https://www.ticketmarket.lt/files/baneriai150x200/images150x200/paskevicius-palanga-320x267-min.png',		'17/08/2018',	''),
72	new banner('Renginiai',	'https://www.ticketmarket.lt/search?place=Palanga&q=hiperbole', 		'https://www.ticketmarket.lt/files/baneriai150x200/images150x200/hiperbole-palanga-320x267-min.png',		'29/07/2018',	''),
73	new banner('Renginiai',	'https://www.ticketmarket.lt/lt/e/renginys/paryziaus-katedra-siauliu-arena-bilietai', 		'https://www.ticketmarket.lt/files/baneriai150x200/images150x200/PK-320x180.jpg',		'09/03/2018',	''),
74	new banner('Renginiai',	'https://www.ticketmarket.lt/lt/e/renginys/filip-kirkorov-siauliu-arena-bilietai', 		'https://www.ticketmarket.lt/files/baneriai150x200/images150x200/kirkorov-siauliai-320x180.png',		'23/03/2018',	''),
75	new banner('Renginiai',	'https://www.ticketmarket.lt/lt/e/renginys/leonidas-agutinas-anzelika-varum-siauliai-bilietai', 		'https://www.ticketmarket.lt/files/baneriai150x200/images150x200/agutin-varum-320x180.png',		'04/05/2018',	''),
76	new banner('Renginiai',	'https://www.ticketmarket.lt/lt/e/renginys/2Donatai-naujas-albumas-pristatymas-mazeikiai-kulturos-centras-bilietai', 		'https://www.ticketmarket.lt/files/baneriai150x200/images150x200/2donatai-mazeikiai-320x150.jpg',		'05/04/2018',	''),
77	new banner('Renginiai',	'https://www.ticketmarket.lt/lt/e/renginys/spektaklis-vaikams-balerina-pries-slibina-jonavos-kulturos-centras-bilietai', 		'https://www.ticketmarket.lt/files/baneriai150x200/images150x200/balerina-jonava320x150.jpg',		'11/02/2018',	''),
78	new banner('Renginiai',	'https://www.ticketmarket.lt/search?place=&q=nkl', 		'https://www.ticketmarket.lt/files/baneriai150x200/images150x200/NKLFinal4-320x267.png',		'14/04/2018',	''),
79]
80
81//         				There is no need to edit below here
82///////////////////////////////////////////////////////////////////////////////////
83var used=0;var location_counter=0;var refresh_counter=1;var map=new Array();function banner(a,b,c,d,e){this.name=a;this.url=b;this.image=c;this.date=d;this.active=1;this.oid=0;if(e!=''){this.loc=e}else{this.loc=settings.default_ad_loc}}function show_banners(a){location_counter=location_counter+1;if(a!=''&&a!=undefined){map[location_counter]=a}else{map[location_counter]=settings.default_ad_loc}var b='<div id="'+settings.location_prefix+location_counter+'" class="'+settings.location_class+'"></div>';document.write(b);display_banners(location_counter)}function display_banners(a){var b=new Array();if(a==''||!a||a<0){return}var c=banners.length;if((c==used)&&settings.duplicate_banners==0){return}for(i=0;i<(banners.length);i++){banners[i].oid=i;if((banners[i].loc==map[a])&&(banners[i].active==1)){b.push(banners[i])}}var d=Math.floor(Math.random()*b.length);var e=b[d];var f=(settings.force_size==1)?' width="'+settings.img_width+'" height="'+settings.img_height+'"':'';var g='<a href="'+e.url+'" title="'+e.name+'" target="'+settings.window+'"><img border="0" src="'+e.image+'"'+f+' alt="'+e.name+'" /></a>';var h=new Date();var j=e.date;j=j.split('/',3);var k=new Date();k.setFullYear(parseInt(j[2]),parseInt(j[1])-1,parseInt(j[0]));if((h<k)&&e.active==1){var l=document.getElementById(settings.location_prefix+a);if(l==null){alert('spyka Webmaster banner rotator\nError: adLocation doesn\'t exist!')}
83else{l.innerHTML=g;if(settings.duplicate_banners==0){banners[e.oid].active=0;used++}return}}else{display_banners(a)}return}function refresh_banners(){if((refresh_counter==settings.refresh_max)||settings.refresh_time<1){clearInterval(banner_refresh)}used=0;for(j=0;j<(banners.length);j++){banners[j].active=1}for(j=1;j<(location_counter+1);j++){display_banners(j)}refresh_counter++}var banner_refresh=window.setInterval(refresh_banners,settings.refresh_time);

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.