PageSourceSearch

https://theatrespolitiques.fr/wp-content/themes/theatrespolitiques_theme/assets/js/ia3.js?v=1

js theatrespolitiques.fr collected 2026-10-02 11:22:50 UTC 5,419 bytes, 100 lines download raw bytes

1/**
2 *	Theme Name:		iA³
3 *	Theme URI:		http://informationarchitects.jp/
4 *	Author:			Information Architects,Inc
5 *	Version:		1.1.1
6 **/
7
8ia3={listeners:{hasInitialized:function(){$("*:first-child").addClass("firstChild");$("*:last-child").addClass("lastChild");twttr.anywhere(function(A){A("a.twooser").hovercards({username:function(B){return B.text;}});A("img.twooser").hovercards({username:function(B){return B.alt;}});});$(document).trigger("CORE:HAS_RESIZED");},hasResized:function(){var A=$(document).width();if(A>1024){if(typeof $.fancybox=="function"){$(".containsGallery a,.eStore-thumbnail a, a.enlarge").fancybox();}if($("#screen > header > form").length==1){$("#screen > header > form").remove();}}else{if(typeof $.fancybox=="function"){$(".containsGallery a,.eStore-thumbnail a, a.enlarge").unbind("click.fb");}if($("#screen > header > form").length==0){$("#footerOne > li:nth-child(1) > form").clone().insertBefore("#screen > header > h1");}if(A>595){if($("#screen > header > form fieldset").length==2){$("#screen > header > form fieldset:nth-child(2)").remove();}}else{if($("#screen > header > form fieldset").length==1){$("#screen > header > form").append('<fieldset><label for="mobile-menu"></label><select id="mobile-menu"><option value="'+window.BASE_URL+'">Home</option></select><select id="mobile-lang"></select></fieldset>');$("#screen > header > nav > ul").each(function(C){var B=$(this),D=C+1;$("li li a",B).each(function(){if($(this).parent().is("strong")){$("#screen > header > form select:nth-of-type("+D+")").append('<option selected value="'+$(this).attr("href")+'">'+$(this).text()+"</option>");}else{$("#screen > header > form select:nth-of-type("+D+")").append('<option value="'+$(this).attr("href")+'">'+$(this).text()+"</option>");}});});$("#mobile-lang, #mobile-menu").change(function(){window.location.href=$(this).val();});}}}},foundTweetlist:function(){var D="",B={},C=$("#containsTweets"),A=$("#containsTwoosers");$(document).bind("CORE:FOUND_TWEETS:FETCH",function(){$.getJSON("http://search.twitter.com/search.json?callback=?&rpp=10&q="+D.replace(/\+OR\+$/,""),function(E){if(typeof E.results=="object"||typeof E.results=="array"){B=E.results;$(document).trigger("CORE:FOUND_TWEETS:UPDATE");}});});$(document).bind("CORE:FOUND_TWEETS:UPDATE",function(){C.empty();for(var E in B){var F=B[E];F.text=F.text.replace(/((ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?)/g,'<a href="$1">$1</a>');F.text=F.text.replace(/\@(\w+)/g,'<a class="twooser" href="http://twitter.com/$1">@$1</a>');C.append('<li><img alt="" src="'+F.profile_image_url+'" /><blockquote><p><a class="twooser" href="http://twitter.com/'+F.from_user+'">'+F.from_user+"</a>: "+F.text+'</p></blockquote><p><a href="http://twitter.com/'+F.from_user+"/status/"+F.id+'/">'+$.timeago(F.created_at)+"</a></p></li>");}setTimeout(function(){$(document).trigger("CORE:FOUND_TWEETS:FETCH");},180000);});$("li h2 a",A).each(function(){D+="from%3A"+$(this).html()+"+OR+";});$(document).trigger("CORE:FOUND_TWEETS:FETCH");}}};$(document).bind("CORE:HAS_INITIALIZED",ia3.listeners.hasInitialized).bind("CORE:HAS_RESIZED",ia3.listeners.hasResized).bind("CORE:FOUND_TWEETLIST",ia3.listeners.foundTweetlist);
9
10// EXTEND JQUERY SCROLLTO
11jQuery.fn.extend({
12	scrollTo : function(speed, easing) {
13		return this.each(function() {
14			var targetOffset = (jQuery(this).offset().top);
15			jQuery("html,body").animate({scrollTop: targetOffset}, speed, easing);
16		});
17	}
18});
19
20// ARTICLE - FOOTERNOTES
21articleFooterNotes = function() {
22	if ( jQuery("#content").length ) {
23		formatFootnotes('content','artnotes');
24		jQuery("<h3>Notes</h3>").insertBefore("#artnotes .footnote:eq(0)");
25		if ( ! jQuery("#artnotes div").length ) {
26			jQuery("#artnotes").css("display","none");
27		}
28		jQuery("#content .ftnlink").bind("click", function(){
29			jQuery("#artnotes").scrollTo(1000);
30			return false;
31		});
32	}
33};
34
35// MAIN NAV ROLLOVER
36mainNavHover = function() {
37	if (jQuery("#main-nav").length) {
38		jQuery("#main-nav li").hoverIntent({
39			over: showSubNav,
40			interval:1,
41			out: hideSubNav
42		});
43	}
44};
45
46// SHOW SUB NAV
47function showSubNav() {
48	jQuery(this).addClass("over");
49};
50
51// HIDE SUB NAV
52function hideSubNav() {
53	jQuery(this).removeClass("over");
54};
55
56// RESPONSIVE MAIN NAV
57responsiveMainNav = function() {
58	if ( jQuery('#main-nav').length ) {
59		//console.log('main nav');
60		jQuery('.topnav').tinyNav();	
61	}
62};
63
64// ENGLISH VERSION
65displayEnglishVersion = function() {
66	jQuery('.displayEnglish').live('click',function(event){
67		jQuery('.englishExcerpt').parent().find('.englishExcerpt').toggle();
68		jQuery('.englishExcerpt').parent().find('.frenchExcerpt').toggle();
69		if (jQuery('.englishExcerpt').parent().find('.englishExcerpt').css('display') == 'none') {
70			jQuery('.displayEnglish').html('English Version');
71		} else {
72			jQuery('.displayEnglish').html('French Version');
73		}
74	});
75}
76
77activeNavigation = function () {
78	jQuery('#navigation').accordion({ 
79	    active: false, 
80	    header: '.head', 
81	    navigation: true, 
82	    fillSpace: true 
83	});
84}
85
86openNewWindowAttachment = function () {
87	jQuery('.wp-caption a').on('click', function() {
88		jQuery(this).attr('target','_blank');
89	});
90}
91
92jQuery(document).ready(function() {
93	articleFooterNotes();
94	jQuery('.formatted').find('a[title]').qtip();
95	mainNavHover();
96	responsiveMainNav();
97	displayEnglishVersion();
98	activeNavigation();
99	openNewWindowAttachment();
100});

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.