PageSourceSearch

https://www.pluneret.fr/wp-content/plugins/plugin-share-1.4.4/public/js/share-leadoff-public.js?ver=1.4.4

js pluneret.fr collected 2026-10-02 19:24:31 UTC 1,765 bytes, 68 lines download raw bytes

1(function( $ ) {
2	'use strict';
3
4	/**
5	 * All of the code for your public-facing JavaScript source
6	 * should reside in this file.
7	 *
8	 * Note: It has been assumed you will write jQuery code here, so the
9	 * $ function reference has been prepared for usage within the scope
10	 * of this function.
11	 *
12	 * This enables you to define handlers, for when the DOM is ready:
13	 *
14	 * $(function() {
15	 *
16	 * });
17	 *
18	 * When the window is loaded:
19	 *
20	 * $( window ).load(function() {
21	 *
22	 * });
23	 *
24	 * ...and/or other possibilities.
25	 *
26	 * Ideally, it is not considered best practise to attach more than a
27	 * single DOM-ready or window-load handler for a particular page.
28	 * Although scripts in the WordPress core, Plugins and Themes may be
29	 * practising this, we should strive to set a better example in our own work.
30	 */
31
32	$( window ).on('load', function() {
33		$('.share li.print-share a').click(function() {
34		    window.print();
35		});
36
37		$('.share li.twitter-share a,.share li.facebook-share a').click(function(e) {
38		    e.preventDefault();
39		    window.open(
40		        $(this).attr('href'),
41		        'Partager',
42		        'height=450, width=550, top=' +
43		            ($(window).height() / 2 - 275) +
44		            ', left=' +
45		            ($(window).width() / 2 - 225) +
46		            ', toolbar=0, location=0, menubar=0, directories=0, scrollbars=0'
47		    );
48		    return false;
49		});
50
51		$('.calendar').click(function() {
52		    $('#share-social').toggleClass('-calendar-open');
53		});
54
55		$('.mail-share a').click(function() {
56		    $('.mail-sharer').toggle(300);
57		});
58
59		if($('.share-button').length >= 1){
60			$('.share-button').on('click', function() {
61			    $(this)
62			        .parent()
63			        .toggleClass('-open');
64			});
65		}
66	});
67
68})( jQuery );

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.