Original source (on modern site) | Article images: [1]
Skip to content
Rainfall Totals Forecast Road Conditions Alerts `;
// $('#supra_hero_block').append(barContent);
// $('#main').prepend(barContent);
const heroDtW = 1200;
const heroDtH = 400;
const heroMbW = 700;
const heroMbH = 700;
const lboxW = 696;
const lboxH = 397;
const rboxW = 492;
const rboxH = 397;
const metroW = 240;
const metroH = 190;
sizeSupraHero();
$(document).ready(function() {
var radarBuster = new Date().getTime();
radarBuster = Math.floor(radarBuster / 1000 / 300);
var radarURL = "url('" + "https://media.psg.nexstardigital.net/kxan/weather/supra_nav/severe_wx_rainfall/prism_radar.gif?v=" + radarBuster + "')";
$('#supra_hero_radar').css('background-image', radarURL);
$('#supra_hero_block').each(function() {
sizeSupraHero();
});
});
$(window).resize(function() {
sizeSupraHero();
});
window.supraHeroDevice = 'desktop';
} else {
barContent = `
Rainfall Totals Road Conditions Alerts `;
// $('#supra_hero_block').append(barContent);
window.supraHeroDevice = 'mobile';
}
$('#main').prepend(barContent);
function sizeSupraHero() {
let winW = $(window).width();
let wxBar = $('#supra_hero_block');
let wxBarRight = $('.supra_hero_right');
let wxBarLeft = $('.supra_hero_left');
let wxBarH;
let wxBarLeftH;
if (winW > 700) {
// 1200 x 397
wxBarH = wxBar.width() / 1200 * 397;
} else {
wxBarH = wxBar.width() / 700 * 397;
}
wxBar.height( wxBarH );
wxBarRight.height( wxBarH );
wxBarLeft.height( wxBarH );
$('.supra_hero_metro').height($('.supra_hero_metro').width() * .80);
}
$("#supra_hero_radar").click(function() {
window.top.location = 'https://www.kxan.com/weather/radar/?ipid=wxsuprahero-radar-' + window.supraHeroDevice;
return false;
});
$("#supra_hero_rainfall_totals").click(function() {
window.top.location = 'https://www.kxan.com/weather/austin-area-rainfall-amounts/?ipid=wxsuprahero-rainfalltotals-' + window.supraHeroDevice;
return false;
});
$("#supra_hero_forecast").click(function() {
window.top.location = 'https://www.kxan.com/weather/forecast/todays-forecast/1010837543?ipid=wxsuprahero-forecast-' + window.supraHeroDevice;
return false;
});
$("#supra_hero_road_conditions").click(function() {
window.top.location = 'https://www.kxan.com/weather/low-water-crossing-closings/?ipid=wxsuprahero-conditions-' + window.supraHeroDevice;
return false;
});
$("#supra_hero_alerts").click(function() {
window.top.location = 'https://www.kxan.com/weather/weather-alerts?ipid=wxsuprahero-alerts-' + window.supraHeroDevice;
return false;
});
}
// -->
${kxanLiveLogo()} ${items[0]["abstract"]} Top Stories
`;
}
if (window.innerWidth > 767) {
vidbar += `
${logo} ${items[i]["abstract"]}
`;
} else {
if (firstLoop) {
logo = kxanLiveLogo();
vidbar += `
`;
}
if (window.innerWidth > 767) {
vidbar += `
`;
} else {
if (firstLoop) {
logo = kxanLiveLogo();
vidbar += `
`;
}
if (window.innerWidth > 767) {
vidbar += `
`;
} else {
if (firstLoop) {
logo = kxanLiveLogo();
vidbar += `
Trending Stories
Don't Miss
${topStories}
`;
return rtn;
}
// ████████╗██╗ ██╗ ██████╗ ██╗ ██╗██╗██████╗ ███████╗ ██████╗ ███████╗
// ╚══██╔══╝██║ ██║██╔═══██╗ ██║ ██║██║██╔══██╗██╔════╝██╔═══██╗██╔════╝
// ██║ ██║ █╗ ██║██║ ██║ ██║ ██║██║██║ ██║█████╗ ██║ ██║███████╗
// ██║ ██║███╗██║██║ ██║ ╚██╗ ██╔╝██║██║ ██║██╔══╝ ██║ ██║╚════██║
// ██║ ╚███╔███╔╝╚██████╔╝ ╚████╔╝ ██║██████╔╝███████╗╚██████╔╝███████║
// ╚═╝ ╚══╝╚══╝ ╚═════╝ ╚═══╝ ╚═╝╚═════╝ ╚══════╝ ╚═════╝ ╚══════╝
function buildDisplayForTwo(items) {
let vidbar = '';
let hierarchy = 'kxan_live_primary';
let firstLoop = true;
for(let i = 0; i < items.length; i++) {
let logo = kxanLiveLogo();
if (firstLoop && window.innerWidth > 767) {
vidbar += `
Also Live Now
`;
} else {
vidbar += `
`;
return vidbar;
}
// ████████╗██╗ ██╗██████╗ ███████╗███████╗ ██╗ ██╗██╗██████╗ ███████╗ ██████╗ ███████╗
// ╚══██╔══╝██║ ██║██╔══██╗██╔════╝██╔════╝ ██║ ██║██║██╔══██╗██╔════╝██╔═══██╗██╔════╝
// ██║ ███████║██████╔╝█████╗ █████╗ ██║ ██║██║██║ ██║█████╗ ██║ ██║███████╗
// ██║ ██╔══██║██╔══██╗██╔══╝ ██╔══╝ ╚██╗ ██╔╝██║██║ ██║██╔══╝ ██║ ██║╚════██║
// ██║ ██║ ██║██║ ██║███████╗███████╗ ╚████╔╝ ██║██████╔╝███████╗╚██████╔╝███████║
// ╚═╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚══════╝ ╚═══╝ ╚═╝╚═════╝ ╚══════╝ ╚═════╝ ╚══════╝
function buildDisplayForThree(items) {
let vidbar = '';
let hierarchy = 'kxan_live_primary';
let firstLoop = true;
for(let i = 0; i < 3; i++) {
let logo = logoPlaceholder();
let mobileMenu = '';
if (firstLoop && window.innerWidth > 767) {
logo = kxanLiveLogo();
vidbar += `
Also Live Now
`;
} else {
vidbar += `
`;
return vidbar;
}
// ███████╗ ██████╗ ██╗ ██╗██████╗ ██╗ ██╗██╗██████╗ ███████╗ ██████╗ ███████╗
// ██╔════╝██╔═══██╗██║ ██║██╔══██╗ ██║ ██║██║██╔══██╗██╔════╝██╔═══██╗██╔════╝
// █████╗ ██║ ██║██║ ██║██████╔╝ ██║ ██║██║██║ ██║█████╗ ██║ ██║███████╗
// ██╔══╝ ██║ ██║██║ ██║██╔══██╗ ╚██╗ ██╔╝██║██║ ██║██╔══╝ ██║ ██║╚════██║
// ██║ ╚██████╔╝╚██████╔╝██║ ██║ ╚████╔╝ ██║██████╔╝███████╗╚██████╔╝███████║
// ╚═╝ ╚═════╝ ╚═════╝ ╚═╝ ╚═╝ ╚═══╝ ╚═╝╚═════╝ ╚══════╝ ╚═════╝ ╚══════╝
function buildDisplayForFour(items) {
let vidbar = '';
let hierarchy = 'kxan_live_primary';
let firstLoop = true;
for(let i = 0; i < 4; i++) {
let logo = logoPlaceholder();
let mobileMenu = '';
if (firstLoop && window.innerWidth > 767) {
logo = kxanLiveLogo();
vidbar += `
Also Live Now
`;
} else {
vidbar += `
`;
return vidbar;
}
function buildBaseStyles() {
return `
`;
}
function logoPlaceholder() {
return ` `;
}
function kxanLiveLogo(completeLogo = true) {
return `
`;
}
// -->
Latest weather conditions from the KXAN First Warning Weather team
`;
// const firstParagraph = document.querySelector("#main > article > div.article-content.rich-text > p:nth-child(1)");
const firstParagraphHTML = firstParagraph.innerHTML;
firstParagraph.innerHTML = wwcContent + firstParagraphHTML;
}
}
}
// -->