Sha256: 53e46f247924f31c00a062a1a5041636fc888770272508dcd957e994f2faf2b9

Contents?: true

Size: 631 Bytes

Versions: 1

Compression:

Stored size: 631 Bytes

Contents

"strict mode";
var ifms = function() { document.querySelectorAll(['.mat-input input[type="text"]', '.mat-input input[type="email"]', '.mat-input input[type="password"]', '.mat-input input[type="number"]'].join(", ")).forEach(function (t) { t.addEventListener("focus", function () { this.parentElement.classList.add("active"), this.parentElement.classList.add("focus") }), t.addEventListener("blur", function () { this.parentElement.classList.remove("focus"), "" == this.value && this.parentElement.classList.remove("active") }) }); };
(function() { ifms(); })();document.addEventListener("turbolinks:load", function () { ifms() });

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ifms-0.1.2 assets/javascripts/ifms.js