Secure Input
How do I make an secure input?
A secure way to hide private input fields as to not be visible throughout the duration of information input when working in public places.. What is a secure input? How do you make a secure input? This script and codes were developed by GRAY GHOST on 13 October 2022, Thursday.
Secure Input - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Secure Input</title> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css"> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div class="slabel"> <input id="credit-card" type="text" pattern="[0-9]{13,16}" placeholder="xxxxxxxxxxxxxxxx"> <label for="credit-card">Credit Card</label>
</div> <script src='js/a08e0d79c150ff5030f9b6afa.js'></script> <script src="js/index.js"></script>
</body>
</html>
Secure Input - Script Codes CSS Codes
@import url(https://fonts.googleapis.com/css?family=Open+Sans:300);
html, body { height: 100%;
}
body { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-orient: vertical; -webkit-box-direction: normal; -ms-flex-direction: column; flex-direction: column; -webkit-box-align: center; -ms-flex-align: center; align-items: center; -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; width: 100%;
}
html { background: #193441;
}
.slabel { display: inline-block; max-width: 240px; position: relative; width: 100%; font-family: "Open Sans";
}
.slabel input { -webkit-appearance: none; -moz-appearance: none; appearance: none; border: 0; border-radius: 3px; box-sizing: border-box; display: inline-block; outline: 0; padding: 10px 15px; -webkit-transition: -webkit-transform 225ms ease-in-out; transition: -webkit-transform 225ms ease-in-out; transition: transform 225ms ease-in-out; transition: transform 225ms ease-in-out, -webkit-transform 225ms ease-in-out; width: 100%; background: #efefef;
}
.slabel input:empty:valid + label { color: #5C832F !important;
}
.slabel input:valid + label { color: #5C832F !important;
}
.slabel input:invalid { background: #E82C0C; color: white;
}
.slabel input:invalid + label { color: white;
}
.slabel input:invalid + label:after { background: #E82C0C;
}
.slabel input::-webkit-input-placeholder { color: #B9E0D6;
}
.slabel input::-moz-placeholder { color: #B9E0D6;
}
.slabel input:-ms-input-placeholder { color: #B9E0D6;
}
.slabel input::placeholder { color: #B9E0D6;
}
.slabel input + label { border: 0; border-radius: 4px; box-sizing: border-box; cursor: pointer; display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-align: center; -ms-flex-align: center; align-items: center; overflow: hidden; padding: 10px 15px; position: absolute; top: 0; left: 0; -webkit-transform: translateY(0); transform: translateY(0); -webkit-transition: -webkit-transform 225ms ease-in-out; transition: -webkit-transform 225ms ease-in-out; transition: transform 225ms ease-in-out; transition: transform 225ms ease-in-out, -webkit-transform 225ms ease-in-out; width: 100%; color: inherit;
}
.slabel input + label:before, .slabel input + label:after { content: ""; position: absolute; right: 0; left: 0; z-index: -1; -webkit-transition: -webkit-transform 225ms ease-in-out; transition: -webkit-transform 225ms ease-in-out; transition: transform 225ms ease-in-out; transition: transform 225ms ease-in-out, -webkit-transform 225ms ease-in-out;
}
.slabel input + label:before { -webkit-transform: translateY(-100%); transform: translateY(-100%);
}
.slabel input + label:after { border-radius: 4px; top: 0; bottom: 0; background: #efefef;
}
.slabel input:focus:empty:valid + label { color: #5C832F !important;
}
.slabel input:focus:invalid + label { color: #E82C0C;
}
.slabel input:focus + label { border: 0; -webkit-transform: translateY(-100%); transform: translateY(-100%);
}
.slabel input:focus + label:after { -webkit-transform: translateY(100%); transform: translateY(100%);
}
Secure Input - Script Codes JS Codes
// Demo used for my SitePoint article Theming Forms w/Sass : http://www.sitepoint.com/theming-form-elements-sass
Developer | GRAY GHOST |
Username | grayghostvisuals |
Uploaded | October 13, 2022 |
Rating | 4.5 |
Size | 6,436 Kb |
Views | 30,360 |
Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!
Name | Size |
Static Image to Video Block | 4,864 Kb |
Mocean SliderModals | 4,731 Kb |
Blur Filter | 1,784 Kb |
Fixed Curtains | 4,912 Kb |
Kid Passions | 11,380 Kb |
Polybird | 6,417 Kb |
Full Screen Background Video | 7,221 Kb |
Accessible Dropdown Menu | 4,790 Kb |
Rotating Cube | 3,404 Kb |
Facebook Android App Off Canvas Menu Pattern | 9,817 Kb |
Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!
Name | Username | Size |
BSP Dungeon Generation | Xgundam05 | 5,326 Kb |
RPG Style Text Dialogue | Odylic | 2,635 Kb |
Android Play Store With Slick Carousel | -J0hn- | 4,982 Kb |
RAQuote | Naderk007 | 4,412 Kb |
Css3 slide | Nakome | 3,190 Kb |
Basic HTML Slideshow | Tomhodgins | 3,386 Kb |
Base-Style | Daniel_gooss | 2,614 Kb |
Sort the Knowlege | Eprouver | 3,915 Kb |
Javascript Welcome | Peterlewicki | 1,573 Kb |
Learning canvas drawing | Aurer | 2,204 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!