You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by se...@apache.org on 2025/03/14 19:59:31 UTC

(whimsy) branch master updated: Fetch message from notice.txt

This is an automated email from the ASF dual-hosted git repository.

sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git


The following commit(s) were added to refs/heads/master by this push:
     new ea46a869 Fetch message from notice.txt
ea46a869 is described below

commit ea46a869be9a46a3382fe5a21d82bec24758fe52
Author: Sebb <se...@apache.org>
AuthorDate: Fri Mar 14 19:59:23 2025 +0000

    Fetch message from notice.txt
---
 www/index.html | 20 +++++++++++++++++++-
 1 file changed, 19 insertions(+), 1 deletion(-)

diff --git a/www/index.html b/www/index.html
index 66cd5ad3..efa8127a 100644
--- a/www/index.html
+++ b/www/index.html
@@ -19,6 +19,24 @@
         margin-left: 20px;
       }
     </style>
+    <script>
+      const notice = '/notice.txt'
+      fetch(notice)
+        .then(response => {
+          console.log(response);
+          if (response.ok) {
+            return response.text();     
+          }
+        })
+        .then(data => {
+          const noticeDiv = document.getElementById('notice');
+          text = data.replace(/\n.*/s, '');
+          link = document.createElement('a');
+          link.text = text;
+          link.href = notice;
+          noticeDiv.append(link);
+        });
+    </script>
   </head>
   <body>
     <div class="header container-fluid">
@@ -68,8 +86,8 @@
     <div class="content container-fluid">
         <div class="row">
         <div class="col-md-10 col-md-offset-1">
+        <div class="alert-warning h3" id="notice"></div>
         <header>
-          <h3>SVN access is currently intermittent; this may cause issues.</h2>
           <h2><a href="http://dictionary.reference.com/browse/whimsy">Whim<span>·</span>sy</a></h2>
           <aside>
             [hwim-zee, wim-] noun, plural whim·sies.