-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feat: Add default announcement (#161)
* Add announcent default * Add announcent input * Add js to dynamic insert of contents * Remove text * Rename announcement files * Rename announcement file * Revert changes * Read txt file * Add styles * Add path to the announcement * Add error for testing * DBG: check file present * Add announcement message layout * Revert the file name * resolves the layout * remove background from announcemnet default * Add new style for announcement * Add version warning color * Add version warning color to light red * Add opacity for the dark theme * correcting the layout of css. Co-authored-by: Jorge Martinez Garrido <[email protected]>
- Loading branch information
1 parent
1a3e4ed
commit 1bf7038
Showing
5 changed files
with
57 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 |
---|---|---|
|
@@ -11,6 +11,7 @@ __pycache__/ | |
.Python | ||
_build/ | ||
build/ | ||
_build/ | ||
develop-eggs/ | ||
dist/ | ||
downloads/ | ||
|
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,14 @@ | ||
{% if theme_switcher %} | ||
<div id="announcement_msg"></div> | ||
<script> | ||
fetch("announcement.html") | ||
.then((response) => { | ||
if (!response.ok) { | ||
throw new Error(`HTTP error: ${response.status}`); | ||
} | ||
return response.text(); | ||
}) | ||
.then(text => document.getElementById("announcement_msg").innerHTML = text) | ||
.catch((error) => console.error(`Fetch problem: ${error.message}`)); | ||
</script> | ||
{% endif %} |
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
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
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