|
| 1 | + |
| 2 | +<!doctype html> |
| 3 | +<html> |
| 4 | + |
| 5 | + <head> |
| 6 | + <meta charset="utf-8"> |
| 7 | + <title>Index page</title> |
| 8 | + <meta http-equiv="X-UA-Compatible" content="IE=Edge"> |
| 9 | + <meta name="viewport" content="width=device-width, initial-scale=1"> |
| 10 | + <meta name="theme-color" content="#fff"> |
| 11 | + <meta name="format-detection" content="telephone=no"> |
| 12 | + <style> |
| 13 | + .map { |
| 14 | + height: 400px; |
| 15 | + } |
| 16 | + |
| 17 | + .awesome-infobox { |
| 18 | + padding: 10px; |
| 19 | + } |
| 20 | + |
| 21 | + .map-content { |
| 22 | + position: relative; |
| 23 | + padding: 20px; |
| 24 | + border-radius: 5px; |
| 25 | + background: #fff; |
| 26 | + box-shadow: 0 0 10px 1px rgba(0, 0, 0, 0.1); |
| 27 | + } |
| 28 | + |
| 29 | + .btn-close { |
| 30 | + position: absolute; |
| 31 | + z-index: 10; |
| 32 | + top: 0; |
| 33 | + right: 0; |
| 34 | + width: 30px; |
| 35 | + height: 30px; |
| 36 | + background: none; |
| 37 | + } |
| 38 | + |
| 39 | + .btn-close:before, .btn-close:after { |
| 40 | + content: ""; |
| 41 | + position: absolute; |
| 42 | + top: 10px; |
| 43 | + height: 12px; |
| 44 | + border-left: 1px solid #000; |
| 45 | + } |
| 46 | + |
| 47 | + .btn-close:before { |
| 48 | + left: 11px; |
| 49 | + -webkit-transform: rotate(-45deg); |
| 50 | + -ms-transform: rotate(-45deg); |
| 51 | + transform: rotate(-45deg); |
| 52 | + -webkit-transform-origin: top left; |
| 53 | + -ms-transform-origin: top left; |
| 54 | + transform-origin: top left; |
| 55 | + } |
| 56 | + |
| 57 | + .btn-close:after { |
| 58 | + right: 10px; |
| 59 | + -webkit-transform: rotate(45deg); |
| 60 | + -ms-transform: rotate(45deg); |
| 61 | + transform: rotate(45deg); |
| 62 | + -webkit-transform-origin: top right; |
| 63 | + -ms-transform-origin: top right; |
| 64 | + transform-origin: top right; |
| 65 | + } |
| 66 | + |
| 67 | + </style> |
| 68 | + </head> |
| 69 | + <body> |
| 70 | + <!-- BEGIN content --> |
| 71 | + <div class="out"> |
| 72 | + <div class="js-map map" data-file="json/items.json"></div> |
| 73 | + <script type="text/underscorejs" id="infobox"> |
| 74 | + <div class="map-content"> <button class="btn-close js-infobox-close"></button> |
| 75 | + <div className="map-content__info"> |
| 76 | + <%= title %> |
| 77 | + </div> |
| 78 | + </div> |
| 79 | + </script> |
| 80 | + </div> |
| 81 | + <!-- END content --> |
| 82 | + <!-- BEGIN scripts --> |
| 83 | + <script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyDMWIxCN9ijYRfiH7bmQN-LNRDtoboLZqY"></script> |
| 84 | + <script type="text/javascript" src="../dist/easygooglemaps.js"></script> |
| 85 | + <script type="text/javascript" src="example.js"></script> |
| 86 | + <!-- END scripts --> |
| 87 | + </body> |
| 88 | + |
| 89 | +</html> |
0 commit comments