PageSourceSearch

https://www.mapetitemercerie.com/modules/psaffiliate/views/js/product.js

js mapetitemercerie.com collected 2026-09-25 19:46:07 UTC 1,959 bytes, 53 lines download raw bytes

1/*
2 * NOTICE OF LICENSE
3 *
4 * This file is licenced under the Software License Agreement.
5 * With the purchase or the installation of the software in your application
6 * you accept the licence agreement.
7 *
8 * You must not modify, adapt or create derivative works of this source code.
9 *
10 * @author    Active Design <[email protected]>
11 * @copyright 2016-2024 Active Design
12 * @license   LICENSE.txt
13 */
14$(function () {
15    $(document).ready(function () {
16        var clipboard = new Clipboard('.btn-copy');
17
18        $('.btn-copy').popover({
19            trigger: 'manual',
20            placement: 'top'
21        });
22        function setTooltip(btn, message) {
23            $(btn).attr('data-content', message)
24                .popover('show');
25        }
26
27        function hideTooltip(btn) {
28            setTimeout(function () {
29                $(btn).popover('hide');
30            }, 1000);
31        }
32
33        clipboard.on('success', function (e) {
34            setTooltip(e.trigger, 'Copied!');
35            hideTooltip(e.trigger);
36        });
37
38        // BS Tooltips
39        $('[data-toggle="tooltip"]').tooltip({container: "body"});
40
41        if ($(document).find('#product_affiliate_link').length) {
42            if ($(document).find('#main .social-sharing .facebook > a').length) {
43                var share_link = $(document).find('#main .social-sharing .facebook > a').attr('href');
44                var share_link_obj = new URL(share_link);
45                share_link_search = share_link_obj.search;
46                if (share_link_search.substr(0, 3) == '?u=') {
47                    var affiliate_page_link = $(document).find('#product_affiliate_link').val();
48                    $(document).find('#main .social-sharing .facebook > a').attr('href', share_link_obj.origin + share_link_obj.pathname + '?u=' +  encodeURIComponent(affiliate_page_link));
49                }
50            }
51        }
52    });
53});

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.