This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

navbar added and modals updated

  • Loading branch information...
Gingernaut committed Mar 24, 2016
1 parent 576e4a6 commit d9c4e6189da8c2db444cbe47f6155b1b99422124
Showing with 209 additions and 104 deletions.
  1. +10 −2 Scripts/app.js
  2. +83 −11 app.css
  3. BIN favicon.ico
  4. +116 −91 index.html
View
@@ -1,11 +1,19 @@
$('.close-button').click(function(e) {
e.preventDefault();
$('#scrim').css("display", "none");
$('#panopresentation').css("display", "none");
$('.modal').css("display", "none");
$('#aboutme').css("display","none");
window.location.reload();
});
$('#Generate').click(function() {
$('#scrim').css("display", "block");
$('#panopresentation').css("display", "block");
$('#mapmodal').css("display", "block");
});
$('.svg-wrapper').click(function(e) {
e.preventDefault();
$('#scrim').css("display", "block");
$('#aboutme').css("display","block");
});
View
94 app.css
@@ -2,6 +2,7 @@ html,body {
width: 100%;
height: 100%;
overflow: hidden;
font-family: Roboto;
}
.filler {
@@ -24,6 +25,69 @@ html,body {
#landingpage {
position: relative;
background-color: #4D90FE;
color:white;
}
#navbar {
height:4.5vh;
min-height:45px;
display:inline-block;
width:100%;
}
#navbar h1 {
float:left;
margin-top:1.1vh;
margin-left:1.5vw;
font-size: 22px;
}
.spot {
position: absolute;
width: 100%;
height: 100%;
top: 0;
left: 0;
}
.svg-wrapper {
margin-top: 6px;
position: relative;
width: 150px;
height: 30px;
display: inline-block;
border-radius: 3px;
margin-left:50px;
}
#shape {
stroke-width: 6px;
fill: transparent;
stroke: #FFEB3B;
stroke-dasharray: 85 400;
stroke-dashoffset: -210;
transition: 1s all ease;
}
#text {
margin-top: -25px;
text-align: center;
}
#text a {
color: white;
text-decoration: none;
font-weight: 100;
font-size: 1em;
}
.svg-wrapper:hover #shape {
stroke-dasharray: 50 0;
stroke-width: 3px;
stroke-dashoffset: 0;
stroke: #81C784;
}
#mapwrapper {
@@ -32,7 +96,7 @@ html,body {
}
#NavigationalMap {
height: 96vh;
height: 95.5vh;
width: 100vw;
}
@@ -96,7 +160,7 @@ input[type="radio"] {
display: none;
}
#panopresentation {
.modal {
z-index: 1000;
position: absolute;
top: 50%;
@@ -141,7 +205,7 @@ input[type="radio"] {
transform: rotate(0deg);
}
#panoelements {
.modalelements {
margin-left: auto;
margin-right: auto;
position: relative;
@@ -176,24 +240,32 @@ input[type="radio"] {
display: inline-block;
}
#promostuff {
margin-top: 1vh;
#aboutme {
display:none;
}
#aboutcontent {
background-color:#f6f7f4;
margin-top:20px;
min-height:160px;
text-align: left;
padding:13px;
}
#promostuff a {
#aboutcontent h1{
margin-top:20px;
}
#aboutcontent a{
color: #4D90FE;
text-decoration: none;
color: #fff;
}
a:visited {
color: #fff;
text-decoration: none;
}
#source {
float: right;
margin-right: 15px;
}
@keyframes lol {
0% {
View
Binary file not shown.
View
@@ -1,101 +1,126 @@
<!DOCTYPE html>
<html lang="en-us">
<head>
<meta charset="utf-8">
<meta content="width=device-width, initial-scale=1.0" name="viewport">
<meta content="IE=edge, chrome=1" http-equiv="X-UA-Compatible">
<meta content="Streetlapse" property="og:site_name">
<meta content="Streetlapse" property="og:title">
<meta content="Turn any route into a Google Streetview timelapse" property=
"og:description">
<meta content="Media/preview.png" property="og:image">
<meta content="http://www.streetlapse.com" property="og:url">
<meta content="website" property="og:type">
<link href="reset.css" rel="stylesheet" type="text/css">
<link href="app.css" rel="stylesheet" type="text/css">
<link href="favicon.ico" rel="icon" type="image/x-icon">
<title>Streelapse</title>
<meta content=
"Turn any route in Google Maps into a first person Google Streetview timelapse. Developed by Tyler Peterson."
name="description">
</head>
<body>
<div id="wrapper">
<div id="scrim"></div>
<div class="fullpage" id="landingpage">
<div id="mapwrapper">
<div id="controlpanel">
<input class="directionbox" id="search_start" placeholder=
"Starting Place"> <input class="directionbox" id=
"search_end" placeholder="Destination">
<div class="directionbox" id="mode-selector">
<input checked="checked" class="radio" id=
"changemode-driving" name="type" type="radio">
<label for="changemode-driving">Driving</label>
<input class="radio" id="changemode-walking" name=
"type" type="radio"> <label for=
"changemode-walking">Walking</label>
</div><input class="directionbox stylebutton" id="Generate"
role="button" type="submit" value="Generate">
<head>
<meta charset="utf-8">
<meta content="width=device-width, initial-scale=1.0" name="viewport">
<meta content="IE=edge, chrome=1" http-equiv="X-UA-Compatible">
<meta content="Streetlapse" property="og:site_name">
<meta content="Streetlapse" property="og:title">
<meta content="Turn any route into a Google Streetview timelapse" property=
"og:description">
<meta content="Media/preview.png" property="og:image">
<meta content="http://www.streetlapse.com" property="og:url">
<meta content="website" property="og:type">
<link href="reset.css" rel="stylesheet" type="text/css">
<link href='https://fonts.googleapis.com/css?family=Roboto' rel='stylesheet' type='text/css'>
<link href="app.css" rel="stylesheet" type="text/css">
<link href="favicon.ico" rel="icon" type="image/x-icon">
<title>Streelapse</title>
<meta content=
"Turn any route in Google Maps into a first person Google Streetview timelapse. Developed by Tyler Peterson."
name="description">
</head>
<body>
<div id="wrapper">
<div id="scrim"></div>
<div class='modal' id="aboutme">
<div class="modalelements">
<a class="close-button" href=""></a>
<div id='aboutcontent'>
<h1>Streetlapse takes any route in Google Maps and turns it into a first person Streetview timelapse.</h1>
<br/>
<h2>Developed using the Google Maps API, Hyperlapse.js, GSVPano.js, and Three.js.</h2>
<br/>
<h2>Created by <a href="https://www.tylermarkpeterson.com">Tyler Peterson.</a> Source code is <a href="https://www.github.com/gingernaut/streetlapse">available on Github.</a></h2>
</div>
</div>
</div>
<div id="NavigationalMap"></div>
</div>
<div id='panopresentation'>
<div id="panoelements">
<a class="close-button" href=""></a>
<div id="pano">
<div class="cs-loader">
<div class="cs-loader-inner">
<label>●</label> <label>●</label>
<label>●</label> <label>●</label>
<label>●</label> <label>●</label>
<div class="fullpage" id="landingpage">
<div id="navbar">
<h1>Streetlapse</h1>
<div class="svg-wrapper">
<svg height="30" width="150" xmlns="http://www.w3.org/2000/svg">
<rect id="shape" height="30" width="150" />
<div id="text">
<a href=""><span class="spot"></span>About</a>
</div>
</div>
</svg>
</div>
<div id="buttons">
<button class='stylebutton' id="play">Start</button>
<button class='stylebutton' id="stop">Stop</button>
<button class='stylebutton' id="next">Next</button>
<button class='stylebutton' id="prev">Prev</button>
</div>
<div id="mapwrapper">
<div id="controlpanel">
<input class="directionbox" id="search_start" placeholder=
"Starting Place"> <input class="directionbox" id=
"search_end" placeholder="Destination">
<div class="directionbox" id="mode-selector">
<input checked="checked" class="radio" id=
"changemode-driving" name="type" type="radio">
<label for="changemode-driving">Driving</label>
<input class="radio" id="changemode-walking" name=
"type" type="radio"> <label for=
"changemode-walking">Walking</label>
</div><input class="directionbox stylebutton" id="Generate"
role="button" type="submit" value="Generate">
</div>
<div id="NavigationalMap"></div>
</div>
<div class='modal' id="mapmodal">
<div class="modalelements">
<a class="close-button" href=""></a>
<div id="pano">
<div class="cs-loader">
<div class="cs-loader-inner">
<label>●</label> <label>●</label>
<label>●</label> <label>●</label>
<label>●</label> <label>●</label>
</div>
</div>
</div>
<div id="buttons">
<button class='stylebutton' id="play">Start</button>
<button class='stylebutton' id="stop">Stop</button>
<button class='stylebutton' id="next">Next</button>
<button class='stylebutton' id="prev">Prev</button>
</div>
</div>
</div>
<!--<div id='promostuff'>
<a target="_blank" href="https://www.tylermarkpeterson.com/">Built by Tyler Peterson</a>
<a target="_blank" id='source' href="https://www.github.com/gingernaut/streetlapse">Source Code</a>
</div>-->
</div>
<div id='promostuff'>
<a target="_blank" href="https://www.tylermarkpeterson.com/">Built by Tyler Peterson</a>
<a target="_blank" id='source' href="https://www.github.com/gingernaut/streetlapse">Code Source</a>
</div>
</div>
</div>
<script src=
"https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
<script src=
"https://maps.googleapis.com/maps/api/js?key=AIzaSyD3cOoekvzKSqpMiRI7WJc1Vxo__vF3txA&libraries=places"></script>
<script src="Scripts/set_map.js"></script>
<script src="Scripts/three.min.js"></script>
<script src="Scripts/GSVPano.js"></script>
<script src="Scripts/Hyperlapse.js"></script>
<script src="Scripts/streetlapse.js"></script>
<script src="Scripts/app.js"></script>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-61123672-5', 'auto');
ga('send', 'pageview');
</script>
<!--
Google Maps
JQuery
Hyperlapse.js
HyperlapseMB.js
GSVPano.js
GSVPanoDepth.js
GSVPanoEffects.js
jquery.base64.min.js
zpipe.min.js
Dat.gui.js
-->
</body>
<script src=
"https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
<script src=
"https://maps.googleapis.com/maps/api/js?key=AIzaSyD3cOoekvzKSqpMiRI7WJc1Vxo__vF3txA&libraries=places"></script>
<script src="Scripts/set_map.js"></script>
<script src="Scripts/three.min.js"></script>
<script src="Scripts/GSVPano.js"></script>
<script src="Scripts/Hyperlapse.js"></script>
<script src="Scripts/streetlapse.js"></script>
<script src="Scripts/app.js"></script>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-61123672-5', 'auto');
ga('send', 'pageview');
</script>
<!--
Google Maps
JQuery
Hyperlapse.js
HyperlapseMB.js
GSVPano.js
GSVPanoDepth.js
GSVPanoEffects.js
jquery.base64.min.js
zpipe.min.js
Dat.gui.js
-->
</body>
</html>

0 comments on commit d9c4e61

Please sign in to comment.