@@ -7,8 +7,8 @@ const documentId = 'example.pdf';
77const userId = 'testUser' ;
88let PAGE_HEIGHT ;
99let RENDER_OPTIONS = {
10- documentId,
11- userId : 'testUser' ,
10+ documentId : documentId ,
11+ userId : userId ,
1212 pdfDocument : null ,
1313 scale : parseFloat ( localStorage . getItem ( `${ documentId } /scale` ) , 10 ) || 1.33 ,
1414 rotate : parseInt ( localStorage . getItem ( `${ documentId } /rotate` ) , 10 ) || 0
@@ -46,7 +46,6 @@ function render() {
4646
4747 let viewer = document . getElementById ( 'viewer' ) ;
4848 viewer . innerHTML = '' ;
49- console . log ( pdf ) ;
5049 NUM_PAGES = pdf . numPages ;
5150 for ( let i = 0 ; i < NUM_PAGES ; i ++ ) {
5251 let page = UI . createPage ( i + 1 ) ;
@@ -62,7 +61,7 @@ function render() {
6261render ( ) ;
6362
6463// Hotspot color stuff
65- ( function ( ) {
64+ ( function ( ) {
6665 let hotspotColor = localStorage . getItem ( `${ RENDER_OPTIONS . documentId } /hotspot/color` ) || 'darkgoldenrod' ;
6766 let currentTarget = undefined ;
6867
@@ -90,7 +89,7 @@ render();
9089 }
9190 }
9291
93- initColorPicker ( document . querySelector ( '.hotspot-color' ) , hotspotColor , function ( value ) {
92+ initColorPicker ( document . querySelector ( '.hotspot-color' ) , hotspotColor , function ( value ) {
9493 if ( value === hotspotColor ) {
9594 return ; // nothing to do
9695 }
@@ -126,7 +125,7 @@ render();
126125} ) ( ) ;
127126
128127// Text stuff
129- ( function ( ) {
128+ ( function ( ) {
130129 let textSize ;
131130 let textColor ;
132131
0 commit comments