about.html 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>关于我们</title>
  6. <link rel="stylesheet" href="./public/css/browser.css">
  7. </head>
  8. <body>
  9. <section style="-webkit-app-region: drag;height: 55px;" class="bowerHeader">
  10. <section style="-webkit-app-region: no-drag" class="browerHeaderControl clearfix">
  11. <button type="button" class="icon-times close" style="font-size:16px"></button>
  12. </section>
  13. <div class="FeedBackMain">
  14. <div class="FeedBackHead">
  15. <img draggable="false" src="public/img/tray/logo.png">
  16. <p>有思浏览器</p>
  17. </div>
  18. <div class="FeedBackContainer">
  19. <p></p>
  20. <p>开发人员:16互联网 张源、15互联网 代英杰、ZJINH</p>
  21. <p>浏览器介绍:http://client.1473.cn</p>
  22. <p>版权所有2018 有思俱乐部. 保留所有权利。</p>
  23. <div style="height: 10px;"><span></span></div>
  24. <span></span>
  25. <button>检查更新</button>
  26. </div>
  27. </div>
  28. </section>
  29. <script src="./public/js/uform.js"></script>
  30. <script>
  31. var ipc=require('electron').ipcRenderer;
  32. var version=null;
  33. const {ipcRenderer} = require('electron');
  34. $(".close")[0].onclick=function(){
  35. ipc.send('AboutUsW-close');
  36. };
  37. ipc.send('get-version');
  38. var FeedBackContainer=$(".FeedBackContainer *");
  39. FeedBackContainer[7].onclick=function () {
  40. FeedBackContainer[6].innerHTML='正在查询新版本';
  41. ipc.send('check-for-update', 'event-update');
  42. };
  43. ipcRenderer.on('version',function (event,message) {
  44. FeedBackContainer[0].innerHTML='有思浏览器 ('+process.platform+') v'+message;
  45. version=message;
  46. });
  47. ipcRenderer.on('check-for-update',function (event,message) {
  48. FeedBackContainer[6].innerHTML=message;
  49. if(message==='最新版本已下载,点击安装进行更新'){
  50. FeedBackContainer[7].innerHTML='重启并安装更新';
  51. FeedBackContainer[7].onclick=function () {
  52. ipc.send('update', 'event-update');
  53. }
  54. }
  55. });
  56. ipcRenderer.on('update-down-success',function (event,message) {
  57. FeedBackContainer[1].innerHTML='当前版本号:v'+version+'<span>&nbsp&nbsp&nbsp发现新版本:v'+message.version+'</span>';
  58. })
  59. </script>