Skip to content
This repository has been archived by the owner on Jun 22, 2018. It is now read-only.

Commit

Permalink
navbar added and modals updated
Browse files Browse the repository at this point in the history
  • Loading branch information
Gingernaut committed Mar 24, 2016
1 parent 576e4a6 commit d9c4e61
Show file tree
Hide file tree
Showing 4 changed files with 209 additions and 104 deletions.
12 changes: 10 additions & 2 deletions Scripts/app.js
@@ -1,11 +1,19 @@
$('.close-button').click(function(e) { $('.close-button').click(function(e) {
e.preventDefault(); e.preventDefault();
$('#scrim').css("display", "none"); $('#scrim').css("display", "none");
$('#panopresentation').css("display", "none"); $('.modal').css("display", "none");
$('#aboutme').css("display","none");
window.location.reload(); window.location.reload();
}); });


$('#Generate').click(function() { $('#Generate').click(function() {
$('#scrim').css("display", "block"); $('#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");
}); });
94 changes: 83 additions & 11 deletions app.css
Expand Up @@ -2,6 +2,7 @@ html,body {
width: 100%; width: 100%;
height: 100%; height: 100%;
overflow: hidden; overflow: hidden;
font-family: Roboto;
} }


.filler { .filler {
Expand All @@ -24,6 +25,69 @@ html,body {
#landingpage { #landingpage {
position: relative; position: relative;
background-color: #4D90FE; 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 { #mapwrapper {
Expand All @@ -32,7 +96,7 @@ html,body {
} }


#NavigationalMap { #NavigationalMap {
height: 96vh; height: 95.5vh;
width: 100vw; width: 100vw;
} }


Expand Down Expand Up @@ -96,7 +160,7 @@ input[type="radio"] {
display: none; display: none;
} }


#panopresentation { .modal {
z-index: 1000; z-index: 1000;
position: absolute; position: absolute;
top: 50%; top: 50%;
Expand Down Expand Up @@ -141,7 +205,7 @@ input[type="radio"] {
transform: rotate(0deg); transform: rotate(0deg);
} }


#panoelements { .modalelements {
margin-left: auto; margin-left: auto;
margin-right: auto; margin-right: auto;
position: relative; position: relative;
Expand Down Expand Up @@ -176,24 +240,32 @@ input[type="radio"] {
display: inline-block; display: inline-block;
} }


#promostuff { #aboutme {
margin-top: 1vh; 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; text-decoration: none;
color: #fff;
} }


a:visited { a:visited {
color: #fff; color: #fff;
text-decoration: none; text-decoration: none;
} }


#source {
float: right;
margin-right: 15px;
}


@keyframes lol { @keyframes lol {
0% { 0% {
Expand Down
Binary file added favicon.ico
Binary file not shown.
207 changes: 116 additions & 91 deletions index.html
@@ -1,101 +1,126 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en-us"> <html lang="en-us">
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<meta content="width=device-width, initial-scale=1.0" name="viewport"> <meta content="width=device-width, initial-scale=1.0" name="viewport">
<meta content="IE=edge, chrome=1" http-equiv="X-UA-Compatible"> <meta content="IE=edge, chrome=1" http-equiv="X-UA-Compatible">
<meta content="Streetlapse" property="og:site_name"> <meta content="Streetlapse" property="og:site_name">
<meta content="Streetlapse" property="og:title"> <meta content="Streetlapse" property="og:title">
<meta content="Turn any route into a Google Streetview timelapse" property= <meta content="Turn any route into a Google Streetview timelapse" property=
"og:description"> "og:description">
<meta content="Media/preview.png" property="og:image"> <meta content="Media/preview.png" property="og:image">
<meta content="http://www.streetlapse.com" property="og:url"> <meta content="http://www.streetlapse.com" property="og:url">
<meta content="website" property="og:type"> <meta content="website" property="og:type">
<link href="reset.css" rel="stylesheet" type="text/css"> <link href="reset.css" rel="stylesheet" type="text/css">
<link href="app.css" rel="stylesheet" type="text/css"> <link href='https://fonts.googleapis.com/css?family=Roboto' rel='stylesheet' type='text/css'>
<link href="favicon.ico" rel="icon" type="image/x-icon"> <link href="app.css" rel="stylesheet" type="text/css">
<title>Streelapse</title> <link href="favicon.ico" rel="icon" type="image/x-icon">
<meta content= <title>Streelapse</title>
"Turn any route in Google Maps into a first person Google Streetview timelapse. Developed by Tyler Peterson." <meta content=
name="description"> "Turn any route in Google Maps into a first person Google Streetview timelapse. Developed by Tyler Peterson."
</head> name="description">
<body> </head>
<div id="wrapper"> <body>
<div id="scrim"></div> <div id="wrapper">
<div class="fullpage" id="landingpage"> <div id="scrim"></div>
<div id="mapwrapper"> <div class='modal' id="aboutme">
<div id="controlpanel"> <div class="modalelements">
<input class="directionbox" id="search_start" placeholder= <a class="close-button" href=""></a>
"Starting Place"> <input class="directionbox" id= <div id='aboutcontent'>
"search_end" placeholder="Destination"> <h1>Streetlapse takes any route in Google Maps and turns it into a first person Streetview timelapse.</h1>
<div class="directionbox" id="mode-selector"> <br/>
<input checked="checked" class="radio" id= <h2>Developed using the Google Maps API, Hyperlapse.js, GSVPano.js, and Three.js.</h2>
"changemode-driving" name="type" type="radio"> <br/>
<label for="changemode-driving">Driving</label> <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>
<input class="radio" id="changemode-walking" name= </div>
"type" type="radio"> <label for=
"changemode-walking">Walking</label> </div>
</div><input class="directionbox stylebutton" id="Generate"
role="button" type="submit" value="Generate">
</div> </div>
<div id="NavigationalMap"></div> <div class="fullpage" id="landingpage">
</div> <div id="navbar">
<div id='panopresentation'> <h1>Streetlapse</h1>
<div id="panoelements"> <div class="svg-wrapper">
<a class="close-button" href=""></a> <svg height="30" width="150" xmlns="http://www.w3.org/2000/svg">
<div id="pano"> <rect id="shape" height="30" width="150" />
<div class="cs-loader"> <div id="text">
<div class="cs-loader-inner"> <a href=""><span class="spot"></span>About</a>
<label></label> <label></label>
<label></label> <label></label>
<label></label> <label></label>
</div> </div>
</div> </svg>
</div> </div>
<div id="buttons"> </div>
<button class='stylebutton' id="play">Start</button>
<button class='stylebutton' id="stop">Stop</button> <div id="mapwrapper">
<button class='stylebutton' id="next">Next</button> <div id="controlpanel">
<button class='stylebutton' id="prev">Prev</button> <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>
<div id="NavigationalMap"></div>
</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>
<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>
</div> <script src=
<script src= "https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
"https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script> <script src=
<script src= "https://maps.googleapis.com/maps/api/js?key=AIzaSyD3cOoekvzKSqpMiRI7WJc1Vxo__vF3txA&libraries=places"></script>
"https://maps.googleapis.com/maps/api/js?key=AIzaSyD3cOoekvzKSqpMiRI7WJc1Vxo__vF3txA&libraries=places"></script> <script src="Scripts/set_map.js"></script>
<script src="Scripts/set_map.js"></script> <script src="Scripts/three.min.js"></script>
<script src="Scripts/three.min.js"></script> <script src="Scripts/GSVPano.js"></script>
<script src="Scripts/GSVPano.js"></script> <script src="Scripts/Hyperlapse.js"></script>
<script src="Scripts/Hyperlapse.js"></script> <script src="Scripts/streetlapse.js"></script>
<script src="Scripts/streetlapse.js"></script> <script src="Scripts/app.js"></script>
<script src="Scripts/app.js"></script> <script>
<script> (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(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),
(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)
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');
})(window,document,'script','//www.google-analytics.com/analytics.js','ga'); ga('create', 'UA-61123672-5', 'auto');

ga('send', 'pageview');
ga('create', 'UA-61123672-5', 'auto'); </script>
ga('send', 'pageview'); <!--
</script> Google Maps
<!-- JQuery
Google Maps Hyperlapse.js
JQuery HyperlapseMB.js
Hyperlapse.js GSVPano.js
HyperlapseMB.js GSVPanoDepth.js
GSVPano.js GSVPanoEffects.js
GSVPanoDepth.js jquery.base64.min.js
GSVPanoEffects.js zpipe.min.js
jquery.base64.min.js Dat.gui.js
zpipe.min.js -->
Dat.gui.js </body>
-->
</body>
</html> </html>

0 comments on commit d9c4e61

Please sign in to comment.