Skip to content

Commit

Permalink
fix outlook formatting AGAIN
Browse files Browse the repository at this point in the history
  • Loading branch information
CGray1234 committed Dec 2, 2024
1 parent e77eb31 commit 7e68eef
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion outlooks.html
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
<img id="cpacImage" class="storm-image" src="https://www.nhc.noaa.gov/xgtwo/two_cpac_7d0.png" style="display: none;">
</div>

<p class="outlook-discussions" id="outlook"></p>
<pre class="outlook-discussions" id="outlook"></pre>
</div>
</body>
</html>
2 changes: 1 addition & 1 deletion scripts/outlooks.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function fetchOutlookData(region, outlookText) {
fetch(api)
.then(response => response.json())
.then(data => {
const outlookData = data.outlooks[`${region}Outlook`].desc.replace(/&lt;br \/&gt;/g, '<br>');
const outlookData = data.outlooks[`${region}Outlook`].desc//;

outlookText.innerHTML = outlookData;
})
Expand Down
1 change: 1 addition & 0 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -482,4 +482,5 @@ button#outlooks-label:hover {
padding-right: 10px;
width: 50%;
font-size: 1vw;
line-height: 0.625vw;
}

0 comments on commit 7e68eef

Please sign in to comment.