-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
129 lines (107 loc) · 4.83 KB
/
index.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
<!DOCTYPE html>
<img lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Petrol and Cost Required for Journey </title>
<!-- Latest compiled and minified CSS -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
<style>
.container{
margin-left: 20px;
margin-right: 20px;
justify-content: center;
align-items: center;
}
</style>
</head>
<nav class="navbar navbar-white text-light bg-dark">
<div class="container-fluid text-light bg-dark ">
<a class="navbar-brand text-light bg-dark " href="#">
Petrol/Cost Required for the Journey
</a>
</div>
</nav>
<div class="container">
<div id="carouselExampleCaptions" class="carousel slide" data-bs-ride="carousel">
<div class="carousel-indicators">
<button type="button" data-bs-target="#carouselExampleCaptions" data-bs-slide-to="0" class="active" aria-current="true" aria-label="Slide 1"></button>
<button type="button" data-bs-target="#carouselExampleCaptions" data-bs-slide-to="1" aria-label="Slide 2"></button>
<button type="button" data-bs-target="#carouselExampleCaptions" data-bs-slide-to="2" aria-label="Slide 3"></button>
</div>
<div class="carousel-inner">
<div class="carousel-item active">
<img src="New Car.jpg" class="d-block w-100" alt="...">
<div class="carousel-caption d-none d-md-block">
<h5> Check our Journey - Petrol /Cost </h5>
<p>Enjoy the Journey</p>
</div>
</div>
<div class="carousel-item">
<img src="New Car 2.jpeg" class="d-block w-100" alt="...">
<div class="carousel-caption d-none d-md-block">
<h5>Second slide label</h5>
<p>Some representative placeholder content for the second slide.</p>
</div>
</div>
<div class="carousel-item">
<img src="New Car.jpg" class="d-block w-100" alt="...">
<div class="carousel-caption d-none d-md-block">
<h5>Third slide label</h5>
<p>Some representative placeholder content for the third slide.</p>
</div>
</div>
</div>
<button class="carousel-control-prev" type="button" data-bs-target="#carouselExampleCaptions" data-bs-slide="prev">
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
<span class="visually-hidden">Previous</span>
</button>
<button class="carousel-control-next" type="button" data-bs-target="#carouselExampleCaptions" data-bs-slide="next">
<span class="carousel-control-next-icon" aria-hidden="true"></span>
<span class="visually-hidden">Next</span>
</button>
</div>
<div>
<!-- <img src="New Car.jpg" class="d-flex justify-content-center"> </img> -->
<br/>
<h3>Journey Distance: <input id="a" placeholder="Kms"></input></h3>
<h3>Milege of the car: <input id="b" placeholder="Eg:20kms/lts"></input></h3>
<br/>
<button type="button" class="btn btn-success" onclick="gameon()">Click Here</button>
<br/>
<br/>
<h4>Petrol Required for Journey: <span id="demo"></span> Litres </h4>
<h4>Amount Required for the Journey: Rs<span id="fv"></span> </h4>
<!-- <h5 >Cost of Petrol/diesel: <input id="ef"/> </h5> -->
</div>
<!-- <button class="btn btn-success" onclick= "gameon()">Click Here</button> -->
<br/> <br/>
<h5 style="text-align:center">Have a Safe Journey - AB Developers </h5>
<p>Note: Default assumed: petrol: Rs100.00 used.</P>
</div>
<!--
<h2> to Kushnoor <span> Distance = <input> </span></h2>
<p>Car/Bike Milege =<input> </p>
<p>Petrol Required: <span id="demo"></span> Litres</p>
A: Journey Distance <input id="a"></input>
B: Milege <input id="b"></input>
<button onclick= "calculate()">Click Here</button>
<p >Cost of Petrol/diesel: <input id="ef"/> </p>
<p >Amount Required for Journey: Rs <span id="fv"></span></p>
<button onclick= "calculate()">Click Here</button>
-->
<script >
function gameon() {
let a = parseInt(document.getElementById("a").value);
let b = parseInt(document.getElementById("b").value);
let c = a / b;
// let e = parseInt(document.getElementById("ef").value);
let k = c * 101;
document.getElementById("demo").innerHTML = c;
document.getElementById("fv").innerHTML = k;
document.getElementById("gap").innerHTML = "Avinash";
}
</script>
</body>
</html>