index.html 1.7KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset='utf-8' />
  5. <meta name="viewport" content="width=device-width, user-scalable=no" />
  6. <title>Thread App Tracim</title>
  7. <link rel='shortcut icon' href='favicon.ico'>
  8. <link rel="stylesheet" type="text/css" href="./font/font-awesome-4.7.0/css/font-awesome.css">
  9. <link href="https://fonts.googleapis.com/css?family=Quicksand:300,400,500,700" rel="stylesheet">
  10. <link rel="stylesheet" type="text/css" href="./dev/bootstrap-4.0.0-beta.css">
  11. </head>
  12. <body>
  13. <script src="./dev/jquery-3.2.1.js"></script>
  14. <script src="./dev/popper-1.12.3.js"></script>
  15. <script src="./dev/bootstrap-4.0.0-beta.2.js"></script>
  16. <div id='content'></div>
  17. <script src='./thread.app.dev.js'></script>
  18. <script type='text/javascript'>
  19. GLOBAL_renderApp = app => {
  20. switch (app.appData.name) {
  21. case 'PageHtml':
  22. appPageHtml.renderApp('appContainer'); break
  23. case 'Thread':
  24. appThread.renderApp('appContainer'); break
  25. }
  26. }
  27. GLOBAL_dispatchEvent = (data) => {
  28. var event = new CustomEvent('appCustomEvent', {detail: data})
  29. document.dispatchEvent(event)
  30. }
  31. GLOBAL_unmountApp = () => {
  32. switch (appName) {
  33. case 'PageHtml':
  34. appPageHtml.hideApp('appContainer'); break
  35. case 'Thread':
  36. appThread.hideApp('appContainer'); break
  37. }
  38. }
  39. // only usefull if app doesn't handle fileContent himself
  40. GLOBAL_handleRequireRedraw = () => {
  41. var rez = appA.destroyApp('app')
  42. if (rez) GLOBAL_drawApp('redraw')
  43. else console.log('Erreur, failed at destroying app')
  44. }
  45. </script>
  46. <script type='text/javascript'>
  47. // appPageHtml.renderApp('content')
  48. </script>
  49. </body>
  50. </html>