1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset='utf-8' />
- <meta name="viewport" content="width=device-width, user-scalable=no" />
- <title>Thread App Tracim</title>
- <link rel='shortcut icon' href='favicon.ico'>
-
- <link rel="stylesheet" type="text/css" href="./font/font-awesome-4.7.0/css/font-awesome.css">
- <link href="https://fonts.googleapis.com/css?family=Quicksand:300,400,500,700" rel="stylesheet">
- <link rel="stylesheet" type="text/css" href="./dev/bootstrap-4.0.0-beta.css">
- </head>
- <body>
- <script src="./dev/jquery-3.2.1.js"></script>
- <script src="./dev/popper-1.12.3.js"></script>
- <script src="./dev/bootstrap-4.0.0-beta.2.js"></script>
-
- <div id='content'></div>
-
- <script src='./thread.app.dev.js'></script>
-
- <script type='text/javascript'>
- GLOBAL_renderApp = app => {
- switch (app.appData.name) {
- case 'PageHtml':
- appPageHtml.renderApp('appContainer'); break
- case 'Thread':
- appThread.renderApp('appContainer'); break
- }
- }
-
- GLOBAL_dispatchEvent = (data) => {
- var event = new CustomEvent('appCustomEvent', {detail: data})
- document.dispatchEvent(event)
- }
-
- GLOBAL_unmountApp = () => {
- switch (appName) {
- case 'PageHtml':
- appPageHtml.hideApp('appContainer'); break
- case 'Thread':
- appThread.hideApp('appContainer'); break
- }
- }
-
- // only usefull if app doesn't handle fileContent himself
- GLOBAL_handleRequireRedraw = () => {
- var rez = appA.destroyApp('app')
- if (rez) GLOBAL_drawApp('redraw')
- else console.log('Erreur, failed at destroying app')
- }
- </script>
-
- <script type='text/javascript'>
- // appPageHtml.renderApp('content')
- </script>
- </body>
- </html>
|