149 lines
8.3 KiB
HTML
149 lines
8.3 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title>Swiftmark</title>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<link rel="stylesheet" href="style.css">
|
|
</head>
|
|
<body>
|
|
<div id="app">
|
|
<header id="topbar">
|
|
<button id="btnSidebar" title="Show or hide the note list">Notes</button>
|
|
<select id="wikiSelect" title="Which wiki to preview against"></select>
|
|
<button id="btnSettings" title="Add, edit or remove wikis">Wikis...</button>
|
|
<span class="sep"></span>
|
|
<button id="btnCssLoad" title="Load a CSS file over the preview to try a stylesheet before saving it on your wiki">Load CSS...</button>
|
|
<button id="btnCssToggle" title="Turn the loaded CSS on or off" disabled>CSS off</button>
|
|
<button id="btnCssClear" title="Forget the loaded CSS file" hidden>Clear CSS</button>
|
|
<span id="cssName"></span>
|
|
<span class="spacer"></span>
|
|
<label id="splitWrap" title="Drag to change how wide the editor is. Double click the divider to reset."><span>Editor width</span><input id="splitRange" type="range" min="15" max="85" value="50"></label>
|
|
<button id="modeBadge" class="badge" title="Preview status"></button>
|
|
<button id="btnSwap" title="Swap the editor and preview sides (Ctrl+Shift+F)">Swap sides</button>
|
|
</header>
|
|
|
|
<div id="main">
|
|
<aside id="sidebar">
|
|
<div class="sbTop">
|
|
<input id="search" type="search" placeholder="Search notes" spellcheck="false">
|
|
<button id="btnNew" title="New note (Ctrl+N)">New</button>
|
|
</div>
|
|
<ul id="noteList"></ul>
|
|
<div id="folderLabel" title=""></div>
|
|
</aside>
|
|
|
|
<section id="panes">
|
|
<div class="pane" id="paneEditor">
|
|
<div class="paneHead">
|
|
<input id="titleInput" title="Note title (press Enter to rename)" spellcheck="false">
|
|
<button id="btnExport" title="Export as PDF, Word or wikitext">Export...</button>
|
|
<button id="btnDelete" title="Delete this note">Delete</button>
|
|
</div>
|
|
<div class="fmtbar" id="fmtbar">
|
|
<span class="grp">
|
|
<button data-fmt="bold" title="Bold (Ctrl+B)"><b>B</b></button>
|
|
<button data-fmt="italic" title="Italic (Ctrl+I)"><i>I</i></button>
|
|
<button data-fmt="underline" title="Underline (Ctrl+U)"><u>U</u></button>
|
|
<button data-fmt="strike" title="Strikethrough"><s>S</s></button>
|
|
<button data-fmt="sub" title="Subscript">x<sub>2</sub></button>
|
|
<button data-fmt="sup" title="Superscript">x<sup>2</sup></button>
|
|
<button data-fmt="code" title="Code"></></button>
|
|
</span>
|
|
<span class="grp">
|
|
<button data-fmt="color" title="Text color"><span class="swA" id="swText">A</span></button>
|
|
<button data-fmt="highlight" title="Highlight color"><span class="swH">ab</span></button>
|
|
<select id="sizeSel" title="Text size">
|
|
<option value="">Size</option>
|
|
<option value="70">Tiny 70%</option>
|
|
<option value="85">Small 85%</option>
|
|
<option value="120">Large 120%</option>
|
|
<option value="150">Larger 150%</option>
|
|
<option value="200">Huge 200%</option>
|
|
<option value="300">Giant 300%</option>
|
|
<option value="normal">Normal (remove size)</option>
|
|
</select>
|
|
<select id="blockSizeSel" title="Size for the whole line or block, wrapped in a div">
|
|
<option value="">Block size</option>
|
|
<option value="70">Block 70%</option>
|
|
<option value="85">Block 85%</option>
|
|
<option value="120">Block 120%</option>
|
|
<option value="150">Block 150%</option>
|
|
<option value="200">Block 200%</option>
|
|
<option value="300">Block 300%</option>
|
|
<option value="normal">Normal (remove block size)</option>
|
|
</select>
|
|
</span>
|
|
<span class="grp">
|
|
<button data-fmt="align-left" title="Align left (removes other alignment)"><svg width="14" height="12" viewBox="0 0 14 12"><path d="M1 1h12M1 4h8M1 7h12M1 10h8" stroke="currentColor" stroke-width="1.5" fill="none"/></svg></button>
|
|
<button data-fmt="align-center" title="Center"><svg width="14" height="12" viewBox="0 0 14 12"><path d="M1 1h12M3 4h8M1 7h12M3 10h8" stroke="currentColor" stroke-width="1.5" fill="none"/></svg></button>
|
|
<button data-fmt="align-right" title="Align right"><svg width="14" height="12" viewBox="0 0 14 12"><path d="M1 1h12M5 4h8M1 7h12M5 10h8" stroke="currentColor" stroke-width="1.5" fill="none"/></svg></button>
|
|
<button data-fmt="align-justify" title="Justify"><svg width="14" height="12" viewBox="0 0 14 12"><path d="M1 1h12M1 4h12M1 7h12M1 10h12" stroke="currentColor" stroke-width="1.5" fill="none"/></svg></button>
|
|
</span>
|
|
<span class="grp">
|
|
<select id="headSel" title="Heading level for the selected lines">
|
|
<option value="">Heading</option>
|
|
<option value="p">Normal text</option>
|
|
<option value="2">Heading 2</option>
|
|
<option value="3">Heading 3</option>
|
|
<option value="4">Heading 4</option>
|
|
<option value="5">Heading 5</option>
|
|
</select>
|
|
<button data-fmt="ul" title="Bulleted list. Keeps nesting levels; click again to remove.">Bullets</button>
|
|
<button data-fmt="ol" title="Numbered list. Keeps nesting levels; click again to remove.">Numbers</button>
|
|
<button data-fmt="indent" title="Indent (nests list items one level deeper)">Indent</button>
|
|
<button data-fmt="outdent" title="Outdent (one level shallower)">Outdent</button>
|
|
</span>
|
|
<span class="grp">
|
|
<button data-fmt="link" title="Wiki link (Ctrl+K)">[[ ]]</button>
|
|
<button data-fmt="extlink" title="External link">Ext link</button>
|
|
<button id="btnMedia" title="Picture, thumbnail, video and sound place-marker code">Media...</button>
|
|
<button id="btnTable" title="Insert a table: pick the size on the grid">Table</button>
|
|
<button id="btnTableTools" title="Row and column tools for the table at the cursor">Table tools</button>
|
|
<button data-fmt="hr" title="Horizontal rule">Rule</button>
|
|
<button data-fmt="quote" title="Block quote">Quote</button>
|
|
<button data-fmt="template" title="Template call">{{ }}</button>
|
|
<button data-fmt="ref" title="Reference">Ref</button>
|
|
<button data-fmt="nowiki" title="Show text without wiki markup">nowiki</button>
|
|
<button id="btnSpell" title="Check spelling, offline">Spelling</button>
|
|
<button id="btnThes" title="Find synonyms for the selected word, offline">Thesaurus</button>
|
|
<button id="btnSnippets" title="Common snippets: nowiki, ref, comments, categories, magic words and more">Snippets</button>
|
|
<button data-fmt="clear" title="Remove bold, italic and tag formatting from the selection or line">Clear</button>
|
|
</span>
|
|
</div>
|
|
<div class="paneBody">
|
|
<textarea id="editor" spellcheck="true" wrap="soft" placeholder="Write wikitext here"></textarea>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="splitter" role="separator" aria-orientation="vertical" tabindex="0" title="Drag to resize. Double click to reset. Arrow keys nudge."></div>
|
|
|
|
<div class="pane" id="panePreview">
|
|
<div class="paneHead"><span class="paneTitle">Preview</span><span id="previewSource"></span></div>
|
|
<div class="paneBody">
|
|
<iframe id="preview" sandbox="allow-same-origin" title="Preview"></iframe>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
</div>
|
|
|
|
<footer id="statusbar">
|
|
<span id="noteStatus"></span>
|
|
<span class="spacer"></span>
|
|
<span id="countStatus"></span>
|
|
</footer>
|
|
</div>
|
|
|
|
<div id="toast" hidden></div>
|
|
|
|
<script src="fallback.js"></script>
|
|
<script src="format.js"></script>
|
|
<script src="tables.js"></script>
|
|
<script src="snippets.js"></script>
|
|
<script src="media.js"></script>
|
|
<script src="proof.js"></script>
|
|
<script src="export.js"></script>
|
|
<script src="renderer.js"></script>
|
|
</body>
|
|
</html>
|