index.html 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="width=device-width, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
  6. <link href="lib/noUiSlider/nouislider.css" type="text/css" rel="stylesheet">
  7. <link href="lib/noUiSlider/nouislider.pips.css" type="text/css" rel="stylesheet">
  8. <link href="lib/noUiSlider/nouislider.tooltips.css" type="text/css" rel="stylesheet">
  9. <link href="lib/materialize/css/materialize.css" type="text/css" rel="stylesheet" media="screen,projection">
  10. <link href="css/adore.css" type="text/css" rel="stylesheet">
  11. <link href="css/fontIcons.css" type="text/css" rel="stylesheet">
  12. <script src="lib/echarts.js"></script>
  13. <script src="lib/jquery.js"></script>
  14. <script src="lib/noUiSlider/nouislider.js"></script>
  15. <script src="lib/materialize/js/materialize.js"></script>
  16. <script src="lib/require.js"></script>
  17. <script src="js/adore.js"></script>
  18. <script src="lib/jquery.flot.js"></script>
  19. <script src="lib/jquery.flot.barframe.js"></script>
  20. <script>
  21. requirejs.config({
  22. baseUrl: '.',
  23. shim: {},
  24. paths: {},
  25. packages: []
  26. });
  27. </script>
  28. <script>
  29. function init() {
  30. require(["App"]);
  31. }
  32. //防止手持浏览器的橡皮筋弹动效果
  33. document.addEventListener('DOMContentLoaded', ready, false);
  34. document.addEventListener('touchmove', function (ev){
  35. ev.preventDefault();
  36. }, false);
  37. function ready(){
  38. var _body = document.querySelector('.body');
  39. if(_body){
  40. _body.addEventListener('touchmove', function (ev){
  41. ev.stopPropagation();
  42. }, false);
  43. }
  44. }
  45. </script>
  46. </head>
  47. <body onload="init();">
  48. </body>
  49. </html>