@@ -275,68 +275,68 @@ class PhraseMaker {
275275 * Width of the screen.
276276 * @type {number }
277277 */
278- var screenWidth = window . innerWidth ;
278+ const screenWidth = window . innerWidth ;
279279
280280 /**
281281 * Height of the screen.
282282 * @type {number }
283283 */
284- var screenHeight = window . innerHeight ;
284+ const screenHeight = window . innerHeight ;
285285
286286 /**
287287 * Container element for floating windows.
288288 * @type {HTMLElement }
289289 */
290- var floatingWindowsDiv = document . getElementById ( "floatingWindows" ) ;
290+ const floatingWindowsDiv = document . getElementById ( "floatingWindows" ) ;
291291
292292 /**
293293 * Collection of window frame elements.
294294 * @type {NodeListOf<Element> }
295295 */
296- var windowFrameElements = floatingWindowsDiv . querySelectorAll ( ".windowFrame" ) ;
296+ const windowFrameElements = floatingWindowsDiv . querySelectorAll ( ".windowFrame" ) ;
297297
298- for ( var i = 0 ; i < windowFrameElements . length ; i ++ ) {
298+ for ( let i = 0 ; i < windowFrameElements . length ; i ++ ) {
299299 /**
300300 * Current window frame element.
301301 * @type {Element }
302302 */
303- var windowFrame = windowFrameElements [ i ] ;
303+ const windowFrame = windowFrameElements [ i ] ;
304304
305305 /**
306306 * Widget body element within the window frame.
307307 * @type {Element }
308308 */
309- var wfWinBody = windowFrame . querySelector ( ".wfWinBody" ) ;
309+ const wfWinBody = windowFrame . querySelector ( ".wfWinBody" ) ;
310310
311311 /**
312312 * Widget element within the window frame.
313313 * @type {Element }
314314 */
315- var wfbWidget = windowFrame . querySelector ( ".wfbWidget" ) ;
315+ const wfbWidget = windowFrame . querySelector ( ".wfbWidget" ) ;
316316
317317 /**
318318 * Total width of the window frame.
319319 * @type {number }
320320 */
321- var totalWidth = parseFloat ( window . getComputedStyle ( windowFrame ) . width ) ;
321+ const totalWidth = parseFloat ( window . getComputedStyle ( windowFrame ) . width ) ;
322322
323323 /**
324324 * Total height of the window frame.
325325 * @type {number }
326326 */
327- var totalHeight = parseFloat ( window . getComputedStyle ( windowFrame ) . height ) ;
327+ const totalHeight = parseFloat ( window . getComputedStyle ( windowFrame ) . height ) ;
328328
329329 /**
330330 * Maximum allowed width for the window frame.
331331 * @type {number }
332332 */
333- var maxWidth = screenWidth * 0.8 ;
333+ const maxWidth = screenWidth * 0.8 ;
334334
335335 /**
336336 * Maximum allowed height for the window frame.
337337 * @type {number }
338338 */
339- var maxHeight = screenHeight * 0.8 ;
339+ const maxHeight = screenHeight * 0.8 ;
340340
341341 if ( totalWidth > screenWidth || totalHeight > screenHeight ) {
342342 windowFrame . style . height = Math . min ( totalHeight , maxHeight ) + "px" ;
0 commit comments