Skip to content

Commit

Permalink
Merge pull request #90 from openplannerteam/dev
Browse files Browse the repository at this point in the history
Release 0.0.3-alpha
  • Loading branch information
SimonVanneste authored Feb 8, 2019
2 parents 29dfd6a + 42d365a commit a474193
Show file tree
Hide file tree
Showing 124 changed files with 4,504 additions and 764 deletions.
121 changes: 121 additions & 0 deletions example/css/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,121 @@
html,
body {
margin: 0;
height: 100%;
width: 100%;
}

#mapid {
height: 100%;
}

#results {
position: absolute;
left: 10px;
bottom: 10px;
border-radius: 4px;
display: flex;
flex-direction: column;
font-family: sans-serif;
max-height: 500px;
z-index: 500;
overflow-y: scroll;
width: 500px;
}

#results > .path {
margin: 10px;
background: rgba(255, 255, 255, .8);
border: 1px solid #ccc;
border-top: none;
border-radius: 4px;
box-shadow: 0 4px 10px -2px rgba(0, 0, 0, 0.2);
flex-wrap: wrap;
}

#results > .path > .header {
padding: 10px;
background: rgba(0, 0, 0, .25);
color: #fff;
text-shadow: 0 0 1px black;
}

#results > .path > .step {
display: flex;
flex-direction: row;
margin: 10px;
}

.travelMode {
width: 45px;
flex-shrink: 0;
background-size: 20px 20px;
background-repeat: no-repeat;
}

.details {
}

.travelMode.walking {
background-image: url(data:image/svg+xml;base64,PHN2ZyBhcmlhLWhpZGRlbj0idHJ1ZSIgZGF0YS1wcmVmaXg9ImZhcyIgZGF0YS1pY29uPSJ3YWxraW5nIiBjbGFzcz0ic3ZnLWlubGluZS0tZmEgZmEtd2Fsa2luZyBmYS13LTEwIiByb2xlPSJpbWciIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgdmlld0JveD0iMCAwIDMyMCA1MTIiPjxwYXRoIGZpbGw9ImN1cnJlbnRDb2xvciIgZD0iTTIwOCA5NmMyNi41IDAgNDgtMjEuNSA0OC00OFMyMzQuNSAwIDIwOCAwcy00OCAyMS41LTQ4IDQ4IDIxLjUgNDggNDggNDh6bTk0LjUgMTQ5LjFsLTI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W50Q29sb3IiIGQ9Ik00ODggMTI4aC04VjgwYzAtNDQuOC05OS4yLTgwLTIyNC04MFMzMiAzNS4yIDMyIDgwdjQ4aC04Yy0xMy4yNSAwLTI0IDEwLjc0LTI0IDI0djgwYzAgMTMuMjUgMTAuNzUgMjQgMjQgMjRoOHYxNjBjMCAxNy42NyAxNC4zMyAzMiAzMiAzMnYzMmMwIDE3LjY3IDE0LjMzIDMyIDMyIDMyaDMyYzE3LjY3IDAgMzItMTQuMzMgMzItMzJ2LTMyaDE5MnYzMmMwIDE3LjY3IDE0LjMzIDMyIDMyIDMyaDMyYzE3LjY3IDAgMzItMTQuMzMgMzItMzJ2LTMyaDYuNGMxNiAwIDI1LjYtMTIuOCAyNS42LTI1LjZWMjU2aDhjMTMuMjUgMCAyNC0xMC43NSAyNC0yNHYtODBjMC0xMy4yNi0xMC43NS0yNC0yNC0yNHpNMTEyIDQwMGMtMTcuNjcgMC0zMi0xNC4zMy0zMi0zMnMxNC4zMy0zMiAzMi0zMiAzMiAxNC4zMyAzMiAzMi0xNC4zMyAzMi0zMiAzMnptMTYtMTEyYy0xNy42NyAwLTMyLTE0LjMzLTMyLTMyVjEyOGMwLTE3LjY3IDE0LjMzLTMyIDMyLTMyaDI1NmMxNy42NyAwIDMyIDE0LjMzIDMyIDMydjEyOGMwIDE3LjY3LTE0LjMzIDMyLTMyIDMySDEyOHptMjcyIDExMmMtMTcuNjcgMC0zMi0xNC4zMy0zMi0zMnMxNC4zMy0zMiAzMi0zMiAzMiAxNC4zMyAzMiAzMi0xNC4zMyAzMi0zMiAzMnoiPjwvcGF0aD48L3N2Zz4=);
}

.duration {
margin-bottom: 5px;
margin-top: 5px;
}

.enterConnectionId,
.exitConnectionId {
opacity: 0.5;
}

#actions {
position: absolute;
top: 10px;
right: 10px;
z-index: 500;
}

#actions > button {
border-radius: 100px;
background: rgba(255, 255, 255, .8);
font-size: 2em;
padding: .25em 1em;
}

#prefetch {
position: absolute;
top: 10px;
left: 54px;
z-index: 500;
}

.prefetch-view {
height: 6px;
margin-bottom: 3px;
border-radius: 30px;
background: #3556a9;
color: #fff;
font-family: sans-serif;
padding: 3px 5px;
transition: 50ms width ease-in-out;
}

.prefetch-view::after {
content: attr(data-last);
color: #fff;
float: right;
}

#prefetch-bar {
height: 18px;
}
26 changes: 26 additions & 0 deletions example/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Map</title>
<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/leaflet.css"
integrity="sha512-puBpdR0798OZvTTbP4A8Ix/l+A4dHDD0DGqYW6RQ+9jxkRFclaxxQb/SJAWZfWAkuyeQUytO7+7N4QKrDh+drA=="
crossorigin=""/>
<script src="https://unpkg.com/[email protected]/dist/leaflet.js"
integrity="sha512-nMMmRyTVoLYqjP9hrbed9S+FzjZHW5gY1TWCHA5ckwXZBadntCNs8kEqAWdrb9O7rxbCaA4lKTIWjDXZxflOcA=="
crossorigin=""></script>
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<div id="mapid"></div>
<div id="results"></div>
<div id="actions">
<button id="reset">Reset</button>
</div>
<div id="prefetch">
<div id="prefetch-bar" class="prefetch-view"></div>
</div>
<script src="js/bundle.js"></script>
<script src="js/index.js"></script>
</body>
</html>
Loading

0 comments on commit a474193

Please sign in to comment.