index.tpl 1.5 KB

123456789101112131415161718192021222324252627282930
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
  6. <link rel="stylesheet" href="//at.alicdn.com/t/font_1473762766_7074292.css">
  7. <link rel='mask-icon' href="https://raw.githubusercontent.com/ElemeFE/element/dev/examples/assets/images/element-logo-small.svg" color="#409EFF">
  8. <title>Element</title>
  9. </head>
  10. <body>
  11. <div id="app"></div><% if (process.env.NODE_ENV === 'production') { %>
  12. <script src="https://app.codesponsor.io/scripts/qFcVkt4f3DQEg4zrwINGVg?theme=light&height=250&width=240"></script>
  13. <script src="//cdn.jsdelivr.net/npm/vue@2.3.0/dist/vue.runtime.min.js"></script>
  14. <script src="//cdn.jsdelivr.net/npm/vue-router@2.1.1/dist/vue-router.min.js"></script><% } %>
  15. </body>
  16. <% if (process.env.NODE_ENV === 'production') { %><script>
  17. (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  18. (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  19. m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  20. })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
  21. ga('create', 'UA-84335471-1', 'auto');
  22. ga('send', 'pageview');
  23. window.addEventListener('hashchange', function () {
  24. ga('set', 'page', window.location.href);
  25. ga('send', 'pageview');
  26. });
  27. </script><% } %>
  28. </html>