electron launcher
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

151 lines
4.4 KiB

2 years ago
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>系统运行监控</title>
  6. <meta http-equiv="Pragma" content="no-cache">
  7. <META HTTP-EQUIV="Cache-Control" content="no-cache">
  8. <META HTTP-EQUIV="Expires" content="0">
  9. </head>
  10. <body class="main">
  11. <section style="-webkit-app-region: drag;width: 100%">
  12. <div class="heading">
  13. <div class="title">
  14. <img class="title-img" src="assets/mainphoto.png">
  15. <span class="head_title">系统运行监控</span>
  16. </div>
  17. <div class="use-btn" style="-webkit-app-region: no-drag">
  18. <a class="small" id="min" onclick="minFun()"></a>
  19. <!-- <a class="big" id="max" onclick="maxFun()"></a> -->
  20. <a class="close" id="closed" onclick="closeFun()"></a>
  21. </div>
  22. </div>
  23. </section>
  24. <div class="fromBox">
  25. <!-- <webview id="obj" class="obj" type="text/html" src="http://localhost:3806/TIS_PLATFORM?appId=TIS_APP_FRAME_YXJK&launcher=monitor"></webview> -->
  26. <!-- <webview id="obj" class="obj" type="text/html" src="http://localhost:3806/TIS_PLATFORM/?appId=TIS_APP_FRAME_YXJK&launcher=monitor#/pc"></webview> -->
  27. <!-- <webview id="obj" class="obj" type="text/html" src="http://10.12.33.74:3806/TIS_PLATFORM/?appId=TIS_APP_FRAME_YXJK&launcher=monitor#/pc"></webview> -->
  28. <iframe src="./assets/test1.pdf" width="100%" height="100%" frameborder="0"></iframe>
  29. </div>
  30. <script type="text/javascript">
  31. function minFun() {
  32. window.api && window.api.minimize()
  33. }
  34. function closeFun() {
  35. window.api && window.api.exitSystem()
  36. }
  37. </script>
  38. <style>
  39. * {
  40. margin: 0;
  41. padding: 0;
  42. }
  43. @font-face {
  44. font-family: 思源黑体bold;
  45. src: url("./font/SourceHanSansCN-Bold.otf");
  46. }
  47. .main {
  48. display: flex;
  49. flex-direction: column;
  50. width: 100%;
  51. height: 100%;
  52. }
  53. .main .heading {
  54. width: 100%;
  55. height: 4vh;
  56. /* line-height: 5vh; */
  57. display: flex;
  58. flex-direction: row;
  59. justify-content: space-between;
  60. align-items: center;
  61. background-image: linear-gradient(0deg, #212123 0%, #383839 40%, #4e4e4e 100%),
  62. linear-gradient(#212123,
  63. #212123);
  64. background-blend-mode: normal,
  65. normal;
  66. border-radius: 10px 10px 0px 0px;
  67. }
  68. .main .heading .title {
  69. display: flex;
  70. align-items: center;
  71. padding: 0 0 0 1vw;
  72. font-size: 1.6vw;
  73. color: #d8d8d8;
  74. height: 5vh;
  75. line-height: 5vh;
  76. }
  77. .main .heading .title img {
  78. width: 2.6vh;
  79. height: 2.6vh;
  80. }
  81. .main .heading .title span {
  82. display: block;
  83. padding: 0 0 0 5px;
  84. }
  85. .main .heading .use-btn {
  86. display: flex;
  87. flex-direction: row;
  88. padding: 1.5vh 1vw;
  89. }
  90. .main .heading .use-btn a {
  91. margin-left: 3px;
  92. width: 2vh;
  93. height: 2vh;
  94. }
  95. .main .fromBox {
  96. display: flex;
  97. width: 100%;
  98. justify-content: center;
  99. background-color: #000000;
  100. height: 95vh;
  101. border-radius: 0 0 10px 10px;
  102. box-shadow: 4px 4px 10px 0px rgba(33, 33, 35, 0.35);
  103. }
  104. .main .fromBox .obj {
  105. height: 99%;
  106. width: 99%;
  107. }
  108. .big {
  109. background: url("assets/big.png") no-repeat 0 0;
  110. background-size: 100% 100%;
  111. margin-right: 1vw;
  112. }
  113. .small {
  114. background: url("assets/small.png") no-repeat 0 0;
  115. background-size: 100% 100%;
  116. margin-right: 1vw;
  117. }
  118. .close {
  119. background: url("assets/close-new.png") no-repeat 0 0;
  120. background-size: 100% 100%;
  121. }
  122. .head_title {
  123. width: 253px;
  124. /* height: 54px; */
  125. font-family: 思源黑体bold;
  126. font-size: 16px;
  127. font-weight: normal;
  128. font-stretch: normal;
  129. line-height: 50px;
  130. letter-spacing: 2px;
  131. color: #ffffff;
  132. }
  133. </style>
  134. </body>
  135. </html>