HEX
Server: Apache
System: Linux webm010.cluster103.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
User: iestorre (46869)
PHP: 8.0.30
Disabled: _dyuweyrj4,_dyuweyrj4r,dl
Upload Files
File: /home/iestorre/www2/modules/service_links/js/facebook_share.js
if (Drupal.jsEnabled) {
  $(document).ready(function(){
    var fdiv_root, js, div_root ;
    var fjs = document.getElementsByTagName('script')[0];

    if (!document.getElementById('fb-root')) {
      div_root = document.createElement('div');
      div_root.id = 'fb-root';
      document.body.appendChild(div_root);
    }

    if (!document.getElementById('facebook-jssdk')) {
      js = document.createElement('script'); 
      js.id = 'facebook-jssdk';
      js.src = "//connect.facebook.net/en_US/all.js#xfbml=1&appId=" + Drupal.settings.ws_fs.app_id;
      fjs.parentNode.insertBefore(js, fjs);
    }

    $('a.service-links-facebook-share').each(function(){
      var f_text = document.createElement('fb:share-button');
      var css = Drupal.settings.ws_fs.css.split(';');
      var key_value = new Array();

      f_text.setAttribute('type', Drupal.settings.ws_fs.type);
      f_text.setAttribute('href', $(this).attr('rel'));

      for (i = 0; i < css.length; i++){
        key_value = css[i].split(':');
        $(f_text).css(key_value[0], key_value[1]);
      }

      $(this).replaceWith(f_text);
    });
  });
}