Sorting by

×

Violent Tornadoes in Kentucky

Louisville, KY

Weather Forecast Office

Weather Story]]>‘); $(‘#wwamap’).prepend(”); var topDiv1 = document.getElementsByClassName(‘important’).length; var topDiv2 = document.getElementById(‘topnews’); if(topDiv1 == 1) { $(‘.five-sixth-last’).append(”); } else if (topDiv1 == 0 && topDiv2 !== null) { $(‘.five-sixth-last’).append(”); } else { $(‘#zipcity_news’).append(”); } slideshow(); graphicalDescription(); sitreportDescription(); window.setInterval(slideshow, 180000); window.setInterval(graphicalDescription, 60000); window.setInterval(sitreportDescription, 60000); function graphicalDescription(){ $.ajax({ type: “GET”, url: “/source/lmk/wxstory/wxstory.xml”, cache: false, dataType: “xml”, success: function(data){ $(data).find(‘graphicasts graphicast’).each(function(){ var tabNumber = $(this).find(“order”).text() if (tabNumber == 1) { var tabImage = $(this).find(“SmallImage”).text() $(‘.widget3Image’).html(‘‘); var tabTitle = $(this).find(“title”).text() $(‘.widget3TitleText’).html(‘‘ + tabTitle + ‘‘); var tabDescription = $(this).find(“description”).text() $(‘.widget3Subtext’).html(tabDescription); if (tabDescription.length >= 350) { var yourString = tabDescription; //nowcast text var maxLength = 350 // maximum number of characters to extract //trim the string to the maximum length var trimmedString = yourString.substr(0, maxLength); //re-trim if we are in the middle of a word trimmedString = trimmedString.substr(0, Math.min(trimmedString.length, trimmedString.lastIndexOf(” “))) $(‘.widget3Subtext’).html(trimmedString + ‘…’ + ”); } var tabExp = $(this).find(“EndTime”).text() milliseconds = (new Date).getTime(); if ((milliseconds/1000) Weather Story

‘); $.ajax({ type: “GET”, url: ‘/source/lmk/wxstory/wxstory.xml’, cache: false, dataType: “xml”, success: function(data){ $(data).find(‘graphicasts’).each(function(){ $(this).children().each(function(){ var exp = $(this).find(“EndTime”).text() var img = $(this).find(“SmallImage”).text() var rad = $(this).find(“radar”).text() milliseconds = (new Date).getTime(); if ((milliseconds/1000)

‘) } }) }); $(‘.cycle-slideshow’).cycle(); } }); } function sitreportDescription(){ $.ajax({ type: “GET”, url: “/source/lmk/sitreport/sitreport.xml”, cache: false, dataType: “xml”, success: function(data){ $(data).find(‘graphicasts graphicast’).each(function(){ var sitNumber = $(this).find(“order”).text() if (sitNumber == 1) { var sitImage = “http://www.weather.gov/images/lmk/sitreport/SitReport1Thumb.png”; //var sitImage = $(this).find(“SmallImage”).text() $(‘.sitrepImage’).html(‘

‘); var sitDescription = $(this).find(“description”).text() //var result = /^No Hazardous Weather Expected|^(?![sS])/i.test(sitDescription); var banner = $(this).find(“FrontPage”).text() //console.log(result); $(‘.sitrepSubtext’).html(sitDescription); if (sitDescription.length >= 100) { var yourString = sitDescription; //nowcast text var maxLength = 100 // maximum number of characters to extract //trim the string to the maximum length var trimmedString = yourString.substr(0, maxLength); //re-trim if we are in the middle of a word trimmedString = trimmedString.substr(0, Math.min(trimmedString.length, trimmedString.lastIndexOf(” “))) $(‘.sitrepSubtext’).html(trimmedString + ‘…’ + ‘

‘); } var sitExp = $(this).find(“EndTime”).text() milliseconds = (new Date).getTime(); if ((milliseconds/1000)

Source