File tree Expand file tree Collapse file tree
examples/deepzoom/templates Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2626< script type ="text/javascript " src ="{{ url_for('static', filename='openseadragon.js') }} "> </ script >
2727< script type ="text/javascript " src ="{{ url_for('static', filename='openseadragon-scalebar.js') }} "> </ script >
2828< script type ="text/javascript ">
29- $ ( document ) . ready ( function ( ) {
29+ $ ( function ( ) {
3030 var viewer = new OpenSeadragon ( {
3131 id : "view" ,
3232 tileSources : "{{ slide_url }}" ,
Original file line number Diff line number Diff line change @@ -114,7 +114,7 @@ <h1>Slide properties</h1>
114114< script type ="text/javascript " src ="static/openseadragon.js "> </ script >
115115< script type ="text/javascript " src ="static/openseadragon-scalebar.js "> </ script >
116116< script type ="text/javascript ">
117- $ ( document ) . ready ( function ( ) {
117+ $ ( function ( ) {
118118 var dzi_data = { { dzi_data | default ( '{}' ) | safe } } ;
119119 var viewer = new OpenSeadragon ( {
120120 id : "view" ,
@@ -155,7 +155,7 @@ <h1>Slide properties</h1>
155155 }
156156
157157 open_slide ( "{{ slide_url }}" , parseFloat ( '{{ slide_mpp }}' ) ) ;
158- $ ( ".load-slide" ) . click ( function ( ev ) {
158+ $ ( ".load-slide" ) . on ( "click" , function ( ev ) {
159159 $ ( ".current-slide" ) . removeClass ( "current-slide" ) ;
160160 $ ( this ) . parent ( ) . addClass ( "current-slide" ) ;
161161 open_slide ( $ ( this ) . attr ( 'data-url' ) ,
You can’t perform that action at this time.
0 commit comments