Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script>
- window.___gcfg = {lang: 'pt-BR'};
- (function(doc, script) {
- var js,
- fjs = doc.getElementsByTagName(script)[0],
- frag = doc.createDocumentFragment(),
- add = function(url, id) {
- if (doc.getElementById(id)) {return;}
- js = doc.createElement(script);
- js.src = url;
- id && (js.id = id);
- frag.appendChild( js );
- };
- // Google Analytics
- //add(('https:' == location.protocol ? '//ssl' : '//www') + '.google-analytics.com/ga.js', 'ga');
- // Google+ button
- add('https://apis.google.com/js/plusone.js');
- // Facebook SDK
- add('//connect.facebook.net/en_US/all.js#xfbml=1', 'facebook-jssdk');
- // Twitter SDK
- add('//platform.twitter.com/widgets.js');
- fjs.parentNode.insertBefore(frag, fjs);
- }(document, 'script'));
- </script>
- depois só chama o <div class="fb-like" data-href="http://artbrasilis.com.br" data-send="false" data-layout="button_count" data-width="150" data-show-faces="false"></div>
- no resto das páginas
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement