HEX
Server: Apache/2.4.41 (Ubuntu)
System: Linux vm8 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: afleverb (1000)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: //var/www/wintergenomics_site_bak/wp-content/jetpack/_inc/polldaddy-shortcode.js
( function( $ ) {
	window.polldaddyshortcode = {
		render: function() {
			var ratings = $( 'div.pd-rating[data-settings]' );
			var polls = $( 'div.PDS_Poll[data-settings]' );

			if ( polls ) {
				$.each( polls, function() {
					var poll = $( this ).data( 'settings' );

					if ( poll ) {
						var poll_url = document.createElement( 'a' );
						poll_url.href = poll[ 'url' ];
						if (
							poll_url.hostname != 'secure.polldaddy.com' &&
							poll_url.hostname != 'static.polldaddy.com'
						) {
							return false;
						}
						var pathname = poll_url.pathname;
						if ( ! /\/?p\/\d+\.js/.test( pathname ) ) {
							return false;
						}
						var wp_pd_js = document.createElement( 'script' );
						wp_pd_js.type = 'text/javascript';
						wp_pd_js.src = poll[ 'url' ];
						wp_pd_js.charset = 'utf-8';
						wp_pd_js.async = true;
						document.getElementsByTagName( 'head' )[ 0 ].appendChild( wp_pd_js );
					}
				} );
			}

			if ( ratings ) {
				var script = '';

				$.each( ratings, function() {
					var rating = $( this ).data( 'settings' );

					if ( rating ) {
						script +=
							'PDRTJS_settings_' +
							rating[ 'id' ] +
							rating[ 'item_id' ] +
							'=' +
							rating[ 'settings' ] +
							"; if ( typeof PDRTJS_RATING !== 'undefined' ){ if ( typeof PDRTJS_" +
							rating[ 'id' ] +
							rating[ 'item_id' ] +
							"=='undefined' ){PDRTJS_" +
							rating[ 'id' ] +
							rating[ 'item_id' ] +
							'= new PDRTJS_RATING( PDRTJS_settings_' +
							rating[ 'id' ] +
							rating[ 'item_id' ] +
							' );}}';
					}
				} );

				if ( script.length > 0 )
					$( '#polldaddyRatings' ).after(
						"<script type='text/javascript' charset='utf-8' id='polldaddyDynamicRatings'>" +
							script +
							'</script>'
					);
			}
		},
	};

	$( 'body' ).on( 'post-load pd-script-load', function() {
		window.polldaddyshortcode.render();
	} );
	$( 'body' ).trigger( 'pd-script-load' );
} )( jQuery );