index.html 1.2 KB

123456789101112131415161718192021222324252627282930313233343536
  1. <!DOCTYPE html>
  2. <html lang="ZH-cn">
  3. <head>
  4. <meta charset="UTF-8">
  5. <link rel="icon" href="/favicon.ico" />
  6. <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no">
  7. <meta http-equiv="Cache-control" content="no-cache, must-revalidate">
  8. <meta http-equiv="Cache" content="no-cache">
  9. <meta http-equiv="pragma" CONTENT="no-cache">
  10. <meta http-equiv="expires" CONTENT="0">
  11. <title>制谱</title>
  12. <script>
  13. window.addEventListener('error', function (event) {
  14. if (event.target.tagName === 'SCRIPT' && event.target.src.indexOf('assets/index') > -1) {
  15. var total = sessionStorage.getItem('SCRIPT_ERROR')
  16. total = Number(total) || 0
  17. total = total + 1
  18. sessionStorage.setItem('SCRIPT_ERROR', total)
  19. if (total > 3) return;
  20. window.location.reload()
  21. }
  22. }, true)
  23. </script>
  24. <script src="//at.alicdn.com/t/c/font_4186350_idu6dqxtfd.js"></script>
  25. <script src="/flexible.js"></script>
  26. <script src="/abc2svg/xml2abc.js"></script>
  27. <script src="/abc2svg/jquery-1.11.1.min.js"></script>
  28. </head>
  29. <body>
  30. <div id="app"></div>
  31. <script type="module" src="/src/pc/main.ts"></script>
  32. </body>
  33. </html>