-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsortPageScience.html
136 lines (109 loc) · 4.75 KB
/
sortPageScience.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css" media="screen">
<link rel="stylesheet" href="css/sortPage.css" media="screen">
<script src = "js/sortPage.js"></script>
<script type = "text/javascript" src = "pollsData.json"></script>
</head>
<title>Featured</title>
<body onload = "scienceLoad()">
<header>
<!-- <img src ="images/PollUp.png" style="width:40px;height:40px;">-->
<h1><a href="mainPage.html">P</a></h1>
<ul class="header-list-left">
<li class="header-item"><a href="pollCreation.html">Create</a></li>
<li class="header-item"><a href="sortPage.html">Featured</a></li>
<li class="header-item"><a href="dashboard.html">Dashboard</a></li>
</ul>
<ul class="header-list-right">
<div class="box">
<div class="container-1">
<span class="icon"><i class="fa fa-search"></i></span>
<input type="search" id="headerSearch" placeholder="Search polls..."></input>
</div>
</div>
<div class="dropdown">
<button onclick="myFunction()" class="dropbtn"><img src ="images/temp_account_icon.png" style="width:30px;height:30px;"></button>
<div id="myDropdown" class="dropdown-content">
<a href="#">Profile</a>
<a href="#">Message</a>
<a href="#">Your polls</a>
<a href="#">Settings</a>
<a href="#">Log out</a>
</div>
</div>
</ul>
</header>
<main>
<div class = "container">
<input type = "text" id = "bodySearch" placeholder = "Search..."></input>
<button class = "sort" data-sort = "name" onclick = "sortByNew()">
Sort by new
</button>
<button class = "sort" data-sort = "name" onclick = "sortByTrending()">
Sort by trending
</button>
<button class = "sort" data-sort = "name" onclick = "sortByPopular()">
Sort by popular
</button>
<div class = "genreDropdown">
<button onclick="genreSort()" class="genreDropbtn">Science ↓</button>
<div id="genreMyDropdown" class="genre-dropdown-content">
<a href = "sortPageScience.html">Science</a>
<a href = "sortPageTech.html">Tech</a>
<a href = "sortPageMusic.html">Music</a>
<a href = "sortPagePolitics.html">Politics</a>
</div>
</div>
<section class = "result">
<img src = "images/stock.jpg" alt="HTML5 Icon" style="width:128px; height: 128px; padding: 10px; align: left; border-right: 2px solid #e6e6e6;">
<div class = "pollHeader">
<h2 id = "h1">Sample question for poll</h2>
</div>
</section>
<section class = "result">
<img src = "images/stock.jpg" alt="HTML5 Icon" style="width:128px; height: 128px; padding: 10px; align: left; border-right: 2px solid #e6e6e6;">
<div class = "pollHeader">
<h2 id = "h2">Sample question for poll</h2>
</div>
</section>
<section class = "result">
<img src = "images/stock.jpg" alt="HTML5 Icon" style="width:128px; height: 128px; padding: 10px; align: left; border-right: 2px solid #e6e6e6;">
<div class = "pollHeader">
<h2 id = "h3">Sample question for poll</h2>
</div>
</section>
<section class = "result">
<img src = "images/stock.jpg" alt="HTML5 Icon" style="width:128px; height: 128px; padding: 10px; align: left; border-right: 2px solid #e6e6e6;">
<div class = "pollHeader">
<h2 id = "h4">Sample question for poll</h2>
</div>
</section>
</div>
</main>
<footer>
<div class="footer-image"><img src ="images/PollUp.png" style="width:50px;height:50px;"><p>POLLUP</p></div>
<div class = "footerLists">
<div class="footer-list-left">
<div id="footer-title">© 2016 PollUp</div>
<ul class = "leftList">
<li><a href = "about.html">About</a></li>
<li><a href = "blog.html">Blog</a></li>
</ul>
</div>
<div class="footer-list-right">
<div id="footer-title">Support</div>
<ul class = "rightList">
<li><a href = "report.html">Report a Poll</a></li>
<li><a href = "contact.html">Contact Us</a></li>
<li><a href = "community_guideliens.html">Community Guidelines</a></li>
<li><a href = "privacy_policy.html">Privacy Policy</a></li>
<li><a href = "terms_of_use.html">Terms of Use</a></li>
</ul>
</div>
</div>
</footer>
</body>
</html>