Sunday, July 17, 2022

Jquery

<!DOCTYPE html>
<html 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>practice</title>
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
    <script>
        $(document).ready(function(){
            $("#hide").click(function(){
                $("p").hide();
                $("#show").click(function(){
                    $("p").show();

                    $("#fdot").click(function(){
                        $("#box1").fadeOut();
                        $("#box2").fadeOut("slow");
                        $("#box3").fadeOut(2000);

                        $("#fdin").click(function(){
                            $("#box1").fadeIn();
                            $("#box2").fadeIn("slow");
                            $("#box3").fadeIn(2000);

                            $("#fdtg").click(function(){
                                $("#box1").fadeToggle();
                                $("#box2").fadeToggle("slow");
                                $("#box3").fadeToggle(2000);

                            $("#fdto").click(function(){
                                $("#box1").fadeTo("slow",0.15);
                                $("#box2").fadeTo("slow",0.4);
                                $("#box3").fadeTo("slow",0.7);

                                    $("#anm").click(function(){
                                        $("#box1").animate({left:'300px'});
                                        $("#box2").animate({left:'300px'});
                                        $("#box3").animate({left:'300px'});
                                    });
                            });
                            });
                        });
                    });
                });
            });
        });
    </script>
</head>
<body>
    <button id="hide">click to hide</button>
    <button id="show">click to show</button>
    <button id="fdot">fadeout</button>
    <button id="fdin">fadein</button>
    <button id="fdtg">fadetoggle</button>
    <button id="fdto">fadeto</button>
    <button id="anm">animate</button>
    <p>this is paragraph</p>
    <p>this is another paragraph</p>
    <div id="box1" style="height:80px; width:80px; background-color:red;
     margin-top:20px;position: relative;"></div>
    <div id="box2" style="height:80px; width:80px; background-color:green;
     margin-top:20px;position: relative;"></div>
    <div id="box3" style="height:80px; width:80px; background-color:blue;
     margin-top:20px;position: relative;"></div>
</body>
</html>

Floating css

<!DOCTYPE html>
<html>
<head>
<title></title>
<style type="text/css">
#a
{
margin:10px;
border:4px solid black;
width:700px;
height:700px;
background-color: white;
}
#b
{
margin:20px;
border:4px solid black;
width:650px;
height:50px;
background-color: yellow;
}

#c
{
margin:20px;
border:4px solid black;
width:530px;
height:550px;
background-color: grey;
float:right;
}

#d
{
margin:20px;
border:4px solid black;
width:100px;
height:550px;
background-color: yellow;
}
#e
{
margin:20px;
border:4px solid black;
width:480px;
height:50px;
background-color: yellow;
}
#f
{
margin:20px;
border:3px solid black;
width:100px;
height:20px;
background-color: cyan;
border-radius:8px 8px 8px 8px;
}
#g
{
margin:20px;
border:3px solid black;
width:100px;
height:20px;
background-color: cyan;
float:left;
border-radius:8px 8px 8px 8px;
}
#h
{
margin:20px;
border:3px solid black;
width:100px;
height:20px;
background-color: cyan;
float:left;
border-radius:8px 8px 8px 8px;
}
#i
{
margin:20px;
border:3px solid black;
width:480px;
height:430px;
background-color: yellow;
}
</style
</head>
<body>
<div id="a">
<div id="b">header</div>
<div id="c"><div id="e"><div id="f">tool 1
<div id="g">tool 2</div><div id="h">tool 3</div>

</div>
</div>
<div id="i">map(through mapstration if that )
 </div>
 </div>
 <div id="d">menu</div>
 </div>
 </body>
 </html>

Shapes css

<!DOCTYPE html>
<html>
<head>
<title>Floats</title>
<style type="text/css">
#a
{
margin:20px;
border:2px solid black;
width:600px;
height:600px;
border-radius:20px 20px 20px 20px;
background-color: yellow;
}
#b
{
margin:20px;
border:2px solid black;
width:500px;
height:150px;
border-radius:40px 40px 40px 40px;
background-color: orange;
}
#c
{
margin:20px;
border:2px solid black;
width:150px;
height:300px;
float:right;
border-radius:30px 30px 30px 30px;
background-color: pink;
}
#d
{
margin:20px;
border:2px solid black;
width:150px;
height:300px;
float:left;
border-radius:30px 30px 30px 30px;
background-color: blue;
}
#e
{
margin:20px;
border:2px solid black;
width:150px;
height:300px;
float:right;
border-radius:30px 30px 30px 30px;
background-color: grey;
}
#f
{
margin:20px;
border:2px solid black;
width:100px;
height:100px;
float:right;
border-radius:50px 50px 50px 50px;
background-color: red;
}
#g
{
margin:20px;
border:2px solid black;
width:100px;
height:100px;
float:right;
border-radius:50px 50px 50px 50px;
background-color: red;
}
#h
{
margin:20px;
border:2px solid black;
width:100px;
height:100px;
float:right;
border-radius:50px 50px 50px 50px;
background-color: red;
}
#i
{
margin:20px;
border:2px solid black;
width:100px;
height:100px;
float:right;
border-radius:10px 10px 10px 10px;
background-color: blue;
}
#j
{
margin:20px;
border:2px solid black;
width:100px;
height:100px;
float:right;
border-radius:10px 10px 10px 10px;
background-color: cyan;
}
#k
{
margin:20px;
border:2px solid black;
width:100px;
height:100px;
float:right;
border-radius:10px 10px 10px 10px;
background-color: green;
}





</style>
</head>
<body>
<div id="a">
<div id="b"></div>
<div id="c">
<div id="f"></div>
<div id="i"></div>
</div>
<div id="d">
<div id="g"></div>
<div id="j"></div>
</div>
<div id="e">
<div id="h"></div>
<div id="k"></div>
</div>

</div>


</body>
</html>

Survey form html

<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>
<font size="4" align="right">
<b><i>Evergreen Valley College Survey </i></b>
<br><br>
</font>
<table border="2px" height="400px" width="650px">
   <tr bgcolor="cyan">
       <th></th>
              <th>Personal information</th>
       </tr>
<tr>
<th>Name:</th>
<td><textarea rows="1" cols="26"></textarea></td>
</tr>
<tr>
<th>Email:</th>
<td><textarea rows="1" cols="26"></textarea></td>
</tr>
<tr><th>Age:</th>
<td><input type="radio"><18

<input type="radio">18-25
<input type="radio">26-40
<input type="radio">41-65
<input type="radio">65+
</td>
</tr>
<tr bgcolor="orange">
<th></th>
<th>Academic Information</th>

</tr>
<tr><th>Goals:</th>
<td>Check all that apply
<br>
<input type="radio">Associat Degree
<input type="radio">Transfer to CSU
<input type="radio">Transfer to CU
<input type="radio">Personal Enrichment 
</td>
</tr>

<tr>
<th>Field of study:</th>
<td>Select all that apply, hold CTRN when clicking to select multiple items
<br>
<textarea rows="6" cols="30">
Accounting
Astronomy
Business
Chemistry
Computer Information Systems
Health
</textarea>
</td>




</tr>
<tr>
<th>Comments:</th>
<td>
<textarea rows="6" cols="37"></textarea>
</td>
</tr>

<tr>

<td colspan="2">
<center>
<input type="submit" value="Send Data">
<input type="reset" value="Reset Data">

</center></td>

</tr>

</table>


</body>
</html>

Symbols,Mark html

<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>
<h1>
Hi! &nbsp; How are you?
</h1>
Copyright Symbol:&copy;
<br>
Checkmark: &#10004;<br>
Ampersand Sign:&amp;<br>
Euro sign:&euro;<br>
Heart symbol:&hearts; <br>
Quotation Marks:&quot;<br>
Singal Quote:&apos;<br>
Trademark symbol:&trade;<br>
Registered Trademark symbol:&reg;

<h1>
H<sub>2</sub>0
</h1>
<h1>
10<sup>Th</sup>
</h1>
</body>
</html>

Table form html

<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>
<table border="2px" height="300px" width="350px">
   <tr bgcolor="orange">
       <th>Name</th>
              <th>Value</th>
       </tr>
<tr>
<td>Name</td>
<td><textarea rows="1" cols="16"></textarea></td>
</tr>

<tr><td>Sex</td>
<td><input type="radio">Male
<br>
<input type="radio">Female
</td>
</tr>

<tr><td>Eye color</td>
<td><select>
<option>Green</option>
<option>Black</option>
<option>Blue</option>
<option>Cyan</option>
</select>
</td>
</tr>

<tr><td>Check all that apply</td>
<td><input type="radio">Over 6 feet tall
<br>
<input type="radio">Over 200 pounds
</td>
</tr>

<tr>
<td colspan="2">Describe your athletic ability:
<textarea rows="4" cols="37"></textarea>
</td>
</tr>

<tr><td colspan="2"><center>
<input type="submit" value="Enter my information">
</td>
</center>

</tr>


</body>
</html>

Nested list html

<!DOCTYPE html>
<html>
<head>
 <title></title>
 </head>
 <body bgcolor="pink">
  <center>
   <TABLE bgcolor="cyan" border="0px" height="300px" width="300px">
  <tr>
   <td>
   <b><h2>Nested list example</h2></b>
       <ol type="1">
         <li>Week One: Getting Started
          <ul type="CIRCLE">
              <li>How web works</li>
                  <li>Installing Software</li>
                   </ul>
                   </li>
                   <li>Week two: HTML Basics 
                    <ul type="CIRCLE">
                      <li>HTML Overview</li>
                        <li>HTML Text</li>
                          <li>HTML Lists
                             <ul type="disc">
                                 <LI>Quiz</LI>
                                     <LI>Assignment</LI>
                                        </ul>
                                          </li>
                                           </ul>
                                           </li>
                                  <li>Week Three: CSS Basics
                                            <ul type="CIRCLE">
                                              <li>CSS Overview</li>
                                                <li>CSS Selectors</li>
                                                 </ul>
                                                 </li>
                                                 </ol>
                                                 </td>
                                                 </tr>
                                                 </TABLE>
                                                 </center>
                                                 </body>
                                                 </html>

Tables html

<html>
<head>
   <title></title>
   </head>
   <body><table border="2px" height="400px" width="350px">
   <tr>
       <td colspan="5"></td>
       </tr>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>

<tr>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>

<tr>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>

</table>

<br>
<br>

<table border="2px" height="400px" width="350px">

<tr>
<td colspan="4"></td>
</tr>

<tr>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>

<tr>
<td colspan="4"></td>
</tr>

</table>

<br><br>

<table border="2px" height="400px" width="350px">

<tr>
<td colspan="4"></td>
</tr>

<tr>
<td rowspan="3"></td>
<td colspan="3"></td>
</tr>

<tr>
<td rowspan="2"></td>
<td colspan="2"></td>
</tr>

<tr>
<td></td>
<td></td>
</tr>

</table>

<br>
<br>

<table border="2px" height="400px" width="350px">

<tr>
<td rowspan="4"></td>
<td></td>
<td></td>
<td></td>
</tr>

<tr>
<td></td>
<td></td>
<td></td>
</tr>

<tr>
<td></td>
<td></td>
<td></td>
</tr>

<tr>
<td></td>
<td></td>
<td></td>
</tr>

</table>

<br><br>

<table border="2px" height="400px" width="350px">

<tr>
<td rowspan="4"></td>
<td colspan="2"></td>
<td rowspan="4"></td>
</tr>

<tr>
<td></td>
<td></td>
</tr>

<tr>
<td colspan="2"></td>
</tr>

<tr>
<td colspan="2"></td>
</tr>

</table>

<br>
<br>

<table border="2px" height="400px" width="350px">

<tr>
<td rowspan="4"></td>
<td colspan="5"></td>
</tr>

<tr>
<td rowspan="3"></td>
<td colspan="4"></td>
</tr>

<tr>
<td rowspan="2"></td>
<td colspan="2"></td>
</tr>

<tr>
<td></td>
<td></td>
</tr>

</table>

</body>
</html>

Form html

<!DOCTYPE html>
<html>
<head>
<title>Form</title>
</head>
<body>
<form action="form.html">
Name <input type="text" placeholder="Enter your name">
<br><br>

Password<input type="Password" placeholder="Enter your password">

<br><br>
Document :<br>
Aadhar card<input type="checkbox">
Ration card<input type="checkbox">
Pan card<input type="checkbox">
<br><br>
Gender:<br>
Male<input type="radio" name="a1">
Female<input type="radio" name="a1">
<br><br>
States:<br>
<select>
<option> Select</option>
<option>Goa</option>
<option>Punjab</option>
<option>Bihar</option>
<option>Delhi</option>
<option>U P</option>
</select>
<br><br>
<input type="file">
<br><br>
<a href="https://www.amazon.in/">For Online shoppings</a>



<br><br>
<input type ="Submit" value="Submit">
<input type ="Reset" value="Reset">
<br><br>
Feedback <textarea rows ="1" cols="18"></textarea>
</form>
</body>
</html>

Fb login html

<!DOCTYPE html>
<html>
<head>
<title></title>
</head>

<body>

<font color="white">
<table border="3px" height="450px" width="350px"bgcolor="slate">
<td>
<center>

<h1>Facebook</h1>

</center>
</font>
<br><br><br>

<form action="form.html">
Email,phone <input type="text" placeholder="Enter Mobile or Email">
<br>
<br>
Password<input type="password" placeholder="Enter your password">
<br><br>

<input type="submit"value="Log In">
<br><br>
<a href="https://m.facebook.com/login/identify/?ctx=recover&c=https%3A%2F%2Fm.facebook.com%2F&multiple_results=0&ars=facebook_login&from_login_screen=0&lwv=100&_rdr">Forgotten password?</a>
<hr size=4>
<a href="https://m.facebook.com/reg/?cid=103&refsrc=https%3A%2F%2Fm.facebook.com%2F&_rdr">Create New Account</a>
<br>

</td>

</table>
</form>
</body>
</html>

Web page html

<!DOCTYPE html>
<html>
<head>
<title>Shiva's favourite animal</title>
</head>

<body bgcolor="cyan">
<h1>Favourite animals</h1>
<font face="algerian" color="white">
<table border="0px" bgcolor="green" height="30"
width="350">

<th>Home</th>
<th>Fun facts</th>
</table>
</font>
<br>
<img src="345.jpg" height="100"width="150">

<p>
My name is Shiv, and my favorite animal is the moose.
 They can be up to 6.5 feet tall and weigh 1200 pounds. 
 Surprisingly, they're really good at swimming!
 </p>
<p>if you want to learn more about the Moose, Check out
 <a href="https://en.m.wikipedia.org/wiki/Moose"> it's Wikimedia page.</a></p>
<h3>Moose are awesome because...</h3>
<ol>
<li>they can swim really well</li>
<li>they can make really funny noises</li>
<li>they can close their nostrils</li>
</ol>

<h3>if I were a moose, I would...</h3>
<ul>
<li>Eat lots of lettuce</li>
<li>Carry little animals on my antlers </li>
<li>Swim to alaska</li>
</ul>
</body>
</html>

Calendar html

<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>
<table border="3px" height="300px" width="350px" cellspacing="0px"
bgcolor="cyan" bordercolor="black">
<tr bgcolor="orange">
<th>S</th>
<th>M</th>
<th>T</th>
<th>W</th>
<th>T</th>
<th>F</th>
<th>S</th>

</tr>
<tr>
<td>1</td>
<td>2</td>
<td>3</td>
<td>4</td>
<td>5</td>
<td>6</td>
<td>7</td>
</tr>

<tr>
<td>8</td>
<td>9</td>
<td>10</td>
<td>11</td>
<td>12</td>
<td>13</td>
<td>14</td>
</tr>

<tr>
<td>15</td>
<td>16</td>
<td>17</td>
<td>18</td>
<td>19</td>
<td>20</td>
<td>21</td>
</tr>

<tr>
<td>22</td>
<td>23</td>
<td>24</td>
<td>25</td>
<td>26</td>
<td>27</td>
<td>28</td>
</tr>

<tr>
<td>29</td>
<td>30</td>
<td>31</td>
</tr>
</table>
</body>
</html>

Todo list js

<!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="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css"
        integrity="sha384-9aIt2nRpC12Uk9gS9baDl411NQApFmC26EwAOH8WgZl5MYYxFfc+NcPb1dKGj7Sk" crossorigin="anonymous">

    <title>TODOs List</title>
</head>

<body>
    <nav class="navbar navbar-expand-lg navbar-dark bg-dark">
        <a class="navbar-brand" href="#">TODOs List</a>
        <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent"
            aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
            <span class="navbar-toggler-icon"></span>
        </button>

        <div class="collapse navbar-collapse" id="navbarSupportedContent">
            <ul class="navbar-nav mr-auto">
                <li class="nav-item active">
                    <a class="nav-link" href="#">Home <span class="sr-only">(current)</span></a>
                </li>
                <li class="nav-item">
                    <a class="nav-link" href="#">About</a>
                </li>
                <li class="nav-item dropdown">
                    <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button"
                        data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
                        Items
                    </a>
                    <div class="dropdown-menu" aria-labelledby="navbarDropdown">
                        <a class="dropdown-item" href="#">Action</a>
                        <a class="dropdown-item" href="#">Another action</a>
                        <div class="dropdown-divider"></div>
                        <a class="dropdown-item" href="#">Something else here</a>
                    </div>
                </li>
                <li class="nav-item">
                    <a class="nav-link" href="#" tabindex="-1" aria-disabled="true">Contact</a>
                </li>
            </ul>
            <form class="form-inline my-2 my-lg-0">
                <input class="form-control mr-sm-2" type="search" placeholder="Search" aria-label="Search">
                <button class="btn btn-outline-success my-2 my-sm-0" type="submit">Search</button>
            </form>
        </div>
    </nav>

    <div class="container my-4">
        <h2 class="text-center">TODOs List</h2>
         
            <div class="form-group">
                <label for="title">Title</label>
                <input type="text" class="form-control" id="title" aria-describedby="emailHelp">
                <small id="emailHelp" class="form-text text-muted">Add an item to the list</small>
            </div>

            <div class="form-group">
                <label for="description">Description</label>
                <textarea class="form-control" id="description" rows="3"></textarea>
            </div>
            

            <button id="add" class="btn btn-primary">Add to list</button>
            <button id="clear" class="btn btn-primary" onclick="clearStorage()">Clear list</button>
         

        <div id="items" class="my-4">
            <h2>Your Items</h2>
            <table class="table">
                <thead>
                  <tr>
                    <th scope="col">SNo</th>
                    <th scope="col">Item Title</th>
                    <th scope="col">Item Description</th> 
                    <th scope="col">Actions</th> 
                  </tr>
                </thead>
                <tbody id="tableBody">
                  <tr>
                    <th scope="row">1</th>
                    <td>Get some Coffee</td>
                    <td>You need coffee as you are a coder</td> 
                    <td><button class="btn btn-sm btn-primary">Delete</button></td> 
                  </tr>
                  
                </tbody>
              </table>
        </div>
    </div>

    <!-- Optional JavaScript -->
    <!-- jQuery first, then Popper.js, then Bootstrap JS -->
    <script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"
        integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj"
        crossorigin="anonymous"></script>
    <script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js"
        integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo"
        crossorigin="anonymous"></script>
    <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/js/bootstrap.min.js"
        integrity="sha384-OgVRvuATP1z7JjHLkuOU7Xw704+h835Lr+6QL9UvYjZE3Ipu6Tp75j7Bh/kR0JKI"
        crossorigin="anonymous"></script>
        <script>
            function getAndUpdate(){
                console.log("Updating List...");
                tit = document.getElementById('title').value;
                desc = document.getElementById('description').value;
                if (localStorage.getItem('itemsJson')==null){
                    itemJsonArray = [];
                    itemJsonArray.push([tit, desc]);
                    localStorage.setItem('itemsJson', JSON.stringify(itemJsonArray))
                }
                else{
                    itemJsonArrayStr = localStorage.getItem('itemsJson')
                    itemJsonArray = JSON.parse(itemJsonArrayStr);
                    itemJsonArray.push([tit, desc]);
                    localStorage.setItem('itemsJson', JSON.stringify(itemJsonArray))
                }
                update();
            }

            function update(){
                if (localStorage.getItem('itemsJson')==null){
                    itemJsonArray = []; 
                    localStorage.setItem('itemsJson', JSON.stringify(itemJsonArray))
                } 
                else{
                    itemJsonArrayStr = localStorage.getItem('itemsJson')
                    itemJsonArray = JSON.parse(itemJsonArrayStr); 
                }
                // Populate the table
                let tableBody = document.getElementById("tableBody");
                let str = "";
                itemJsonArray.forEach((element, index) => {
                    str += `
                    <tr>
                    <th scope="row">${index + 1}</th>
                    <td>${element[0]}</td>
                    <td>${element[1]}</td> 
                    <td><button class="btn btn-sm btn-primary" onclick="deleted(${index})">Delete</button></td> 
                    </tr>`; 
                });
                tableBody.innerHTML = str;
            }
            add = document.getElementById("add");
            add.addEventListener("click", getAndUpdate);
            update();
            function deleted(itemIndex){
                console.log("Delete", itemIndex);
                itemJsonArrayStr = localStorage.getItem('itemsJson')
                itemJsonArray = JSON.parse(itemJsonArrayStr);
                // Delete itemIndex element from the array
                itemJsonArray.splice(itemIndex, 1);
                localStorage.setItem('itemsJson', JSON.stringify(itemJsonArray));
                update();

            }
            function clearStorage(){
                if (confirm("Do you areally want to clear?")){
                console.log('Clearing the storage')
                localStorage.clear();
                update()
                }
            }
        </script>
</body>

</html>

Current time see js

<!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="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css"
        integrity="sha384-9aIt2nRpC12Uk9gS9baDl411NQApFmC26EwAOH8WgZl5MYYxFfc+NcPb1dKGj7Sk" crossorigin="anonymous">

    <title>Hello, world!</title>
    <script>
        let a;
        let date;
        let time;
        const options = { weekday: 'long', year: 'numeric', month: 'long', day: 'numeric' };
        setInterval(() => {
            a = new Date(); 
            date = a.toLocaleDateString(undefined, options);
            time = a.getHours() + ':' + a.getMinutes() + ':' + a.getSeconds();
            document.getElementById('time').innerHTML = time + "<br>on " + date;
        }, 1000);
    </script>
</head>

<body>
    <nav class="navbar navbar-expand-lg navbar-light bg-light">
        <a class="navbar-brand" href="#">Navbar</a>
        <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent"
            aria-controls="na&vbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
            <span class="navbar-toggler-icon"></span>
        </button>

        <div class="collapse navbar-collapse" id="navbarSupportedContent">
            <ul class="navbar-nav mr-auto">
                <li class="nav-item active">
                    <a class="nav-link" href="#">Home <span class="sr-only">(current)</span></a>
                </li>
                <li class="nav-item">
                    <a class="nav-link" href="#">Link</a>
                </li>
                <li class="nav-item dropdown">
                    <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button"
                        data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
                        Dropdown
                    </a>
                    <div class="dropdown-menu" aria-labelledby="navbarDropdown">
                        <a class="dropdown-item" href="#">Action</a>
                        <a class="dropdown-item" href="#">Another action</a>
                        <div class="dropdown-divider"></div>
                        <a class="dropdown-item" href="#">Something else here</a>
                    </div>
                </li>
                <li class="nav-item">
                    <a class="nav-link disabled" href="#" tabindex="-1" aria-disabled="true">Disabled</a>
                </li>
            </ul>
            <form class="form-inline my-2 my-lg-0">
                <input class="form-control mr-sm-2" type="search" placeholder="Search" aria-label="Search">
                <button class="btn btn-outline-success my-2 my-sm-0" type="submit">Search</button>
            </form>
        </div>
    </nav>



    <div class="container my-4">
        <div class="jumbotron">
            <h1 class="display-4">Current time Is: <span id="time"></span></h1>
            <p class="lead">We have got you covered. This is a simple hero unit, a simple jumbotron-style component for
                calling extra attention to featured content or information.</p>
            <hr class="my-4">
            <p>We are here to show you the time for different countries</p>
            <a class="btn btn-primary btn-lg" href="#" role="button">Browse Times</a>
        </div>
    </div>

    <!-- Optional JavaScript -->
    <!-- jQuery first, then Popper.js, then Bootstrap JS -->
    <script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"
        integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj"
        crossorigin="anonymous"></script>
    <script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js"
        integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo"
        crossorigin="anonymous"></script>
    <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/js/bootstrap.min.js"
        integrity="sha384-OgVRvuATP1z7JjHLkuOU7Xw704+h835Lr+6QL9UvYjZE3Ipu6Tp75j7Bh/kR0JKI"
        crossorigin="anonymous"></script>
</body>

</html>

Simple calculator js

<!DOCTYPE html>
<html>
<head>
<title>calcutor</title>
</head>
<body> <center>
   <form name="from1">
   
   <input type="text" name="answer" id=" text">
   <br> <br>
   <input type="button" value="1" onclick="from1.answer.value +='1'" >
   <input type="button" value="2" onclick="from1.answer.value+='2'">
   <input type="button" value="3" onclick="from1.answer.value += '3'">
   <input type="button" value="+" onclick="from1.answer.value += '+'">
    <br> <br>
    <input type="button" value="4" onclick="from1.answer.value +='4'">
    <input type="button" value="5" onclick="from1.answer.value +='5'">
    <input type="button" value="6" onclick="from1.answer.value +='6'">
    <input type="button" value="-" onclick="from1.answer.value += '-'">
   <br> <br>
   
   <input type="button" value="7" onclick="from1.answer.value +='7'">
   <input type="button" value="8" onclick="from1.answer.value +='8'">
   <input type="button" value="9" onclick="from1.answer.value +='9'">
   <input type="button" value="×" onclick="from1.answer.value +='*'">
   <br> <br>
   <input type="button" value="00" onclick="from1.answer.value +='00'">
   <input type="button" value="0" onclick="from1.answer.value +='0'">
   <input type="button" value="." onclick="from1.answer.value +='.'">
   <input type="button" value="=" onclick="from1.answer.value= eval(from1. answer.value)">
   
   </form>
</body>
</html>

Name filling js

<!DOCTYPE html>
<html>
<head>
 <title>java</title>
 <script>
  function demo()
  {
   a=document.getElementById("a").value;
   b=document.getElementById("b").value;
   c=a+b;
   document.getElementById("c").value=c;
}
 </script>
</head>
<body>
 <input type="text" id="a">
 <input type="text" id="b">
 <br><br>
 <input type="text" id="c" disabled=disabled>
 <input type="button" value="click" onclick="demo();">
</body>
</html>

Some programs of php

<!DOCTYPE html>
<html>
<head>
 <meta charset="utf-8">
 <meta name="viewport" content="width=device-width, initial-scale=1">
 <title>IICS</title>
</head>
<body>
 <u><center><h1>PROGRAMS OF PHP</h1></center></u>
 <h2>FIND ODD EVEN NUMBER</h2>
 <form method="post">
  Enter a Number:
  <input type="number" name="number">
  <input type="submit" name="submit">
 </form>
<?php
if ($_POST) {
 // code...
 $number=$_POST['number'];
 if (($number%2)==0) {
  // code...
 echo "$number is an Even number";
}
else{
 echo "$number is ODD number";
}
}
?>
<hr>
<h2>AGE DISCOUNT</h2>
<font size="4"><b>Condition :)</b></font><br>
<b>When your age is above 60 we provide discounts on payment otherwise no changes</b>
<br>
1.<br><?php
$age=65;
$amount=800;
if($age>=60)
{
 echo "Age is=".$age;
 echo"<br>Total Amount=".$amount;
 echo"<br>Amount with discount="
 .($amount-($amount/10));
}
 else
 {
  echo"total amount=" .$amount;
  echo "<br>Amount with no discount";
 }
?><br>
<br>2.<br><?php
$age=55;
$amount=1200;
if($age>=60)
{
 echo "Age is=".$age;
 echo"<br>Total Amount=".$amount;
 echo"<br>Amount with discount="
 .($amount-($amount/10));
}
 else
 {
  echo "Age is=".$age;
  echo"<br>total amount=" .$amount;
  echo "<br>Amount with no discount=".$amount;
 }
?><hr>
<h2>PRINT SUM VALUES</h2>
<?php
$a = 20;
$b = 20;
$c=$a+$b;
echo"a = ".$a."";
echo "<br>b = ".$b;
echo"<br>a+b= ".($c);
//echo ($c."<br>");
?>
<hr>
<h2>PRINT MINUS VALUES</h2>
<?php
$a = 90;
$b = 70;
$c=$a-$b;
echo"a = ".$a."";
echo "<br>b = ".$b;
echo"<br>a-b= ".($c);
//echo ($c."<br>");
?><hr>
<h2>PRINT MULTIPLY VALUES</h2>
<?php
$a = 12;
$b = 7;
$c=$a*$b;
echo"a = ".$a."";
echo "<br>b = ".$b;
echo"<br>a*b= ".($c);
//echo ($c."<br>");
?><hr>
<h2>PRINT DIVIDE VALUES</h2>
<?php
$a = 66;
$b = 6;
$c=$a/$b;
echo"a = ".$a."";
echo "<br>b = ".$b;
echo"<br>a/b= ".($c);
//echo ($c."<br>");
?><hr>
<h2>FIND ODD EVEN NUMBER</h2>
<?php
$a = 2;
if ($a%2==0) {
    // code...
    echo "even";
    }
    else{
     echo "odd";
    }
?>
<hr> 
<h2>TABLE PRINT</h2>
<DIV id=table>
<?php

$a=2;
$b=1;
echo "2*1=".($a*$b."<br>");

$a=2;
$b=2;
echo "2*2=".($a*$b."<br>");

$a=2;
$b=3;
echo "2*3=".($a*$b."<br>");

$a=2;
$b=4;
echo "2*4=".($a*$b."<br>");

$a=2;
$b=5;
echo "2*5=".($a*$b."<br>");

$a=2;
$b=6;
echo "2*6=".($a*$b."<br>");

$a=2;
$b=7;
echo "2*7=".($a*$b."<br>");

$a=2;
$b=8;
echo "2*8=".($a*$b."<br>");

$a=2;
$b=9;
echo "2*9=".($a*$b."<br>");

$a=2;
$b=10;
echo "2*10=".($a*$b."<br>");
?>
</DIV>

</body>
</html>

Calculator js

<!DOCTYPE html>  
<html lang = "en">  
<head>  
<title> JavaScript Calculator </title>  
  
<style>  
h1 {  
    text-align: center;  
    padding: 23px;  
    background-color: skyblue;  
    color: white;  
    }  
  
#clear{  
width: 270px;  
border: 3px solid gray;  
    border-radius: 3px;  
    padding: 20px;  
    background-color: red;  
}  
  
.formstyle  
{  
width: 300px;  
height: 530px;  
margin: auto;  
border: 3px solid skyblue;  
border-radius: 5px;  
padding: 20px;  
}  
  
  
  
input  
{  
width: 20px;  
background-color: green;  
color: white;  
border: 3px solid gray;  
    border-radius: 5px;  
    padding: 26px;  
    margin: 5px;  
    font-size: 15px;  
}  
  
  
#calc{  
width: 250px;  
border: 5px solid black;  
    border-radius: 3px;  
    padding: 20px;  
    margin: auto;  
}  
  
</style>  
  
</head>  
<body>  
<h1> Calculator Program in JavaScript </h1>  
<div class= "formstyle">  
<form name = "form1">  
  
  <input id = "calc" type ="text" name = "answer"> <br> <br>  
  
  <input type = "button" value = "1" onclick = "form1.answer.value += '1' ">  
  <input type = "button" value = "2" onclick = "form1.answer.value += '2' ">  
  <input type = "button" value = "3" onclick = "form1.answer.value += '3' ">  
   <input type = "button" value = "+" onclick = "form1.answer.value += '+' ">  
  <br> <br>  
    
  <input type = "button" value = "4" onclick = "form1.answer.value += '4' ">  
  <input type = "button" value = "5" onclick = "form1.answer.value += '5' ">  
  <input type = "button" value = "6" onclick = "form1.answer.value += '6' ">  
  <input type = "button" value = "-" onclick = "form1.answer.value += '-' ">  
  <br> <br>  
    
  <input type = "button" value = "7" onclick = "form1.answer.value += '7' ">  
  <input type = "button" value = "8" onclick = "form1.answer.value += '8' ">  
  <input type = "button" value = "9" onclick = "form1.answer.value += '9' ">  
  <input type = "button" value = "*" onclick = "form1.answer.value += '*' ">  
  <br> <br>  
    
    
  <input type = "button" value = "/" onclick = "form1.answer.value += '/' ">  
  <input type = "button" value = "0" onclick = "form1.answer.value += '0' ">  
    <input type = "button" value = "." onclick = "form1.answer.value += '.' ">  
    
  <input type = "button" value = "=" onclick = "form1.answer.value = eval(form1.answer.value) ">  
  <br>   
  
  <input type = "button" value = "Clear All" onclick = "form1.answer.value = ' ' " id= "clear" >  
  <br>   
    
</form>  
</div>  
</body>
</html>

Gaming Website

 <!DOCTYPE html>

<html>

<head>

 <meta charset="utf-8">

 <meta name="viewport" content="width=device-width, initial-scale=1">

 <title>manish</title>

 <script src="jquery-3.6.0.min.js"></script>

 <script>

  $(document).ready(function(){

   $("#flip").click(function(){

    $("#panel").slideToggle();

   });

  });

 </script>

 <script>

  $(document).ready(function(){

   $("#flip1").click(function(){

    $("#panel1").slideToggle();

   });

  });

 </script>

 <script>

  $(document).ready(function(){

   $("#flip2").click(function(){

    $("#panel2").slideToggle();

   });

  });

 </script>

 <script>

  $(document).ready(function(){

   $("#flip3").click(function(){

    $("#panel3").slideToggle();

   });

  });

 </script>

 <script>

  $(document).ready(function(){

   $("#flip4").click(function(){

    $("#panel4").slideToggle();

   });

  });

 </script>

 <style>

  #aj

 {

  border: 1px; height: 70px; width: 100%;

  background-color: black;


  }


  #panel ,#flip

  {

   border-radius: 20px;

   box-shadow: 0 0 15px white;

   padding: 5px;

   text-align: center;

   background: red;

   border: 2px solid black;

   height: 30px;

   width: 100px;

   margin-left: 500px;

   margin-top: -40px;


  }

  #panel

  {

   padding: ;

   display: none;

   height: 155px;

   margin-left: -5px;

   margin-top: 20px;

  }


  #panel1 ,#flip1

  {

   border-radius: 20px;

   box-shadow: 0 0 15px white;

   padding: 5px;

   text-align: center;

   background: red;

   border: 2px solid black;

   height: 30px;

   width: 100px;

   margin-left: 650px;

   margin-top: -43px;


  }

  #panel1

  {

   padding: ;

   display: none;

   height: 155px;

   margin-left: -5px;

   margin-top: 20px;

  }

  #panel2 ,#flip2

  {

   border-radius: 20px;

   box-shadow: 0 0 15px white;

   padding: 5px;

   text-align: center;

   background: red;

   border: 2px solid black;

   height: 30px;

   width: 100px;

   margin-left: 800px;

   margin-top: -43px;


  }

  #panel2

  {

   padding: ;

   display: none;

   height: 155px;

   margin-left: -5px;

   margin-top: 20px;

  }

  #panel3 ,#flip3

  {

   border-radius: 20px;

   box-shadow: 0 0 15px white;

      border-radius: 20px;

      box-shadow: 0 0 15px white;

   padding: 5px;

   text-align: center;

   background: red;

   border: 2px solid black;

   height: 30px;

   width: 100px;

   margin-left: 950px;

   margin-top: -42px;


  }

  #panel3

  {

   padding: ;

   display: none;

   height: 155px;

   margin-left: -5px;

   margin-top: 20px;

  }

#panel4 ,#flip4

  {

   border-radius: 20px;

   box-shadow: 0 0 15px white;

   padding: 5px;

   text-align: center;

   background: red;

   border: 2px solid black;

   height: 30px;

   width: 100px;

   margin-left: 1100px;

   margin-top: -43px;


  }

  #panel4

  {

   padding: ;

   display: none;

   height: 155px;

   margin-left: -5px;

   margin-top: 20px;

  }


 </style>

</head>

<body bgcolor="cyan">

 <div id="aj">

  <font style="text-shadow: 0 0 40px blue;

   margin-left: 30px;

   margin-right: 30px;" size="7" color="blue">GAMING WEBSITE

 </font>


<div id="flip" style="font-size: 20PX;">HOME

<div id="panel">hello! <br> hello <br> hello <br>hello<br> hello <br> hello <br>hello


</div>

</div>

<div id="flip1" style="font-size:20PX;">ABOUT US

<div id="panel1">hello! <br> hello <br> hello <br>hello<br> hello <br> hello <br>hello

</div>

</div>

<div id="flip2" style="font-size:20PX;">PRODUCT

<div id="panel2">hello! <br> hello <br> hello <br>hello<br> hello <br> hello <br>hello

</div>

</div>


<div id="flip3" style="font-size:20PX;">GAMING

<div id="panel3">hello! <br> hello <br> hello <br>hello<br> hello <br> hello <br>hello

</div>

</div>

<div id="flip4" style="font-size:20PX;">CONTACT

<div id="panel4">hello! <br> hello <br> hello <br>hello<br> hello <br> hello <br>hello

</div>

</div>

</div>

</body>

</html>