Skip to content
17 changes: 17 additions & 0 deletions 2darray.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>

<div id="studentInfo">


</div>

<script src="js/2darray.js"></script>
</body>
</html>
12 changes: 12 additions & 0 deletions arrayFunction.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>

<script src="js/arrayFunction.js"></script>
</body>
</html>
89 changes: 89 additions & 0 deletions css/hotelbill.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}

body {
background-image: url(/image/restaurant-interior.jpg);
background-size: cover;
}

.box {
margin: auto;
margin-top: 2%;
padding: 2%;
background-image: url(/image/Screenshot\ 2023-10-08\ 124757.png);
background-size: cover;
background-position: center center;
width: 30%;
/* background-color: rgb(0, 202, 114); */
border-radius: 20px;
}

h1 {
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
font-style: italic;
font-size: larger;
color: rgb(28, 163, 48);
padding: 9px;
}

label {
color: red;
font-size: small;
font-family: serif;
padding: 4px;
}

input {
padding: 7px;
border-radius: 10px;
border-style: none;
background-color: rgb(246, 255, 0);
color: rgb(0, 142, 26);
}

select {
background-color: rgb(246, 255, 0);
color: rgb(0, 142, 26);
padding: 7px;
border-radius: 10px;
border-style: none;
}

#submit {
color: rgb(0, 103, 43);
background-color: rgb(0, 255, 68);
}

table {
background-color: rgb(248, 149, 0);
border-radius: 10px;
border-style: none;
}

th {
color: rgb(31, 116, 87);
background-color: rgb(109, 210, 0);
border-radius: 10px;
padding: 5px;
border-style: none;

}

td {
color: rgb(31, 116, 87);
background-color: rgb(109, 210, 0);
border-radius: 10px;
padding: 5px;
border-style: none;
}

button {
color: rgb(185, 194, 191);
background-color: rgb(210, 25, 0);
border-radius: 10px;
padding: 5px;
border-style: none;
}
22 changes: 22 additions & 0 deletions dom.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>


<form action="#" onsubmit="handlSubmit()">
<input type="text" id="name" placeholder="Enter name" name="name">

<input type="submit" id="submit">
</form>
<div id="disp">

</div>

<script src="js/dom.js"></script>
</body>
</html>
99 changes: 99 additions & 0 deletions h2.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link rel="stylesheet" href="css/hotelbill.css">


<link rel="stylesheet" href="css/hotel.css">
</head>

<body>
<div id="form-container">
<div class="box">
<h1>Hotel Reservation Form</h1>
<form action="" onsubmit="return handlesubmit()">
<div class="form-group">
<label for="date">Date:</label>
<input type="date" name="date" id="date" placeholder="Enter date">
<span class="error" id="dateErr"></span>
</div>
<br><br>

<div class="form-group">
<label for="tnumber">Table:</label>
<select name="table" id="table">

<option value="0">--select--</option>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
<option value="8">8</option>
<option value="9">9</option>
<option value="10">10</option>
</select>
<span class="error" id="tnumberErr"></span>
</div>

<br><br>

<div class="form-group">
<label for="food">Food:</label>
<select name="food" id="food">
<option value="0">--Select--</option>
<option value="Panjabi">Panjabi</option>
<option value="Chinees">Chinees</option>
<option value="South-Indian">South Indian</option>
</select>
<span class="error" id="foodErr"></span>
</div>

<br><br>

<div class="form-group">
<p>No. of persons:</p>
<input type="number" name="pnumber" id="pnumber" placeholder="Enter number of persons">
<span class="error" id="personErr"></span>
</div>

<br><br>

<div class="form-group">
<input type="submit" id="submit">
</div>
</form>

<br><br>

<table id="disp" border="1">
<thead>
<tr>
<th>Date</th>
<th>Table</th>
<th>Food</th>
<th>Person No</th>
<th>Total</th>
<th>Action</th>

</tr>
</thead>

</table>
</div>

</div>



<script src="js/h2.js"></script>

</body>

</html>
75 changes: 75 additions & 0 deletions hotelbill.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Hotel Bill</title>
<link rel="stylesheet" href="css/hotelbill.css">
</head>

<body>
<div class="container">
<div class="box">
<h1>Hotel Bill Collection System</h1>

<form action="" onsubmit="return handleSubmit()">
<input type="date" name="date" id="date">
<span class="error" id="d-error"></span>
<br><br>

<p>Select Table</p>
<select name="table" id="table">

<option value="0">--select--</option>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
<option value="8">8</option>
<option value="9">9</option>
<option value="10">10</option>
</select>
<span class="error" id="s1error"></span>
<br><br>

<p>Select Food</p>
<select name="food" id="food">
<option value="0">--select--</option>
<option value="250">Punjabi</option>
<option value="150">chinees</option>
<option value="200">South indian</option>
</select>
<span class="error" id="s2error"></span>
<br><br>

<p>Select No Of Person</p>
<input type="number" name="person" id="person">
<span class="error" id="ierror"></span>
<br><br>

<input type="submit" id="submit">
</form>

<br><br>
<table id="disp" border="1">
<tr>
<th>Sr.no</th>
<th>Date</th>
<th>Table</th>
<th>Food</th>
<th>No.Of Person</th>
<th>TotalBill</th>
<th>Action</th>
</tr>
</table>

</div>

</div>

<script src="js/hotelbill.js"></script>
</body>
Binary file added image/2307-w064-n002-541B-p1-541.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added image/427230-PDYP34-121.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added image/Screenshot 2023-10-08 124757.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added image/restaurant-interior.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 21 additions & 0 deletions js/2darray.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
let arr = [
[1,'meet',21]
[2,'dixit',20]
[3,'dhruvil',22]
]

const display = (arr) => {

let print = '<table><tr><th>sr no</th><th>name</th><th>age</th></tr>'


for (let i=0; i<arr.length; i++) {
print += '<td>'
for (let j=0; j<arr[i].length; j++) {

}
}

}

display(arr)
Loading