This repository has been archived by the owner on Jul 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fd3a4ef
commit dc19063
Showing
1 changed file
with
175 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,175 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<title>WeatherBlox</title> | ||
<meta name="viewport" content="initial-scale=1,maximum-scale=1,user-scalable=no" /> | ||
|
||
<link rel="stylesheet" href="https://cdn.aerisapi.com/wxblox/latest/aeris-wxblox.css"> | ||
<script defer src="https://cdn.aerisapi.com/wxblox/latest/aeris-wxblox.js"></script> | ||
|
||
</head> | ||
<body> | ||
|
||
<!--// target DOM element where WeatherBlox will be rendered //--> | ||
<div id="wxblox" class="aeris-wrapper"></div> | ||
|
||
<script> | ||
window.onload = () => { | ||
// set Aeris account access keys | ||
const aeris = new AerisWeather('DZLMGEFxCvfbQRG7aSN3c', 'N63dulcmKzQTrWjIrTe2aGKmOw5AhERWWUmjHQKt'); | ||
|
||
aeris.on('ready', () => { | ||
|
||
// create desired WeatherBlox instance | ||
const view = new aeris.wxblox.views.Observations('#wxblox', { | ||
advisories: { | ||
enabled: true | ||
}, | ||
threats: { | ||
enabled: true | ||
} | ||
}); | ||
|
||
// load data and render the view for a specific location | ||
view.load({ | ||
p: "rosslyn,va" | ||
}); | ||
|
||
}); | ||
}; | ||
</script> | ||
|
||
</body> | ||
</html> | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<title>WeatherBlox</title> | ||
<meta name="viewport" content="initial-scale=1,maximum-scale=1,user-scalable=no" /> | ||
|
||
<link rel="stylesheet" href="https://cdn.aerisapi.com/wxblox/latest/aeris-wxblox.css"> | ||
<script defer src="https://cdn.aerisapi.com/wxblox/latest/aeris-wxblox.js"></script> | ||
|
||
</head> | ||
<body> | ||
|
||
<!--// target DOM element where WeatherBlox will be rendered //--> | ||
<div id="wxblox" class="aeris-wrapper"></div> | ||
|
||
<script> | ||
window.onload = () => { | ||
// set Aeris account access keys | ||
const aeris = new AerisWeather('DZLMGEFxCvfbQRG7aSN3c', 'N63dulcmKzQTrWjIrTe2aGKmOw5AhERWWUmjHQKt'); | ||
|
||
aeris.on('ready', () => { | ||
|
||
// create desired WeatherBlox instance | ||
const view = new aeris.wxblox.views.Phrases('#wxblox', { | ||
title: "TODAY/TONIGHT", | ||
advisories: { | ||
enabled: true | ||
}, | ||
threats: { | ||
enabled: true | ||
} | ||
}); | ||
|
||
// load data and render the view for a specific location | ||
view.load({ | ||
p: "rosslyn,va" | ||
}); | ||
|
||
}); | ||
}; | ||
</script> | ||
|
||
</body> | ||
</html> | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<title>WeatherBlox</title> | ||
<meta name="viewport" content="initial-scale=1,maximum-scale=1,user-scalable=no" /> | ||
|
||
<link rel="stylesheet" href="https://cdn.aerisapi.com/wxblox/latest/aeris-wxblox.css"> | ||
<script defer src="https://cdn.aerisapi.com/wxblox/latest/aeris-wxblox.js"></script> | ||
|
||
</head> | ||
<body> | ||
|
||
<!--// target DOM element where WeatherBlox will be rendered //--> | ||
<div id="wxblox" class="aeris-wrapper"></div> | ||
|
||
<script> | ||
window.onload = () => { | ||
// set Aeris account access keys | ||
const aeris = new AerisWeather('DZLMGEFxCvfbQRG7aSN3c', 'N63dulcmKzQTrWjIrTe2aGKmOw5AhERWWUmjHQKt'); | ||
|
||
aeris.on('ready', () => { | ||
|
||
// create desired WeatherBlox instance | ||
const view = new aeris.wxblox.views.MapViewer('#wxblox', { | ||
map: { | ||
center: "minneapolis,mn", | ||
layers: { | ||
base: "flat", | ||
data: "radar", | ||
overlays: "admin" | ||
}, | ||
zoom: 11, | ||
size: { | ||
factor: 0.75, | ||
autoscale: true, | ||
width: 500 | ||
} | ||
}, | ||
animation: { | ||
enabled: true, | ||
autoplay: false, | ||
alwaysShowPast: false, | ||
alwaysShowFuture: false, | ||
from: -7200, | ||
to: 0, | ||
duration: 2, | ||
endDelay: 1, | ||
intervals: 10 | ||
}, | ||
overlays: { | ||
title: "RADAR - ROSSLYN, VA" | ||
}, | ||
controls: { | ||
regions: [{ | ||
loc: "washington,dc", | ||
zoom: 8, | ||
title: "Local", | ||
region: "rosslyn,va" | ||
},{ | ||
loc: "38.906771392571926, -77.04611434564896", | ||
zoom: 5, | ||
region: "38.906771392571926, -77.04611434564896", | ||
title: "City" | ||
}] | ||
}, | ||
title: "TODAY/TONIGHT", | ||
advisories: { | ||
enabled: true | ||
}, | ||
threats: { | ||
enabled: true | ||
} | ||
}); | ||
|
||
// load data and render the view for a specific location | ||
view.load({ | ||
p: "rosslyn,va" | ||
}); | ||
|
||
}); | ||
}; | ||
</script> | ||
|
||
</body> | ||
</html> |