497
| <![CDATA[<script type="text/javascript">
function showUrl() {
console.log(urlSite);
var urlSite = document.URL;
var titleSite = document.title;
document.getElementById("novo-btn-wpp").href = 'whatsapp://send?text='+urlSite;
document.getElementById("novo-btn-face").href = 'https://www.facebook.com/sharer/sharer.php?u='+urlSite;
document.getElementById("novo-btn-twitter").href = 'https://twitter.com/intent/tweet?text='+titleSite+'&url='+urlSite+'&via=capes_oficial';
document.getElementById("novo-btn-linkedin").href = 'https://www.linkedin.com/shareArticle?mini=true&url='+urlSite+'&title='+titleSite;
}
showUrl();
function popupwindow(url, title, w, h) {
var left = (screen.width/2)-(w/2);
var top = (screen.height/2)-(h/2);
return window.open(url, title, 'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no, width='+w+', height='+h+', top='+top+', left='+left);
}
</script>]]>
|