Changeset 50049 in spip-zone


Ignore:
Timestamp:
Jul 28, 2011, 4:34:30 PM (8 years ago)
Author:
real3t@…
Message:

Mise à jour pour le chargement asynchrone de Google+1 (cf http://www.google.com/intl/en/webmasters/+1/button/)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _squelettes_/soyezcreateurs_net/plugins_2.1/plugins/soyezcreateurs/noisettes/footer/footer.html

    r49544 r50049  
    3636[(#CONFIG{soyezcreateurs_google/googleplusun,non}|=={oui}|oui)
    3737<script type="text/javascript">
    38 (function(d, t) {
    39 var g = d.createElement(t),
    40 s = d.getElementsByTagName(t)[(#EVAL{chr(91)})]0[(#EVAL{chr(93)})];
    41 g.async = true;
    42 g.src = 'https://apis.google.com/js/plusone.js';
    43 g.innerHTML = '{lang: "#LANG"}';
    44 $('.g-plusone').attr('count', false);
    45 s.parentNode.insertBefore(g, s);
    46 })(document, 'script');
     38window.___gcfg = {lang: '#LANG'};
     39  (function() {
     40    var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
     41    po.src = 'https://apis.google.com/js/plusone.js';
     42    var s = document.getElementsByTagName('script')[(#EVAL{chr(91)})]0[(#EVAL{chr(93)})]; s.parentNode.insertBefore(po, s);
     43  })();
    4744</script>]
    4845</body>
Note: See TracChangeset for help on using the changeset viewer.