typeahead inputs for the main site

This commit is contained in:
Laura Klünder 2016-12-15 17:30:55 +01:00
parent feb8848fe0
commit 353535179f
27 changed files with 2986 additions and 17 deletions

View file

@ -0,0 +1,74 @@
body {
font-size:16px;
}
.locationselect .input-lg {
height: 62px;
}
.locationselect .locationselect-selected {
display:none;
}
.locationselect.selected .locationselect-selected {
display:block;
}
.locationselect.selected .locationselect-input {
display:none;
}
.location {
font-size:18px;
}
.location small {
font-size:14px;
display:block;
}
.location.form-control {
padding: 9px 16px;
-webkit-box-shadow: none;
box-shadow: none;
}
/* Typehead */
.twitter-typeahead {
display:block !important;
}
.tt-input {
margin-bottom: 0;
}
.tt-hint {
color: #999;
}
.tt-menu {
width:100%;
min-width: 160px;
margin-top:-1px;
padding: 0;
overflow:hidden;
padding-bottom:4px;
}
.tt-dataset {
background-color: #ffffff;
border-width: 1px;
border-style: solid;
border-color: #cccccc #66afe9 #66afe9;
border-radius: 0 0 4px 4px;
margin:0 6px;
-webkit-box-shadow: 0 0 8px rgba(102, 175, 233, 0.6);
box-shadow: 0 0 8px rgba(102, 175, 233, 0.6);
}
.tt-suggestion {
padding: 6px 10px;
}
.tt-suggestion.tt-cursor {
color: #fff;
background-color: #428bca;
}
.tt-suggestion.tt-cursor a {
color: #fff;
}
.tt-suggestion p {
margin: 0;
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.7 KiB

View file

@ -0,0 +1 @@
<?xml version="1.0" ?><svg height="434" id="svg2327" version="1.0" width="363" xmlns="http://www.w3.org/2000/svg" xmlns:svg="http://www.w3.org/2000/svg"><defs id="defs2330"/><path d="M 138.06634,165.63819 L 2.0663401,301.62717 L 2.0663401,181.62851 L 182.56634,2.1326782 L 363.06634,181.62851 L 362.31908,300.13268 L 226.06634,164.63819 L 226.06634,433.13268 L 138.06634,433.13268 L 138.06634,165.63819 z " id="path2348" style="fill:#000000"/></svg>

After

Width:  |  Height:  |  Size: 449 B

View file

@ -0,0 +1 @@
<?xml version="1.0" ?><svg height="48" viewBox="0 0 48 48" width="48" xmlns="http://www.w3.org/2000/svg"><path d="M38 12.83l-2.83-2.83-11.17 11.17-11.17-11.17-2.83 2.83 11.17 11.17-11.17 11.17 2.83 2.83 11.17-11.17 11.17 11.17 2.83-2.83-11.17-11.17z"/><path d="M0 0h48v48h-48z" fill="none"/></svg>

After

Width:  |  Height:  |  Size: 297 B

View file

@ -0,0 +1 @@
<?xml version="1.0" ?><svg height="24px" version="1.1" viewBox="0 0 24 24" width="24px" xmlns="http://www.w3.org/2000/svg" xmlns:sketch="http://www.bohemiancoding.com/sketch/ns" xmlns:xlink="http://www.w3.org/1999/xlink"><title/><desc/><defs/><g fill="none" fill-rule="evenodd" id="miu" stroke="none" stroke-width="1"><g id="Artboard-1" transform="translate(-827.000000, -443.000000)"><g id="slice" transform="translate(215.000000, 119.000000)"/><path d="M832,466 L832,445 L832.977778,445 C833.043235,445.640095 832.977778,466 832.977778,466 L832,466 Z M834.018052,446.333064 C835.089594,446.815742 836.496642,446.664562 838.339618,445.569703 C841.216847,443.860425 843.359639,443.800389 845.079528,444.539906 C845.438277,444.69416 845.687036,444.854576 845.826646,444.974598 L845.996826,445.1209 L845.996826,454.28872 L845.189229,453.594437 C845.12162,453.536315 844.956007,453.429516 844.693295,453.316555 C843.266586,452.7031 841.452291,452.736246 838.83901,454.28872 C837.030696,455.362987 835.326924,455.418266 834.067871,455.094309 L834.018052,446.333064 Z" fill="#000000" id="editor-flag-notification-glyph"/></g></g></svg>

After

Width:  |  Height:  |  Size: 1.1 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 5.5 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 5.5 KiB

View file

@ -0,0 +1,114 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
height="399.325"
id="svg3948"
width="511.443"
version="1.1"
inkscape:version="0.91 r13725"
sodipodi:docname="icon_elevator_down.svg">
<metadata
id="metadata19">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
</cc:Work>
</rdf:RDF>
</metadata>
<sodipodi:namedview
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1"
objecttolerance="10"
gridtolerance="10"
guidetolerance="10"
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:window-width="1225"
inkscape:window-height="649"
id="namedview17"
showgrid="false"
inkscape:zoom="0.59099729"
inkscape:cx="255.7215"
inkscape:cy="199.66251"
inkscape:window-x="0"
inkscape:window-y="27"
inkscape:window-maximized="0"
inkscape:current-layer="svg3948" />
<defs
id="defs3950">
<marker
id="ArrowEnd"
markerHeight="3"
markerUnits="strokeWidth"
markerWidth="4"
orient="auto"
refX="0"
refY="5"
viewBox="0 0 10 10">
<path
d="M 0 0 L 10 5 L 0 10 z"
id="path3953" />
</marker>
<marker
id="ArrowStart"
markerHeight="3"
markerUnits="strokeWidth"
markerWidth="4"
orient="auto"
refX="10"
refY="5"
viewBox="0 0 10 10">
<path
d="M 10 0 L 0 5 L 10 10 z"
id="path3956" />
</marker>
</defs>
<g
id="g3958"
transform="matrix(-1,0,0,1,511.443,0)">
<g
id="g3960">
<g
id="g3962">
<g
id="g3964">
<path
d="m 216.402,67.777 c 18.715,0 33.887,-15.174 33.887,-33.888 C 250.289,15.172 235.117,0 216.402,0 c -18.716,0 -33.888,15.172 -33.888,33.889 0,18.714 15.172,33.888 33.888,33.888 z"
id="path3966"
style="fill:#000000;stroke:none"
inkscape:connector-curvature="0" />
<path
d="M 216.402,33.889"
id="path3968"
style="fill:#000000;stroke:none"
inkscape:connector-curvature="0" />
</g>
<path
d="m 249.95,128.779 0,-21.353 c 0,-45.5 -67.095,-45 -67.095,0 l 0,87.109 0.132,0 -63.393,63.391 c -5.979,5.979 -6.708,6.239 -18.45,6.239 -0.01,0.01 -38.758,0 -38.758,0 -39,0 -62.386,35.048 -62.386,64.761 0,29.713 23.386,67.274 65.845,67.274 0,0 52.747,0 69.041,0 16.295,0 36.048,-6.229 52.343,-21.565 L 389.366,173.109 c 4.314,-3.834 6.71,-5.031 14.139,-5.031 0,0 27.867,0 49.913,0 24.025,0 58.025,-27.228 58.025,-66.478 0,-38.849 -34.25,-64.75 -60,-64.836 l -78.807,0 c -16.294,0 -37.25,6.662 -49.75,19.162 l -72.938,72.853 0.002,0 z"
id="path3970"
style="fill:#000000;stroke:none"
inkscape:connector-curvature="0" />
</g>
<path
d="m 305.161,399.325 70.793,0 c 19.5,0 20.25,-30 0,-30 l -36.287,0 69.012,-69.012 c 15.299,-15.3 -6.339,-37.438 -22.593,-21.185 l -67.985,68.173 0,-35.916 c 0.103,-19.5 -30.147,-20.25 -30.193,0 l 0,70.354 c 0,10.5 7.046,17.586 17.253,17.586 z"
id="path3972"
style="fill:#000000;stroke:none"
inkscape:connector-curvature="0" />
</g>
<path
d="m 377.429,70.311 70.905,0 c 17.253,0 28.859,19.287 28.859,30.789 0,11.502 -8.234,32.969 -29.321,32.969 l -42.629,0 c -18.05,0 -26.05,2.531 -36.441,12.922 l -203.68,203.68 c -8.236,8.255 -18.69,11.522 -32.109,11.522 l -67.168,0 c -17.253,0 -32.459,-14.597 -32.459,-33.767 0,-19.17 14.5,-29.911 29.5,-29.911 l 46.081,0 c 13.419,0 22.251,-3.834 29.919,-11.502 L 346.004,79.896 c 8.522,-8.52 16.941,-9.585 31.425,-9.585 z"
id="path3974"
style="fill:#ffffff;stroke:none"
inkscape:connector-curvature="0" />
</g>
</svg>

After

Width:  |  Height:  |  Size: 4.2 KiB

View file

@ -0,0 +1 @@
<?xml version="1.0" ?><svg height="398.271" id="svg3987" width="511.443" xmlns="http://www.w3.org/2000/svg" xmlns:cc="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns:svg="http://www.w3.org/2000/svg"><defs id="defs3989"><marker id="ArrowEnd" markerHeight="3" markerUnits="strokeWidth" markerWidth="4" orient="auto" refX="0" refY="5" viewBox="0 0 10 10"><path d="M 0 0 L 10 5 L 0 10 z" id="path3992"/></marker><marker id="ArrowStart" markerHeight="3" markerUnits="strokeWidth" markerWidth="4" orient="auto" refX="10" refY="5" viewBox="0 0 10 10"><path d="M 10 0 L 0 5 L 10 10 z" id="path3995"/></marker></defs><g id="g3997"><g id="g3999"><g id="g4001"><g id="g4003"><path d="M 216.402 67.777C 235.117 67.777 250.289 52.603 250.289 33.889C 250.289 15.172 235.117 0 216.402 0C 197.686 0 182.514 15.172 182.514 33.889C 182.514 52.603 197.686 67.777 216.402 67.777z" id="path4005" style="stroke:none; fill:#000000"/><path d="M 216.402 33.889" id="path4007" style="stroke:none; fill:#000000"/></g><path d="M 249.95 128.779L 249.95 107.426C 249.95 61.926 182.855 62.426 182.855 107.426L 182.855 194.535L 182.987 194.535L 119.594 257.926C 113.615 263.905 112.886 264.165 101.144 264.165C 101.134 264.175 62.386 264.165 62.386 264.165C 23.386 264.165 0 299.213 0 328.926C 0 358.639 23.386 396.2 65.845 396.2C 65.845 396.2 118.592 396.2 134.886 396.2C 151.181 396.2 170.934 389.971 187.229 374.635L 389.366 173.109C 393.68 169.275 396.076 168.078 403.505 168.078C 403.505 168.078 431.372 168.078 453.418 168.078C 477.443 168.078 511.443 140.85 511.443 101.6C 511.443 62.751 477.193 36.85 451.443 36.764L 372.636 36.764C 356.342 36.764 335.386 43.426 322.886 55.926L 249.948 128.779L 249.95 128.779z" id="path4009" style="stroke:none; fill:#000000"/></g><path d="M 397.725 272.375L 326.932 272.375C 307.432 272.375 306.682 302.375 326.932 302.375L 363.219 302.375L 294.207 371.387C 278.908 386.687 300.546 408.825 316.8 392.572L 384.785 324.399L 384.785 360.315C 384.682 379.815 414.932 380.565 414.978 360.315L 414.978 289.961C 414.978 279.461 407.932 272.375 397.725 272.375z" id="path4011" style="stroke:none; fill:#000000"/></g><path d="M 377.429 70.311L 448.334 70.311C 465.587 70.311 477.193 89.598 477.193 101.1C 477.193 112.602 468.959 134.069 447.872 134.069L 405.243 134.069C 387.193 134.069 379.193 136.6 368.802 146.991L 165.122 350.671C 156.886 358.926 146.432 362.193 133.013 362.193L 65.845 362.193C 48.592 362.193 33.386 347.596 33.386 328.426C 33.386 309.256 47.886 298.515 62.886 298.515L 108.967 298.515C 122.386 298.515 131.218 294.681 138.886 287.013L 346.004 79.896C 354.526 71.376 362.945 70.311 377.429 70.311z" id="path4013" style="stroke:none; fill:#ffffff"/></g></svg>

After

Width:  |  Height:  |  Size: 2.8 KiB

View file

@ -0,0 +1 @@
<?xml version="1.0" ?><svg height="48" viewBox="0 0 48 48" width="48" xmlns="http://www.w3.org/2000/svg"><path d="M0 0h48v48h-48z" fill="none"/><path d="M7.8 24c0-3.42 2.78-6.2 6.2-6.2h8v-3.8h-8c-5.52 0-10 4.48-10 10s4.48 10 10 10h8v-3.8h-8c-3.42 0-6.2-2.78-6.2-6.2zm8.2 2h16v-4h-16v4zm18-12h-8v3.8h8c3.42 0 6.2 2.78 6.2 6.2s-2.78 6.2-6.2 6.2h-8v3.8h8c5.52 0 10-4.48 10-10s-4.48-10-10-10z"/></svg>

After

Width:  |  Height:  |  Size: 397 B

View file

@ -0,0 +1 @@
<?xml version="1.0" ?><svg height="48" viewBox="0 0 48 48" width="48" xmlns="http://www.w3.org/2000/svg"><path d="M0 0h48v48h-48z" fill="none"/><path d="M24 16c-4.42 0-8 3.58-8 8s3.58 8 8 8 8-3.58 8-8-3.58-8-8-8zm17.88 6c-.92-8.34-7.54-14.96-15.88-15.88v-4.12h-4v4.12c-8.34.92-14.96 7.54-15.88 15.88h-4.12v4h4.12c.92 8.34 7.54 14.96 15.88 15.88v4.12h4v-4.12c8.34-.92 14.96-7.54 15.88-15.88h4.12v-4h-4.12zm-17.88 16c-7.73 0-14-6.27-14-14s6.27-14 14-14 14 6.27 14 14-6.27 14-14 14z"/></svg>

After

Width:  |  Height:  |  Size: 488 B

View file

@ -0,0 +1 @@
<?xml version="1.0" ?><svg height="48" viewBox="0 0 48 48" width="48" xmlns="http://www.w3.org/2000/svg"><path d="M0-.17h48v48h-48z" fill="none"/><path d="M41.88 22.17c-.92-8.34-7.54-14.96-15.88-15.88v-4.12h-4v4.12c-8.34.92-14.96 7.54-15.88 15.88h-4.12v4h4.12c.92 8.34 7.54 14.96 15.88 15.88v4.12h4v-4.12c8.34-.92 14.96-7.54 15.88-15.88h4.12v-4h-4.12zm-17.88 16c-7.73 0-14-6.27-14-14s6.27-14 14-14 14 6.27 14 14-6.27 14-14 14z"/></svg>

After

Width:  |  Height:  |  Size: 435 B

View file

@ -0,0 +1,45 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
enable-background="new 0 0 512 512"
height="512px"
version="1.1"
viewBox="0 0 512 512"
width="512px"
xml:space="preserve"
id="svg2"
inkscape:version="0.91 r13725"
sodipodi:docname="icon_location.svg"><metadata
id="metadata20"><rdf:RDF><cc:Work
rdf:about=""><dc:format>image/svg+xml</dc:format><dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" /></cc:Work></rdf:RDF></metadata><defs
id="defs18" /><sodipodi:namedview
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1"
objecttolerance="10"
gridtolerance="10"
guidetolerance="10"
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:window-width="1732"
inkscape:window-height="480"
id="namedview16"
showgrid="false"
inkscape:zoom="0.4609375"
inkscape:cx="256"
inkscape:cy="256"
inkscape:window-x="0"
inkscape:window-y="27"
inkscape:window-maximized="0"
inkscape:current-layer="svg2" /><path
style="fill:#000000;fill-opacity:1"
inkscape:connector-curvature="0"
id="path10"
d="m 256,36.082 c -84.553,0 -153.105,68.554 -153.105,153.106 0,113.559 153.105,286.73 153.105,286.73 0,0 153.106,-173.172 153.106,-286.73 C 409.106,104.636 340.552,36.082 256,36.082 Z m 0,217.705 c -35.682,0 -64.6,-28.917 -64.6,-64.6 0,-35.683 28.918,-64.6 64.6,-64.6 35.682,0 64.6,28.917 64.6,64.6 0,35.683 -28.918,64.6 -64.6,64.6 z" /></svg>

After

Width:  |  Height:  |  Size: 1.8 KiB

View file

@ -0,0 +1 @@
<?xml version="1.0" ?><svg height="48" viewBox="0 0 48 48" width="48" xmlns="http://www.w3.org/2000/svg"><path d="M41 6c-.11 0-.21.01-.31.05l-10.69 4.15-12-4.2-11.27 3.8c-.42.14-.73.5-.73.96v30.24c0 .55.45 1 1 1 .11 0 .21-.01.31-.05l10.69-4.15 12 4.2 11.28-3.79c.42-.15.72-.51.72-.97v-30.24c0-.55-.45-1-1-1zm-11 32l-12-4.21v-23.79l12 4.21v23.79z"/><path d="M0 0h48v48h-48z" fill="none"/></svg>

After

Width:  |  Height:  |  Size: 393 B

View file

@ -0,0 +1 @@
<?xml version="1.0" ?><svg height="48" viewBox="0 0 48 48" width="48" xmlns="http://www.w3.org/2000/svg"><path d="M0-.17h48v48h-48z" fill="none"/><path d="M41.88 22.17c-.92-8.34-7.54-14.96-15.88-15.88v-4.12h-4v4.12c-2.26.25-4.38.93-6.31 1.94l3 3c1.64-.67 3.43-1.05 5.31-1.05 7.73 0 14 6.27 14 14 0 1.88-.38 3.67-1.05 5.31l3 3c1.01-1.93 1.68-4.05 1.93-6.31h4.12v-4h-4.12zm-35.88-13.45l4.07 4.07c-2.14 2.62-3.57 5.84-3.96 9.38h-4.11v4h4.12c.92 8.34 7.54 14.96 15.88 15.88v4.12h4v-4.12c3.54-.39 6.76-1.82 9.38-3.96l4.08 4.08 2.54-2.54-33.45-33.46-2.55 2.55zm26.53 26.53c-2.36 1.82-5.32 2.92-8.53 2.92-7.73 0-14-6.27-14-14 0-3.22 1.1-6.17 2.92-8.53l19.61 19.61z"/></svg>

After

Width:  |  Height:  |  Size: 666 B

View file

@ -0,0 +1,90 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
height="365.145"
id="svg1368"
width="439.752"
version="1.1"
inkscape:version="0.91 r13725"
sodipodi:docname="icon_stairs_down.svg">
<metadata
id="metadata13">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
</cc:Work>
</rdf:RDF>
</metadata>
<sodipodi:namedview
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1"
objecttolerance="10"
gridtolerance="10"
guidetolerance="10"
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:window-width="785"
inkscape:window-height="480"
id="namedview11"
showgrid="false"
inkscape:zoom="0.64631861"
inkscape:cx="219.87601"
inkscape:cy="182.57249"
inkscape:window-x="0"
inkscape:window-y="27"
inkscape:window-maximized="0"
inkscape:current-layer="svg1368" />
<defs
id="defs1370">
<marker
id="ArrowEnd"
markerHeight="3"
markerUnits="strokeWidth"
markerWidth="4"
orient="auto"
refX="0"
refY="5"
viewBox="0 0 10 10">
<path
d="M 0 0 L 10 5 L 0 10 z"
id="path1373" />
</marker>
<marker
id="ArrowStart"
markerHeight="3"
markerUnits="strokeWidth"
markerWidth="4"
orient="auto"
refX="10"
refY="5"
viewBox="0 0 10 10">
<path
d="M 10 0 L 0 5 L 10 10 z"
id="path1376" />
</marker>
</defs>
<g
id="g1378"
transform="matrix(-1,0,0,1,439.752,0)">
<path
d="m 0,323.974 80.05,0 0,-81.475 79.534,0 0,-82.025 80.789,0 0,-80.5 80.241,0 0,-79.974 119.138,0 0,40.804 -79.202,0 0,80.278 -80.332,0 0,81.408 -80.168,0 0,80.984 -80.5,0 0,81.671 -119.55,0 0,-41.171 z"
id="path1380"
style="fill:#000000;stroke:none"
inkscape:connector-curvature="0" />
<path
d="m 266.757,363.56 70.793,0 c 19.5,0 20.25,-30 0,-30 l -36.287,0 69.012,-69.012 c 15.299,-15.299 -6.34,-37.438 -22.593,-21.185 l -67.985,68.173 0,-35.915 c 0.103,-19.5 -30.147,-20.25 -30.193,0 l 0,70.353 c 0,10.5 7.046,17.586 17.253,17.586 z"
id="path1382"
style="fill:#000000;stroke:none"
inkscape:connector-curvature="0" />
</g>
</svg>

After

Width:  |  Height:  |  Size: 2.7 KiB

View file

@ -0,0 +1 @@
<?xml version="1.0" ?><svg height="365.145" id="svg1395" width="439.752" xmlns="http://www.w3.org/2000/svg" xmlns:cc="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns:svg="http://www.w3.org/2000/svg"><defs id="defs1397"><marker id="ArrowEnd" markerHeight="3" markerUnits="strokeWidth" markerWidth="4" orient="auto" refX="0" refY="5" viewBox="0 0 10 10"><path d="M 0 0 L 10 5 L 0 10 z" id="path1400"/></marker><marker id="ArrowStart" markerHeight="3" markerUnits="strokeWidth" markerWidth="4" orient="auto" refX="10" refY="5" viewBox="0 0 10 10"><path d="M 10 0 L 0 5 L 10 10 z" id="path1403"/></marker></defs><g id="g1405"><path d="M 0 323.974L 80.05 323.974L 80.05 242.499L 159.584 242.499L 159.584 160.474L 240.373 160.474L 240.373 79.974L 320.614 79.974L 320.614 0L 439.752 0L 439.752 40.804L 360.55 40.804L 360.55 121.082L 280.218 121.082L 280.218 202.49L 200.05 202.49L 200.05 283.474L 119.55 283.474L 119.55 365.145L 0 365.145L 0 323.974z" id="path1407" style="stroke:none; fill:#000000"/><path d="M 358.843 237.888L 288.05 237.888C 268.55 237.888 267.8 267.888 288.05 267.888L 324.337 267.888L 255.325 336.9C 240.026 352.2 261.664 374.338 277.918 358.085L 345.903 289.912L 345.903 325.828C 345.8 345.328 376.05 346.078 376.096 325.828L 376.096 255.474C 376.096 244.974 369.05 237.888 358.843 237.888z" id="path1409" style="stroke:none; fill:#000000"/></g></svg>

After

Width:  |  Height:  |  Size: 1.5 KiB

View file

@ -0,0 +1,90 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
height="365.145"
id="svg1368"
width="439.752"
version="1.1"
inkscape:version="0.91 r13725"
sodipodi:docname="icon_stairs_down.svg">
<metadata
id="metadata13">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
</cc:Work>
</rdf:RDF>
</metadata>
<sodipodi:namedview
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1"
objecttolerance="10"
gridtolerance="10"
guidetolerance="10"
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:window-width="785"
inkscape:window-height="480"
id="namedview11"
showgrid="false"
inkscape:zoom="0.64631861"
inkscape:cx="219.87601"
inkscape:cy="182.57249"
inkscape:window-x="0"
inkscape:window-y="27"
inkscape:window-maximized="0"
inkscape:current-layer="svg1368" />
<defs
id="defs1370">
<marker
id="ArrowEnd"
markerHeight="3"
markerUnits="strokeWidth"
markerWidth="4"
orient="auto"
refX="0"
refY="5"
viewBox="0 0 10 10">
<path
d="M 0 0 L 10 5 L 0 10 z"
id="path1373" />
</marker>
<marker
id="ArrowStart"
markerHeight="3"
markerUnits="strokeWidth"
markerWidth="4"
orient="auto"
refX="10"
refY="5"
viewBox="0 0 10 10">
<path
d="M 10 0 L 0 5 L 10 10 z"
id="path1376" />
</marker>
</defs>
<g
id="g1378"
transform="matrix(-1,0,0,1,439.752,0)">
<path
d="m 0,323.974 80.05,0 0,-81.475 79.534,0 0,-82.025 80.789,0 0,-80.5 80.241,0 0,-79.974 119.138,0 0,40.804 -79.202,0 0,80.278 -80.332,0 0,81.408 -80.168,0 0,80.984 -80.5,0 0,81.671 -119.55,0 0,-41.171 z"
id="path1380"
style="fill:#000000;stroke:none"
inkscape:connector-curvature="0" />
<path
d="m 266.757,363.56 70.793,0 c 19.5,0 20.25,-30 0,-30 l -36.287,0 69.012,-69.012 c 15.299,-15.299 -6.34,-37.438 -22.593,-21.185 l -67.985,68.173 0,-35.915 c 0.103,-19.5 -30.147,-20.25 -30.193,0 l 0,70.353 c 0,10.5 7.046,17.586 17.253,17.586 z"
id="path1382"
style="fill:#000000;stroke:none"
inkscape:connector-curvature="0" />
</g>
</svg>

After

Width:  |  Height:  |  Size: 2.7 KiB

View file

@ -0,0 +1 @@
<?xml version="1.0" ?><svg height="365.145" id="svg1395" width="439.752" xmlns="http://www.w3.org/2000/svg" xmlns:cc="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns:svg="http://www.w3.org/2000/svg"><defs id="defs1397"><marker id="ArrowEnd" markerHeight="3" markerUnits="strokeWidth" markerWidth="4" orient="auto" refX="0" refY="5" viewBox="0 0 10 10"><path d="M 0 0 L 10 5 L 0 10 z" id="path1400"/></marker><marker id="ArrowStart" markerHeight="3" markerUnits="strokeWidth" markerWidth="4" orient="auto" refX="10" refY="5" viewBox="0 0 10 10"><path d="M 10 0 L 0 5 L 10 10 z" id="path1403"/></marker></defs><g id="g1405"><path d="M 0 323.974L 80.05 323.974L 80.05 242.499L 159.584 242.499L 159.584 160.474L 240.373 160.474L 240.373 79.974L 320.614 79.974L 320.614 0L 439.752 0L 439.752 40.804L 360.55 40.804L 360.55 121.082L 280.218 121.082L 280.218 202.49L 200.05 202.49L 200.05 283.474L 119.55 283.474L 119.55 365.145L 0 365.145L 0 323.974z" id="path1407" style="stroke:none; fill:#000000"/><path d="M 358.843 237.888L 288.05 237.888C 268.55 237.888 267.8 267.888 288.05 267.888L 324.337 267.888L 255.325 336.9C 240.026 352.2 261.664 374.338 277.918 358.085L 345.903 289.912L 345.903 325.828C 345.8 345.328 376.05 346.078 376.096 325.828L 376.096 255.474C 376.096 244.974 369.05 237.888 358.843 237.888z" id="path1409" style="stroke:none; fill:#000000"/></g></svg>

After

Width:  |  Height:  |  Size: 1.5 KiB

View file

@ -0,0 +1 @@
<?xml version="1.0" ?><svg height="399.035" id="svg1569" width="432.631" xmlns="http://www.w3.org/2000/svg" xmlns:cc="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns:svg="http://www.w3.org/2000/svg"><defs id="defs1571"><marker id="ArrowEnd" markerHeight="3" markerUnits="strokeWidth" markerWidth="4" orient="auto" refX="0" refY="5" viewBox="0 0 10 10"><path d="M 0 0 L 10 5 L 0 10 z" id="path1574"/></marker><marker id="ArrowStart" markerHeight="3" markerUnits="strokeWidth" markerWidth="4" orient="auto" refX="10" refY="5" viewBox="0 0 10 10"><path d="M 10 0 L 0 5 L 10 10 z" id="path1577"/></marker></defs><g id="g1579"><g id="g1581"><path d="M 245.234 3.578L 245.234 396.839L 208.192 396.839L 208.192 3.578L 245.234 3.578z" id="path1583" style="stroke:none; fill:#000000"/><path d="M 226.713 200.209" id="path1585" style="stroke:none; fill:#000000"/></g><g id="g1587"><g id="g1589"><path d="M 91.6336 64.828C 109.536 64.828 124.049 50.317 124.049 32.414C 124.049 14.514 109.536 0 91.6336 0C 73.7346 0 59.2206 14.514 59.2206 32.414C 59.2206 50.317 73.7346 64.828 91.6336 64.828z" id="path1591" style="stroke:none; fill:#000000"/><path d="M 91.6336 32.414" id="path1593" style="stroke:none; fill:#000000"/></g><path d="M 86.8416 270.35L 86.8546 383.735C 86.8546 404.135 56.2896 404.135 56.2896 383.735L 56.2766 270.35L 15.7726 270.35L 59.1116 120.007L 52.2996 120.007L 26.7766 205.888C 20.7016 224.62 -5.01541 216.925 0.868576 196.867L 29.2066 103.564C 32.2446 92.924 45.7006 74.061 68.9926 74.061L 90.4696 74.061L 90.4696 74.061L 113.585 74.061C 136.669 74.061 150.186 93.083 153.679 103.564L 182.029 196.776C 187.699 216.823 162.184 225.126 156.109 205.585L 130.595 120.007L 123.219 120.007L 167.023 270.35L 126.342 270.35L 126.342 383.885C 126.342 404.135 95.9046 404.034 95.9046 383.885L 95.9046 270.35L 86.8416 270.35z" id="path1595" style="stroke:none; fill:#000000"/></g><g id="g1597"><path d="M 322.947 73.94C 300.139 73.94 281.796 92.807 281.796 116.34L 281.796 216.64C 281.796 236.14 309.932 236.14 309.932 216.64L 309.932 124.926L 316.593 124.926L 316.593 379.053C 316.593 405.125 354.061 404.358 354.061 379.053L 354.061 230.277L 360.514 230.277L 360.514 379.053C 360.514 404.358 398.187 405.125 398.187 379.053L 398.187 124.926L 404.692 124.926L 404.692 216.64C 404.692 236.291 432.682 236.29 432.631 216.64L 432.631 116.94C 432.631 95.24 416.017 73.985 390.975 73.985L 322.947 73.94z" id="path1599" style="stroke:none; fill:#000000"/><g id="g1601"><path d="M 357.134 64.828C 375.035 64.828 389.548 50.317 389.548 32.414C 389.548 14.514 375.035 0 357.134 0C 339.234 0 324.72 14.514 324.72 32.414C 324.72 50.317 339.234 64.828 357.134 64.828z" id="path1603" style="stroke:none; fill:#000000"/><path d="M 357.134 32.414" id="path1605" style="stroke:none; fill:#000000"/></g></g></g></svg>

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

View file

@ -0,0 +1,70 @@
c3nav = {
init: function() {
c3nav._typeahead_locations = new Bloodhound({
datumTokenizer: function(data) {
var result = [data.name]
result = result.concat(data.title.split(' '));
return result
},
queryTokenizer: Bloodhound.tokenizers.whitespace,
identify: function(data) {
return data.name;
},
prefetch: '/api/locations/'
});
c3nav._typeahead_options = {
source: c3nav._typeahead_locations,
display: function(item) {
return item.title;
},
templates: {
suggestion: function(data) {
return '<div class="location"></span><span>'+data.title+'</span><small>'+data.subtitle+'</small></div>';
}
}
};
c3nav.init_typeahead($('.locationselect input:text'));
$('.locationselect:not(.selected) .locationselect-input .tt-input').first().focus();
},
init_typeahead: function(elem) {
elem.typeahead(null, c3nav._typeahead_options)
.on('keydown', c3nav._typeahead_keydown)
.on('typeahead:select', c3nav._typeahead_select)
.on('blur', c3nav._typeahead_blur)
.on('typeahead:cursorchange', c3nav._typeahead_cursorchange)
.on('typeahead:autocomplete', c3nav._typeahead_cursorchange)
.on('typeahead:render', c3nav._typeahead_cursorchange);
},
_typeahead_keydown: function(e) {
if (e.which == 13) {
var target = $(e.target);
enter_item = target.data('enter_item');
if (enter_item !== undefined) {
target.trigger('typeahead:select', [enter_item]);
}
}
},
_typeahead_select: function(e, item) {
var locationselect = $(e.target).closest('.locationselect');
locationselect.addClass('selected');
var selected = locationselect.find('.locationselect-selected');
selected.find('.title').text(item.title);
selected.find('.subtitle').text(item.subtitle);
selected.find('.name-field').val(item.name);
e.target.blur();
$('.locationselect:not(.selected) .locationselect-input .tt-input').first().focus();
},
_typeahead_blur: function(e) {
$(e.target).val('');
},
_typeahead_cursorchange: function(e, item) {
$(e.target).data('enter_item', item);
}
};
$(document).ready(c3nav.init);

File diff suppressed because it is too large Load diff

View file

@ -9,13 +9,12 @@
<title>c3nav</title>
{% compress css %}
<link href="{% static 'bootstrap/css/bootstrap.css' %}" rel="stylesheet">
<link href="{% static 'site/css/c3nav.css' %}" rel="stylesheet">
{% endcompress %}
</head>
<body>
<div class="container" id="main">
<h1>c3nav</h1>
{% block content %}
@ -25,6 +24,8 @@
{% compress js %}
<script type="text/javascript" src="{% static 'jquery/jquery.js' %}"></script>
<script type="text/javascript" src="{% static 'bootstrap/js/bootstrap.js' %}"></script>
<script type="text/javascript" src="{% static 'site/js/typeahead.js' %}"></script>
<script type="text/javascript" src="{% static 'site/js/c3nav.js' %}"></script>
{% endcompress %}
</body>
</html>

View file

@ -0,0 +1,16 @@
{% load i18n %}
<div class="form-group col-md-6">
<label for="{ name }}_input">{{ heading }}</label>
<div class="locationselect{% if location %} selected{% endif %}">
<div class="locationselect-input">
<input type="text" class="form-control input-lg" id="{ name }}_input" name="{{ name }}_search" placeholder="{% trans 'Search any Location…' %}">
</div>
<div class="locationselect-selected">
<div class="location form-control input-lg">
<span class="title">{{ location.title }}</span>
<small class="subtitle">{{ location.subtitle }}</small>
</div>
<input type="hidden" name="{{ name }}" value="{{ location.name }}" class="name-field">
</div>
</div>
</div>

View file

@ -1,23 +1,17 @@
{% extends 'site/base.html' %}
{% load static %}
{% load i18n %}
{% block content %}
<form>
<div class="row">
<div class="form-group col-md-6">
<label for="from">From</label>
<input type="text" class="form-control input-lg" id="from">
</div>
<div class="form-group col-md-6">
<label for="to">To</label>
<input type="text" class="form-control input-lg" id="to">
</div>
</div>
<div class="row">
<div class="form-group col-md-6">
</div>
<div class="form-group col-md-6">
<button type="submit" class="btn btn-primary btn-lg">Get me There</button>
</div>
{% trans "Origin" as heading %}
{% include 'site/fragment_location.html' with name='origin' location=origin heading=heading %}
{% trans "Destination" as heading %}
{% include 'site/fragment_location.html' with name='destination' location=destination heading=heading %}
</div>
</form>
{% endblock %}

10
src/c3nav/site/views.py Normal file
View file

@ -0,0 +1,10 @@
from django.utils.translation import ugettext_lazy as _
from c3nav.mapdata.utils.cache import get_levels_cached
def main(request):
get_levels_cached()
_
src = request.POST if request.method == 'POST' else request.GET
src == 5