PageSourceSearch

https://tascoappliance.ca/scripts/common.js?v=8

js tascoappliance.ca collected 2026-10-07 20:06:37 UTC 1,030 bytes, 28 lines download raw bytes

1var ExtendedWarrantyItem = function (price, text)
2{
3    this.price = price;
4    this.text = text;
5};
6
7function priceWithCurrency(price, precision) {
8    if (!precision)
9        precision = 0;  // TGA-124 Get rid of all decimals on the site
10
11    // https://stackoverflow.com/a/16233919/1246870
12    return parseFloat(price.toFixed(precision)).toLocaleString('en-US', { style: 'currency', currency: 'USD', minimumFractionDigits: 0, maximumFractionDigits: 0 });
13}
14
15function AddHawkSearchTrackingEvent(e) {
16    var events = JSON.parse(sessionStorage.getItem('HawkSearchTrackingEvents')) || [];
17    events.push(e);
18    sessionStorage.setItem('HawkSearchTrackingEvents', JSON.stringify(events));
19}
20
21function GetHawkSearchTrackingEvents() {
22    return JSON.parse(sessionStorage.getItem('HawkSearchTrackingEvents')) || [];
23}
24
25function TrackHawkSearchEvents() {
26    GetHawkSearchTrackingEvents().forEach(function (e) { HawkSearch.Tracking.track(e.eventName, e.eventArgs); } );
27    sessionStorage.removeItem('HawkSearchTrackingEvents');
28}

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.