PageSourceSearch

https://www.istladin.net/jScripts/funzioni.js?d=49472,99

js istladin.net collected 2026-10-02 11:44:43 UTC 6,058 bytes, 171 lines download raw bytes

1// JavaScript Document
2// **********************************************************
3// VARIE
4// **********************************************************
5function newsletter_submit(lingua) { 
6	var radioObj = document.getElementsByName('newsletter_azione');
7	var radioLength = radioObj.length;
8	for(var i = 0; i < radioLength; i++) {
9		if(radioObj[i].checked) {
10			var radioValue = radioObj[i].value;
11		}
12	};
13	$("#div_newsletter").load("/aspScripts/newsletter_azione.asp?newsletter_email=" + document.getElementById("newsletter_email").value + "&newsletter_azione=" + radioValue + "&lingua=" + lingua + "&new_categorie_1=" + document.getElementById("new_categorie_1").checked + "&new_categorie_2=" + document.getElementById("new_categorie_2").checked+ "&new_categorie_3=" + document.getElementById("new_categorie_3").checked);
14	return false; 
15};
16function setMarkers(map, locations) {
17/* var image = new google.maps.MarkerImage('/images/sfondo/icona_cartina.png',
18      new google.maps.Size(25,30),
19      new google.maps.Point(0,0),
20      new google.maps.Point(20,30));*/
21    for (var i = 0; i < locations.length; i++) {
22        var beach = locations[i];
23        var myLatLng = new google.maps.LatLng(beach[1], beach[2]);
24        markers[i] = new google.maps.Marker({
25            position: myLatLng,
26            map: map,
27            url: beach[4],
28            /*icon: image,*/
29            title: beach[0],
30            zIndex: beach[3]
31        });
32    }
33    for (i = 0; i < markers.length; i++) {
34        google.maps.event.addListener(markers[i], 'click', function () {
35            window.location.href = this.url;
36        });
37    }
38}
39// **********************************************************
40// MODIFICHE JQUERY
41// **********************************************************
42$(document).ready(function(){
43	$( document ).tooltip({
44		track: true
45	});
46});
47$(function() {
48	$( "#ricerca_categoria" ).selectmenu();
49	$( "#ricerca_avanzata" ).checkboxradio();
50		
51	$( ".accordion" ).accordion({
52		heightStyle: "content",
53		header: "h2"
54	});
55});
56//-------------------------IMMAGINI-------------------------//
57$(document).ready(function() {
58//	$("a.cms_gallery").fancybox({
59//		openEffect	: 'elastic',
60//		closeEffect	: 'elastic',
61//		nextEffect	: 'fade',
62//		prevEffect	: 'fade',
63//		openMethod 	: 'zoomIn',
64//		closeMethod : 'zoomOut',
65//		helpers : {
66//			 overlay : {
67//				locked : false
68//			}
69//		}
70//	});
71	if (jQuery(document).width() > 480) {
72		$('.cont').addClass('scrolloff');
73		$('.iframe').on("mouseup",function(){
74			$('.cont').addClass('scrolloff'); 
75		});
76		$('.iframe').on("mousedown",function(){
77			$('.cont').removeClass('scrolloff');
78		});
79		$(".cont").mouseleave(function () {
80			$('.cont').addClass('scrolloff');
81		});
82	};
83});
84(function($) {
85    $.fn.extend({
86        collapsiblePanel: function() {
87            // Call the ConfigureCollapsiblePanel function for the selected element
88            return $(this).each(ConfigureCollapsiblePanel);
89        }
90    });
91
92})(jQuery);
93
94function ConfigureCollapsiblePanel() {
95    $(this).addClass("ui-widget");
96
97    // Wrap the contents of the container within a new div.
98    $(this).children().wrapAll("<div class='collapsibleContainerContent ui-widget-content clearfix'></div>");
99
100    // Create a new div as the first item within the container.  Put the title of the panel in here.
101    $("<div class='collapsibleContainerTitle ui-widget-header'><div>" + $(this).attr("alt") + "</div></div>").prependTo($(this));
102
103    // Assign a call to CollapsibleContainerTitleOnClick for the click event of the new title div.
104    $(".collapsibleContainerTitle", this).click(CollapsibleContainerTitleOnClick);
105    $(".collapsibleContainerContent", this).hide(0);
106         
107}
108
109function CollapsibleContainerTitleOnClick() {
110    // The item clicked is the title div... get this parent (the overall container) and toggle the content within it.
111    $(".collapsibleContainerContent", $(this).parent()).slideToggle();
112}
113function CollapsibleContainerId(id) {
114    // The item clicked is the title div... get this parent (the overall container) and toggle the content within it.
115    $(".collapsibleContainerContent", $("#cc"+id)).slideToggle();
116}
117$(function() {
118    //var $allVideos = $("iframe[src*='//player.vimeo.com'], iframe[src*='//www.youtube.com'], iframe[src*='//www.google.com/'], object, embed"),
119	var $allVideos = $("iframe[suppressedsrc*='//player.vimeo.com'], iframe[suppressedsrc*='//www.youtube.com'], iframe[suppressedsrc*='//www.google.com/']"),
120    $fluidEl = $(".iframe");   
121		$allVideos.each(function() {
122		  $(this)
123			// jQuery .data does not work on object/embed elements
124			.attr('data-aspectRatio', this.height / this.width)
125			.removeAttr('height')
126			.removeAttr('width');
127		
128		});
129		$(window).resize(function() {
130		
131		  var newWidth = $fluidEl.width();
132		  $allVideos.each(function() {
133		  
134			var $el = $(this);
135			$el
136				.width(newWidth)
137				.height(newWidth * $el.attr('data-aspectRatio'));
138		  });
139		}).resize();
140});
141$(document).ready(function() {
142	// Dock the header to the top of the window when scrolled past the banner.
143	// This is the default behavior.
144	$('.header').scrollToFixed({
145		minWidth: 969,
146	});
147	// Dock the footer to the bottom of the page, but scroll up to reveal more
148	// content if the page is scrolled far enough.
149
150	// Dock each summary as it arrives just below the docked header, pushing the
151	// previous summary up the page.
152	var summaries = $('.summary');
153	summaries.each(function(i) {
154		var summary = $(summaries[i]);
155		var next = summaries[i + 1];
156
157		summary.scrollToFixed({
158			marginTop: $('.header').outerHeight(true) + 10,
159			limit: function() {
160				var limit = 0;
161				if (next) {
162					limit = $(next).offset().top - $(this).outerHeight(true) - 10;
163				} else {
164					limit = $('.footer').offset().top - $(this).outerHeight(true) - 10;
165				}
166				return limit;
167			},
168			zIndex: 999,
169		});
170	});
171});

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.