-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
56 lines (52 loc) · 2.37 KB
/
Copy pathindex.html
File metadata and controls
56 lines (52 loc) · 2.37 KB
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
<!DOCTYPE html>
<html>
<head>
<title>Calc2Go</title>
<script src="https://unpkg.com/vue"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.18.1/moment.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.16.4/lodash.js"></script>
<script src="js/vue-google-maps.js"></script>
<link rel="stylesheet" href="css/calc2go.css">
</head>
<body>
<div id="container">
<div class="row title">
מחשבון Car2Go
</div>
<div class="row">
<div id="app">
<div class="column" id="trip">
<div v-for="(input, index) in waypoints" v-bind:key="index" class="data">
<input type="text" v-model="input.origin" v-bind:disabled="index > 0" placeholder="מאיפה?">
<input type="text" v-model="input.destination" placeholder="לאן?">
<input type="button" v-on:click="do_click(input)" value="חשב" />
סה״כ ק״מ: {{ input.distance / 1000 }}
</div>
<div class="total">
<div>סה״כ: {{ total_distance }} ק״מ</div>
<div>תשלום עבור קילומטרים: {{ km_price }} ש״ח</div>
</div>
<div class="time">
<div>
שעותת ביום (7 בבוקר עד 11 בלילה)
<input type="number" v-model="day_time">
</div>
<div>
שעות בלילה (11 בלילה ועד 7 בבוקר)
<input type="number" v-model="night_time">
</div>
<div>סה״כ: {{ total_time }} שעות.</div>
<div>תשלום עבור שעות עם הרכב: {{ time_price }} ש״ח</div>
</div>
<div id="total">סה״כ: {{ km_price + time_price }} ש״ח.</div>
</div>
<div class="column map">
<gmap-map :center="{lat:32.08, lng:34.8}" :zoom=13 ref="map" class="map">
</gmap-map>
</div>
</div>
</div>
</div>
<script src="js/calc2go.js"></script>
</body>
</html>