| | |
| | | <header> |
| | | <!-- 系统运行状态 --> |
| | | <div class="system-state"> |
| | | <div class="system-icon"></div> |
| | | <span>系统运行中...</span> |
| | | <div id="system-icon" class="system-icon-open" onclick="systemSwitch()"></div> |
| | | <span id="system-run-desc">系统运行中...</span> |
| | | </div> |
| | | |
| | | <!-- 信息展示 --> |
| | |
| | | </main> |
| | | </body> |
| | | <script> |
| | | |
| | | var systemRunning = true; |
| | | var crn1Position = 0; |
| | | var crn2Position = 0; |
| | | // 初始化 |
| | |
| | | getSitesInfo(); |
| | | }, 3000); |
| | | |
| | | // 系统运行开关 |
| | | function systemSwitch() { |
| | | if (systemRunning){ |
| | | $('#system-icon').attr("class", "system-icon-close"); |
| | | $('#system-run-desc').html("系统已停止!"); |
| | | systemRunning = false; |
| | | } else { |
| | | $('#system-icon').attr("class", "system-icon-open"); |
| | | $('#system-run-desc').html("系统运行中..."); |
| | | systemRunning = true; |
| | | } |
| | | |
| | | } |
| | | |
| | | // 输送设备实时数据获取 |
| | | function getSitesInfo(){ |
| | | $.ajax({ |