1(function($) { 2 'use strict'; 3 4 $(function() { 5 $('#user_pass').each(function() { 6 $(this).wrap('<div class="user-pass-fields"></div>'); 7 }); 8 $('.user-pass-fields').each(function() { 9 $(this).append('<div class="loginpress-caps-lock">' + 10 loginpress_script.caps_lock + '</div>'); 11 }); 12 }); 13})(jQuery); 14(function() { 15 window.onload = function(e) { 16 var capsLock = 'off'; 17 var passwordField = document.getElementById("user_pass"); 18 passwordField.onkeydown = function(e) { 19 var el = this; 20 if (e.getModifierState("CapsLock")) { 21 capsLock = 'on'; 22 el.nextElementSibling.style.display = "block"; 23 } else { 24 capsLock = 'off'; 25 el.nextElementSibling.style.display = "none"; 26 } 27 }; 28 passwordField.onblur = function(e) { 29 var el = this; 30 el.nextElementSibling.style.display = "none"; 31 }; 32 passwordField.onfocus = function(e) { 33 var el = this; 34 if (capsLock == 'on') { 35 el.nextElementSibling.style.display = "block"; 36 } 37 }; 38 }; 39}());
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.