Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Task#2-IIB2019027 #25

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added Task - 2/IIB2019027/24-hours.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
130 changes: 130 additions & 0 deletions Task - 2/IIB2019027/clock.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,130 @@
/***************body style ********************/
.bodybackground2{
background-color: #ff1122;
transition: 0.7s ease;
}
body{
background-color: rgb(250,0,0);
}
.bodybackground1{
background-color: rgb(5,51,25);
transition: 0.7s ease;
}
/*********************** navbar style **************************/
.format{
opacity: 0;
}
.padbutton{
padding-left: 10%;
}
.navColor{
background-color:yellow;
transition: 0.3s ease;
}
.navColor1
{
background-color: #45ff77;
transition: 0.3s ease;
}
.resizer{
color: #ff1122;
background-color: #ff1122;
}
/************** #for_js *****************/
.disableD{
font-size: 0;
opacity: 0;
}
/*************text things*********************/
.text
{
background-color: rgb(250,0,0);
font-size: 3vw;
color: yellow;
transition: 0.9s ease;
margin-left: 52px;
margin-right: 35%;
transform: translateY(-50%);
border: 20px groove #B031ff;
border-radius: 0px 30px 0px 33px;
opacity: 0;
}
.styl
{
color: rgb(12,244,23);
font-size: 5vw;
text-align: center;
padding-top: 25%;
padding-bottom: 40px;
width: 100%;
height: 0px;
}
.default{
font-size: 5vw;
top: 10%;
position: absolute;
color: #fff;
}
.defaultOff{
width: 0;
height: 0;
opacity: 0;
}
/********toggle button **********/
.button {
background-color: rgb(0,3,250);
border: none;
color: white;
padding: 15px;
border-radius: 50%;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
}
.button1{
background-color: #4CAF50;
color: white;
}
.button2{
background-color: indigo;
color: black;
}
/*************************** side bar style *********************************/
.side-bar
{
position: fixed;
top: 30%;
-webkit-transform: translateY(-50%);
-ms-transform: translateY(-50%);
transform: translateY(-50%);
background-color: rgb(0,250,0);
opacity: 0;
}
.side-bar i {
display: block;
text-align: center;
padding: 16px;
transition: all 0.3s ease;
font-size: 20px;
}
.side-bar i:hover {
background-color: aqua;
}
/*****************************analog class css*******************************/
.analogclock{
background-color: #546657;
top: 25%;
left: 35%;
position: absolute;
opacity: 0;
border-radius:50%;
}
.disableAnalog{
width: 0px;
height: 0px;
opacity: 0;
}
/***********
Copyright @ shahid siddiqui ..||2020|| #clockStylesheet
****************/
78 changes: 78 additions & 0 deletions Task - 2/IIB2019027/clock.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
<!DOCTYPE html>
<html>
<head>
<!-- head component --------->
<title>My clock page</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons"
rel="stylesheet">
<link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
<link rel="icon" type="image/x-icon" href="24-hours.png">
<link rel="stylesheet" type="text/css" href="clock.css">
</head>
<body id="bodyback">
<!-- designing navigation bar------------------------------>
<nav class="navbar navbar-default navbar-fixed-top navColor" id="navB">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<p class="navbar-brand font1">
<button class="button" id="digital">Digital Clock</button>
<button class="button" id="analog">Analog Clock</button>
</p>
</div>
<div id="navbar" class="collapse navbar-collapse">
<ul class="nav navbar-nav navbar-right">
<li class="dropdown format" id="formatenable">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Format
<span class="caret"></span></a>
<ul class="dropdown-menu">
<li class="padbutton" onclick="format24()">24-Hour</li>
<li role="separator" class="divider"></li>
<li class="padbutton" onclick="format12()">12-Hour</li>
</ul>
</li>
</ul>
</div>
</nav>
<!-- whole content -------------------------------------------------->
<div class="container">
<div class="styl"><span id="digitalclock"></span></div>
<canvas class="analogclock" id="canvas" width="400" height="400"></canvas>
<div id="defaultText" class="default"><p> Welcome to the world of Clock!<br>Here you can switch
between analog and digital Clock by just clicking on toggle at navbar.
you can also zoom accord to your choice. </p></div>
</div>
<!-- hide able things --------------------->
<div class="text" id="paratext">
<p> Welcome to the world of Clock!<br>Here you can switch
between analog and digital Clock by just clicking on toggle at navbar.
you can also zoom accord to your choice.</p>
</div>
<!-- Designing sidebar ---------------------------------------->
<div class="side-bar" id="sidebar">
<i class="material-icons" id="para">
textsms
</i>
<div id="zoom">
<i class="material-icons" id="zoom_in">
zoom_in
</i>
<i class="material-icons" id="zoom_out">
zoom_out
</i>
</div>
</div>
<!------ scripts ----------------------------------->
<script type="text/javascript" src="clock.js"></script>
<script src="https://code.jquery.com/jquery-2.2.4.js" integrity="sha256-iT6Q9iMJYuQiMWNd9lDyBUStIq/8PuOW33aOqmvFpqI=" crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>

</body>
</html>
Loading