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

v2.0 #12

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

v2.0 #12

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
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# Papervault
Papervault is a archive of previous year question papers and accompanying website to simplify searching of the archive.

THIS IS WORK_IN_PROGRESS. Actual material goto:
__Hosted at :__ https://iiitkalyanifosc.github.io/papervault/
33 changes: 0 additions & 33 deletions css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -16,32 +16,10 @@ body {
height : 200px;
text-align: center;
}
#querybox {
width : 100%;
text-align: center;
margin : 40px 0px;
}
#logo {
height:200px;
width:200px;
}
#searchbox {
box-sizing: border-box;
margin: 20px 20px 20px 0px;
padding: 10px;
height : 50px;
width : 75%;
background-color: inherit;
font-size:16px;
border : 0px;
font-family: 'Open Sans', sans-serif;
border : solid #34495e 2px;
outline : none;

}
#searchbox:focus{
background-color:white;
}
#btnsearch {
box-sizing: border-box;
margin:10px 0px;
Expand Down Expand Up @@ -169,17 +147,6 @@ body {
width: 90%;
padding:10px 5px;
}
#searchbox {
font-size:13px;
width:90%;
margin:15px 5px;
}
#querybox {
margin:20px 0px;
}
#btnsearch {
height : 40px;
}
#footer {
font-size: 11px;
}
Expand Down
124 changes: 124 additions & 0 deletions css/style2.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,124 @@
a:hover, a:visited, a:link, a:active{
text-decoration: none;
color: black;
}

.text-auxilary{
font-style: italic;
color: white;
}

.text-auxilary-fade{
font-style: italic;
color: #777777;
}

.to-right{
float: right;
}

#filter{
margin: 10px;
}


#searchbtn{
text-decoration: none;

}

#searchinfo{
margin-bottom: 20px;
}

.card{
border: solid 1px #cac9c9;
border-radius: 10px;
padding: 10px;
}

@media (min-width: 768px){
.card{
margin: 10px;
width: 20rem;
height: 20rem;
float: left;
}

.card{
position:relative;
}
.card-title{
width: 180px;
height: 55px;
overflow: hidden;
text-overflow: ellipsis;
}
.card-link{
margin-top: 20px;
position: absolute;
bottom: 10px;
right: 10px;
text-align: center;
}
}
@media (max-width: 768px){
.card{
margin-top: 10px;
}

.card-title{
margin : 0px;
margin-bottom: 10px;
}

.card-link{
float: right;
}
}


.panel-heading{
background: #2980b9;
color: white;
}

.panel-group{
padding: 0px;
}

.nav >li {
float: right;
}

.navbar{
background: black;
border-radius: 0px;
border: none;
}

.nav-btn{
padding: 15px 0;
color: #c2c2c7;
}
.ellipse-box{
border-radius: 50px;
padding: 20px;
margin: 0px;
}

/* enable absolute positioning */
.inner-addon {
position: relative;
}
/* style icon */
.inner-addon .glyphicon {
position: absolute;
padding: 13px;
}
/* align icon */
.left-addon .glyphicon { left: 0px;}
.right-addon .glyphicon { right: 20px;}
/* add padding */
.left-addon input { padding-left: 30px; }
.right-addon input { padding-right: 30px; }
163 changes: 140 additions & 23 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,46 +2,163 @@
<html>
<head>
<meta charset="utf-8"/>
<link href="https://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet">
<script defer src="https://use.fontawesome.com/releases/v5.0.10/js/all.js" integrity="sha384-slN8GvtUJGnv6ca26v8EzVaR9DC58QEwsIk9q1QXdCU8Yu8ck/tL/5szYlBbqmS+" crossorigin="anonymous"></script>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel='stylesheet' type='text/css' href="css/style.css">

<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" >
<!--jQuery library-->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<!--Latest compiled and minified JavaScript-->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>

<link href="https://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet">
<link rel='stylesheet' type='text/css' href="css/style.css">
<link rel='stylesheet' type='text/css' href="css/style2.css">
<script defer src="https://use.fontawesome.com/releases/v5.0.10/js/all.js" integrity="sha384-slN8GvtUJGnv6ca26v8EzVaR9DC58QEwsIk9q1QXdCU8Yu8ck/tL/5szYlBbqmS+" crossorigin="anonymous"></script>
<script src="js/script.js"></script>
<script src="js/metadata.js"></script>
<script src="js/files.js"></script>
</head>
<body>
<form id="frmpaper" action="showpaper.html" method="get">

<!--form to send file name to view-->
<form id="openPaper" action="showpaper.html" method="get">
<input type="text" name="urls" style="display:none;"/>
<input type="text" name="dir" style="display:none;"/>
</form>

<!--header here-->
<div id="header">
<a onclick="location.reload()" href="#"><img src="logo.png" id="logo" /></a>
</div>
<div id="querybox">
<input type="text" id="searchbox" placeholder="Type the name of the course here" />
<button type="button" id="btnsearch" onclick="dosearch(0)">Search</button>
<br/>
<a id="showall" href="#" onclick="dosearch(1)">View All Question Papers</a>
</div>
<div id="recentbox">
</div>
<div id="resultbox">
<a onclick="location.reload(true)" href="#">
<img src="logo.png" id="logo" /></a>
</div>

<div id="contributers">
<button type="button" name="button" onclick="showresult()">click here for the list of people who maintain this website.</button>
<!--navbar-->
<div class="navbar navbar-inverse">
<div class=""row">
<div class="col-md-7 col-md-offset-3">
<ul class="nav navbar-nav navbar-right">
<li><a href="mailto:[email protected]?subject=FOSC PAPERVAULT &body=Kindly use these papers";><span class="glyphicon glyphicon-open"></span> Upload papers</a></li>
<li class="nav-btn text-auxilary hidden-sm hidden-xs">got any papers? </li>
</ul>
</div>
</div>
</div>
<div id="contributer-result" class="not-active">
<ul style="list-style: none;">
<li><a href="https://github.com/anubhavp28" target="_blank">Anubhav Patel</i></a></li>
<li><a href="https://github.com/zeus0789" target="_blank">Abhishek Tiwari</i></a></li>
</ul>

<!--contents start here-->
<div class="container">
<!--searchbar-->
<div class="row">
<div id="querybox" href="#">
<div class="form-group">
<div class="col-md-8 col-md-offset-2 qbox inner-addon right-addon">
<input id="search" class="form-control ellipse-box" placeholder="Type course namem course id eg. cs101" maxlength="16" type="text"/>
<div id="searchbtn" onclick="doSearch(year=0, kind ='')"><a href="#"><i class = "glyphicon glyphicon-search"></i></a></div>
</div>
</div>
</div>
</div>

<!--filter radio btns-->
<div class="row">
<div class="col-md-8 col-md-offset-3">
<div id="filter" class="form-group">
<span class="text-auxilary-fade hidden-xs hidden-sm">search filters: &nbsp &nbsp &nbsp</span>
<label class="radio-inline"><input value="" type="radio" onclick="doSearch(year=0, kind ='')" name="optradio" checked>All</label>
<label class="radio-inline"><input value='mid' type="radio" onclick="doSearch(year=0, kind ='mid')" name="optradio">Midsem</label>
<label class="radio-inline"><input value='end' type="radio" onclick="doSearch(year=0, kind ='end')" name="optradio">Endsem</label>
<label class="radio-inline"><input value='clt'type="radio" onclick="doSearch(year=0, kind ='clt')" name="optradio">classtest</label>
</div>
</div>
</div>

<!--search reutrn info-->
<div class="row">
<div class="col-md-8 col-md-offset-2 col-sm-offset-3">
<div id="searchinfo">
<!--information about the search inserted here-->
</div>
</div>
</div>

<!--year wise collapsables-->
<div class="panel-group col-md-10 col-md-offset-1" id="yearGroup">
<div class="panel panel-default">
<a data-toggle="collapse" data-parent="#yearGroup" href="#collapse1">
<div class="panel-heading">
<h2 class="panel-title">
<span>1st Year Question Papers</span>
<span id="collapse1Count" class="text-auxilary to-right">(0)</span>

</h2>
</div>
</a>
<div id="collapse1" class="panel-collapse collapse in">
<div id="searchResults_1" class="panel-body">
<!--search result be inserted here-->
</div>
</div>
</div>
<div class="panel panel-default">
<a data-toggle="collapse" data-parent="#yearGroup" href="#collapse2">
<div class="panel-heading">
<h2 class="panel-title">
<span>2nd Year Question Papers</span>
<span id="collapse2Count" class="text-auxilary to-right">(0)</span>

</h2>
</div>
</a>
<div id="collapse2" class="panel-collapse collapse">
<div id="searchResults_2" class="panel-body">
<!--search result be inserted here-->
</div>
</div>
</div>
<div class="panel panel-default">
<a data-toggle="collapse" data-parent="#yearGroup" href="#collapse3">
<div class="panel-heading">
<h2 class="panel-title">
<span>3rd Year Question Papers</span>
<span id="collapse3Count" class="text-auxilary to-right">(0)</span>

</h2>
</div>
</a>
<div id="collapse3" class="panel-collapse collapse">
<div id="searchResults_3" class="panel-body">
<!--search result be inserted here-->
</div>
</div>
</div>
<div class="panel panel-default">
<a data-toggle="collapse" data-parent="#yearGroup" href="#collapse4">
<div class="panel-heading">
<h2 class="panel-title">
<span>4th Year Question Papers</span>
<span id="collapse4Count" class="text-auxilary to-right">(0)</span>

</h2>
</div>
</a>
<div id="collapse4" class="panel-collapse collapse">
<div id="searchResults_4" class="panel-body">
<!--search result be inserted here-->
</div>
</div>
</div>
</div>
</div>





<div class="foot">
<p><a href="https://github.com/IIITKalyaniFOSC"><i class="fab fa-github fa-2x"></i></a></p>
<p><a href="https://github.com/IIITKalyaniFOSC"><i class="fab fa-facebook fa-2x"></i></a></p>
<p><a href="https://github.com/IIITKalyaniFOSC"><i class="fab fa-slack fa-2x"></i></a></p>
<p><a href="https://github.com/IIITKalyaniFOSC"><i class="fab fa-medium fa-2x"></i></a></p>
<p style="display: block; padding:0;">&copy; by IIITKalyaniFOSC. </p>
<p style="display: block; padding:0;">&copy; IIITKalyaniFOSC. </p>
</div>
</body>
</html>
Loading