From 13eed2a3d895c653463f0b1b4d76de0f38284f96 Mon Sep 17 00:00:00 2001 From: xuzebin Date: Sun, 12 Mar 2017 23:53:43 -0400 Subject: [PATCH] restructure files --- googlemap/static/tweetmap.css | 202 ++++++++++++++++++++++ googlemap/templates/googlemap/index.html | 208 +---------------------- 2 files changed, 204 insertions(+), 206 deletions(-) create mode 100644 googlemap/static/tweetmap.css diff --git a/googlemap/static/tweetmap.css b/googlemap/static/tweetmap.css new file mode 100644 index 0000000..62575c7 --- /dev/null +++ b/googlemap/static/tweetmap.css @@ -0,0 +1,202 @@ +#map { + height: 100%; +} +html, body { + height: 100%; + margin: 0; + padding: 0; +} +#twitts_count { + background-color: #fff; + color: rgb(25, 25, 25); + font-size: 'Roboto,Arial,sans-serif'; + font-size: 16px; + margin-bottom: 20px; + padding-left: 5px; + padding-right: 5px; + box-shadow: 0 0 6px rgba(0, 0, 0, 0.3); + border-radius: 2px; + border: 1px solid #e6e6e6; +} + +#reset-btn { + position: absolute; + margin: auto; + display: inline-block; + left: 48% +} +.mid-control { + text-align: center; + top: 20px; + z-index: 1; + position: relative; +} + +#searchbox { + background-color: #fff; + font-size: 14px; + font-weight: 300; + + padding: 3px 13px 3px 13px; + text-overflow: ellipsis; + width: 335px; + margin-top: 20px; + position: relative; + z-index: 1; + box-shadow: 0 0 6px rgba(0, 0, 0, 0.3); + + -webkit-border-radius: 2px; + -moz-border-radius: 2px; + border-radius: 2px; + border: 1px solid #e6e6e6; +} +#searchbox:focus { + border-color: #4d90fe; +} + +#distance-options { + -webkit-box-shadow: 0 0 6px rgba(0,0,0,0.298039); + -moz-box-shadow: 0 0 6px rgba(0,0,0,0.298039); + box-shadow: 0 0 6px rgba(0,0,0,0.298039); + -webkit-border-radius: 2px; + -moz-border-radius: 2px; + border-radius: 2px; + border: 1px solid #e6e6e6; + background: #fff; + color: #666; + position: relative; + padding: 10px 10px 1px 10px; + + margin-top: 5px; + width: auto; + z-index: 1; +} + +#distance-options label { + font-weight: 500; +} +#distance-options #units { + padding-left: 18px; + display: inline-block; +} + +#distance-options #locate-control { + text-align: center; + margin: 7px; + position: relative; +} +#locate-control input { + margin-left: 15px; +} + + +#distance-options #radius-input { + width: 100px; + padding: 3px; + position: relative; +} + +#distance-options input { + -webkit-border-radius: 2px; + -moz-border-radius: 2px; + border-radius: 2px; + border: 1px solid #e6e6e6; +} + +#distance-options #unit-selector { + font-family: Roboto,Arial,sans-serif; + position: relative; + +} +#unit-selector label { + margin: 3px; +} + +select, input[type="color" i][list] { + background-color: rgb(248, 248, 248); + border-width: 1px; + border-style: solid; + border-color: rgb(166, 166, 166); +} +#control-block { + position: absolute; + margin-left: 12px; +} +#user-name { + margin-top: 10px; + font-weight: bold; + font-size: 15px; +} +#user-name a:hover { + text-decoration: underline; + color: #01579b; +} +#post-time { + font-size: 12px; +} +.panel-default { + width: 200px; +} + +@-webkit-keyframes ld { + 0% { transform: rotate(0deg) scale(1); } + 50% { transform: rotate(180deg) scale(1.1); } + 100% { transform: rotate(360deg) scale(1); } +} +@-moz-keyframes ld { + 0% { transform: rotate(0deg) scale(1); } + 50% { transform: rotate(180deg) scale(1.1); } + 100% { transform: rotate(360deg) scale(1); } +} +@-o-keyframes ld { + 0% { transform: rotate(0deg) scale(1); } + 50% { transform: rotate(180deg) scale(1.1); } + 100% { transform: rotate(360deg) scale(1); } +} +@keyframes ld { + 0% { transform: rotate(0deg) scale(1); } + 50% { transform: rotate(180deg) scale(1.1); } + 100% { transform: rotate(360deg) scale(1); } +} + +.m-progress { + position: relative; + opacity: .8; + color: transparent !important; + text-shadow: none !important; +} +.m-progress:hover, +.m-progress:active, +.m-progress:focus { + cursor: default; + color: transparent; + outline: none !important; + box-shadow: none; +} +.m-progress:before { + content: ''; + + display: inline-block; + + position: absolute; + background: transparent; + border: 1px solid #fff; + border-top-color: transparent; + border-bottom-color: transparent; + border-radius: 50%; + + box-sizing: border-box; + + top: 50%; + left: 50%; + margin-top: -12px; + margin-left: -12px; + + width: 24px; + height: 24px; + + -webkit-animation: ld 1s ease-in-out infinite; + -moz-animation: ld 1s ease-in-out infinite; + -o-animation: ld 1s ease-in-out infinite; + animation: ld 1s ease-in-out infinite; +} \ No newline at end of file diff --git a/googlemap/templates/googlemap/index.html b/googlemap/templates/googlemap/index.html index 1adb738..20a2ed8 100644 --- a/googlemap/templates/googlemap/index.html +++ b/googlemap/templates/googlemap/index.html @@ -3,210 +3,7 @@ - +
@@ -280,7 +77,7 @@ jQuery({ Counter: last }).animate({ Counter: cur }, { duration: 2000, easing: 'swing', - step: function () { + step: function() { $this.text("Tweets: " + Math.ceil(this.Counter)); } }); @@ -584,7 +381,6 @@ }); } -