Guest User

Untitled

a guest
Jan 16th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. setInterval( function() {
  2. // Find the block to which this element belongs, and set the element's tabindex to the expected tIndex
  3. var myBlock;
  4. Blocks.forEach(function(item){
  5. if (item.$block.find($(document.activeElement)).length) myBlock = item;
  6. });
  7. $(document.activeElement).attr('tabindex', myBlock.tIndex);
  8.  
  9. }, 300);
Add Comment
Please, Sign In to add comment