Bugfixes
This commit is contained in:
parent
6943214927
commit
b8e6640fa0
|
@ -64,7 +64,7 @@
|
|||
}
|
||||
@font-face {
|
||||
font-family: Frutiger;
|
||||
src: url(/fonts/newfonts/Frutiger_bold.woff) format("woff");
|
||||
src: url(/fonts/newfonts/Frutiger_Bold.woff) format("woff");
|
||||
font-weight: bold;
|
||||
font-style: normal
|
||||
}
|
||||
|
@ -5240,6 +5240,7 @@ label{
|
|||
-webkit-mask-image: url(/images/airport-curve.svg);
|
||||
mask-image: url(/images/airport-curve.svg);
|
||||
-webkit-mask-size:200% 200%;
|
||||
mask-size:200% 200%;
|
||||
-webkit-mask-position: 0% 100%;
|
||||
mask-position: 0% 100%;
|
||||
mask-repeat: no-repeat;
|
||||
|
|
Binary file not shown.
|
@ -1465,7 +1465,7 @@
|
|||
<div class='readytext'>READY</div>
|
||||
</div>
|
||||
<div class='frost-pane tipcontent'>
|
||||
<div class='wintertip3' style="display: none"><!--originally shown in November 2016--->
|
||||
<div class='wintertip2' style="display: none"><!--originally shown in November 2016--->
|
||||
Know the difference in Winter Weather Warnings:
|
||||
<br>
|
||||
<br>
|
||||
|
@ -1514,7 +1514,7 @@
|
|||
<br>
|
||||
- Woolen mittens, socks, a cap and blankets
|
||||
</div>
|
||||
<div class='summertip2' style="display: none"><!--originally shown in June--->
|
||||
<div class='summertip' style="display: none"><!--originally shown in June--->
|
||||
Never leave infants, children, or pets in a parked car.
|
||||
</div>
|
||||
<div class='severeweathertip' style="display: none"><!--originally shown in June--->
|
||||
|
|
|
@ -1182,6 +1182,7 @@ function grabAirportData() {
|
|||
mairporturl += '&language=en-US&units=e&format=json&apiKey='+ api_key
|
||||
//{displayname:"New York / LaGaurdia",iata:"LGA",delay:"No Delay",temp:""}
|
||||
$.getJSON(mairporturl, function(data) {
|
||||
weatherInfo.ccticker.ccairportdelays = []
|
||||
data.forEach((airport, i) => {
|
||||
var marqueedelay = {iato:"",type:"",amount:"",amountmin:0,reason:""};
|
||||
var airportdepartdelay = {iato:"",type:"",amount:"",amountmin:0,reason:""};
|
||||
|
|
|
@ -433,7 +433,7 @@ var mainMap
|
|||
//fadeout
|
||||
setTimeout(function() {
|
||||
$('.info-slide-content.severe-extended-forecast').fadeOut(500).promise().done(function(){
|
||||
$('.city-info-slide').fadeOut(0);
|
||||
$('.severe-city-info-slide').fadeOut(0);
|
||||
wait(0)
|
||||
});
|
||||
}, slideDelay);
|
||||
|
@ -1440,32 +1440,33 @@ var mainMap
|
|||
$('.info-slide.health .subhead-title').text('Weather Safety Tips');
|
||||
const d = new Date();
|
||||
let month = d.getMonth();
|
||||
if (month > 4 && month < 8) {
|
||||
$('.summertip').show();
|
||||
} else if (month == 0) {
|
||||
$('.flutip').show();
|
||||
} else if (month == 1) {
|
||||
$('.pipetip2').show();
|
||||
} else if (month == 2) {
|
||||
$('.wintertip2').show();
|
||||
} else if (month == 3) {
|
||||
$('.allergytip2').show();
|
||||
} else if (month == 4) {
|
||||
$('.drivingtip2').show();
|
||||
} else if (month == 8) {
|
||||
$('.drivingtip').show();
|
||||
} else if (month == 9) {
|
||||
$('.allergytip').show();
|
||||
} else if (month == 10) {
|
||||
$('.drivingtip').show();
|
||||
} else if (month == 11) {
|
||||
$('.flutip2').show();
|
||||
const summertips = ["summertip","preparednessplantip","severeweathertip","severeweathertip2","severeweathertip3","drivingtip","drivingtip2","allergytip","allergytip2"]
|
||||
const wintertips = ["wintertip","wintertip2","preparednessplantip","winterdrivingtip","winterdrivingtip2","pettip","pettip2","pettip3","pipetip","pipetip2","pipetip3","flutip","flutip2","firetip","firetip2","sunscreenwintertip","sunscreenwintertip2","shovelingtip","allergytip","allergytip2"]
|
||||
var tipidx = 0;
|
||||
|
||||
if (month > 2 && month < 9) {
|
||||
$('.' + summertips[tipidx]).show();
|
||||
if (tipidx > summertips.length) {
|
||||
tipidx = 0
|
||||
} else {
|
||||
tipidx += 1;
|
||||
}
|
||||
} else {
|
||||
$('.wintertip').show();
|
||||
$('.' + summertips[tipidx]).show();
|
||||
if (tipidx > wintertips.length) {
|
||||
tipidx = 0
|
||||
} else {
|
||||
tipidx += 1;
|
||||
}
|
||||
}
|
||||
$('.info-slide-content.healthtip').fadeIn(500);
|
||||
setTimeout(function() {
|
||||
$('.info-slide-content.healthtip').fadeOut(500).promise().done(function(){
|
||||
if (month > 2 && month < 9) {
|
||||
$('.' + summertips[tipidx-1]).hide();
|
||||
} else {
|
||||
$('.' + summertips[tipidx-1]).hide();
|
||||
}
|
||||
wait(0);
|
||||
});
|
||||
}, slideDelay);
|
||||
|
|
Loading…
Reference in New Issue