index.html 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <!DOCTYPE html>
  2. <html dir="ltr" lang="en">
  3. <head>
  4. <title>Ionic E2E</title>
  5. <meta charset="UTF-8" />
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" />
  7. <meta name="apple-mobile-web-app-capable" content="yes">
  8. <link id="ionicLink" href="./build/main.css" rel="stylesheet">
  9. <link href="build/e2e.shared.css" rel="stylesheet">
  10. <script>
  11. if (location.href.indexOf('snapshot=true') > -1) {
  12. document.documentElement.classList.add('snapshot');
  13. } else {
  14. document.documentElement.classList.remove('snapshot');
  15. }
  16. if (location.href.indexOf('cordova=true') > -1) {
  17. window.cordova = {};
  18. }
  19. if (location.href.indexOf('rtl=true') > -1) {
  20. document.dir = 'rtl';
  21. }
  22. window.domCount = function domCount(ele) {
  23. if(!ele) {
  24. return 0;
  25. }
  26. var count = 1;
  27. for(var i = 0; i < ele.children.length; i++) {
  28. count += domCount(ele.children[i]);
  29. }
  30. return count;
  31. }
  32. if (location.href.indexOf('theme=dark') > -1) {
  33. var link = document.getElementById('ionicLink');
  34. link.setAttribute('href', link.getAttribute('href').replace('.css', '.dark.css'));
  35. }
  36. </script>
  37. </head>
  38. <body>
  39. <ion-app></ion-app>
  40. <script>
  41. if (document.dir === 'rtl') {
  42. document.body.classList.add('rtl');
  43. } else {
  44. document.body.classList.remove('rtl');
  45. }
  46. </script>
  47. <script src="./build/polyfills.ng.js"></script>
  48. <script src="./build/vendor.js"></script>
  49. <script src="./build/main.js"></script>
  50. </body>
  51. </html>