Rain: 7am to 7am: .37 Month: 1.15 Year: 26.68 Recorded temps: High: 88 Low: 64
June 4, 2024 12:30 pm Uncategorized
Talk of the Town
Subscribe on these platforms
- RSS
- Embed
- Download
- Go to Podcast
Baxter County Sheriff Montgomery Update
- .75x
- 1x
- 1.25x
- 1.5x
- 1.75x
- 2x
<"+iframeTag+" class='wpb_audioplayer "+class_iFrame+"' scrolling='no' width='600' height='"+iframe_Height+"' frameborder='0' src='"+iframeURL+"'>
"; } textArea.value = iframeStylesheet + iframeHTML; document.body.appendChild(textArea); textArea.select(); try { var successful = document.execCommand('copy'); } catch (err) { } document.body.removeChild(textArea); console.log("Player Embed Code has been copied to your clipboard."); }); //------------------------------------------------- //jQuery(document).ready(function(){ jQuery("#play-btn-0").click(function(){ console.log('play button clicked : 0'); show_hide_trailer_common_func(); //jQuery('#single_podct_trailer').remove() //------------------------------- //WPB-435 //console.log('js code >> play button.'); //first call this. //console.log(eval('gotADS_0')); if (typeof gotADS_0 !== 'undefined' && eval('gotADS_0')) { hideAudioPlayerShowVideoPlayer('0'); } //------------------------------- }); //}); //End of ready....//-------------------------------------------------------------------------------var gotVideo_0 = false; //WPB-435 //var gotADS_0 = true; //define into common php code file.//-------------------------------------------------------------------------------// WPB-6002 -- separate func.function show_hide_trailer_common_func() { if(jQuery('#play_trailer').length>0){ jQuery('#play_trailer').show(); jQuery('#hide_trailer').hide(); }else if(jQuery('#play_trailer_ele').length>0){ jQuery('#play_trailer_ele').show(); jQuery('#hide_trailer_ele').hide(); }}// WPB-6002 -- separate func.function jp_playlist_episode_without_mid_post_preroll_0(linkObject) {/* outside jquery ready func. */ show_hide_trailer_common_func(); firstTimeLoad_directClickToPlayer_0 = false; //------------------------------- //WPB-435 if (typeof gotADS_0 !== 'undefined' && eval('gotADS_0')) { var retHideAudio = hideAudioPlayerShowVideoPlayer('0'); } else { var retHideAudio = false; } if (retHideAudio) { var videoPlayerContDivObj = document.getElementById('vid-container-0'); if (videoPlayerContDivObj.style.display == 'block') { jQuery("#player-0").jPlayer('stop'); eval('vid0').play(); /*play video direct ads. */ episode_first_playlist_id_0 = linkObject.id; return; } }//End of if (retHideAudio) //------------------------------- //WPB-306 : fixed problem missing stop/play button . jQuery("#pause-btn-0").removeClass("hidden"); var link_episode = linkObject.id; //get id this way. not used class wise jquery onclick. var idArr = link_episode.split('-'); var player_unique_index = idArr[2]; var key_index = idArr[3]; var episode_id = idArr[4]; var js_str = playlists_arr_0[key_index]; var jsInfoArr = getJsInfo_Audio_Common(js_str); var e_id = jsInfoArr['e_id']; var e_title = jsInfoArr['e_title']; var e_audio = jsInfoArr['e_audio']; var e_image = jsInfoArr['e_image']; var p_id = jsInfoArr['p_id']; var p_audio = jsInfoArr['p_audio']; var e_audio = jsInfoArr['e_audio']; var p_title = jsInfoArr['p_title']; var pod_id = jsInfoArr['pod_id']; var ply_f = jsInfoArr['ply_f']; var e_audio_dl = jsInfoArr['e_audio_dl']; document.getElementById('jp-image-'+player_unique_index).style.backgroundImage = "url('"+e_image+"')"; //change image document.getElementById('jp-body-background-'+player_unique_index).style.backgroundImage = "url('"+e_image+"')"; //change download link to episode audio file as per click on playlist player audio song. //document.getElementById('download-'+player_unique_index).href = e_audio; var e_audioDownload=e_audio; if(e_audio.indexOf("?")>0) e_audioDownload = e_audio.substring(0, e_audio.lastIndexOf('?')); document.getElementById('download-'+player_unique_index).href = '/wp-content/plugins/wpb-show-core/download-episode.php?eid='+e_id+'&flag=playlist-js'; document.getElementById('hid-extra-'+player_unique_index).value = 'e_id^@^'+e_id+'^#^p_id^@^'+p_id+'^#^flag^@^episode'+'^#^pod_id^@^'+pod_id+'^#^ply_f^@^'+ply_f; var original_e_audio = e_audio; var original_e_title = e_title; if (p_audio) { /*if preroll then play that first.*/ e_audio = p_audio; //play preroll first. document.getElementById('hid-extra-'+player_unique_index).value = 'e_id^@^'+e_id+'^#^p_id^@^'+p_id+'^#^flag^@^preroll'+'^#^pod_id^@^'+pod_id+'^#^ply_f^@^'+ply_f; } /*if (p_title) { //e_title = p_title; //play preroll first. }*/ if (p_audio) { currentlyPlaying_0='preroll'; //console.log('currentlyPlaying_11'+ currentlyPlaying_0); jQuery('#currentlyPlaying-0').val('preroll'); //console.log('here6:::'+currentlyPlaying_0); show_hide_trailer_common_func(); jQuery("#player-0").jPlayer("setMedia", { //play preroll first. /*title: 'TEST', mp3: 'https://www.soundhelix.com/examples/mp3/SoundHelix-Song-1.mp3', //temp mp3 */ //title: e_title + ' -- Preroll audio ', title: e_title, mp3: e_audio }); var next_song_flag = 0; //play actual audio. // ============================================================ jQuery("#player-0").on(jQuery.jPlayer.event.ended, function(event) { show_hide_trailer_common_func(); currentlyPlaying_0='original'; //console.log('currentlyPlaying_12'+ currentlyPlaying_0); jQuery('#currentlyPlaying-0').val('original'); jQuery("#player-0").jPlayer("setMedia", { /*title: e_title + ' -- Actual audio ', */ title: original_e_title, mp3: original_e_audio }); jQuery("#player-0").jPlayer("play"); jQuery("#container-0").removeClass('pause'); if (next_song_flag == 0) { document.getElementById('hid-extra-'+player_unique_index).value = 'e_id^@^'+e_id+'^#^p_id^@^'+p_id+'^#^flag^@^episode'+'^#^pod_id^@^'+pod_id+'^#^ply_f^@^'+ply_f; } var next_song = playListNext_0(player_unique_index, key_index, next_song_flag); next_song_flag = next_song; /* next_song to 1, if preroll finished to play then only pickup next song. */ }); // ============================================================ } else { currentlyPlaying_0='original'; //console.log('currentlyPlaying_13'+ currentlyPlaying_0); jQuery('#currentlyPlaying-0').val('original'); var next_song_flag = 1; //no preroll. so, play song direct next. //play actual audio, if no preroll found. jQuery("#player-0").jPlayer("setMedia", { //title: e_title + ' -- Actual audio -- no prerolls ', title: e_title, mp3: e_audio }); jQuery("#player-0").on(jQuery.jPlayer.event.ended, function(event) { show_hide_trailer_common_func(); /*if (next_song_flag == 1) { */ document.getElementById('hid-extra-'+player_unique_index).value = 'e_id^@^'+e_id+'^#^p_id^@^'+p_id+'^#^flag^@^episode'+'^#^pod_id^@^'+pod_id+'^#^ply_f^@^'+ply_f; /*}*/ var next_song = playListNext_0(player_unique_index, key_index, next_song_flag); //next_song_flag = next_song; }); }//End of else above....... jQuery("#player-0").jPlayer("play"); jQuery("#container-0").removeClass('pause');}//End of function jp_playlist_episode_without_mid_post_preroll_