Skip to content
This repository was archived by the owner on Oct 5, 2020. It is now read-only.
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
90 changes: 90 additions & 0 deletions index-style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
body {
padding: 0;
margin: 0;
font-size: 12px;
}

/*========================| BACKGROUND STYLES |========================*/

#background-1{
position: fixed;
height:100%;
width: 100%;
clip-path: polygon(87% 0, 100% 0, 100% 98%, 0 100%, 54% 75%);
background-color:#042d70;
}
#background-2{
position: fixed;
height:100%;
width: 100%;
clip-path: polygon(67% 80%, 100% 0, 100% 100%, 0% 100%);
background-color:#0d47a5;
}
#background-3{
position: fixed;
height:100%;
width: 100%;
clip-path: polygon(0 0, 26% 0, 19% 20%, 0 27%);
background-color:#042d70;
}
#background-4{
position: fixed;
height:100%;
width: 100%;
clip-path: polygon(0 0, 21% 0, 18% 19%, 0 26%);
background-color:#0d47a5;
}


/*=========================| List Style And Positioning |=========================*/


ol{
position: absolute;
width: 100%;
height: 100%;
top:50%;
transform: translateY(-50%);
}
ol li{
position: absolute;
list-style-type: none;
display: inline-block;
text-align: center;
padding:3em 1em;
margin:auto 2.5%;
width:25%;
letter-spacing: 8px;
transform: translate(-50%,-50%);
background-image:linear-gradient(to bottom,#3c7ee8,#95BEB6);
border:2px solid #8eb2ed;

border-radius: 25px;
transition: all .5s;
}

ol li a{
text-decoration: none;
font-weight:bold;
padding: 1.5em;
font-size: 24px;
color: #dedfe0;
}

ol li:nth-child(1){
top:10%;
left:50%;

}
ol li:nth-child(2){
top:40%;
left:30%;

}
ol li:nth-child(3){
top:70%;
left:15%;
}
ol li:hover{
transform:translate(-50%,-50%) scale(1.2,1.2);
}
8 changes: 8 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,18 @@
<html>
<head>
<title>Web Development</title>
<link rel="stylesheet" href="index-style.css">
</head>
<body>

<div id="background-1"></div>
<div id="background-2"></div>
<div id="background-3"></div>
<div id="background-4"></div>

<ol>
<li><a href= "Snake_FOoDie/Welcome.html" target="_blank">Snake Game</a></li>
<li><a href= "madz/home.html" target="_blank">Basic Maths</a></li>
<li><a href= "orderTrack/index.html" target="_blank">Assignments</a></li>
<li><a href= "UI_Design/index.html" target="_blank">Design_Style</a></li>
</ol>
Expand Down
45 changes: 45 additions & 0 deletions madz/default.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" type="text/css" href="frames.css">
<style>
input{width:35px}

</style>
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css">

<!-- jQuery library -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>

<!-- Popper JS -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js"></script>

<!-- Latest compiled JavaScript -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js"></script>
<title>Calculate</title>
<script src="http://code.jquery.com/jquery-latest.js"></script>
</head>
<body>
<header>
<h1 align="center">MATHS - MADE EAZY </h1><br>
</header>
<br /><br /><br />
<div class="container-fluid">
<fieldset class="scheduler-border">
<legend class="scheduler-border">
&nbsp; INFORMATION
</legend>
<h5>
PLEASE SELECT A TOPIC FROM THE DOCK GIVEN BELOW OR SEARCH IT ON THE TOP :-)
<br />
</h5>
</fieldset>



</body>
</html>
182 changes: 182 additions & 0 deletions madz/fact.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,182 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" type="text/css" href="frames.css">
<link rel="stylesheet" href="jquery-ui\jquery-ui.css">
<link rel="stylesheet" href="jquery-ui\jquery-ui.theme.css">
<link rel="stylesheet" href="jquery-ui\jquery-ui.structure.css">
<style>
input{width:35px;z-index: 100}
#n{position: absolute;top:75px;left:305px}
</style>
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css">

<!-- jQuery library -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>

<!-- Popper JS -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js"></script>

<!-- Latest compiled JavaScript -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js"></script>
<title>Calculate</title>
<script src="http://code.jquery.com/jquery-latest.js"></script>

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
</head>
<body>
<header>
<h1 align="center">FACTORIAL</h1><br>
</header>

<div class="container-fluid">
<fieldset class="scheduler-border">
<legend class="scheduler-border">
&nbsp; INFORMATION
</legend>
<h5>
1.Enter the Numbers(integers) inside given spaces or else the value will be taken as 0.
<br />
2.Press Enter after each input to see expression on output.(Optional).
<br />
3.After passing values, click on Calculate Button to find roots(if they exist).
<br />
4.Press Reset button to clear the fields and reset output box.
<br />
</h5>
</fieldset>


<div id="tab">
<ul>
<li><a href="#fact">FACTORIAL</a></li>
<li><a href="#p">PERMUTATIONS</a></li>
<li><a href="#c">COMBINATIONS</a></li>
</ul>

<div id="fact">
<div class="row">
<div class="col-md-6 border-right ip" align="center" >
<h2 align="center">INPUT</h2>
<input type="number" placeholder="0" id="f" value="f"> <i class="fa fa-exclamation fa-2x" aria-hidden="true"></i>
<br /><br />
<button id="fb">Calculate</button>
<button><a href="fact.html">Reset</a></button>
</div>

<div class="col-md-6 op">
<h2 align="center">OUTPUT</h2>
<p id="fo">

</p>
</div>
</div>
</div>
<div id="p">

<div class="row">
<div class="col-md-6 border-right ip" align="center" >
<h2 align="center">INPUT</h2>

<h1 style="margin-top:-30px;margin-left:110px;margin-bottom:-40px; font-size:10em;">P</h1>
<input type="number" placeholder="n" id="n" value="n">
<input type="number" placeholder="r" id="r" value="r" style="margin-left:180px;">
<br /><br />
<button id="pb">Calculate</button>
<button><a href="fact.html">Reset</a></button>
</div>

<div class="col-md-6 op">
<h2 align="center">OUTPUT</h2>
<p id="po" >

</p>
</div>
</div>
</div>


<div id="c">
<div class="row">
<div class="col-md-6 border-right ip" align="center" >
<h2 align="center">INPUT</h2>

<h1 style="margin-top:-30px;margin-left:80px;margin-bottom:-40px; font-size:10em;">C</h1>
<input type="number" placeholder="n" id="n" value="n">
<input type="number" placeholder="r" id="r" value="r" style="margin-left:180px;">
<br /><br />
<button id="cb">Calculate</button>
<button><a href="fact.html">Reset</a></button>
</div>

<div class="col-md-6 op">
<h2 align="center">OUTPUT</h2>
<p id="co" >

</p>
</div>
</div>



</div>


</div>

<script src="jquery-ui\jquery-ui.js"></script>
<script>

function factorial(n){
var fact=1;
var i = 2;
if(n<0){return(0);}
else{
while(i<=n){
fact=fact*i;
i++;
}
return(fact);
}
}
$(document).ready(function(){
$("#tab").tabs();



$("#fb").click(function(){
var n= $("#f").val();
if(factorial(n)==0){var text = "SORRY! NO NEGATIVE NUMBERS";}
else{var text= n + " ! = " + factorial(n) ;}

$("#fo").text(text);
});

$("#cb").click(function(){
var n= $("#n").val();
var r= $("#r").val();
if(factorial(n)==0){var text = "SORRY! NO NEGATIVE NUMBERS";}
else{var text= "Value of C (n,r) is " + factorial(n)/(factorial(n-r));}

$("#co").text(text);
});

$("#pb").click(function(){
var n= $("#n").val();
var r= $("#r").val();
if(factorial(n)==0){var text = "SORRY! NO NEGATIVE NUMBERS";}
else{var text= "Value of P (n,r) is " + factorial(n)/(factorial(n-r)*factorial(r));}

$("#po").text(text);
});

});

</script>
</div>
</body>
</html>
22 changes: 22 additions & 0 deletions madz/frames.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
header {
height: 5em;
width: 100%;
background-color: #3e095e;
color: white; }

fieldset.scheduler-border {
border: 2px solid brown !important;
width: inherit;
padding: 30px 60px;
border-bottom: none;
margin: 50px 0px; }
fieldset.scheduler-border legend.scheduler-border {
width: auto !important;
border: none; }

.ip h2 {
padding: 20px 40px;
margin: 10px 20px; }
.op h2 {
padding: 20px 40px;
margin: 10px 20px; }
Loading