PageSourceSearch

https://www.scienzaeconoscenza.it/js/common.js?1722864751

js scienzaeconoscenza.it collected 2026-10-02 06:17:52 UTC 2,330 bytes, 99 lines download raw bytes

1
2function site_url(uri){
3  if(typeof(URL_SITE) !== 'undefined')
4    return URL_SITE + uri;
5  else
6    return uri;
7}
8
9function print_page() {
10  window.print();
11}
12
13$(document).ready(
14  function(){
15    $(".megamenu").megamenu();
16    if ($("#sb-search").length > 0) {
17      new UISearch( document.getElementById( 'sb-search' ) );
18    }
19    
20  // trick per tenere aperto su scienza l'elenco degli articoli visto che è la prima cosa visualizzata
21  var option_close = 'accordion';
22  if(ID_SITE && ID_SITE == 4)
23    option_close = 'false';
24    
25  $('#horizontalTab').easyResponsiveTabs({
26      type: 'default', //Types: default, vertical, accordion
27      width: 'auto', //auto or any width like 600px
28      fit: true,   // 100% fit in a container
29      closed: option_close, // Start closed if in accordion view
30      activate: function(event) { // Callback function if tab is switched
31          var $tab = $(this);
32          var $info = $('#tabInfo');
33          var $name = $('span', $info);
34
35          $name.text($tab.text());
36
37          $info.show();
38      }
39    });
40
41    Shadowbox.init();
42
43    $(window).scroll(function(){
44        if ($(this).scrollTop() > 300) {
45            $('.scrollup').fadeIn();
46        } else {
47            $('.scrollup').fadeOut();
48        }
49    });
50
51    $('.scrollup').click(function(){
52        $("html, body").animate({ scrollTop: 0 }, 600);
53        return false;
54    });
55
56  $('.tooltip').tooltip({
57    // Serve a fare in modo che se title contiene del html, lo supporta (altrimenti lo mostrerebbe esqueppato)
58    content: function () {
59      return $(this).prop('title');
60    }
61  });
62
63  if(typeof(CB_MSG) !== 'undefined' && typeof(CB_CLOSE) !== 'undefined')
64    {
65    $.cookieBar({
66      message: CB_MSG,
67      closeText: CB_CLOSE,
68      policyURL: CB_URL
69    });
70    }
71  else
72    $.cookieBar();
73
74  if($(".cb-close")) {
75    $(".cb-close").click(function(e){
76      e.preventDefault();
77      $('#cookie-bar').remove();
78    });
79  }
80  }
81);
82
83function feedFb(url_to_share, img_to_share){
84    FB.ui({
85      method: 'feed',
86      link: url_to_share,
87      picture: img_to_share
88    }, function(response){});
89  }
90  
91  
92function closeAvvisoAbbonamento(){
93  $.ajax({
94    url: site_url("/feed/close_avviso_abbonamento.php"),
95    success: function(data){
96      $('#box_avviso_abbonamento').slideUp();
97    }
98    });
99  }

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.