Skip to content

Instantly share code, notes, and snippets.

@jibbius
Last active June 1, 2016 03:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jibbius/9fa70385d7f3879a1cdd762bfaad4f05 to your computer and use it in GitHub Desktop.
Save jibbius/9fa70385d7f3879a1cdd762bfaad4f05 to your computer and use it in GitHub Desktop.
Add to your browser as a bookmarklet; Causes annotations within Axure wireframes to be numbered.
javascript:(function(){var iframe=document.getElementById('mainFrame');var innerDoc=iframe.contentDocument || iframe.contentWindow.document;var head=innerDoc.getElementsByTagName('head')[0];var link=innerDoc.createElement('link');link.rel='stylesheet';link.type='text/css';link.href='https://rawgithub.com/jibbius/AxureReannotate/master/src/css/axureReannotate.css';link.media='all';head.appendChild(link);var annoID=1;var annoArray; var annoArray = new Array;jQuery('#mainFrame').contents().find('div.annnoteimage').each(function(){var that = jQuery(this);annoArray.push( [that.offset().top , that[0].id]);});annoArray.sort(function(a, b){return a[0]-b[0]});var anno;while(anno = annoArray.pop()){jQuery('#mainFrame').contents().find('#'+anno[1]).html('<INPUT VALUE=\''+(annoArray.length+1)+'\'></INPUT>');}})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment