File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ document . addEventListener ( 'keydown' , function ( event ) {
2+ var caps = event . getModifierState && event . getModifierState ( 'CapsLock' ) ;
3+ if ( caps ) {
4+ $ ( "#capsLock" ) . show ( ) ;
5+ } else {
6+ $ ( "#capsLock" ) . hide ( ) ;
7+ }
8+ } ) ;
Original file line number Diff line number Diff line change 2323 padding-top : 15px ;
2424 }
2525 }
26+ .capsLock {
27+ font-style : italic ;
28+ margin-bottom : 0px ;
29+ margin-top : 3px ;
30+ padding-top : 5px ;
31+ padding-bottom : 5px ;
32+ padding-right : 0px ;
33+ display : none ;
34+ }
35+ .fa-exclamation-circle {
36+ margin-left : 10px ;
37+ }
2638
2739 .remember-password {
2840 padding-top : 10px ;
Original file line number Diff line number Diff line change 11@extends (' layouts.default' , [' body_class' => ' nav-profile' ] )
22@section (' content' )
3-
3+ <script src =" /js/jquery-3.1.1.js" ></script >
4+ <script src =" /js/password_caps.js" type =" text/javascript" ></script >
45<div class =" sign-in" >
56 <div class =" text-center header" >
67 <h1 >Sign In</h1 >
@@ -29,6 +30,9 @@ class="clean" name="email"
2930 </div >
3031 <div class =" col-xs-12" >
3132 <input class =" clean" name =" password" type =" password" placeholder =" Password" value =" {{ old (' password' ) } }" >
33+ <div id =" capsLock" class =" capsLock text-right alert alert-warning" >CapsLock is on!
34+ <span class =" fa fa-exclamation-circle" ></span >
35+ </div >
3236 </div >
3337
3438 <div class =" col-xs-12" >
You can’t perform that action at this time.
0 commit comments