SHARE
TWEET

Untitled

a guest Jun 16th, 2019 51 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $(".nk-int-st")[0] && ($("body").on("focus", ".nk-int-st .form-control", function() {
  2.             $(this).closest(".nk-int-st").addClass("nk-toggled")
  3.         }), $("body").on("blur", ".form-control", function() {
  4.             var p = $(this).closest(".form-group, .input-group"),
  5.                 i = p.find(".form-control").val();
  6.             p.hasClass("fg-float") ? 0 == i.length && $(this).closest(".nk-int-st").removeClass("nk-toggled") : $(this).closest(".nk-int-st").removeClass("nk-toggled")
  7.         })), $(".fg-float")[0] && $(".fg-float .form-control").each(function() {
  8.             var i = $(this).val();
  9.             0 == !i.length && $(this).closest(".nk-int-st").addClass("nk-toggled")
  10.         });
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top