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