2017-10-14 23:31:44 -04:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								<!DOCTYPE html>
							 
						 
					
						
							
								
									
										
										
										
											2017-10-15 19:10:36 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								<html lang="en">
							 
						 
					
						
							
								
									
										
										
										
											2017-10-14 23:31:44 -04:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								  <head>
							 
						 
					
						
							
								
									
										
										
										
											2017-10-15 19:10:36 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								    <meta charset="utf-8">
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    <title>Trilium</title>
							 
						 
					
						
							
								
									
										
										
										
											2017-10-14 23:31:44 -04:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								  </head>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								  <body>
							 
						 
					
						
							
								
									
										
										
										
											2017-11-06 20:13:36 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								    <div id="loader-wrapper"><div id="loader"></div></div>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    <div id="container" style="display: none;">
							 
						 
					
						
							
								
									
										
										
										
											2017-10-15 19:10:36 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								      <div id="header" class="hide-toggle">
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								        <div id="header-title">
							 
						 
					
						
							
								
									
										
										
										
											2017-11-06 23:52:54 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								          <img src="images/app-icons/png/24x24.png">
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2017-10-15 19:10:36 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								          Trilium
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								        </div>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								        <div style="flex-grow: 100;">
							 
						 
					
						
							
								
									
										
										
										
											2017-11-04 13:59:43 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								          <button class="btn btn-xs" onclick="jumpToNote.showDialog();">Jump to note</button>
							 
						 
					
						
							
								
									
										
										
										
											2017-12-22 07:00:17 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								          <button class="btn btn-xs" onclick="recentNotes.showDialog();">Recent notes</button>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								          <button class="btn btn-xs" onclick="recentChanges.showDialog();">Recent changes</button>
							 
						 
					
						
							
								
									
										
										
										
											2017-11-04 14:02:43 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								          <button class="btn btn-xs" onclick="eventLog.showDialog();">Event log</button>
							 
						 
					
						
							
								
									
										
										
										
											2017-10-15 19:10:36 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								        </div>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								        <div>
							 
						 
					
						
							
								
									
										
										
										
											2017-12-22 07:00:17 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								          <button class="btn btn-xs" onclick="syncNow();" title="Number of outstanding changes to be pushed to server">
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								            Sync now (<span id="changes-to-push-count">0</span>)
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								          </button>
							 
						 
					
						
							
								
									
										
										
										
											2017-10-29 11:22:41 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2017-11-04 14:31:53 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								          <button class="btn btn-xs" onclick="settings.showDialog();">Settings</button>
							 
						 
					
						
							
								
									
										
										
										
											2017-10-15 19:10:36 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								          <form action="logout" method="POST" style="display: inline;">
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								            <input type="submit" class="btn btn-xs" value="Logout">
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								          </form>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								        </div>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								      </div>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2017-12-04 18:21:57 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								      <div class="hide-toggle" style="grid-area: tree-actions;">
							 
						 
					
						
							
								
									
										
										
										
											2017-12-10 21:46:12 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								        <div style="display: flex; justify-content: space-around; padding: 10px 0 10px 0; margin: 0 20px 0 20px; border: 1px solid #ccc;">
							 
						 
					
						
							
								
									
										
										
										
											2017-12-04 18:21:57 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								          <a onclick="noteTree.createNewTopLevelNote()" title="Create new top level note" class="icon-action">
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								            <img src="images/icons/file-plus.png" alt="Create new top level note"/>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								          </a>
							 
						 
					
						
							
								
									
										
										
										
											2017-10-15 19:10:36 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2017-12-22 07:00:17 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								          <a onclick="noteTree.collapseTree()" title="Collapse note tree" class="icon-action">
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								            <img src="images/icons/list.png" alt="Collapse note tree"/>
							 
						 
					
						
							
								
									
										
										
										
											2017-12-04 18:21:57 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								          </a>
							 
						 
					
						
							
								
									
										
										
										
											2017-10-15 19:10:36 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2017-12-04 18:21:57 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								          <a onclick="noteTree.scrollToCurrentNote()" title="Scroll to current note" class="icon-action">
							 
						 
					
						
							
								
									
										
										
										
											2017-12-22 07:00:17 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								            <img src="images/icons/crosshair.png" alt="Scroll to current note"/>
							 
						 
					
						
							
								
									
										
										
										
											2017-12-04 18:21:57 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								          </a>
							 
						 
					
						
							
								
									
										
										
										
											2017-10-15 19:10:36 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2017-12-04 18:21:57 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								          <a onclick="searchTree.toggleSearch()" title="Search in notes" class="icon-action">
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								            <img src="images/icons/search.png" alt="Search in notes"/>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								          </a>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								        </div>
							 
						 
					
						
							
								
									
										
										
										
											2017-10-15 19:10:36 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								        <div id="search-box" style="display: none; padding: 10px; margin-top: 10px;">
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								          <p>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								            <label>Search:</label>
							 
						 
					
						
							
								
									
										
										
										
											2017-11-23 21:10:37 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								            <input name="search-text" autocomplete="off">
							 
						 
					
						
							
								
									
										
										
										
											2017-10-15 19:10:36 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								            <button id="reset-search-button">×</button>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								            <span id="matches"></span>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								          </p>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								        </div>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								      </div>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								      <div id="tree" class="hide-toggle" style="grid-area: tree; overflow: auto;">
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								      </div>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2017-12-06 20:19:41 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								      <div id="parent-list">
							 
						 
					
						
							
								
									
										
										
										
											2017-12-16 21:35:44 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								        <p><strong>Note locations:</strong></p>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								        <ul id="parent-list-list"></ul>
							 
						 
					
						
							
								
									
										
										
										
											2017-11-21 20:04:06 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								      </div>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2017-10-15 19:10:36 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								      <div class="hide-toggle" style="grid-area: title;">
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								        <div style="display: flex; align-items: center;">
							 
						 
					
						
							
								
									
										
										
										
											2017-11-14 22:36:36 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								          <a onclick="protected_session.protectNoteAndSendToServer()"
							 
						 
					
						
							
								
									
										
										
										
											2017-12-10 15:47:21 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								             title="Protect the note so that password will be required to view the note"
							 
						 
					
						
							
								
									
										
										
										
											2017-10-15 19:10:36 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								             class="icon-action"
							 
						 
					
						
							
								
									
										
										
										
											2017-11-14 22:21:56 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								             id="protect-button"
							 
						 
					
						
							
								
									
										
										
										
											2017-10-15 19:10:36 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								             style="display: none;">
							 
						 
					
						
							
								
									
										
										
										
											2017-12-10 15:47:21 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								            <img src="images/icons/lock.png" alt="Protect note"/>
							 
						 
					
						
							
								
									
										
										
										
											2017-10-15 19:10:36 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								          </a>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2017-11-14 22:36:36 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								          <a onclick="protected_session.unprotectNoteAndSendToServer()"
							 
						 
					
						
							
								
									
										
										
										
											2017-12-10 15:47:21 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								             title="Unprotect note so that password will not be required to access this note in the future"
							 
						 
					
						
							
								
									
										
										
										
											2017-10-15 19:10:36 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								             class="icon-action"
							 
						 
					
						
							
								
									
										
										
										
											2017-11-14 22:21:56 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								             id="unprotect-button"
							 
						 
					
						
							
								
									
										
										
										
											2017-10-15 19:10:36 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								             style="display: none;">
							 
						 
					
						
							
								
									
										
										
										
											2017-12-10 15:47:21 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								            <img src="images/icons/unlock.png" alt="Unprotect note"/>
							 
						 
					
						
							
								
									
										
										
										
											2017-10-15 19:10:36 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								          </a>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								           
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								          <input autocomplete="off" value="" id="note-title" style="font-size: x-large; border: 0; flex-grow: 100;" tabindex="1">
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2017-12-17 13:46:18 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								          <button class="btn btn-xs" style="margin: 10px;" onclick="noteHistory.showCurrentNoteHistory();">Note history</button>
							 
						 
					
						
							
								
									
										
										
										
											2017-10-15 19:10:36 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								        </div>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								      </div>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2017-12-16 21:27:42 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								      <div style="overflow: auto; grid-area: note-content; padding-left: 10px; padding-top: 10px;" id="note-detail-wrapper">
							 
						 
					
						
							
								
									
										
										
										
											2017-10-15 19:10:36 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								        <div id="note-detail"></div>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								      </div>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    </div>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    <div id="recent-notes-dialog" title="Recent notes" style="display: none;">
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								      <select id="recent-notes-select-box" size="20" style="width: 100%">
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								      </select>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								      <br/><br/>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								      <p>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								        <button class="btn btn-sm" id="recent-notes-jump-to">Jump to (enter)</button>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								         
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								        <button class="btn btn-sm" id="recent-notes-add-link">Add link (l)</button>
							 
						 
					
						
							
								
									
										
										
										
											2017-11-19 16:35:35 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								        <button class="btn btn-sm" id="recent-notes-add-current-as-child">Add current as child (c)</button>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								        <button class="btn btn-sm" id="recent-notes-add-recent-as-child">Add recent as child (r)</button>
							 
						 
					
						
							
								
									
										
										
										
											2017-10-15 19:10:36 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								      </p>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    </div>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2017-12-21 21:54:25 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								    <div id="add-link-dialog" title="Add link" style="display: none;">
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								      <form id="add-link-form">
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								        <div class="radio">
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								          <label title="Add HTML link to the selected note at cursor in current note">
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								            <input type="radio" name="add-link-type" value="html"/>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								            add normal HTML link</label>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								          <label title="Add selected note as a child of current note">
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								            <input type="radio" name="add-link-type" value="selected-to-current"/>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								            add selected note to current note</label>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								          <label title="Add current note as a child of the selected note">
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								            <input type="radio" name="add-link-type" value="current-to-selected"/>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								            add current note to selected note</label>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								        </div>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2017-10-15 19:10:36 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								        <div class="form-group">
							 
						 
					
						
							
								
									
										
										
										
											2017-12-21 21:54:25 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								          <label for="note-autocomplete">Note</label>
							 
						 
					
						
							
								
									
										
										
										
											2017-10-15 19:10:36 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								          <input id="note-autocomplete" style="width: 100%;">
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								        </div>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2017-12-21 21:54:25 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								        <div class="form-group" id="add-link-title-form-group">
							 
						 
					
						
							
								
									
										
										
										
											2017-10-15 19:10:36 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								          <label for="link-title">Link title</label>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								          <input id="link-title" style="width: 100%;">
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								        </div>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2017-12-21 21:54:25 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								        <div class="form-group" id="add-link-prefix-form-group" title="Cloned note will be shown in note tree with given prefix">
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								          <label for="clone-prefix">Prefix (optional)</label>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								          <input id="clone-prefix" style="width: 100%;">
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								        </div>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2017-10-15 19:10:36 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								        <button class="btn btn-sm">Add link</button>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								      </form>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    </div>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    <div id="jump-to-note-dialog" title="Jump to note" style="display: none;">
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								      <form id="jump-to-note-form">
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								        <div class="form-group">
							 
						 
					
						
							
								
									
										
										
										
											2017-12-21 22:03:13 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								          <label for="jump-to-note-autocomplete">Note</label>
							 
						 
					
						
							
								
									
										
										
										
											2017-10-15 19:10:36 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								          <input id="jump-to-note-autocomplete" style="width: 100%;">
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								        </div>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2017-11-19 20:36:13 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								        <button name="action" value="jump" class="btn btn-sm">Jump</button>
							 
						 
					
						
							
								
									
										
										
										
											2017-10-15 19:10:36 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								      </form>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    </div>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2017-11-18 17:05:50 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								    <div id="protected-session-password-dialog" title="Protected session" style="display: none;">
							 
						 
					
						
							
								
									
										
										
										
											2017-11-14 22:34:33 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								      <form id="protected-session-password-form">
							 
						 
					
						
							
								
									
										
										
										
											2017-10-15 19:10:36 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								        <div class="form-group">
							 
						 
					
						
							
								
									
										
										
										
											2017-11-18 17:05:50 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								          <label for="protected-session-password">To proceed with requested action you need to enter protected session by entering password:</label>
							 
						 
					
						
							
								
									
										
										
										
											2017-12-25 09:30:37 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								          <input id="protected-session-password" class="form-control" type="password">
							 
						 
					
						
							
								
									
										
										
										
											2017-10-15 19:10:36 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								        </div>
							 
						 
					
						
							
								
									
										
										
										
											2017-12-25 09:30:37 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								        <button class="btn btn-sm">Enter protected session</button>
							 
						 
					
						
							
								
									
										
										
										
											2017-10-15 19:10:36 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								      </form>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    </div>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    <div id="settings-dialog" title="Settings" style="display: none;">
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								      <div id="settings-tabs">
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								        <ul>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								          <li><a href="#change-password">Change password</a></li>
							 
						 
					
						
							
								
									
										
										
										
											2017-11-14 22:44:45 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								          <li><a href="#protected-session-timeout">Protected session</a></li>
							 
						 
					
						
							
								
									
										
										
										
											2017-10-15 19:10:36 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								          <li><a href="#history-snapshot-time-interval">History snapshots</a></li>
							 
						 
					
						
							
								
									
										
										
										
											2017-12-23 09:35:00 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								          <li><a href="#advanced">Advanced</a></li>
							 
						 
					
						
							
								
									
										
										
										
											2017-11-13 23:35:23 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								          <li><a href="#about">About Trilium</a></li>
							 
						 
					
						
							
								
									
										
										
										
											2017-10-15 19:10:36 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								        </ul>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								        <div id="change-password">
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								          <form id="change-password-form">
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								            <div class="form-group">
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								              <label for="old-password">Old password</label>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								              <input class="form-control" id="old-password" type="password">
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								            </div>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								            <div class="form-group">
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								              <label for="new-password1">New password</label>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								              <input class="form-control" id="new-password1" type="password">
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								            </div>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								            <div class="form-group">
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								              <label for="new-password2">New password once more</label>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								              <input class="form-control" id="new-password2" type="password">
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								            </div>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								            <button class="btn btn-sm">Change password</button>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								          </form>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								        </div>
							 
						 
					
						
							
								
									
										
										
										
											2017-11-14 22:44:45 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								        <div id="protected-session-timeout">
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								          <p>Protected session timeout is a time period after which the protected session is wiped out from
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								            browser's memory. This is measured from the last interaction with protected notes.</p>
							 
						 
					
						
							
								
									
										
										
										
											2017-10-15 19:10:36 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2017-11-14 22:44:45 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								          <form id="protected-session-timeout-form">
							 
						 
					
						
							
								
									
										
										
										
											2017-10-15 19:10:36 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								            <div class="form-group">
							 
						 
					
						
							
								
									
										
										
										
											2017-11-14 22:44:45 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								              <label for="protected-session-timeout-in-seconds">Protected session timeout (in seconds)</label>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								              <input class="form-control" id="protected-session-timeout-in-seconds" type="number">
							 
						 
					
						
							
								
									
										
										
										
											2017-10-15 19:10:36 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								            </div>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								            <button class="btn btn-sm">Save</button>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								          </form>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								        </div>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								        <div id="history-snapshot-time-interval">
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								          <p>History snapshot time interval is time in seconds after which new history record will be created for the note.</p>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								          <form id="history-snapshot-time-interval-form">
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								            <div class="form-group">
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								              <label for="history-snapshot-time-interval-in-seconds">History snapshot time interval (in seconds)</label>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								              <input class="form-control" id="history-snapshot-time-interval-in-seconds" type="number">
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								            </div>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								            <button class="btn btn-sm">Save</button>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								          </form>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								        </div>
							 
						 
					
						
							
								
									
										
										
										
											2017-12-23 09:35:00 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								        <div id="advanced">
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								          <h4 style="margin-top: 0px;">Sync</h4>
							 
						 
					
						
							
								
									
										
										
										
											2017-12-13 23:03:48 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								          <button id="force-full-sync-button" class="btn btn-sm">Force full sync</button>
							 
						 
					
						
							
								
									
										
										
										
											2017-12-19 22:04:51 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								          <br/>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								          <br/>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								          <button id="fill-sync-rows-button" class="btn btn-sm">Fill sync rows</button>
							 
						 
					
						
							
								
									
										
										
										
											2017-12-23 09:35:00 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								          <h4>Debugging</h4>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								          <button id="anonymize-button" class="btn btn-sm">Save anonymized database</button><br/><br/>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								          <p>This action will create a new copy of the database and anonymise it (remove all note content and leave only structure and metadata)
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								            for sharing online for debugging purposes without fear of leaking your personal data.</p>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								          <h4>Cleanup</h4>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2017-12-23 11:02:38 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								          <button id="cleanup-soft-deleted-items-button" class="btn btn-danger btn-sm">Permanently cleanup soft-deleted items</button> (should be executed in all synced instances)
							 
						 
					
						
							
								
									
										
										
										
											2017-12-23 09:35:00 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								          <br/>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								          <br/>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								          <button id="vacuum-database-button" class="btn btn-sm">Vacuum database</button>
							 
						 
					
						
							
								
									
										
										
										
											2017-12-16 00:05:37 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								        </div>
							 
						 
					
						
							
								
									
										
										
										
											2017-11-13 23:35:23 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								        <div id="about">
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								          <table class="table">
							 
						 
					
						
							
								
									
										
										
										
											2017-11-16 20:03:44 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								            <tr>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								              <th>App version:</th>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								              <td id="app-version"></td>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								            </tr>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								            <tr>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								              <th>DB version:</th>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								              <td id="db-version"></td>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								            </tr>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2017-11-13 23:35:23 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								            <tr>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								              <th>Build date:</th>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								              <td id="build-date"></td>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								            </tr>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								            <tr>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								              <th>Build revision:</th>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								              <td><a href="" target="_blank" id="build-revision"></a></td>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								            </tr>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								          </table>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								        </div>
							 
						 
					
						
							
								
									
										
										
										
											2017-10-15 19:10:36 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								      </div>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    </div>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    <div id="note-history-dialog" title="Note history" style="display: none;">
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								      <div style="display: flex;">
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								        <select id="note-history-list" size="25" style="width: 150px; height: 630px;">
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								        </select>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								        <div id="note-history-content-wrapper" style="flex-grow: 1; margin-left: 20px;">
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								          <h3 id="note-history-title" style="margin: 3px;"></h3>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								          <div id="note-history-content" style="height: 600px; width: 600px; overflow: auto;"></div>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								        </div>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								      </div>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    </div>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    <div id="recent-changes-dialog" title="Recent changes" style="display: none; padding: 20px;">
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    </div>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2017-11-03 23:00:35 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								    <div id="event-log-dialog" title="Event log" style="display: none; padding: 20px;">
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								      <ul id="event-log-list"></ul>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    </div>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2017-11-26 22:34:25 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								    <div id="edit-tree-prefix-dialog" title="Edit tree prefix" style="display: none; padding: 20px;">
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								      <form id="edit-tree-prefix-form">
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								        <div class="form-group">
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								          <label for="tree-prefix-input">Prefix</label>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								          <input id="tree-prefix-input" style="width: 20em;"> - <span id="tree-prefix-note-title"></span>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								        </div>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								        <button name="action" class="btn btn-sm">Save</button>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								      </form>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    </div>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2017-12-18 21:58:46 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								    <div id="sql-console-dialog" title="SQL console" style="display: none; padding: 20px;">
							 
						 
					
						
							
								
									
										
										
										
											2017-12-14 20:38:56 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								      <textarea style="width: 100%; height: 100px" id="sql-console-query"></textarea>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								      <button class="btn btn-danger" id="sql-console-execute">Execute</button>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								      <table id="sql-console-results" class="table table-striped" style="overflow: scroll; width: 100%;">
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								        <thead></thead>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								        <tbody></tbody>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								      </table>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    </div>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2017-10-15 19:10:36 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								    <div id="tooltip" style="display: none;"></div>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    <script type="text/javascript">
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								      const baseApiUrl = 'api/';
							 
						 
					
						
							
								
									
										
										
										
											2017-12-16 20:48:34 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								      const glob = {
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								          activeDialog: null,
							 
						 
					
						
							
								
									
										
										
										
											2017-12-19 23:22:21 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								          sourceId: '<%= sourceId %>',
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								          maxSyncIdAtLoad: <%= maxSyncIdAtLoad %>
							 
						 
					
						
							
								
									
										
										
										
											2017-12-16 20:48:34 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								      };
							 
						 
					
						
							
								
									
										
										
										
											2017-10-15 19:10:36 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								    </script>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2017-10-20 23:43:20 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								    <!-- Required for correct loading of scripts in Electron -->
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    <script>if (typeof module === 'object') {window.module = module; module = undefined;}</script>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2017-10-15 19:47:05 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								    <script src="libraries/jquery.min.js"></script>
							 
						 
					
						
							
								
									
										
										
										
											2017-10-15 19:10:36 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    <!-- bootstrap needs to be included before jQuery UI, otherwise close icon in the dialog will be missing -->
							 
						 
					
						
							
								
									
										
										
										
											2017-10-15 19:47:05 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								    <link href="libraries/bootstrap/css/bootstrap.css" rel="stylesheet">
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    <script src="libraries/bootstrap/js/bootstrap.js"></script>
							 
						 
					
						
							
								
									
										
										
										
											2017-10-15 19:10:36 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2017-10-15 19:47:05 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								    <link href="libraries/jqueryui/jquery-ui.min.css" rel="stylesheet">
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    <script src="libraries/jqueryui/jquery-ui.min.js"></script>
							 
						 
					
						
							
								
									
										
										
										
											2017-10-15 19:10:36 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2017-11-26 12:56:07 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								    <script src="libraries/bootstrap-notify.min.js"></script>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2017-10-15 19:10:36 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								    <!-- Include Fancytree skin and library -->
							 
						 
					
						
							
								
									
										
										
										
											2017-10-15 19:47:05 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								    <link href="libraries/fancytree/skin-win8/ui.fancytree.css" rel="stylesheet">
							 
						 
					
						
							
								
									
										
										
										
											2017-12-16 00:19:15 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								    <script src="libraries/fancytree/jquery.fancytree-all.min.js"></script>
							 
						 
					
						
							
								
									
										
										
										
											2017-10-15 19:10:36 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2017-12-02 10:37:12 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								    <script src="libraries/ckeditor/ckeditor.js"></script>
							 
						 
					
						
							
								
									
										
										
										
											2017-10-15 19:10:36 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2017-10-15 19:47:05 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								    <script src="libraries/jquery.hotkeys.js"></script>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    <script src="libraries/jquery.fancytree.hotkeys.js"></script>
							 
						 
					
						
							
								
									
										
										
										
											2017-10-15 19:10:36 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2017-10-15 19:47:05 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								    <script src="libraries/jquery.ui-contextmenu.min.js"></script>
							 
						 
					
						
							
								
									
										
										
										
											2017-10-15 19:10:36 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2017-10-15 19:47:05 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								    <link href="stylesheets/style.css" rel="stylesheet">
							 
						 
					
						
							
								
									
										
										
										
											2017-10-15 19:10:36 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2017-11-30 19:58:00 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								    <script src="javascripts/utils.js"></script>
							 
						 
					
						
							
								
									
										
										
										
											2017-10-15 19:47:05 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								    <script src="javascripts/init.js"></script>
							 
						 
					
						
							
								
									
										
										
										
											2017-11-28 20:52:38 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								    <script src="javascripts/server.js"></script>
							 
						 
					
						
							
								
									
										
										
										
											2017-10-15 19:10:36 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    <!-- Tree scripts -->
							 
						 
					
						
							
								
									
										
										
										
											2017-11-04 19:28:49 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								    <script src="javascripts/note_tree.js"></script>
							 
						 
					
						
							
								
									
										
										
										
											2017-11-04 22:10:41 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								    <script src="javascripts/tree_changes.js"></script>
							 
						 
					
						
							
								
									
										
										
										
											2017-10-15 19:47:05 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								    <script src="javascripts/tree_utils.js"></script>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    <script src="javascripts/drag_and_drop.js"></script>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    <script src="javascripts/context_menu.js"></script>
							 
						 
					
						
							
								
									
										
										
										
											2017-11-23 21:10:37 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								    <script src="javascripts/search_tree.js"></script>
							 
						 
					
						
							
								
									
										
										
										
											2017-10-15 19:10:36 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    <!-- Note detail -->
							 
						 
					
						
							
								
									
										
										
										
											2017-11-04 17:54:27 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								    <script src="javascripts/note_editor.js"></script>
							 
						 
					
						
							
								
									
										
										
										
											2017-11-14 22:36:36 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								    <script src="javascripts/protected_session.js"></script>
							 
						 
					
						
							
								
									
										
										
										
											2017-10-15 19:10:36 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    <!-- dialogs -->
							 
						 
					
						
							
								
									
										
										
										
											2017-11-04 14:35:53 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								    <script src="javascripts/dialogs/recent_notes.js"></script>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    <script src="javascripts/dialogs/add_link.js"></script>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    <script src="javascripts/dialogs/jump_to_note.js"></script>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    <script src="javascripts/dialogs/settings.js"></script>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    <script src="javascripts/dialogs/note_history.js"></script>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    <script src="javascripts/dialogs/recent_changes.js"></script>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    <script src="javascripts/dialogs/event_log.js"></script>
							 
						 
					
						
							
								
									
										
										
										
											2017-11-26 22:34:25 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								    <script src="javascripts/dialogs/edit_tree_prefix.js"></script>
							 
						 
					
						
							
								
									
										
										
										
											2017-12-14 20:38:56 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								    <script src="javascripts/dialogs/sql_console.js"></script>
							 
						 
					
						
							
								
									
										
										
										
											2017-10-15 19:47:05 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2017-11-04 17:07:03 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								    <script src="javascripts/link.js"></script>
							 
						 
					
						
							
								
									
										
										
										
											2017-10-29 11:22:41 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								    <script src="javascripts/sync.js"></script>
							 
						 
					
						
							
								
									
										
										
										
											2017-11-28 17:52:47 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								    <script src="javascripts/messaging.js"></script>
							 
						 
					
						
							
								
									
										
										
										
											2017-10-14 23:31:44 -04:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								  </body>
							 
						 
					
						
							
								
									
										
										
										
											2017-10-15 19:10:36 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								</html>