@@ -9,7 +9,6 @@ let globalMonitor = 1
99let timeOutList = [ ] // 产生新text的定时器句柄
1010let objContainer = null
1111let objMain = null
12- let playState = 'running'
1312// 创建一个窗口显示 Div
1413let winOpt = {
1514 guiWidth : 240 ,
@@ -427,54 +426,10 @@ function initContain(monitor, opt) {
427426 } else {
428427 showKeyPress ( opt )
429428 }
430-
431429 // fullScreenEvent
432430 // fullScreenEvent()
433431}
434- // 全屏代码
435- // function fullScreen(id) {
436- // const myDiv = document.getElementById('monitorId' + id);
437- // toggleFullscreen(myDiv)
438- // }
439432
440- // function toggleFullscreen(myDiv) {
441- // if (document.fullscreenElement) {
442- // if (document.exitFullscreen) {
443- // document.exitFullscreen();
444- // } else if (document.webkitExitFullscreen) {
445- // document.webkitExitFullscreen();
446- // } else if (document.mozCancelFullScreen) {
447- // document.mozCancelFullScreen();
448- // } else if (document.msExitFullscreen) {
449- // document.msExitFullscreen();
450- // }
451- // } else {
452- // if (myDiv.requestFullscreen) {
453- // myDiv.requestFullscreen();
454- // } else if (myDiv.webkitRequestFullscreen) {
455- // myDiv.webkitRequestFullscreen();
456- // } else if (myDiv.mozRequestFullScreen) {
457- // myDiv.mozRequestFullScreen();
458- // } else if (myDiv.msRequestFullscreen) {
459- // myDiv.msRequestFullscreen();
460- // }
461- //
462- // }
463- // }
464- // 监控变化
465- const observer = new ResizeObserver ( entries => {
466- for ( const entry of entries ) {
467- // const { width, height } = entry.contentRect;
468- // 需要重新演示动画
469- if ( entry . target . id == 'mainContain' ) {
470- // 全屏时候忽略
471- // if (globalinFullScreen) {
472- // return
473- // }
474- initMain ( )
475- }
476- }
477- } ) ;
478433// 显示当前的窗口像素 根据子窗口的大小显示真实长宽
479434function showSize ( ) {
480435 setTimeout ( ( ) => {
0 commit comments