From 245b73d5c97eccf0dcaf32a4b927e2b09ea0a193 Mon Sep 17 00:00:00 2001 From: sonia lumnwi <sonialumnwi59@gmail.com> Date: Wed, 13 Mar 2024 13:14:06 +0100 Subject: [PATCH] modified date in footer to reflect the current year Signed-off-by: sonia lumnwi <sonialumnwi59@gmail.com> --- apps/Info.html | 3 ++- apps/signup/signup.html | 4 +++- apps/table.html | 3 ++- common/footer.js | 1 + 4 files changed, 8 insertions(+), 3 deletions(-) create mode 100644 common/footer.js diff --git a/apps/Info.html b/apps/Info.html index 1605832ab..59e429272 100644 --- a/apps/Info.html +++ b/apps/Info.html @@ -167,9 +167,10 @@ <h3 class="text-center h3 mb-2" style="margin-top:8px;margin-bottom:10px;">Infor </div> <footer class="text-center text-white bg-dark p-3 mt-2"> - <p class="p">Copyright © 2021 caMicroscope</p> + <p class="p" id="copy-right-text"></p> </footer> </div> +<script src="../common/footer.js"></script> <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0/dist/js/bootstrap.bundle.min.js" integrity="sha384-p34f1UUtsS3wqzfto5wAAmdvj+osOnFyQFpp4Ua3gs/ZVWx6oOypYoCJhGGScy+8" crossorigin="anonymous"></script> </body> <script> diff --git a/apps/signup/signup.html b/apps/signup/signup.html index eac655059..3d5391d5d 100644 --- a/apps/signup/signup.html +++ b/apps/signup/signup.html @@ -112,7 +112,7 @@ <h2 style="margin-top: -.5em;">User Signup</h2> <div class="text-center" onclick="loginPage()">Already have an account? </div> </div> <footer class="text-center text-white bg-dark p-3"> - <p class="p">Copyright © 2021 caMicroscope</p> + <p class="p" id="copy-right-text"></p> </footer> <!-- popup --> <div id="popup-container"></div> @@ -121,6 +121,8 @@ <h2 style="margin-top: -.5em;">User Signup</h2> integrity="sha384-p34f1UUtsS3wqzfto5wAAmdvj+osOnFyQFpp4Ua3gs/ZVWx6oOypYoCJhGGScy+8" crossorigin="anonymous"></script> <script src="../../common/util.js"></script> + <script src="../../common/footer.js"></script> + </body> </html> diff --git a/apps/table.html b/apps/table.html index 2648c8b9f..d059d5748 100644 --- a/apps/table.html +++ b/apps/table.html @@ -334,11 +334,12 @@ <h5 class="modal-title" id="slideNameChangeModalLabel">Slide name change confirm <footer class="text-center text-white bg-dark p-3"> - <p class="p">Copyright © 2021 caMicroscope</p> + <p class="p"id="copy-right-text"></p> </footer> <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0/dist/js/bootstrap.bundle.min.js" integrity="sha384-p34f1UUtsS3wqzfto5wAAmdvj+osOnFyQFpp4Ua3gs/ZVWx6oOypYoCJhGGScy+8" crossorigin="anonymous"></script> <script src="./table.js"></script> +<script src="../common/footer.js"></script> </body> </html> diff --git a/common/footer.js b/common/footer.js new file mode 100644 index 000000000..bf88171cd --- /dev/null +++ b/common/footer.js @@ -0,0 +1 @@ +$('#copy-right-text').html(`Copyright © ${new Date().getFullYear()} caMicroscope`) \ No newline at end of file