index.jade 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. html
  2. head
  3. link(rel='icon' href='app/editor/static/preview-templates/favicon.ico')
  4. meta(charset='utf-8')
  5. title=title
  6. meta(name='viewport' content='width=device-width,user-scalable=no,initial-scale=1, minimum-scale=1,maximum-scale=1')
  7. meta(name='apple-mobile-web-app-capable' content='yes')
  8. meta(name='full-screen' content='yes')
  9. meta(name='screen-orientation' content='portrait')
  10. meta(name='x5-fullscreen' content='true')
  11. meta(name='360-fullscreen' content='true')
  12. meta(name='renderer' content='webkit')
  13. meta(name='force-rendering' content='webkit')
  14. meta(http-equiv='X-UA-Compatible' content='IE=edge,chrome=1')
  15. link(rel='stylesheet' href='app/editor/static/preview-templates/style.css')
  16. block head
  17. body
  18. block toolbar
  19. include ./toolbar.jade
  20. div.content#content
  21. div.contentWrap
  22. div.wrapper#GameDiv
  23. canvas#GameCanvas
  24. div#splash
  25. div.progress-bar.stripes
  26. span
  27. div#bulletin
  28. div.inner#sceneIsEmpty= tip_sceneIsEmpty
  29. div#recompiling
  30. span Recompiling scripts, please wait for refresh...
  31. script(type='text/javascript' charset='utf-8' src='settings.js')
  32. script(type='text/javascript' charset='utf-8' src='preview-scripts/__quick_compile__.js')
  33. script(type='text/javascript' charset='utf-8' src='app/editor/static/preview-templates/boot.js')
  34. script(type='text/javascript' charset='utf-8' src='/socket.io/socket.io.js')
  35. script(type='text/javascript').
  36. window.__socket_io__ = window.io;
  37. window.CC_PHYSICS_CANNON = #{enableCannonPhysics};
  38. window.CC_PHYSICS_BUILTIN = #{enableBuiltinPhysics};
  39. if enableDebugger
  40. script(type='text/javascript' charset='utf-8' src='app/node_modules/vconsole/dist/vconsole.min.js')
  41. script(type='text/javascript' charset='utf-8' src='app/engine/bin/' + cocos2d)
  42. if enableDebugger
  43. script(type='text/javascript').
  44. vConsole = new VConsole();