PageSourceSearch

https://softmaker.de/templates/joomaker/js/new_shop.js?f0db9e

js softmaker.de collected 2026-09-24 17:17:52 UTC 2,483 bytes, 71 lines download raw bytes

1/*
2 * Add to cart 
3 */
4
5function addtocart(code, seats = null) {
6    var seatParam = seats ? '?seats=' + seats : '';
7
8    //Shop URL + code
9    if (window.location.href.indexOf("softmaker.de") > -1)
10    {
11       url = 'https://eshop.softmaker.de/cart/add-product/' + code + seatParam;
12    }
13    else
14    {
15       url = 'https://eshop.softmaker.com/cart/add-product/' + code + seatParam;
16    }
17
18    // Create hidden iFrame
19    // The text is in the Joomla modul "Hidden iframe text" (ID: 371)
20    var iframe = document.createElement("div");
21    iframe.innerHTML = '<div id="HiddenIFrame"></div><div id="frame"><iframe class="d-none" src="' + url + '"></iframe></div>';
22
23    // Output can be found in the Joomla article "Shop Navigation" 
24    var element = document.getElementById("iFrameOutput");
25    element.appendChild(iframe);
26/*
27    holder wird wohl nicht benötigt. Im iE11 sorgt er für doppelte Produkte im Warenkorb
28*/
29    //    holder = document.getElementById('frame');
30    //    frame = holder.getElementsByTagName('iframe')[0];
31    //    frame.src = url;
32    //    document.getElementById('HiddenIFrame').insertBefore(holder, null);
33
34    
35    // Create and show success modal
36    var modals = document.createElement("div");
37    modals.innerHTML = '<div class="modal" id="ShowSuccessModal"><div class="modal-dialog modal-dialog-centered"><div class="modal-content shadow-lg"><div class="modal-body"><div class="mb15 p15 alert-success rounded" role="alert"><div id="text1" class="alert-heading"></div></div><div id="text2" class="text-right"></div></div></div></div></div>';
38
39
40    var element = document.getElementById("SuccessModal");
41    element.appendChild(modals);
42
43    /* 
44        SuccessModal action:
45        1. open modal on click
46        2. close modal on click outside with reload
47        3. close modal on ESC with reload
48    */
49
50    /*1*/
51    $('#ShowSuccessModal').modal('show')
52
53    /*2*/
54    $('#ShowSuccessModal').on('hide.bs.modal', function () {
55        document.location.reload();
56    });
57
58    /*3*/
59    $(document).keyup(function (e) {
60        if (e.keyCode == 27) { //escape key
61            document.location.reload();
62        }
63    });
64
65    // Text is in the Joomla-Modul "Shop :: Hidden iframe text -> ID: 371"
66    var text1 = document.getElementById("getTEXT1").innerHTML;
67    document.getElementById("text1").innerHTML = text1;
68
69    var text2 = document.getElementById("getTEXT2").innerHTML;
70    document.getElementById("text2").innerHTML = text2;
71}

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.