Winter weather advisory issued for parts of the state | News

0
‘);
$(“#expandable-weather-block .modal-body #mrd-alert”+ alertCount).append(“

“+val.title+”

“);

// if (window.location.hostname == “www.kmov.com”http://www.wfsb.com/”http://www.wfsb.com/” window.location.hostname == “www.kctv5.com”http://www.wfsb.com/”http://www.wfsb.com/” window.location.hostname == “www.azfamily.com”http://www.wfsb.com/”http://www.wfsb.com/” window.location.hostname == “www.kptv.com”http://www.wfsb.com/”http://www.wfsb.com/” window.location.hostname == “www.fox5vegas.com”http://www.wfsb.com/”http://www.wfsb.com/” window.location.hostname == “www.wfsb.com”) {
if (val.poly != “http://www.wfsb.com/” && val.polyimg != “http://www.wfsb.com/”) {
$(“#expandable-weather-block .modal-body #mrd-alert”+ alertCount).append(‘http://www.wfsb.com/“+val.ihtml+”“);
$(“#expandable-weather-block .weather-index-alerts”).show();

$(“#expandable-weather-block .modal-body h2”).css({“font-family”:”http://www.wfsb.com/”Fira Sans’, sans-serif”, “font-weight”:”500″, “padding-bottom”:”10px”});
$(“#expandable-weather-block .modal-body p”).css({“font-size”:”14px”, “line-height”:”24px”});
$(“#expandable-weather-block .modal-body span.wxalertnum”).css({“float”:”left”, “width”:”40px”, “height”:”40px”, “color”:”#ffffff”, “line-height”:”40px”, “background-color”:”#888888″, “border-radius”:”40px”, “text-align”:”center”, “margin-right”:”12px”});
$(“#expandable-weather-block .modal-body b”).css(“font-size”, “18px”);
$(“#expandable-weather-block .modal-body li”).css({“font-size”:”14px”, “line-height”:”18px”, “margin-bottom”:”10px”});
$(“#expandable-weather-block .modal-body ul”).css({“margin-bottom”:”24px”});
$(“#expandable-weather-block .modal-body pre”).css({“margin-bottom”:”24px”});
$(“#expandable-weather-block .modal-body img”).css({“width”:”100%”, “margin-bottom”:”20px”, “borderWidth”:”1px”, “border-style”:”solid”, “border-color”:”#aaaaaa”});
$(“#expandable-weather-block .modal-body #mrd-alert”+ alertCount).css({“borderWidth”:”0″, “border-bottom-width”:”1px”, “border-style”:”dashed”, “border-color”:”#aaaaaa”, “padding-bottom”:”10px”, “margin-bottom”:”40px”});

});
}

function parseAlertJSON(json) {
console.log(json);

alertCount = 0;
if (Object.keys(json.alerts).length > 0) {
$(“#mrd-wx-alerts .modal-body “).empty();
}
$.each(json.alerts, function(key, val) {
alertCount++;
$(“#mrd-wx-alerts .alert_count”).text(alertCount);
$(“#mrd-wx-alerts .modal-body “).append(“http://www.wfsb.com/”);
$(“#mrd-wx-alerts .modal-body #mrd-alert”+ alertCount).append(“

“+val.title+”

“);

// if (window.location.hostname == “www.kmov.com”http://www.wfsb.com/”http://www.wfsb.com/” window.location.hostname == “www.kctv5.com”http://www.wfsb.com/”http://www.wfsb.com/” window.location.hostname == “www.azfamily.com”http://www.wfsb.com/”http://www.wfsb.com/” window.location.hostname == “www.kptv.com”http://www.wfsb.com/”http://www.wfsb.com/” window.location.hostname == “www.fox5vegas.com”http://www.wfsb.com/”http://www.wfsb.com/” window.location.hostname == “www.wfsb.com”) {
if (val.poly != “http://www.wfsb.com/” && val.polyimg != “http://www.wfsb.com/”) {
$(“#mrd-wx-alerts .modal-body #mrd-alert”+ alertCount).append(‘http://www.wfsb.com/‘);
} else if (val.fips != “http://www.wfsb.com/” && val.fipsimg != “http://www.wfsb.com/”) {
// $(“#mrd-wx-alerts .modal-body #mrd-alert”+ alertCount).append(‘http://www.wfsb.com/‘);
}
// }

//val.instr = val.instr.replace(/[W_]+/g,”http://www.wfsb.com/”);
$(“#mrd-wx-alerts .modal-body #mrd-alert”+ alertCount).append(val.dhtml+”

Instruction

“+val.ihtml);
$(“#mrd-wx-alerts”).show();

$(“#mrd-wx-alerts .modal-body h2”).css({“font-family”:”http://www.wfsb.com/”Fira Sans’, sans-serif”, “font-weight”:”500″, “padding-bottom”:”10px”});
$(“#mrd-wx-alerts .modal-body p”).css({“font-size”:”14px”, “line-height”:”24px”});
$(“#mrd-wx-alerts .modal-body span.wxalertnum”).css({“float”:”left”, “width”:”40px”, “height”:”40px”, “color”:”#ffffff”, “line-height”:”40px”, “background-color”:”#888888″, “border-radius”:”40px”, “text-align”:”center”, “margin-right”:”12px”});
$(“#mrd-wx-alerts .modal-body b”).css(“font-size”, “18px”);
$(“#mrd-wx-alerts .modal-body li”).css({“font-size”:”14px”, “line-height”:”18px”, “margin-bottom”:”10px”});
$(“#mrd-wx-alerts .modal-body ul”).css({“margin-bottom”:”24px”});
$(“#mrd-wx-alerts .modal-body pre”).css({“margin-bottom”:”24px”});
$(“#mrd-wx-alerts .modal-body img”).css({“width”:”100%”, “margin-bottom”:”20px”, “borderWidth”:”1px”, “border-style”:”solid”, “border-color”:”#aaaaaa”});
$(“#mrd-wx-alerts .modal-body #mrd-alert”+ alertCount).css({“borderWidth”:”0″, “border-bottom-width”:”1px”, “border-style”:”dashed”, “border-color”:”#aaaaaa”, “padding-bottom”:”10px”, “margin-bottom”:”40px”});
});
}

// Check if String or Object
function check(obj) {
if (typeof obj == ‘string’){
return String(obj);
} else {
return “http://www.wfsb.com/”;
}
}

2019-12-03 14:05:00

Read more from source here…

LEAVE A REPLY

Please enter your comment!
Please enter your name here