PageSourceSearch

https://www.safaritvchannel.com/buy-videos/assets/js/cart.js

js safaritvchannel.com collected 2026-10-03 00:57:27 UTC 1,282 bytes, 39 lines download raw bytes

1function remove_cart(itemid) {
2    var xhttp = new XMLHttpRequest();
3    xhttp.open("GET", baseurl + 'remove-cart-item/?itemid=' + itemid, false);
4    xhttp.send();
5    return xhttp.responseText;
6}
7$(document).ready(function () {
8    $('.remove').click(function () {
9      //  var id = $(this).data('itemid');
10       // var res = remove_cart(id);
11       // if (res) { console.log(res);
12        //    document.getElementById("shopping-cart").innerHTML = res.html;
13            //$(this).parent().parent().parent().slideUp().remove();
14        //}
15    });
16});
17function update_cart(itemid, pid) {
18    var qty = document.getElementById(itemid + "_qty").value;
19    $.ajax({
20        type: 'POST',
21        url: baseurl + 'Ajax_controller/update_cart/' + pid + '/' + itemid + '/' + qty,
22        data: {id: itemid},
23        success: function (response) {
24            $("#cart_container").html(response);
25        }
26    });
27}
28
29function isNumberKey(ths, evt) {
30    var charCode = (evt.which) ? evt.which : evt.keyCode;
31    if (charCode != 46 && charCode > 31 && (charCode < 48 || charCode > 57)) {
32        return false;
33    } else if (evt.keyCode === 46 && ths.value.split('.').length === 1) {
34        return false;
35    } else {
36        return true;
37    }
38
39}

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.