Skip to content

Commit 6e1da04

Browse files
committed
Change paper type selecting link to button
1 parent 4d7f35d commit 6e1da04

2 files changed

Lines changed: 9 additions & 7 deletions

File tree

searchapp/static/home.css

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,9 @@
2020
.button{
2121
outline:none;
2222
}/* Style the links inside the navigation bar */
23-
.button a {
23+
.button button{
2424
outline:0;
25+
background-color: transparent;
2526
font-weight:800;
2627
color:black;
2728
text-align: center;
@@ -37,10 +38,11 @@
3738
white-space: -o-pre-wrap; /* Opera 7 */
3839
word-wrap: break-word;
3940
}
40-
.button a:hover {
41+
.button button:hover {
4142
color: black;
43+
cursor: pointer;
4244
}
43-
.button a:active{
45+
.button button:active{
4446
outline:0;
4547
border:none;
4648
-moz-outline-style:none;
@@ -50,4 +52,4 @@
5052
background:black;
5153
color:white;
5254
border-radius:5px;
53-
}
55+
}

searchapp/templates/home.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,19 +21,19 @@
2121
</div>
2222
<div class="ui grid">
2323
<div class="four wide column">
24-
<div class="button" id="test"><a href="" onclick="set_paper_type('test'); return false;" class="button">Test Paper</a>
24+
<div class="button" id="test"><button onclick="set_paper_type('test')">Test Paper</button>
2525
<br>
2626
<br>
2727
A Test Paper is a worksheet in the format of the board question paper.Great for pre-board preparation and
2828
to practice all the question types. The fellow needs to choose which chapters to test.
2929
</div></div>
30-
<div class="four wide column" id="generic"><div class="button"><a href="" onclick="set_paper_type('generic'); return false;" class="button">Generic Paper</a>
30+
<div class="four wide column" id="generic"><div class="button"><button onclick="set_paper_type('generic')">Generic Paper</button>
3131
<br>
3232
<br>
3333
A Generic Paper is designed as per the fellow requirements. You can choose the chapters
3434
and the number of questions of each type. Great for specific question type and differentiated practice.
3535
</div></div>
36-
<div class="four wide column" id="customized"><div class="button"><a href="" onclick="set_paper_type('customized'); return false;" class="button">Customized Paper</a>
36+
<div class="four wide column" id="customized"><div class="button"><button onclick="set_paper_type('customized')">Customized Paper</button>
3737
<br>
3838
<br>
3939
A customized paper is generated based on the performance of each student. The fellow uploads the tracker of the class,

0 commit comments

Comments
 (0)