SHARE

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

“+val.title+”

“);

if (val.poly != “http://www.fox10tv.com/” && val.polyimg != “http://www.fox10tv.com/”) {
$(“#expandable-weather-block .modal-body #mrd-alert”+ alertCount).append(‘http://www.fox10tv.com/“+val.ihtml+”“);
$(“#expandable-weather-block .weather-index-alerts”).show();

$(“#expandable-weather-block .modal-body h2”).css({“font-family”:”http://www.fox10tv.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.fox10tv.com/”);
$(“#mrd-wx-alerts .modal-body #mrd-alert”+ alertCount).append(“

“+val.title+”

“);

if (val.poly != “http://www.fox10tv.com/” && val.polyimg != “http://www.fox10tv.com/”) {
$(“#mrd-wx-alerts .modal-body #mrd-alert”+ alertCount).append(‘http://www.fox10tv.com/‘);
} else if (val.fips != “http://www.fox10tv.com/” && val.fipsimg != “http://www.fox10tv.com/”) {
// $(“#mrd-wx-alerts .modal-body #mrd-alert”+ alertCount).append(‘http://www.fox10tv.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.fox10tv.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.fox10tv.com/”;
}
}

SHARE

Leave a Reply