PageSourceSearch

https://the-dive-shop.com/js/travelcost.js?r=120803234

js the-dive-shop.com collected 2026-10-04 17:34:46 UTC 1,762 bytes, 48 lines download raw bytes

1'use strict'
2function setbaseaddon(data) {
3    let idMatchCounter = {};
4    $(".baseoptionselect, .addAddonSelect").each(function () {
5        let currentElement = $(this);
6        let currentId = currentElement.val();
7        if (!idMatchCounter[currentId]) {
8            idMatchCounter[currentId] = 0;
9        }
10        let matchCount = 0;
11        let matched = false;
12        $.each(data.options, function (i, item) {
13            if (item.id == currentId) {
14                if (matchCount == idMatchCounter[currentId]) {
15                        if (currentElement.hasClass('baseoptionselect')) {
16                            currentElement.closest('.user-container').find(".input-price").html(item.total_cost_f);
17                        } else {
18                            currentElement.closest(trSelect).find(".input-price").html(item.total_cost_f);
19                        }
20                    matched = true;
21                    return false;
22                } else {
23                    matchCount++;
24                }
25            }
26        });
27        idMatchCounter[currentId]++;
28    });
29    data.f_total_amount = data.f_base_amount;
30    data.total_amount = data.f_base_amount;
31    $("#tvlTotal").html(data.f_total_amount);
32    //$("#paymentAMount").val(data.total_amount);
33    if (DEFAULT_MIN_DEPOSIT_AMOUNT == 1)  //FeatureTag
34    {
35        $("#paymentAMount").val(tmp_minimum_deposit);
36    } else {
37        $("#paymentAMount").val(data.base_amount);
38    }
39    $("#paymentAMount").val(data.base_amount);
40
41    var ovrl = data.f_total_amount;
42    OVR_COST = data.total_amount;
43    MINIMUM_DEPOSIT = data.minimum_deposit;
44
45    if (data.f_total_amount == "$0.00" && data.minimum_deposit == 0) {
46        $("#btnPayment").html("Make Reservation");
47    }
48}

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.