data.html 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. {%set loadUrl = data['url']['data'] + '&ajax=1' %}
  2. {% if data['ajax'] == False %}
  3. <!DOCTYPE html>
  4. <html>
  5. <head>
  6. {%include '../inc/header.html'%}
  7. <link href="{{static_url('mobile/css/station.css')}}" rel="stylesheet">
  8. {% if 'camera' in data and data['camera'] %}
  9. <link href="{{static_url('pc/lib/player/video-js.min.css')}}" rel="stylesheet">
  10. {% end %}
  11. </head>
  12. <body>
  13. {%set data['topName'] = data['info']['name'] %}
  14. {%set data['topUrl'] = '/device' %}
  15. {%include '../inc/top.html'%}
  16. <section class="has-bbar">
  17. {% if 'camera' in data and data['camera'] %}
  18. {% for k,v in enumerate(data['camera']) %}
  19. <div class="form-group-head">{{v['name']}}</div>
  20. <section>
  21. <video id="player-{{k}}" class="box player video-js vjs-default-skin" controls>
  22. <source
  23. src="{{v['value']}}"
  24. type="application/x-mpegURL">
  25. </video>
  26. </section>
  27. {% end %}
  28. {% end %}
  29. <div id="loadMain">
  30. {% end %}
  31. {% if 'pic' in data and data['pic'] %}
  32. {% for k,v in enumerate(data['pic']) %}
  33. <div class="form-group-head">{{v['name']}}</div>
  34. <section>
  35. <img src="{{v['value']}}" width="100%">
  36. </section>
  37. {% end %}
  38. {% end %}
  39. {%include 'inc/data.html'%}
  40. {% if data['ajax'] == False %}
  41. </div>
  42. </section>
  43. {%include 'inc/menu.html'%}
  44. {%include '../inc/script.html'%}
  45. {%include '../../pc/device/inc/load.html'%}
  46. </body>
  47. </html>
  48. {% end %}