PageSourceSearch

https://www.banda.no/static/version1789478825/frontend/Banda/Theme/nb_NO/Trollweb_PSO/js/PsOnline.js

js banda.no collected 2026-10-07 16:09:06 UTC 1,427 bytes, 47 lines download raw bytes

1require(
2    ['jquery'],
3    function($){
4        window.$ = $;
5
6        // Return a promise from this one so other functions can use it as well
7        window.psClearRx = function() {
8            if (twPsBaseUrl.length > 0) {
9                let promise = $.ajax({
10                    url: twPsBaseUrl + "psoshop/carttrackid",
11                    dataType: 'json',
12                    method: 'POST'
13                }).done(function(data) {
14                    if (data.cart_id) {
15                        console.log("Got new cart id", data.cart_id);
16                    }
17                });
18                return promise;
19            } else {
20                return false;
21            }
22        };
23
24        window.psPutCart = function(cartdata) {
25            if (twPsBaseUrl.length > 0) {
26                $.post(twPsBaseUrl + "psoshop/addprescription", cartdata)
27                .done(function( data ) {
28
29                });
30            }
31        };
32
33        window.psRemoveCart = function(cartdata) {
34            if (twPsBaseUrl.length > 0) {
35                console.log(cartdata);
36                $.post(twPsBaseUrl + "psoshop/addprescription", cartdata)
37                .done(function( data ) {
38                    if (window.isCheckout === true) {
39                        location.reload(true);
40                    }
41
42                });
43            }
44        }
45        $(document).trigger('psonline:loaded');
46    }
47);

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.