PageSourceSearch

https://www.tarnetgaronne.fr/modules/contrib/social_simple/js/social_simple.js?tlv9j1

js tarnetgaronne.fr collected 2026-09-25 05:09:58 UTC 1,679 bytes, 43 lines download raw bytes

1/**
2 * @file
3 * Provides the functionality to the social links buttons.
4 */
5
6(function ($, Drupal, once) {
7  'use strict';
8  Drupal.behaviors.social_simple = {
9    attach: function (context, settings) {
10      $(once('social-buttons-link', '.social-buttons-links a', context)).each(function () {
11        if ($(window).width() > 500) {
12          $(this, context).on('click', function (e) {
13            var h = $(this).data("popup-height"),
14                w = $(this).data("popup-width"),
15                open_popup = typeof $(this).data('popup-open') !== "undefined" ? $(this).data('popup-open') : true;
16
17            if (open_popup === false) {
18              // If the popup is not necessary no need to continue.
19              return;
20            }
21
22            e.preventDefault();
23            var dualScreenLeft = window.screenLeft != undefined ? window.screenLeft : screen.left;
24            var dualScreenTop = window.screenTop != undefined ? window.screenTop : screen.top;
25
26            var width = window.innerWidth ? window.innerWidth : document.documentElement.clientWidth ? document.documentElement.clientWidth : screen.width;
27            var height = window.innerHeight ? window.innerHeight : document.documentElement.clientHeight ? document.documentElement.clientHeight : screen.height;
28
29            var left = ((width / 2) - (w / 2)) + dualScreenLeft;
30            var top = ((height / 2) - (h / 2)) + dualScreenTop;
31
32            window.open(
33                $(this).attr("href"),
34                "share",
35                "top=" + top + ",left=" + left + ",width=" + w + ",height=" + h
36            );
37          });
38        }
39      });
40    }
41  }
42
43}(jQuery, Drupal, once));

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.