Este es un indicador de código personalizado. Cambie a Vista Previa o publique la página para ver cómo funciona su código.
Doble clic para editar
<style>
ul.share-buttons{
list-style: none;
padding: 0;
text-align: right;
}
ul.share-buttons li{
overflow: hidden;
display: inline-block;
vertical-align: middle;
}
ul.share-buttons .sr-only{
position: absolute;
clip: rect(1px 1px 1px 1px);
clip: rect(1px, 1px, 1px, 1px);
padding: 0;
border: 0;
height: 1px;
width: 1px;
overflow: hidden;
}
</style>
<ul class="share-buttons" data-source="simplesharingbuttons.com">
<li><img alt="Compartir" src="https://img.icons8.com/24/aaaaaa/share" /></li>
<li><a id="fbbid" href="https://www.facebook.com/sharer/sharer.php?u=http%3A%2F%2Fwww.agro-alimentarias.coop%2Finicio"e=Cooperativas%20Agro-alimentarias%20de%20Espa%C3%B1a" title="Compartir en Facebook" target="_blank"><img alt="Compartir en Facebook" src="https://img.icons8.com/48/color/facebook" /></a></li>
<li><a id="twbid" href="https://twitter.com/intent/tweet?source=http%3A%2F%2Fwww.agro-alimentarias.coop%2Finicio&text=Cooperativas%20Agro-alimentarias%20de%20Espa%C3%B1a:%20http%3A%2F%2Fwww.agro-alimentarias.coop%2Finicio" target="_blank" title="Tweet"><img alt="Tweet" src="https://img.icons8.com/48/color/twitter" /></a></li>
</ul>
<script type="text/javascript">
window.onload = function () {
let $title = document.getElementsByTagName("title")[0].innerHTML;
let $metas = document.getElementsByTagName('meta');
let $url = window.location.href;
// $title = escapeHtml('"Promación de "hechos"');
// for (let i = 0; i < $metas.length; i++) {
// if ($metas[i].getAttribute('name') === 'description') {
// $desc = $metas[i].getAttribute('content');
// }
// }
let $fburl = 'https://www.facebook.com/sharer/sharer.php?caption=' + $title + '&u=' + encodeURI($url);
let $twurl = 'https://twitter.com/intent/tweet?text=' + $title + '&url=' + encodeURI($url);
document.getElementById("fbbid").setAttribute('href', encodeURI($fburl));
document.getElementById("twbid").setAttribute('href', encodeURI($twurl));
function escapeHtml(text) {
var map = {
'&': '&',
'<': '<',
'>': '>',
'"': '"',
"'": '''
};
return text.replace(/[&<>"']/g, function(m) { return map[m]; });
}
};
</script>