PageSourceSearch

https://wild-life.net/js/cost.js

js wild-life.net collected 2026-10-10 02:12:01 UTC 762 bytes, 28 lines download raw bytes

1'use strict'
2let Cost = function(){
3this.postage={
4    regular:{"others":600,"北海道":900,"沖縄県":1200},
5    cold:{"others":900,"北海道":1200,"沖縄県":1900}
6}
7this.cod=300;
8this.prodTax ={pet:0.1,prod:0.08}
9}
10
11
12let CostHelper=function(){
13    this.getTotalPrice=function(pref,payment,state){
14        let cost = new Cost();
15        let key2="";
16        let key1=state==="冷凍"?"cold":"regular";
17        if (pref==="北海道"||pref==="沖縄県"){
18            key2=pref
19        }else{
20            key2="others"
21        }
22        let cod=parseInt(payment)===1?cost.cod*1.1:0;
23        let post = parseInt(cost.postage[`${key1}`][`${key2}`]*1.1);
24        console.log(pref);
25        return {postage:post,daibiki:cod}
26        // console.log(key2)
27    }
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.