get_status.js 234 B

1234567
  1. (f = function(node){
  2. var tag = node.tagName;
  3. if (tag === 'BODY') return '';
  4. if (tag === 'DIV') tag = node.getAttribute('CLASS');
  5. return f(node.parentNode) + '/' + tag;
  6. })(document.getSelection().baseNode.parentNode);