// use this to isolate the scope (function () { if(!$axure.document.configuration.showPageNotes && !$axure.document.configuration.showAnnotationsSidebar) { return; } $(window.document).ready(function () { $axure.player.createPluginHost({ id: 'pageNotesHost', context: 'interface', title: 'NOTES', gid: 2 }); generatePageNotes(); $(document).on('ContainerHeightChange', function () { updateContainerHeight(); }); $('#footnotesButton').click(footnotes_click).addClass('sitemapToolbarButtonSelected'); $('#notesNextButton').click(notesNext_click); $('#notesPreviousButton').click(notesPrevious_click); // bind to the page load $axure.page.bind('load.page_notes', function () { var hasNotes = false; $('#pageNotesContent').html(""); if($axure.document.configuration.showPageNotes) { //populate the notes var notes = $axure.page.notes; if(notes) { var showNames = $axure.document.configuration.showPageNoteNames; for(var noteName in notes) { var pageNoteUi = "