index.html 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. <!DOCTYPE html>
  2. <html>
  3. <head lang="en">
  4. <include file="./Application/M/View/Common/head_include.html"/>
  5. <title>赛车模拟器价格_赛车游戏模拟器_F1赛车模拟器_VR赛车-厦门欣富地智能科技有限公司</title>
  6. <link rel="stylesheet" type="text/css" href="/Public/static/home/m/css/index.css?2012" />
  7. </head>
  8. <body>
  9. <include file="./Application/M/View/Common/head.html"/>
  10. <div class="content">
  11. <!-- Slider -->
  12. <div class="swiper-container" data-space-between='10'>
  13. <div class="swiper-wrapper col">
  14. <div class="swiper-slide">
  15. <a href="http://www.x-motion.cn/m/about/new_detail/id/64/type/2"><img src="https://img.x-motion.cn/home/m/image/home/banner5.jpg" alt=""></a>
  16. </div>
  17. <div class="swiper-slide">
  18. <a href="javascript:void(0);"><img src="https://img.x-motion.cn/home/m/image/home/banner3.jpg" alt=""></a>
  19. <p>
  20. <a href="javascript:void(0);" id="video_button" data-src="https://img.x-motion.cn/home/video/magic_speed_racing_01.mp4"></a>
  21. <a href="{:U('m/about/product')}"></a>
  22. <a href="{:U('m/about/join1')}"></a>
  23. </p>
  24. </div>
  25. <div class="swiper-slide">
  26. <a href="{:U('m/about/join1')}"><img src="https://img.x-motion.cn/home/m/image/home/banner2.jpg" alt=""></a>
  27. </div>
  28. </div>
  29. <div class="swiper-pagination"></div>
  30. </div>
  31. <!--图片展示-->
  32. <div class="home_img">
  33. <div class="img_list">
  34. <a href="{:U('m/about/product')}">
  35. <div class="col">
  36. <img src=" https://img.x-motion.cn/home/m/image/home/home_04.jpg " alt=" "/>
  37. </div>
  38. <div class="img_words ">
  39. <h3>体感/VR/力反馈</h3>
  40. <p></p>
  41. <span>了解幻速专业设计与全新科技</span>
  42. </div>
  43. </a>
  44. </div>
  45. <div class="img_list ">
  46. <a href="{:U('m/about/store')}">
  47. <div class="col">
  48. <img src="https://img.x-motion.cn/home/m/image/home/home_02.jpg " alt=" "/>
  49. </div>
  50. <div class="img_words ">
  51. <h3>全国线下体验店</h3>
  52. <p></p>
  53. <span>踩过油门,才懂速度。尝试漂移,身体力行 </span>
  54. </div>
  55. </a>
  56. </div>
  57. <div class="img_list ">
  58. <a href="javascript:void(0);">
  59. <div class="col">
  60. <img src="https://img.x-motion.cn/home/m/image/home/home_03.jpg " alt=" "/>
  61. </div>
  62. <div class="img_words ">
  63. <h3>主题挑战赛</h3>
  64. <p></p>
  65. <span>挑战全世界的赛车手</span>
  66. </div>
  67. </a>
  68. </div>
  69. </div>
  70. <include file="./Application/M/View/Common/footer.html"/>
  71. </div>
  72. <include file="./Application/M/View/Common/footer_include.html"/>
  73. <script type="text/javascript">
  74. $(document).ready(function () {
  75. window.onresize = function () {
  76. set_position();
  77. };
  78. $(document).on('click','#video_button', function () {
  79. var url = $(this).attr('data-src');
  80. var html = '<div class="video_div_back"> <div class="video_div_shadow" onclick="video_remove();"></div><div class="video_div"> <video x-webkit-airplay="true" autoplay="autoplay" class="video_mp4" src="' + url + '" controls autobuffer></video> </div> </div>';
  81. $('body').append(html);
  82. set_video();
  83. });
  84. });
  85. function set_position() {
  86. set_video();
  87. }
  88. function video_remove(){
  89. $('.video_div_back').remove();
  90. }
  91. function set_video() {
  92. var height = $("video.video_mp4").height();
  93. var w_height = $(window).height();
  94. if (height < w_height) {
  95. $("video.video_mp4").css('top', (w_height - height) / 2);
  96. } else {
  97. $("video.video_mp4").css('height', w_height);
  98. }
  99. }
  100. </script>
  101. </body>
  102. </html>