index.html 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>校园资讯</title>
  6. <link rel="stylesheet" href="public/css/uform.css">
  7. <link rel="stylesheet" href="public/css/CampusInfo.css">
  8. </head>
  9. <body>
  10. <section style="-webkit-app-region: drag" class="CampusInfoHead">
  11. <div class="CampusInfoHeadTitle">
  12. <img src="public/img/tray/logo1.png" draggable="false">
  13. <p>有思俱乐部</p>
  14. <span><div>校内版</div></span>
  15. <p class="CampusInfoHeadWeather">深圳市 16°C 晴</p>
  16. </div>
  17. <section style="-webkit-app-region: no-drag" class="CampusInfoHeadControl">
  18. <button type="button" style="display: none">max</button>
  19. <button type="button" class="icon-minus" style="font-size: 20px;"></button>
  20. <button type="button" class="icon-cancel"></button>
  21. </section>
  22. <img src="public/img/head.png" class="CampusInfoHeadImg" draggable="false">
  23. </section>
  24. <ul class="CampusInfoHeadNav">
  25. </ul>
  26. <div class="CampusInfoMain">
  27. <div class="CampusInfoLoading">
  28. <span>
  29. <img src="public/img/loading.png" draggable="false">
  30. <div class="icon-cog animate-spin"></div>
  31. </span>
  32. </div>
  33. </div>
  34. </body>
  35. <script src="public/js/uform.js"></script>
  36. <script src="public/js/CampusInfo-data.js"></script>
  37. <script src="http://seo.1473.cn/CampusInfo/js/CampusInfo-data.js"></script>
  38. <script src="public/js/CampusInfo.js"></script>
  39. <script>
  40. const electron = require('electron');//electron主进程
  41. const ipc = electron.ipcRenderer;//ipc命令集合
  42. var CampusInfoHeadControl=$(".CampusInfoHeadControl button");
  43. CampusInfoHeadControl[0].addEventListener('click',function (){
  44. ipc.send('window-max');
  45. });
  46. CampusInfoHeadControl[1].addEventListener('click',function (){
  47. ipc.send('window-min');
  48. });
  49. CampusInfoHeadControl[2].addEventListener('click',function (){
  50. ipc.send('window-close');
  51. });
  52. </script>
  53. </html>