Advertisement
Guest User

Untitled

a guest
Jun 22nd, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. script type="text/javascript">
  2. jQuery(function($) {
  3. $(window).bind('resize', function() {
  4. if ($("input").is(":focus")) {
  5. var focusClosure = (function(inputElem) {return function()
  6. {console.log(inputElem.focus());}}($(evt.target)));
  7. window.setTimeout(focusClosure, 700);
  8. } else {
  9. // Other resize functions
  10. }
  11. });
  12. });
  13. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement