Added social media share buttons

This commit is contained in:
Alicia Sykes
2018-01-06 18:29:11 +00:00
parent b18694cba0
commit f41c178269
3 changed files with 19 additions and 6 deletions

View File

@@ -48,6 +48,9 @@
"Materialize": "materialize#~0.97.5",
"jquery-autocompleter": "Autocompleter#~0.1.9",
"bullet.js": "https://gist.githubusercontent.com/mbostock/4061961/raw/6eb742223b9795260ba62150196ed0ae4a461e39/bullet.js",
"socket.io": "^2.0.3"
"socket.io": "^2.0.3",
"socketio": "https://cdn.socket.io/socket.io-1.4.3.js",
"jssocials": "^1.5.0",
"components-font-awesome": "^4.7.0"
}
}

View File

@@ -25,4 +25,9 @@ $(document).ready ->
$('#btnHide').click () ->
if vis == true then vis = hideDetails() else vis = showDetails()
# Social
$("#share").jsSocials({
shares: ["email", "twitter", "facebook", "googleplus", "linkedin", "pinterest", "stumbleupon", "whatsapp"]
});
module.exports.setMainPage = (val) -> mainPage = val

View File

@@ -138,7 +138,7 @@ block content
h2 More Sentiment Data Visualisations
p.flow-text.grey-text.darken-4 Click one of the links below to generate the chart with the latest Twitter data
each page in pages
.col.s6.m4.l3
.col.s12.m4.l3.xl1
a(href='/#{page.page}')
.card.home-card
.card-image.waves-effect.waves-block.waves-light
@@ -147,12 +147,17 @@ block content
span.card-title.grey-text.text-darken-4= page.title
.row
.col.s10.offset-s1.m6
.card-panel
.col.s12.offset-m3.m6.l4.offset-l4.xl2.offset-xl5
.card-panel.more-info
h4.flow-text For more information....
a.waves-effect.waves-teal.btn-flat(href='/') Visit the home page
a.waves-effect.waves-teal.btn-flat.btn(href='/') Visit the home page
a.waves-effect.waves-teal.btn-flat.btn(href='/Search') Make a new Search
a.waves-effect.waves-teal.btn-flat.btn(href='/about') About Sentiment Sweep
a.waves-effect.waves-teal.btn-flat.btn(href='https://github.com/Lissy93/twitter-sentiment-visualisation') Source Code + Documentation
a(href='http://aliciasykes.com') © Alicia Sykes 2018
a(href='https://github.com/Lissy93/twitter-sentiment-visualisation/blob/dev/docs/LICENSE.md') Open sourced under MIT
include ./component_social
include ./footer