File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change 2020 const kebbi = document . getElementById ( 'svgKebbi' ) ;
2121 const circle = document . querySelector ( '.circle' ) ;
2222 function imgPosition ( ) {
23- const ww = content . offsetWidth ;
24- const wh = content . offsetHeight ;
25- kebbi . style . left = `${ ( ww - kebbi . offsetWidth ) / 2 } px` ;
26- kebbi . style . top = `${ ( wh * 0.8 - kebbi . offsetHeight ) / 2 } px` ;
27- circle . style . width = `${ ww * 0.4 } px` ;
28- circle . style . height = `${ ww * 0.4 } px` ;
29- circle . style . left = `${ ( ww - circle . offsetWidth ) / 2 } px` ;
30- circle . style . top = `${ ( wh * 0.8 - circle . offsetHeight ) / 2 } px` ;
23+ const ww = content . offsetWidth ;
24+ const wh = content . offsetHeight ;
25+ kebbi . style . left = `${ ( ww - kebbi . offsetWidth ) / 2 } px` ;
26+ kebbi . style . top = `${ ( wh * 0.8 - kebbi . offsetHeight ) / 2 } px` ;
27+ circle . style . width = `${ ww * 0.4 } px` ;
28+ circle . style . height = `${ ww * 0.4 } px` ;
29+ circle . style . left = `${ ( ww - circle . offsetWidth ) / 2 } px` ;
30+ circle . style . top = `${ ( wh * 0.8 - circle . offsetHeight ) / 2 } px` ;
3131 }
3232
3333 imgPosition ( ) ;
You can’t perform that action at this time.
0 commit comments