Spaces:
Running
Running
Updated tourist app
#11
by Nandhini1357 - opened
- index.html +24 -22
index.html
CHANGED
|
@@ -1,24 +1,26 @@
|
|
| 1 |
<!DOCTYPE html>
|
| 2 |
<html>
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
|
|
|
|
|
|
|
|
| 1 |
<!DOCTYPE html>
|
| 2 |
<html>
|
| 3 |
+
<head>
|
| 4 |
+
<title>Tourist App</title>
|
| 5 |
+
</head>
|
| 6 |
+
<body>
|
| 7 |
+
|
| 8 |
+
<h1>Tourist Guide App</h1>
|
| 9 |
+
|
| 10 |
+
<input type="text" id="city" placeholder="Enter city">
|
| 11 |
+
|
| 12 |
+
<button onclick="showPlaces()">Search</button>
|
| 13 |
+
|
| 14 |
+
<p id="result"></p>
|
| 15 |
+
|
| 16 |
+
<script>
|
| 17 |
+
function showPlaces() {
|
| 18 |
+
let city = document.getElementById("city").value;
|
| 19 |
+
|
| 20 |
+
document.getElementById("result").innerHTML =
|
| 21 |
+
"Top tourist places in " + city;
|
| 22 |
+
}
|
| 23 |
+
</script>
|
| 24 |
+
|
| 25 |
+
</body>
|
| 26 |
+
</html>
|