This file contains hidden or 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
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> | |
<script src="https://cdn.jsdelivr.net/jquery.validation/1.16.0/jquery.validate.min.js"></script> | |
<script src="https://cdn.jsdelivr.net/jquery.validation/1.16.0/additional-methods.min.js"></script> | |
<form id="myForm" name="myForm" action="#" method="POST"> <style>#email-error { display: block; color: red; }</style> | |
<label for="email">Email: </label> | |
<input id="email" name="email" type="email" minlength="6"/><br> | |
<input type="submit" value="Submit"> | |
</form> |
This file contains hidden or 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
// Usage: | |
// <link rel="shortcut icon" href="favicon.png" data-count"5"> | |
(() => { | |
const faviconSize = 32; | |
const favicon = document.querySelector('[data-count]') | |
// No notifications | |
if (!favicon || !favicon.dataset.count) { | |
return; |