summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/jetpack/_inc/crowdsignal-shortcode.js')
-rw-r--r--plugins/jetpack/_inc/crowdsignal-shortcode.js18
1 files changed, 18 insertions, 0 deletions
diff --git a/plugins/jetpack/_inc/crowdsignal-shortcode.js b/plugins/jetpack/_inc/crowdsignal-shortcode.js
new file mode 100644
index 00000000..6770482f
--- /dev/null
+++ b/plugins/jetpack/_inc/crowdsignal-shortcode.js
@@ -0,0 +1,18 @@
+( function( d, c, j ) {
+ var crowdsignal_shortcode_options;
+ if (
+ crowdsignal_shortcode_options &&
+ crowdsignal_shortcode_options.script_url &&
+ ! d.getElementById( j )
+ ) {
+ var pd = d.createElement( c ),
+ s;
+ pd.id = j;
+ pd.async = true;
+ pd.src = crowdsignal_shortcode_options.script_url;
+ s = d.getElementsByTagName( c )[ 0 ];
+ s.parentNode.insertBefore( pd, s );
+ } else if ( typeof jQuery !== 'undefined' ) {
+ jQuery( d.body ).trigger( 'pd-script-load' );
+ }
+} )( document, 'script', 'pd-polldaddy-loader' );