index.html 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6. <title> Nibis </title>
  7. <link rel="stylesheet" type="text/css" href="css/styles.css">
  8. <link rel="stylesheet" type="text/css" href="creta/src/css/styles.css">
  9. <link rel="icon" type="image/png" href="icons/favicon.png">
  10. <link id="enumerate-lines" href="" rel="stylesheet" type="text/css">
  11. <script>
  12. MathJax = {
  13. tex: {inlineMath: [['$', '$']]}
  14. };
  15. </script>
  16. </head>
  17. <body onload="startEditors();load();" ondragstart="return false;" ondrop="return false;">
  18. <div id="noscript">
  19. <p>Good idea, it seems your browser can't run Javascript 🎉🎉</p>
  20. <p>You can still work with CLI desktop version <a href="https://notabug.org/alkeon/texdi">texdi</a></p>
  21. </div>
  22. <nav>
  23. <ul>
  24. <li> <a href="index.html" class="logo"><img alt="NIBIS logo" src="icons/logo.png"></a>
  25. <li class="smaller-title"> <div id="title"> Default Name </div>
  26. <li>
  27. <div class="submenu">
  28. <input id="input-menu" type="checkbox" onclick="start_menu()">
  29. <div>☰</div>
  30. </div>
  31. </li>
  32. </ul>
  33. </nav>
  34. <main id="viewport">
  35. <aside id="bookmarks">
  36. <h2> Titles </h2>
  37. <p class="bookmark-links"></p>
  38. </aside>
  39. <div id="editors">
  40. <div id="visual-editor"></div>
  41. <div id="code-editor"></div>
  42. </div>
  43. <section id="pdf"></section>
  44. <aside id="options">
  45. <details>
  46. <summary>Templates</summary>
  47. <input onclick="set_template_id(0)" type="radio" id="notes" name="templates" value="notes" checked>
  48. <label for="notes">Notes</label><br>
  49. <input onclick="set_template_id(1)" type="radio" id="thesis" name="templates" value="thesis">
  50. <label for="thesis">Thesis</label><br>
  51. <input onclick="set_template_id(2)" type="radio" id="presentation" name="templates" value="presentation">
  52. <label for="presentation">Presentation</label><br>
  53. <input onclick="set_template_id(3)" type="radio" id="paper" name="templates" value="paper">
  54. <label for="presentation">Paper</label><br>
  55. <input onclick="show_template_popup()" type="radio" id="custom" name="templates" value="custom">
  56. <label for="custom">Custom</label>
  57. </details>
  58. <details>
  59. <summary>Shortcuts (PC only)</summary>
  60. <p>Ctrl + Shift + C: Clean editor</p>
  61. <p>Ctrl + 1: First level header keybinding</p>
  62. <p>Ctrl + 2: Second level header keybinding</p>
  63. <p>Ctrl + 3: Third level header keybinding</p>
  64. <p>Ctrl + Shift + K: Link keybinding</p>
  65. <p>Ctrl + Shift + I: Image keybinding</p>
  66. <p>Ctrl + Shift + L: List keybinding</p>
  67. <p>Ctrl + 4: Nested list item</p>
  68. <p>Ctrl + Shift + T: Table keybinding</p>
  69. <p>Ctrl + Shift + B: Block keybinding</p>
  70. <p>Ctrl + Shift + E: Embed keybinding</p>
  71. <p>Ctrl + Shift + M: Code keybinding</p>
  72. <p>Alt + I: Enable/disable multiline editor. This option allows selecting multiple lines</p>
  73. </details>
  74. <p><a onclick="export_markdown()">Export to markdown</a></p>
  75. <p><input id="select-title" type="checkbox" onclick="show_bookmarks_aside()">Select titles</p>
  76. <p><input id="line-numbers" type="checkbox" onclick="set_line_numbering()">Add numbers to lines</p>
  77. <p><input id="set-collab" type="checkbox" onclick="set_collab()">Set collab mode</p>
  78. <p><input id="set-mathjax" type="checkbox" onclick="set_mathjax()">Render math formula (beta)</p>
  79. <p><input id="set-debug" type="checkbox" onclick="set_debug()">Show errors and debug</p>
  80. <p><input id="save-api" type="checkbox">Set API saving</p>
  81. <p><input id="api-token" type="text" placeholder="API Token"></p>
  82. <p><a href="about.html">About</a></p>
  83. </aside>
  84. </main>
  85. <div id="template-popup" class="popup">
  86. <br>
  87. <div class="popup-text">Write header and end for template</div>
  88. <div class="close_button" onclick="this.parentElement.style.display = 'none';">
  89. 🗙
  90. </div>
  91. <textarea name="text" class="start" placeholder="Enter template start" rows="5" cols="5"></textarea>
  92. <textarea name="text" class="end" placeholder="Enter template end" rows="5" cols="5"></textarea>
  93. <button type="button" class="accept-template">Accept</button>
  94. </div>
  95. <div id="autoload-popup" class="popup">
  96. <br>
  97. <div class="popup_text">Load detected document?</div>
  98. <button type="button" class="accept-autoload">Yes</button>
  99. <button type="button" onclick="this.parentElement.style.display = 'none';">No</button>
  100. </div>
  101. <div id="loading-file-popup" class="popup">
  102. <br>
  103. <div class="close_button" onclick="this.parentElement.style.display = 'none';">
  104. 🗙
  105. </div>
  106. <div class="popup_text"><img src="icons/loading.gif" alt="loading file icon"></div>
  107. </div>
  108. <script>
  109. document.getElementById('noscript').style.display = "none";
  110. </script>
  111. <script src="creta/src/js/creta-core.js"></script>
  112. <script src="creta/src/js/creta-ui.js"></script>
  113. <script src="creta/src/js/creta.js"></script>
  114. <script src="creta/src/js/beautify-html.js"></script>
  115. <script src="js/tedi/html2tedi.js"></script>
  116. <script src="js/tedi/tedi2lang.js"></script>
  117. <script src="js/tedi/tedi2html.js"></script>
  118. <script src="js/tedi/tedi2tex.js"></script>
  119. <script src="js/tedi/tedi2md.js"></script>
  120. <script src="js/editor.js"></script>
  121. <script src="js/ip.js"></script>
  122. <script src="js/jszip.min.js"></script>
  123. <script src="js/FileSaver.js"></script>
  124. </body>
  125. </html>