fauzanjeg

Open the popup login if there is a #jeg_loginform URL

Mar 5th, 2021 (edited)
283
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
jQuery 0.29 KB | None | 0 0
  1. (function ($) {
  2.     $(document).ready(function () {
  3.         const hash = $(location).attr('hash');
  4.         if (hash.search('#jeg_loginform') === 0) {
  5.             $('.jeg_popuplink').magnificPopup('open');
  6.         }
  7.     });
  8. })(jQuery); /* Open the popup login if there is a #jeg_loginform URL */
Add Comment
Please, Sign In to add comment