index.tpl 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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_137970_p1tpzmomxp9cnmi.css">
  7. <link rel='mask-icon' href="https://raw.githubusercontent.com/ElemeFE/element/dev/examples/assets/images/element-logo-small.svg" color="#409EFF">
  8. <link rel="stylesheet" href="//shadow.elemecdn.com/npm/highlight.js@9.3.0/styles/color-brewer.css">
  9. <title>Element - The world's most popular Vue UI framework</title>
  10. <meta name="description" content="Element,一套为开发者、设计师和产品经理准备的基于 Vue 2.0 的桌面端组件库" />
  11. </head>
  12. <body>
  13. <script>
  14. if (!window.Promise) {
  15. document.write('<script src="//cdn.jsdelivr.net/npm/es6-promise@4.1.1/dist/es6-promise.min.js"><\/script><script>ES6Promise.polyfill()<\/script>')
  16. }
  17. </script>
  18. <div id="app"></div>
  19. <% if (process.env.NODE_ENV === 'production') { %>
  20. <script src="//shadow.elemecdn.com/npm/vue@2.5.21/dist/vue.runtime.min.js"></script>
  21. <script src="//shadow.elemecdn.com/npm/vue-router@3.0.1/dist/vue-router.min.js"></script>
  22. <script src="//shadow.elemecdn.com/app/element/highlight.pack.b1f71b31-3c07-11e9-ba1a-55bba1877129.js"></script>
  23. <% } %>
  24. </body>
  25. <% if (process.env.NODE_ENV === 'production') { %><script>
  26. (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  27. (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  28. m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  29. })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
  30. ga('create', 'UA-84335471-1', 'auto');
  31. ga('send', 'pageview');
  32. window.addEventListener('hashchange', function () {
  33. ga('set', 'page', window.location.href);
  34. ga('send', 'pageview');
  35. });
  36. </script><% } %>
  37. <% if (process.env.NODE_ENV !== 'production') { %><script>
  38. var ga = function() {
  39. console.log(arguments)
  40. };
  41. </script><% } %>
  42. </html>