1(($, Drupal) => { 2 "use strict"; 3 4 function materialInput() { 5 if ($(".material-input").length > 0) { 6 $(".material-input").each(function () { 7 var $this = $(this); 8 if ($this.val() === "") { 9 $this.removeClass("is-completed"); 10 $this.removeClass("is-active"); 11 } else { 12 $this.addClass("is-completed"); 13 $this.addClass("is-active"); 14 } 15 $(this).focus(function () { 16 $this.addClass("is-active is-completed"); 17 }); 18 19 $(this).focusout(function () { 20 if ($this.val() === "") { 21 $this.removeClass("is-completed"); 22 $this.removeClass("is-active"); 23 } 24 }); 25 }); 26 } 27 } 28 29 $(window).on("load", function () { 30 materialInput(); 31 }); 32})(jQuery, Drupal);
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.