mirror of
https://github.com/Lissy93/twitter-sentiment-visualisation.git
synced 2021-05-12 19:52:18 +03:00
36 lines
1.7 KiB
Plaintext
36 lines
1.7 KiB
Plaintext
extends layout
|
|
block head
|
|
link(rel='stylesheet', href='/bower_components/jquery-autocompleter/jquery.autocompleter.css')
|
|
script(src='https://maps.googleapis.com/maps/api/js?v=3.exp&libraries=places,visualization&key=AIzaSyADxPj5gwtPiRrgf5Wcfts4Kaf1OebXhAg')
|
|
|
|
block content
|
|
div.map-options.row
|
|
.input-field.col.s6
|
|
input#txtKeyword.validate(type='text', value='#{summary_text.searchTerm}')
|
|
label.active(for='txtKeyword') Keyword or Topic
|
|
.input-field.col.s6
|
|
input#txtLocation.validate(type='text')
|
|
label.active(for='txtLocation') Location
|
|
|
|
unless summary_text.searchTerm
|
|
a.waves-effect.waves-light.btn.absolute.whiteBtn#btnClearMap(onClick='window.clearMap()'
|
|
title='Clear the map of current data to see real-time data arrive') Toggle Heat Map
|
|
|
|
#map-canvas
|
|
|
|
div.map-footer-options.zero-margin.row
|
|
div.col.s5
|
|
p!= summary_text.mapShowing
|
|
div.col.s4
|
|
p!= summary_text.sentimentSummary
|
|
div.col.s3
|
|
img.pull-right(src='/images/heatmap-key.png')
|
|
|
|
block scripts
|
|
script(type='text/javascript', src='/bower_components/jquery-autocompleter/jquery.autocompleter.min.js')
|
|
script(type='text/javascript', src='/bower_components/markerclusterer_compiled/index.js')
|
|
script(type='text/javascript', src='https://cdn.socket.io/socket.io-1.4.3.js')
|
|
script(type='text/javascript').
|
|
var sentimentResults = !{JSON.stringify(data)};
|
|
var searchTerm = !{JSON.stringify(summary_text.searchTerm)};
|
|
script(type='text/javascript', src='/javascripts/map.bundle.js') |