-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle_test.html
More file actions
261 lines (232 loc) · 8.18 KB
/
style_test.html
File metadata and controls
261 lines (232 loc) · 8.18 KB
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
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
<html>
<head>
<!-- GOOGLE ADS -->
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<script>
(adsbygoogle = window.adsbygoogle || []).push({
google_ad_client: "ca-pub-8645810883548961",
enable_page_level_ads: true
});
</script>
<style>
body{
background-color: antiquewhite;
}
.axis {
fill: #333;
stroke: #333;
opacity: .9;
}
.legend rect {
fill:white;
stroke:#333;
opacity:0.8;
}
.article_box
{
background-color: cornflowerblue;
text-align: center;
line-height: 2;
width: 100vw;
height: 500;
position: relative;
padding: 00px;
margin: 0 auto;
box-shadow: 0 0 5px rgba(0, 0, 0, 0.2), inset 0 0 50px rgba(0, 0, 0, 0.1);
}
#article_box1{
margin-top: 84px;
}
.container{
font-size: 32;
padding: 14px;
position: fixed;
top: 0;
width: 100%;
z-index: 2;
}
.box_title{
font-size: 48;
background-color: skyblue;
height: 15%;
line-height: 1.5;
-moz-box-shadow: inset 0 0 20px #333;
-webkit-box-shadow: inset 0 0 20px #333;
box-shadow: inset 0 0 20px #333;
}
.plot_title{
font-size: 20;
background-color: skyblue;
height: 15%;
line-height: 3;
-moz-box-shadow: inset 0 0 20px #333;
-webkit-box-shadow: inset 0 0 20px #333;
box-shadow: inset 0 0 20px #333;
border-top-right-radius: 25px;
border-top-left-radius: 25px;
}
.main_box{
margin-top: 15px;
background-color: cornflowerblue;
width: 100%;
height: 420;
}
.plot_box{
display: inline-block;
background-color: darkslateblue;
width: 44%;
height: 400;
margin-left: 2%;
margin-right: 2%;
-moz-box-shadow: inset 0 0 20px #333;
-webkit-box-shadow: inset 0 0 20px #333;
box-shadow: inset 0 0 20px #333;
border-radius: 25px;
}
.plot_box:hover{
background-color: aqua;
}
img{
padding-top: 20px;
}
.chart_holder {
border-radius: 25px;
box-shadow: "2px 15px 22px lightblue";
}
</style>
<title>Census Data Explorer</title>
<!--d3 utlitys-->
<script src="https://d3js.org/d3.v4.min.js"></script>
<script src="https://d3js.org/topojson.v2.min.js"></script>
<!--
<script src="/Census-Data-Explorer/d3.legend.js"></script>
<script src = "/Census-Data-Explorer/map_with_counties.js"></script>
-->
<!-- map-link page-->
<script src = "./Pages/home_page_map.js"></script>
<!-- Gender diff state plots-->
<script src="./Pages/genderPie2.js"></script>
<script src='./Pages/ed_line_by_state2.js'></script>
<!-- <script src="/d3_testing/Pages/change_title.js"></script>-->
<!-- industy state plots-->
<script src= "./Pages/industry_lines.js"></script>
<script src= "./Pages/indesty_rank_bars.js"></script>
<link rel="stylesheet" href="./Census_Page.css">
<!-- make links to articales/plots-->
<script>
var clear_disply = function () {
document.getElementById("display").style.display = 'none';
}
var make_us_totals = function () {
make_inds_lines("All");
make_inds_bars("All");
}
var make_county_map = function () {
var main_frame = document.createElement("iframe");
main_frame.setAttribute("id","main_frame")
main_frame.setAttribute("width","100%")
main_frame.setAttribute("height","100%");
main_frame.style.paddingTop = 30;
document.body.appendChild(main_frame);
main_frame.src = "./Pages/County_Map.html";
}
var make_state_map = function (link_to) {
var main_frame = document.createElement("center");
main_frame.setAttribute("id", "main_frame");
main_frame.style.paddingTop = 30;
document.body.appendChild(main_frame);
var heading = document.createElement("h2");
heading.style.paddingTop = 30;
heading.setAttribute("id", "heading");
if (link_to == "gender") {
heading.innerHTML = "Click A State To Explore Gender Wage Diffrances ";
} else if (link_to == "industry"){
heading.innerHTML = "Click A State To Explore Diffrances In Wage And Emplyment by Industry ";
}
main_frame.appendChild(heading);
make_home_map(link_to);
}
</script>
</head>
<body>
<div class="container">
<a href="/style-testing/style_test.html">Home</a>
<!-- <a href="#news">Maps</a>-->
<!-- <div class="dropdown">
<button class="dropbtn" onclick="dropDownFunction()">USA Industy Hot Spots</button>
<div class="dropdown-content" id="myDropdown">
<a onClick="make_home_map('new...');">other thing</a>
<a onClick="make_inds_map_with_counties('Agriculture')">Agriculture</a>
<a onClick="make_inds_map_with_counties('Construction')">Construction</a>
<a onClick="make_inds_map_with_counties('Mining')">Mining</a>
</div>
</div>
<div class="dropdown">
<button class="dropbtn" onclick="clear_disply()">More To Come</button>
<div class="dropdown-content" id="myDropdown">
<a href="/d3_testing/inds_gender_line_plot_ca.html">other thing</a>
<a onClick="make_inds_map_with_counties('Agriculture')">Agriculture</a>
<a onClick="make_inds_map_with_counties('Construction')">Construction</a>
<a onClick="make_inds_map_with_counties('Mining')">Mining</a>
</div>
</div> -->
</div>
<script>
/* When the user clicks on the button,
toggle between hiding and showing the dropdown content */
function dropDownFunction() {
document.getElementById("myDropdown").classList.toggle("show");
}
// Close the dropdown if the user clicks outside of it
window.onclick = function(e) {
if (!e.target.matches('.dropbtn')) {
var myDropdown = document.getElementById("myDropdown");
if (myDropdown.classList.contains('show')) {
myDropdown.classList.remove('show');
}
}
}
</script>
<div id="display">
<div class ="article_box" id="article_box1">
<center><div class="box_title">National Trends Over Time</div></center>
<div class="main_box">
<div class="plot_box" onclick="clear_disply(), make_us_totals()">
<div class="plot_title" >Charts, Plots And Graphs</div>
<div class="plot"><img src="Plot_and_bar.png" width="500" height="300"></div>
</div>
<div class="plot_box" onclick="clear_disply(), make_county_map()">
<div class="plot_title">Dominate Indusrty By County</div>
<div class="plot"><img src="county_map.png" width="500" height="300"></div>
</div>
</div>
</div>
<div class ="article_box">
<center><div class="box_title">Information By States</div></center>
<div class="main_box">
<div class="plot_box" onclick="clear_disply(), make_state_map('gender')">
<div class="plot_title">Gender Wage Diffrances</div>
<div class="plot"><img src="Map_blue.png" width="500" height="300"></div>
</div>
<div class="plot_box" onclick="clear_disply(), make_state_map('industry')">
<div class="plot_title">Industry Employment and Pay</div>
<div class="plot"><img src="Map_red.png" width="500" height="300"></div>
</div>
</div>
</div>
<div class ="article_box">
<center><div class="box_title">Next To Come</div></center>
<div class="main_box">
<div class="plot_box">
<div class="plot_title">Coming Soon</div>
<div class="plot"><img src="county_map.png" width="500" height="300"></div>
</div>
<div class="plot_box">
<div class="plot_title">Coming Soon</div>
<div class="plot"><img src="line_and_pie.png" width="500" height="300"></div>
</div>
</div>
</div>
</div>
</body>
</html>