Replace Facebook SDK with homebrewn button

Better for both privacy and speed!
This commit is contained in:
Midgard 2020-05-20 15:53:43 +02:00
parent 8b52ba1869
commit 8f464cdd93
Signed by: midgard
GPG Key ID: 511C112F1331BBB4
2 changed files with 7 additions and 10 deletions

View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg width="63" height="20" version="1.1" xmlns="http://www.w3.org/2000/svg">
<rect width="63" height="20" rx="4" ry="4" fill="#1877f2"/>
<path d="m18.018 10.034c0-3.0635-2.4839-5.5474-5.5474-5.5474-3.0635 0-5.5474 2.4839-5.5474 5.5474 0 2.7686 2.0283 5.0637 4.6807 5.4803v-3.8764h-1.4089v-1.6039h1.4089v-1.2225c0-1.3901 0.82848-2.1586 2.0954-2.1586 0.60693 0 1.2419 0.10847 1.2419 0.10847v1.3652h-0.69976c-0.68884 0-0.90415 0.4275-0.90415 0.86672v1.0407h1.5384l-0.24573 1.6039h-1.2927v3.8764c2.6524-0.41582 4.6807-2.7109 4.6807-5.4804" fill="#fff" />
<text x="23" y="14" fill="#fff" font-family="Roboto" font-size="11.5px" font-weight="bold">Share</text>
</svg>

After

Width:  |  Height:  |  Size: 705 B

View File

@ -99,7 +99,7 @@
<a href="https://gentsestudentenraad.be/"><img id="GSR" src="img/GSR.png"></a>
</script>
<script id="share-template" type="text/x-handlebars-template">
<div class="fb-share-button" data-href="//blok.ugent.be" data-layout="button_count"></div>
<a href="https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fblok.ugent.be%2F"><img src="img/facebook-share.svg" alt="Deel op Facebook"></a>
</script>
<script id="legend-template" type="text/x-handlebars-template">
<div style="padding-top: 5px;">
@ -118,15 +118,6 @@
</div>
</script>
<!-- Facebook SDK -->
<div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&appId=146947948791011&version=v2.0";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<!-- Google Analytics SDK -->
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){