You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
194 lines
4.6 KiB
194 lines
4.6 KiB
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<title></title>
|
|
<link href='https://fonts.googleapis.com/css?family=Indie+Flower' rel='stylesheet' type='text/css'>
|
|
|
|
<style>
|
|
* {
|
|
box-sizing:border-box;
|
|
font-family:'open sans';
|
|
letter-spacing:0.7px;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
.main {
|
|
height:900px;
|
|
margin:50px auto;
|
|
position:relative;
|
|
width:900px;
|
|
}
|
|
|
|
#map {
|
|
background:#e8fbfe;
|
|
border:1px solid #e8e8e8;
|
|
height:600px;
|
|
position:relative;
|
|
width:100%;
|
|
z-index:0;
|
|
}
|
|
|
|
#chart {
|
|
border:solid #e8e8e8;
|
|
border-width:0 1px;
|
|
cursor:pointer;
|
|
height:200px;
|
|
left:0;
|
|
position:absolute;
|
|
top:600px;
|
|
width:100%;
|
|
}
|
|
|
|
#year-toggles {
|
|
border:solid #e8e8e8;
|
|
border-width:0 1px 1px 1px;
|
|
font-size:0;
|
|
height:30px;
|
|
padding-left:24px;
|
|
position:absolute;
|
|
top:800px;
|
|
width:100%;
|
|
}
|
|
|
|
.year-toggle {
|
|
border:1px solid #e8e8e8;
|
|
color:#bbb;
|
|
cursor:pointer;
|
|
display:inline-block;
|
|
line-height:20px;
|
|
font-size:9px;
|
|
margin-right:2px;
|
|
text-align:center;
|
|
width:23px;
|
|
}
|
|
|
|
.year-toggle:hover {
|
|
background:#eee;
|
|
}
|
|
|
|
.feature {
|
|
fill:#dffbb8;
|
|
stroke:#bde484;
|
|
}
|
|
|
|
.reticle {
|
|
fill: rgba(153, 173, 40, 0.2);
|
|
stroke: #5D5336;
|
|
}
|
|
|
|
.reticle-sizer {
|
|
left:10px;
|
|
position:absolute;
|
|
top:10px;
|
|
z-index:1;
|
|
}
|
|
|
|
.axis .domain {
|
|
fill: none;
|
|
stroke: none;
|
|
}
|
|
|
|
.axis .tick {
|
|
fill:#888;
|
|
font-size:8px;
|
|
}
|
|
|
|
.label-axis-y {
|
|
font-size:10px;
|
|
}
|
|
|
|
input[type=range]{
|
|
-webkit-appearance: none;
|
|
}
|
|
|
|
input[type=range]::-webkit-slider-runnable-track {
|
|
width: 300px;
|
|
height: 2px;
|
|
background: #ddd;
|
|
border: none;
|
|
border-radius: 3px;
|
|
}
|
|
|
|
input[type=range]::-webkit-slider-thumb {
|
|
background: #d8ebd3;
|
|
border: 2px solid #5D5336;
|
|
border-radius: 50%;
|
|
height: 16px;
|
|
margin-top: -7px;
|
|
width: 16px;
|
|
-webkit-appearance: none;
|
|
}
|
|
|
|
input[type=range]:focus {
|
|
outline: none;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
|
|
<div class="main">
|
|
<svg id='map'></svg>
|
|
|
|
<input type="range" title='Reticle Size' class='reticle-sizer'>
|
|
|
|
<!-- <div class="container-center">
|
|
<span class="label left">o</span>
|
|
|
|
<span class="label right">O</span>
|
|
|
|
<span class="label left">Slow</span>
|
|
<input type="range" title='Animation Speed'>
|
|
<span class="label fast">Fast</span>
|
|
|
|
<hr>
|
|
|
|
<div class="title">Station Data</div>
|
|
|
|
<div class="station-info"></div>
|
|
</div> -->
|
|
|
|
<svg id="chart"></svg>
|
|
<div id="year-toggles"></div>
|
|
</div>
|
|
|
|
<!-- <script src="//d3js.org/d3.v3.min.js" charset="utf-8"></script> -->
|
|
<script src="d3.min.js"></script>
|
|
<script src="client/data.js"></script>
|
|
<script src="client/map.js"></script>
|
|
<script src="client/behaviors.js"></script>
|
|
<script src="client/chart.js"></script>
|
|
<script src="client/init.js"></script>
|
|
|
|
<!-- <script src="gradients-v1.js"></script> -->
|
|
<!-- <script src="gradients-v2.js"></script> -->
|
|
<!-- <script src="gradients-v3.js"></script> -->
|
|
<!-- <script src="gradients-v4.js"></script> -->
|
|
|
|
<!--
|
|
https://css-tricks.com/svg-line-animation-works/
|
|
|
|
DISCUSS:
|
|
Gradient evolution
|
|
- Opacity solution lacks saturation and transition alignment (omit?)
|
|
- Composite solution overly complex and lacks transition alignment
|
|
- Square mesh OK, causes diamond-shaped artifacts
|
|
- Triangle mesh?
|
|
|
|
gourand / phong?
|
|
Delaunay / Voronoi
|
|
Mesh gradients / coon mesh (http://www.svgopen.org/2011/papers/18-Advanced_Gradients_for_SVG/)
|
|
feImage
|
|
|
|
ogr2ogr -f GeoJSON -clipsrc -114 32.5 -125 43 -where "name IN ('California', 'Oregon', 'Nevada', 'Idaho')" california.geojson states.shp
|
|
|
|
http://dvisvgm.bplaced.net/Gradients
|
|
http://www.gdal.org/ogr_sql.html
|
|
http://www.sarasafavi.com/intro-to-ogr-part-i-exploring-data.html
|
|
-->
|
|
|
|
<!-- <h3>ETL Stage</h3> -->
|
|
|
|
</body>
|
|
</html>
|
|
|