Seja bem vindo ao site fm detroit '); setTimeout(function () { $("#iframe_cs").attr("src", "https://player.painelcast.com/camera-studio/6830"); }, 300); } function carregapedidos(iddiv) { $("#" + iddiv).html("
"); setTimeout(function () { $(".sg-modalfundo").toggle(150) }, 300); $("#modalResultado").html(''); } function carregahistorico(iddiv) { $("#" + iddiv).html("
"); setTimeout(function () { $(".sg-modalfundo").toggle(150) }, 300); $.get( "/site-adm-onepage2/historico.php?porta=6830&servidor=69.197.191.50").done(function( resultado ) { $('#modalResultado').hide().html(resultado).fadeIn(1500); }); } function fecharModal(iddiv) { $(".sg-modalfundo").toggle(150); setTimeout(function () { $("#" + iddiv).html("") }, 300) } function setVolume() { if (playerStream) { playerStream.volume = document.getElementById("volume").value } } function setMute(e) { if (playerStream) { playerStream.muted = !playerStream.muted; e.target.className = (playerStream.muted) ? "fa fa-volume-mute cortexto" : "fa fa-volume-up cortexto" } } async function stop() { if (playerStream) { playerStream.pause(); playerStream.src = playerStream.src; isPlaying = false } await atualizaButton("start") } async function play() { await atualizaButton("load"); isPlaying = true; if (playerStream && playerStream.readyState != 0) { playerStream.load(); playerStream.play().then(async () => { await atualizaButton("stop") }).catch(async (e) => { await atualizaButton("start") }) } } function togglePlay() { if (isPlaying) { stop() } else { play() } }; async function atualizaButton(status) { switch (status) { case "load": document.getElementById("playerButton").className = "sg-carrega-load"; break; case "start": document.getElementById("playerButton").className = "fas fa-play play"; break; case "stop": document.getElementById("playerButton").className = "fas fa-pause play"; break; default: document.getElementById("playerButton").className = "fas fa-play play"; break } } const vw = Math.max(document.documentElement.clientWidth || 0, window.innerWidth || 0); if (vw > "820") { $(".sg-pubmeioroll").slick({ slidesToShow: 2, slidesToScroll: 1, autoplay: true, autoplaySpeed: 3500, vertical: false, verticalSwiping: false }) } else { $(".sg-pubmeioroll").slick({ slidesToShow: 1, slidesToScroll: 1, autoplay: true, autoplaySpeed: 3500, vertical: false, verticalSwiping: false }) } function load_cover() { $.ajax({ url:"/one-page2/6830/cover", type:"GET", success: function(cover, statusText, errorThrown){ $("#imgNoAr").css("background", "#ff8000 url("+cover+") 0% 0% / cover no-repeat"); $("#imgNoAr").css("opacity", "0"); $("#imgNoAr").css("opacity", "1"); }, error: function(xhr, statusText, errorThrown){ $("#imgNoAr").css("background", "#ff8000 url('/site-adm-onepage2/logo-6830.png') 0% 0% / cover no-repeat"); $("#imgNoAr").css("opacity", "1"); } }); } function load_musica() { $.ajax({ url:"/one-page2/6830/musica", type:"GET", success: function(dados, statusText, errorThrown){ var dados = dados.split("-"); $("#progNoAr").html(dados[1]); $("#locutorNoAr").html(dados[0]); }, error: function(xhr, statusText, errorThrown){ $("#progNoAr").html('fm detroit