diff --git a/ar/index.html b/ar/index.html index e4c4806..969625b 100644 --- a/ar/index.html +++ b/ar/index.html @@ -2,17 +2,4 @@ new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); -})(window,document,'script','dataLayer','GTM-PMVMJ4'); \ No newline at end of file +})(window,document,'script','dataLayer','GTM-PMVMJ4'); \ No newline at end of file diff --git a/assets/js/components/social.js b/assets/js/components/social.js index 90a7c04..16fa861 100644 --- a/assets/js/components/social.js +++ b/assets/js/components/social.js @@ -1 +1,42 @@ -define("social",["jquery"],function(t){var e={};return e.facebook={share:function(t){var t=t||window.location.href,e=window.open("https://www.facebook.com/sharer/sharer.php?u="+t,"popupwindow","scrollbars=yes,width=800,height=400");e.focus()},feed:function(){FB.ui({method:"feed",name:"",link:"",picture:"",caption:"",description:""},function(t){t&&t.post_id})}},e.twitter={share:function(t){twttr.ready(function(t){t.events.bind("tweet",function(t){})});var e=window.open("https://twitter.com/intent/tweet?text="+t,"popupwindow","scrollbars=yes,width=800,height=400");e.focus()}},e}); \ No newline at end of file +define("social", ["jquery"], function (t) { + var e = {}; + return ( + (e.facebook = { + share: function (t) { + var t = t || window.location.href, + e = window.open( + "https://www.facebook.com/sharer/sharer.php?u=" + t, + "popupwindow", + "scrollbars=yes,width=800,height=400" + ); + e.focus(); + }, + feed: function () { + FB.ui( + { + method: "feed", + name: "", + link: "", + picture: "", + caption: "", + description: "", + }, + function (t) { + t && t.post_id; + } + ); + }, + }), + (e.twitter = { + share: function (t) { + var e = window.open( + "https://twitter.com/intent/tweet?text=" + t, + "popupwindow", + "scrollbars=yes,width=800,height=400" + ); + e.focus(); + }, + }), + e + ); +}); diff --git a/en/index.html b/en/index.html index 6bcc1e0..c4f3590 100644 --- a/en/index.html +++ b/en/index.html @@ -2,17 +2,4 @@ new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); -})(window,document,'script','dataLayer','GTM-PMVMJ4'); \ No newline at end of file +})(window,document,'script','dataLayer','GTM-PMVMJ4'); \ No newline at end of file diff --git a/fr/index.html b/fr/index.html index c56bdc4..c2e3d67 100644 --- a/fr/index.html +++ b/fr/index.html @@ -2,17 +2,4 @@ new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); -})(window,document,'script','dataLayer','GTM-PMVMJ4'); \ No newline at end of file +})(window,document,'script','dataLayer','GTM-PMVMJ4'); \ No newline at end of file diff --git a/index.html b/index.html index 6bcc1e0..c4f3590 100644 --- a/index.html +++ b/index.html @@ -2,17 +2,4 @@ new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); -})(window,document,'script','dataLayer','GTM-PMVMJ4'); \ No newline at end of file +})(window,document,'script','dataLayer','GTM-PMVMJ4'); \ No newline at end of file