From d47031c09036915acb85d491c482267dabb0e165 Mon Sep 17 00:00:00 2001 From: Christian Oliff Date: Fri, 21 Jul 2023 14:45:18 +0900 Subject: [PATCH] Update License --- LICENSE | 2 +- js/show-password-toggle.js | 6 ++++++ js/show-password-toggle.min.js | 5 +++++ tests/bootstrap5-sign-in/index.html | 4 ++-- 4 files changed, 14 insertions(+), 3 deletions(-) diff --git a/LICENSE b/LICENSE index 7cabc4c..4f9a1ce 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) Christian Oliff +Copyright (c) 2020-2023 Christian Oliff Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/js/show-password-toggle.js b/js/show-password-toggle.js index 1ffc55b..a65e3ce 100644 --- a/js/show-password-toggle.js +++ b/js/show-password-toggle.js @@ -1,3 +1,9 @@ +/*! + * Bootstrap Show Password Toggle v1.4.0 + * Copyright 2020-2023 C.Oliff + * Licensed under MIT (https://github.com/coliff/bootstrap-show-password-toggle/blob/main/LICENSE) + */ + var ShowPasswordToggle = document.querySelector("[type='password']"); ShowPasswordToggle.onclick = function () { document.querySelector("[type='password']").classList.add("input-password"); diff --git a/js/show-password-toggle.min.js b/js/show-password-toggle.min.js index c50e844..a793bba 100644 --- a/js/show-password-toggle.min.js +++ b/js/show-password-toggle.min.js @@ -1 +1,6 @@ +/*! + * Bootstrap Show Password Toggle v1.4.0 + * Copyright 2020-2023 C.Oliff + * Licensed under MIT (https://github.com/coliff/bootstrap-show-password-toggle/blob/main/LICENSE) + */ var ShowPasswordToggle=document.querySelector("[type='password']");ShowPasswordToggle.onclick=function(){document.querySelector("[type='password']").classList.add("input-password");document.getElementById("toggle-password").classList.remove("d-none");const passwordInput=document.querySelector("[type='password']");const togglePasswordButton=document.getElementById("toggle-password");togglePasswordButton.addEventListener("click",togglePassword);function togglePassword(){if(passwordInput.type==="password"){passwordInput.type="text";togglePasswordButton.setAttribute("aria-label","Hide password.")}else{passwordInput.type="password";togglePasswordButton.setAttribute("aria-label","Show password as plain text. "+"Warning: this will display your password on the screen.")}}}; \ No newline at end of file diff --git a/tests/bootstrap5-sign-in/index.html b/tests/bootstrap5-sign-in/index.html index d076efc..c83ed5b 100644 --- a/tests/bootstrap5-sign-in/index.html +++ b/tests/bootstrap5-sign-in/index.html @@ -12,7 +12,7 @@ @@ -59,4 +59,4 @@

Please sign in

- + \ No newline at end of file