Login   Register  
PHP Classes
elePHPant
Icontem

File: templates/pinterest/script.js

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Mike  >  PHP Socializer  >  templates/pinterest/script.js  >  Download  
File: templates/pinterest/script.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: PHP Socializer
Embed social buttons and widgets in Web pages
Author: By
Last change:
Date: 1 year ago
Size: 748 bytes
 

Contents

Class file image Download
_socialQueue.push({
    url: '//assets.pinterest.com/js/pinit.js',
    id: '<?php echo $this->name; ?>',
    preload: function(f) {
        window.PinIt = window.PinIt || {
            loaded:false
        };
        if (window.PinIt.loaded) {
            return;
        }
        window.PinIt.loaded = true;
    },
    onload: function(f) {
        if ('<?php echo $this->fadeIn; ?>') {
            f.awaitRender({
                buttons: document.getElementsByClassName('coi-social-button-<?php echo $this->name; ?>'),
                duration: '<?php echo $this->fadeIn; ?>',
                isRendered: function(element) {
                    return element.getElementsByTagName('A')[0];
                }
            });
        }
    }
});