Login   Register  
PHP Classes
elePHPant
Icontem

File: templates/stumbleupon/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/stumbleupon/script.js  >  Download  
File: templates/stumbleupon/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: 2013-01-08 00:16
Size: 735 bytes
 

Contents

Class file image Download
_socialQueue.push({
    url: '//platform.stumbleupon.com/1/widgets.js',
    id: '<?php echo $this->name; ?>',
    onload: function(f) {
        window.STMBLPN.processWidgets();
        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('IFRAME')[0];
                },
                renderedMethod: function(b, d) {
                    f.iframeOnload(b.getElementsByTagName('IFRAME')[0], b, d);
                }
            });
        }
    }
});