X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=library%2Fcropper%2Ftests%2Fexample-DynamicImage.htm;h=08240bb63ddcb59b3a8386970ac1437d9e88ccfa;hb=4593f43254aae1bda40c8b348e16bc28fc11b4c6;hp=898363489e15ecf64420d20fc118ca38edbad723;hpb=43d5876e8b35d53a0bef5248c5d63e5bc209dbbf;p=friendica.git diff --git a/library/cropper/tests/example-DynamicImage.htm b/library/cropper/tests/example-DynamicImage.htm index 898363489e..08240bb63d 100644 --- a/library/cropper/tests/example-DynamicImage.htm +++ b/library/cropper/tests/example-DynamicImage.htm @@ -55,9 +55,9 @@ * @return void */ setImage: function( imgSrc, w, h ) { - $( 'testImage' ).src = imgSrc; - $( 'testImage' ).width = w; - $( 'testImage' ).height = h; + $PR( 'testImage' ).src = imgSrc; + $PR( 'testImage' ).width = w; + $PR( 'testImage' ).height = h; this.attachCropper(); }, @@ -98,12 +98,12 @@ // setup the callback function function onEndCrop( coords, dimensions ) { - $( 'x1' ).value = coords.x1; - $( 'y1' ).value = coords.y1; - $( 'x2' ).value = coords.x2; - $( 'y2' ).value = coords.y2; - $( 'width' ).value = dimensions.width; - $( 'height' ).value = dimensions.height; + $PR( 'x1' ).value = coords.x1; + $PR( 'y1' ).value = coords.y1; + $PR( 'x2' ).value = coords.x2; + $PR( 'y2' ).value = coords.y2; + $PR( 'width' ).value = dimensions.width; + $PR( 'height' ).value = dimensions.height; } // basic example @@ -112,9 +112,9 @@ 'load', function() { CropImageManager.init(); - Event.observe( $('removeCropper'), 'click', CropImageManager.removeCropper.bindAsEventListener( CropImageManager ), false ); - Event.observe( $('resetCropper'), 'click', CropImageManager.resetCropper.bindAsEventListener( CropImageManager ), false ); - Event.observe( $('imageChoice'), 'change', CropImageManager.onChange.bindAsEventListener( CropImageManager ), false ); + Event.observe( $PR('removeCropper'), 'click', CropImageManager.removeCropper.bindAsEventListener( CropImageManager ), false ); + Event.observe( $PR('resetCropper'), 'click', CropImageManager.resetCropper.bindAsEventListener( CropImageManager ), false ); + Event.observe( $PR('imageChoice'), 'change', CropImageManager.onChange.bindAsEventListener( CropImageManager ), false ); } ); @@ -168,7 +168,7 @@
- +