@@ -130,7 +130,7 @@ $(document).ready(function ()
130130
131131 function renderReport ( )
132132 {
133- const waitingSpinner = '<i class="fa fa-spinner fa-spin"></i> ' + $ . i18n ( "perf_please_wait" ) ;
133+ const waitingSpinner = '<i class="fa fa-spinner fa-spin ms-1 "></i> ' + $ . i18n ( "perf_please_wait" ) ;
134134 const fpsTag = '<span class="card-tools"><span class="badge bg-secondary" style="font-weight: normal;">fps</span></span>' ;
135135
136136 for ( var i = 0 ; i < performance . length ; i ++ )
@@ -145,7 +145,7 @@ $(document).ready(function ()
145145 if ( curElem . type == 1 )
146146 {
147147 let render = ( curElem . token <= 0 ) ? waitingSpinner :
148- `<span class="card-tools"><span class="badge bg-secondary" style="font-size: .9em ;font-weight: normal;">${ curElem . param1 . toFixed ( 2 ) } fps</span></span>` +
148+ `<span class="card-tools"><span class="badge bg-secondary" style="font-size: 1em ;font-weight: normal;">${ curElem . param1 . toFixed ( 2 ) } fps</span></span>` +
149149 ` <small> ${ curElem . param2 } ms</small> <i class="fa fa-clock-o" aria-hidden="true"></i> <small>${ curElem . param3 } </small> <i class="fa fa-long-arrow-down" aria-hidden="true"></i><i class="fa fa-long-arrow-up" aria-hidden="true"></i>` +
150150 ( ( curElem . param4 != 0 ) ?`, ${ $ . i18n ( "perf_invalid_frames" ) } : <small>${ curElem . param4 } </small>` :`` ) ;
151151 render += ` <span class='perf_counter small text-muted'>(${ curElem . refresh } )</span>` ;
@@ -184,9 +184,9 @@ $(document).ready(function ()
184184
185185 if ( placer != null )
186186 {
187- let render = ( curElem . token <= 0 ) ? ( ( curElem . type == 2 ) ? `<span class="card-tools"><span class="badge bg-danger" style="font-size: .9em ;font-weight: normal;">${ curElem . name } </span></span> ` : "" ) + waitingSpinner : ( curElem . type == 2 ) ?
188- `<span class="card-tools"><span class="badge bg-danger" style="font-size: .9em ;font-weight: normal;">${ curElem . name } </span></span> <span class="card-tools"><span class="badge bg-secondary" style="font-size: .9em ;font-weight: normal;">${ curElem . param1 . toFixed ( 2 ) } fps</span></span> <small>${ curElem . param2 } </small> <i class="fa fa-long-arrow-down" aria-hidden="true"></i><i class="fa fa-long-arrow-up" aria-hidden="true"></i>` :
189- `<span class="card-tools"><span class="badge bg-success" style="font-size: .9em ;font-weight: normal;">${ curElem . name } </span></span> <span class="card-tools"><span class="badge bg-secondary" style="font-size: .9em ;font-weight: normal;">${ curElem . param1 . toFixed ( 2 ) } fps</span></span> <small>${ curElem . param3 } </small><i class="fa fa-long-arrow-down" aria-hidden="true"></i> <small>${ curElem . param2 } </small> <i class="fa fa-long-arrow-up" aria-hidden="true"></i>` ;
187+ let render = ( curElem . token <= 0 ) ? ( ( curElem . type == 2 ) ? `<span class="card-tools"><span class="badge bg-danger" style="font-size: 1em ;font-weight: normal;">${ curElem . name } </span></span> ` : "" ) + waitingSpinner : ( curElem . type == 2 ) ?
188+ `<span class="card-tools"><span class="badge bg-danger" style="font-size: 1em ;font-weight: normal;">${ curElem . name } </span></span> <span class="card-tools me-1 "><span class="badge bg-secondary" style="font-size: 1em ;font-weight: normal;">${ curElem . param1 . toFixed ( 2 ) } fps</span></span> <small>${ curElem . param2 } </small> <i class="fa fa-long-arrow-down" aria-hidden="true"></i><i class="fa fa-long-arrow-up" aria-hidden="true"></i>` :
189+ `<span class="card-tools"><span class="badge bg-success" style="font-size: 1em ;font-weight: normal;">${ curElem . name } </span></span> <span class="card-tools me-1 "><span class="badge bg-secondary" style="font-size: 1em ;font-weight: normal;">${ curElem . param1 . toFixed ( 2 ) } fps</span></span> <small>${ curElem . param3 } </small><i class="fa fa-long-arrow-down" aria-hidden="true"></i> <small>${ curElem . param2 } </small> <i class="fa fa-long-arrow-up" aria-hidden="true"></i>` ;
190190 render += ` <span class='perf_counter small text-muted'>(${ curElem . refresh } )</span>` ;
191191 placer . innerHTML = render ;
192192 }
0 commit comments