index.html 1.5KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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>PageHtml 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='./pageHtml.app.dev.js'></script>
  18. <script type='text/javascript'>
  19. GLOBAL_renderApp = appName => {
  20. if (appName === 'PageHtml') {
  21. appPageHtml.renderApp('appContainer')
  22. console.log('app pagehtml rendered')
  23. }
  24. }
  25. GLOBAL_dispatchEvent = (data) => {
  26. var event = new CustomEvent('appCustomEvent', {detail: data})
  27. document.dispatchEvent(event)
  28. }
  29. GLOBAL_unmountApp = () => {
  30. console.log('btn close clicked')
  31. appPageHtml.hideApp('appContainer')
  32. }
  33. // only usefull if app doesn't handle fileContent himself
  34. GLOBAL_handleRequireRedraw = () => {
  35. var rez = appA.destroyApp('app')
  36. if (rez) GLOBAL_drawApp('redraw')
  37. else console.log('Erreur, failed at destroying app')
  38. }
  39. </script>
  40. <script type='text/javascript'>
  41. // appPageHtml.renderApp('content')
  42. </script>
  43. </body>
  44. </html>