PageSourceSearch

https://aicebiz.com/export/system/modules/it.unionemilano.associaz…/resources/script/twitter_aice.js

js aicebiz.com collected 2026-10-02 18:41:52 UTC 1,317 bytes, 35 lines download raw bytes

1$(document).ready(function(){
2	showTwitter('twitter-wjs', {width:'100%',height:370,color:'red',theme:'light',element:'.twitter'})
3	$(window).resize(function(){
4		showTwitter('twitter-wjs', {width:'100%',height:370,color:'red',theme:'light',element:'.twitter'})
5	})
6})
7
8function loadTwitter(d,s,id){
9  var js,fjs=d.getElementsByTagName(s)[0];
10  if(!d.getElementById(id)){
11    js=d.createElement(s);
12    js.id=id;
13    js.src="//platform.twitter.com/widgets.js";
14    fjs.parentNode.insertBefore(js,fjs);
15  }
16}
17function removeTwitter(id){
18  jQuery('script[id='+id+']').remove(); // Remove the included js file
19  jQuery('.twitter').empty();
20  jQuery('iframe.twitter-timeline').remove(); // Remove the timeline iframe
21}
22function addTwitter(options){
23  var linkStr = '<a class="twitter-timeline"';
24  linkStr += (options.width)?' width="'+options.width+'"':'';
25  linkStr += (options.height)?' height="'+options.height+'"':'';
26  linkStr += (options.color)?' data-link-color="'+options.color+'"':'';
27  linkStr += (options.theme)?' data-theme="'+options.theme+'"':'';
28  linkStr += ' href="https://twitter.com/AICEMilano" data-widget-id="583563255467081728"></a>';
29  jQuery(linkStr).appendTo(options.element);
30}
31function showTwitter(id,options) {
32  removeTwitter(id);
33  addTwitter(options);
34  loadTwitter(document,'script',id);
35}

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.