PageSourceSearch

https://futurefilmfestival.org/sites/default/files/advagg_js/js__P…vd-gOKHc8RGHqcOH7-NXVBNdBJa9qmkAnAMPTE10.js

js futurefilmfestival.org collected 2026-10-02 11:12:37 UTC 5,829 bytes, 157 lines download raw bytes

1(function($){$(document).ready(function(){
2
3//link esterni
4$.expr[':'].ext = function(obj){
5	return !obj.href.match(/^mailto\:/)	&& (obj.hostname != location.hostname);
6};
7$('a:ext').attr('target', '_blank');
8
9
10//link con prefisso '.'
11$('#main-menu > ul > li a, #main-menu > ul > li span, #block-locale-language .content a, #block-menu-menu-contatti .content a, #block-menu-menu-contatti .content span, #block-views-tweets-block h2, .page-programma-oggi h1, .view-display-id-page_14 .view-header a, .view-display-id-page_15 .view-header a, .locale-untranslated').prepend('.');
12
13//main-menu
14$('#main-menu ul li ul, #block-menu-menu-contatti ul li ul').hide();
15$('#main-menu a').attr('title', '');
16
17$('#main-menu li, #block-menu-menu-contatti li').hover(function(){
18	$(this).find('ul').toggle();
19});
20
21
22
23//search block
24//var hit = $('#block-search-form .form-submit').val();
25/*var hit = $('#header #block-views-exp-search-page-1 .views-submit-button input, #header #block-views-exp-search-page-2 .views-submit-button input').attr('value');
26//console.log(hit);
27$('#block-search-form .form-text, #header #block-views-exp-search-page-1 .form-text, , #header #block-views-exp-search-page-2 .form-text').val('.' + hit.toUpperCase()).focus(function(){
28	$(this).val('');
29});*/
30
31if($('body').hasClass('i18n-it')){
32	$('#header #block-views-exp-search-page-1 .form-type-textfield input, #header #block-views-exp-search-page-2 .form-type-textfield input').attr('placeholder', 'CERCA');
33} else {
34	$('#header #block-views-exp-search-page-1 .form-type-textfield input, #header #block-views-exp-search-page-2 .form-type-textfield input').attr('placeholder', 'SEARCH');
35	//$('.group-replica1 .fieldset-legend, .group-replica2 .fieldset-legend a').text('Replay');
36}
37
38
39
40//menu programma
41//per allineare a destra il numero del giorno, devo spezzare la stringa...
42$('.sidebar #block-menu-menu-programma .content li a:lt(6)').each(function(i){
43	var t = $(this).text();
44	var s = t.indexOf(' ');
45	var n = t.substring(s);
46	var d = t.substr(0,s);
47	$(this).html(d + '<span>' + n + '</span>');
48});
49
50//liste nodi
51// stacco ore/data
52if($('body').hasClass('i18n-it')){
53	$('.teaser-content .field-name-field-quando').each(function(i){
54		var t = $(this).text();
55		var s = t.indexOf('ore');
56		var n = t.substring(s);
57		var d = t.substr(0,s);
58		$(this).html(d + '<span>' + n + '</span>');
59	});
60}/* else {
61	s = t.indexOf('2015');
62	var n = t.substring(s + 4);
63	var d = t.substr(0,s + 4);
64	$(this).html(d + '<span>' + n + '</span>');
65}*/
66
67
68//pagina registi
69$('#block-block-4 .content ul a').each(function(i){
70	var url = 'http://www.futurefilmfestival.org' + $(this).attr('href');
71	if (url == window.location) {
72		$(this).addClass('current');
73	}
74});
75//lettera defaultChecked
76if ((window.location == 'http://www.futurefilmfestival.org/registi') || (window.location == 'http://www.futurefilmfestival.org/directors')) {
77	$('#block-block-4 .content ul li:first a').addClass('current');
78}
79
80// overlays
81$('#main').append('<div id="overlay"></div>');
82$('#overlay, .popup').hide();
83$('#overlay, .popup, .close').click(function(){
84	$('#overlay, .popup').fadeOut('slow');
85});
86
87
88// popup programma odierno
89/*$('#main').prepend('<div id="oggi" class="popup"></div>');
90if($('body').hasClass('i18n-it')){
91	$('#oggi').load('http://www.futurefilmfestival.org/programma/oggi .view-id-programma', function(){
92		$(this).prepend('<h2>.Oggi</h2>');
93		$('.view-display-id-page_14 .view-header a').prepend('.');
94	});
95} else {
96	$('#oggi').load('http://www.futurefilmfestival.org/en/program/today .view-id-programma', function(){
97		$(this).prepend('<h2>.Today</h2>');
98		$('.view-display-id-page_15 .view-header a').prepend('.');
99	});
100}
101$('#main-menu a:contains("Program")').click(function(){
102	$('#overlay, #oggi').fadeIn('slow');
103	return false;	
104})
105*/
106
107// pagina sezioni: disabilito link catergorie
108/*$('.page-sezioni, .page-sections').find('.view-sezioni .views-field-tid div:not(".tid7, .tid8, .tid9, .tid10")').each(function(){
109	$(this).find('a').contents().unwrap().wrap('<span style="color: #fff;"></span>');
110});
111// link termini fittizi...
112/*$('.page-sezioni, .page-sections').find('.tid9 a').attr('href', 'futurefilmshort');
113$('.page-sezioni .tid11 a').attr('href', 'eventi');
114$('.page-sections .tid11 a').attr('href', 'events');
115$('.page-sezioni, .page-sections').find('tr:last td:eq(1) a').attr('href', 'fffkids');
116/* sezione FocusOn con link
117$('.page-sezioni, .page-sections').find('tr:last td:eq(2)').html('<div class="views-field views-field-tid"><div class="tid70"><a href="/focus-on">Focus On</a></div></div></td><td class="col-3">'); */
118// sezione FocusOn senza link
119//$('.page-sezioni, .page-sections').find('tr:last td:eq(2)').html('<div class="views-field views-field-php"><div class="tid70"><a href="focus-on">Focus On</a></div></div></td><td class="col-3">');
120
121
122//correzione traduzioni mancanti tassonomia
123if($('body').hasClass('i18n-en')){
124	$('.tid7 .desc p').text('In competition films');
125	$('.tid8 .desc p').text('Out of competition films');
126}
127
128//subnav
129//$('#subnav.withbody ul').prepend('<li>&raquo;&emsp;<li>');
130
131
132//altezza campo categoria per short e eventi nella full page
133$('.header-image.full').each(function(i){
134	var h = $(this).find('.field-name-field-image').height();
135	$(this).find('.categoria').height(h - 14);
136});
137
138
139//link home per pagine non tradotte
140$('.i18n-it .locale-untranslated').contents().wrap('<a href="http://www.futurefilmfestival.org/en"></a>');
141$('.i18n-en .locale-untranslated').contents().wrap('<a href="http://www.futurefilmfestival.org"></a>');
142
143
144//titolo follie notturne eng
145$('.page-taxonomy-term-105.i18n-en h1').text('Midnight madness');
146
147
148//disable skyscraper anchors
149/*$('.view-display-id-block_10 a, .view-advertising a').css('cursor', 'default').click(function (e) {
150    e.preventDefault();
151});
152*/
153
154
155});})(jQuery);
156;/*})'"*/
157;/*})'"*/

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.