Make the facebook button work

parent 0ea217d2
Pipeline #1422 passed with stage
in 33 seconds
......@@ -104,6 +104,9 @@ let draw = function() {
// Update tweet button
document.getElementById('tweet-button').href = 'https://twitter.com/intent/tweet?text=Soutenez La Quadrature du Net ! ' + encodeURIComponent(window.location.href);
// Update facebook button
document.getElementById('fb-button').href = 'https://www.facebook.com/sharer/sharer.php?u=' + encodeURIComponent(window.location.href);
}, false);
});
}
......
......@@ -219,8 +219,8 @@
<div>
<canvas id="output" width="600" height="413"></canvas>
<a class="randomize white-button"><span class="fa fa-random"></span></a>
<a id="fb-button" class="blue-button" target="_blank" href="https://twitter.com/intent/tweet?text=Soutenez La Quadrature du Net !"><span class="text">Tweet </span><span class="fa fa-twitter"></span></a>
<a id="tweet-button" class="blue-button" target="_blank" href="https://www.facebook.com/sharer/sharer.php?u="><span class="text">Partager </span><span class="fa fa-facebook-square"></span></a>
<a id="tweet-button" class="blue-button" target="_blank" href="https://twitter.com/intent/tweet?text=Soutenez La Quadrature du Net !"><span class="text">Tweet </span><span class="fa fa-twitter"></span></a>
<a id="fb-button" class="blue-button" target="_blank" href="https://www.facebook.com/sharer/sharer.php?u="><span class="text">Partager </span><span class="fa fa-facebook-square"></span></a>
<a id="save-image" class="white-button" download="lqdn-slogan.png"><span class="text">Enregistrer </span><span class="fa fa-save"></span></a>
</div>
<div id="credits">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment