-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcalculateOceanFee.html
195 lines (178 loc) · 8.41 KB
/
calculateOceanFee.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="css/bootstrap.min.css">
<style>
body {
line-height: 1
font-family: Verdana, Geneva, Arial, helvetica, sans-serif;
font-size: 12px;
color: #000000;
}
legend {
margin-bottom: 0px;
font-size: 18px;
color: #0275d8;
font-weight: bold;
}
.form-control {
padding: 0.25rem 0.75rem;
}
.input-group-addon {
padding: 0.25rem 0.75rem;
font-size: 12px;
}
.form-group {
margin-bottom: 0.25rem;
}
.navbar-text {
padding-top: 0px;
padding-bottom: 0px;
}
input:-webkit-autofill, textarea:-webkit-autofill, select:-webkit-autofill {
-webkit-box-shadow: 0 0 0 30px white inset;
background-image: none;
color: rgb(0, 0, 0);
}
</style>
</head>
<body onload="initControlListeners();">
<!-- jQuery first, then Popper.js, then Bootstrap JS. -->
<script src="js/lib/jquery.min.js"></script>
<script src="js/lib/tether.min.js"></script>
<script src="js/lib/bootstrap.min.js"></script>
<script src="js/lib/validator.js"></script>
<script src="js/lib/money.min.js"></script>
<script src="js/utils.js"></script>
<script src="js/fclData.js"></script>
<script src="js/lclData.js"></script>
<script src="js/logic.js"></script>
<nav class="navbar navbar-inverse bg-primary">
<h4 class="text-center text-white navbar-text">Ocean Freight Estimation For Intra-Asia Ocean Shipment</h4>
</nav>
<div class="container mt-3">
<form id="form" role="form">
<div class="row">
<fieldset class="form-group col-lg-5 col-md-5" >
<legend>Original:</legend>
<div class="form-group">
<label for="originCity" class="col-form-label">Origin City</label>
<input type="text" class="form-control" id="originCity" required data-required-error="This field is required">
</div>
<div class="row">
<div class="form-group col-lg-5 col-md-5">
<label for="portOfLoading" class="col-form-label">Port of Loading</label>
<input type="text" class="form-control" id="portOfLoading" required>
</div>
<div class="form-group col-lg-7 col-md-7">
<label for="oCurrValue" class="col-form-label">Currency</label>
<div class="input-group">
<span class="input-group-addon" id="oCurrLabel">?</span>
<input type="text" class="form-control" aria-label="Amount (to the nearest dollar)" id="oCurrValue" required>
<span class="input-group-addon">Dollars</span>
</div>
</div>
</div>
<div class="form-group">
<label for="distanctFromOCity2Loading" class="col-form-label">Distance from Pickup Location to Port of Loading (KM)</label>
<input type="number" min="0" class="form-control" id="distanctFromOCity2Loading">
</div>
<div class="form-group">
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="checkbox" id="eccRequired"> Export customs clearence is required
</label>
</div>
</div>
<div class="form-group">
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="checkbox" id="otRequired"> Origin trucking is required
</label>
</div>
</div>
</fieldset>
<div class="col-lg-2 col-md-2" style="text-align:center">
</div>
<fieldset class="form-group col-lg-5 col-md-5">
<legend>Destination:</legend>
<div class="form-group">
<label for="destinationCity" class="col-form-label">Destination City</label>
<input type="text" class="form-control" id="destinationCity" required>
</div>
<div class="row">
<div class="form-group col-lg-5 col-md-5">
<label for="portOfDischarge" class="col-form-label">Port of Discharge</label>
<input type="text" class="form-control" id="portOfDischarge" required>
</div>
<div class="form-group col-lg-7 col-md-7">
<label for="dCurrValue" class="col-form-label">Currency</label>
<div class="input-group">
<span class="input-group-addon" id="dCurrLabel">?</span>
<input type="text" class="form-control" aria-label="Amount (to the nearest dollar)" id="dCurrValue" required>
<span class="input-group-addon">Dollars</span>
</div>
</div>
</div>
<div class="form-group">
<label for="distanctFromDischarge2DCity" class="col-form-label">Distance from Port of Discharge to Delivering Location (KM)</label>
<input type="number" min="0" class="form-control" id="distanctFromDischarge2DCity">
</div>
<div class="form-group">
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="checkbox" id="iccRequired"> Import customs clearence is required
</label>
</div>
</div>
<div class="form-group">
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="checkbox" id="dtRequired"> Destination trucking is required
</label>
</div>
</div>
</fieldset>
</div>
<div class="row" style="padding-top:8px;"></div>
<fieldset class="form-group">
<legend><input type="radio" id="fcl" name="cl" checked></input> <label for="fcl"> FCL: Number of Containers:</label></legend>
<div class="row">
<div class="form-group col-md-4">
<label for="numOf20GP" class="col-form-label">Number of 20GP</label>
<input type="number" min="0" class="form-control" id="numOf20GP" value="0">
</div>
<div class="form-group col-md-4">
<label for="numOf40GP" class="col-form-label">Number of 40GP</label>
<input type="number" min="0" class="form-control" id="numOf40GP" value="0">
</div>
<div class="form-group col-md-4">
<label for="numOf40HQ" class="col-form-label">Number of 40HQ</label>
<input type="number" min="0" class="form-control" id="numOf40HQ" value="0">
</div>
</div>
</fieldset>
<div class="row" style="padding-top:8px;"></div>
<fieldset class="form-group">
<legend><input type="radio" id="lcl" name="cl"></input> <label for="lcl"> LCL: Shipment Detail:</label></legend>
<div class="row">
<div class="form-group col-md-4">
<label for="grossWeight" class="col-form-label">Gross Weight(kg)</label>
<input type="number" min="0" class="form-control" id="grossWeight" value="0">
</div>
<div class="form-group col-md-4">
<label for="volume" class="col-form-label">Volume(cbm)</label>
<input type="number" min="0" class="form-control" id="volume" value="0">
</div>
</div>
<div id="result" style="height: 1em; padding-top:10px; padding-bottom:20px; font-weight:bold;"></div>
<button type="submit" class="btn btn-primary" onclick="handleSubmit()">Estimate Cost</button>
</fieldset>
</form>
</div>
</body>
</html>