Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
33 lines (33 sloc) 1.58 KB
<!DOCTYPE html>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Welcome to Everpage!</title>
.input { width: 800px; }
<form action="note" method="GET" target="_blank">
User Token:
<input name="authToken" class="input" required="required" pattern="[^\s]+" title="none whitespaces"
placeholder="Authentication token, you can request one to access your own notes from"/>
Note ID:
<input name="noteId" class="input" required="required" id="noteId" pattern="(set by script below)"
title="guid (xxxxxxxx-xxxx-...), link (evernote:///view/...) or web address ("
placeholder="guid (xxxxxxxx-xxxx-...), link (evernote:///view/...) or web address ( of the note." />
<p><input type="submit" value="Submit" /></p>
var guidRegex = "[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}";
var linkRegex = "evernote:///view/\\d+/s\\d+/" + guidRegex + "/.*";
var webAddressRegex = "\\d+/view/notebook/" + guidRegex + ".*";
var allPattern = "^(" + guidRegex + ")|(" + linkRegex + ")|(" + webAddressRegex + ")$";
document.getElementById("noteId").setAttribute("pattern", allPattern);