PageSourceSearch

https://speedyneedle.dk/modules/socialsharing/js/socialsharing.js

js speedyneedle.dk collected 2026-09-26 16:27:26 UTC 2,048 bytes, 52 lines download raw bytes

1/**
2* 2007-2016 PrestaShop
3*
4* NOTICE OF LICENSE
5*
6* This source file is subject to the Open Software License (OSL 3.0)
7* that is bundled with this package in the file LICENSE.txt.
8* It is also available through the world-wide-web at this URL:
9* http://opensource.org/licenses/osl-3.0.php
10* If you did not receive a copy of the license and are unable to
11* obtain it through the world-wide-web, please send an email
12* to [email protected] so we can send you a copy immediately.
13*
14* DISCLAIMER
15*
16* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
17* versions in the future. If you wish to customize PrestaShop for your
18* needs please refer to http://www.prestashop.com for more information.
19*
20*  @author PrestaShop SA <[email protected]>
21*  @copyright  2007-2016 PrestaShop SA
22*  @license    http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
23*  International Registered Trademark & Property of PrestaShop SA
24*/
25
26$(document).ready(function(){
27	$('button.social-sharing').on('click', function(){
28		type = $(this).attr('data-type');
29		if (type.length)
30		{
31			switch(type)
32			{
33				case 'twitter':
34					window.open('https://twitter.com/intent/tweet?text=' + sharing_name + ' ' + encodeURIComponent(sharing_url), 'sharertwt', 'toolbar=0,status=0,width=640,height=445');
35					break;
36				case 'facebook':
37					window.open('http://www.facebook.com/sharer.php?u=' + sharing_url, 'sharer', 'toolbar=0,status=0,width=660,height=445');
38					break;
39				case 'google-plus':
40					window.open('https://plus.google.com/share?url=' + sharing_url, 'sharer', 'toolbar=0,status=0,width=660,height=445');
41					break;
42				case 'pinterest':
43					var img_url = sharing_img;
44					if (typeof $("#bigpic").attr('src') != 'undefined' && $("#bigpic").attr('src') != '') {
45						img_url = $("#bigpic").attr('src');
46					}
47					window.open('http://www.pinterest.com/pin/create/button/?media=' + img_url + '&url=' + sharing_url, 'sharerpinterest', 'toolbar=0,status=0,width=660,height=445');
48					break;
49			}
50		}
51	});
52});

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.