-
Notifications
You must be signed in to change notification settings - Fork 22
/
popup.html
69 lines (61 loc) · 2.65 KB
/
popup.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Session Manager</title>
<link rel="stylesheet" href="css/reset.css">
<link rel="stylesheet" href="css/popup.css">
</head>
<body>
<div id="main">
<fieldset id="main-saved"><legend>Saved sessions (<a href="popup.html?import" target="_blank">Import</a> - <a data-view="export" data-action="export">Export</a>)</legend>
<div id="main-saved-temp"></div>
<div id="main-saved-list"></div>
</fieldset>
<fieldset id="main-save"><legend>Save this window's tabs (<a data-action="savetemp">as temp session</a>)</legend>
<div class="box">
<input type="text" id="main-save-name" class="flex" placeholder="Session name" data-action="save">
<button data-action="save">Save</button>
</div>
</fieldset>
<!-- <fieldset id="main-changelog">
<p>Session Manager has been updated!</p>
<ul></ul>
</fieldset> -->
</div>
<fieldset id="import"><legend>Import</legend>
<p>Once you've exported your sessions and copied them over, simply select the session file and you'll instantly have everything back!</p><br>
<p>NOTE: Any imported session with the same name as an existing session will replace the existing session.</p>
<div class="box">
<input type="file" id="import-file" class="flex">
<button data-view="main">Cancel</button>
</div>
<p id="import-message"></p>
</fieldset>
<fieldset id="export"><legend>Export</legend>
<p>To begin, simply click the link to save your sessions to a file. Then, transfer that file to another computer via your favorite service (e.g. email, dropbox, pastebin). Once it's there, just follow the import instructions.</p><br>
<p>NOTE: Chrome may not show that the file has been saved. Check your downloads folder for it. <span id="export-check">✓</span></p>
<span>
<a id="export-link" download="sessions.txt" data-action="" data-actionindex="1">Got it, download sessions.txt!</a>
<button data-view="main">Back</button>
</span>
</fieldset>
<fieldset id="rename"><legend id="rename-legend"></legend>
<div class="box">
<input type="text" id="rename-text" class="flex" data-action="" data-actionindex="1">
<button data-action="" data-actionindex="1">Rename</button>
<button data-view="main">Cancel</button>
</div>
</fieldset>
<fieldset id="confirm"><legend>Confirm</legend>
<p id="confirm-text"></p>
<span>
<button data-view="main" data-action="">Yes</button>
<button data-view="main">No</button>
</span>
</fieldset>
<script src="js/errors.js"></script>
<script src="js/jquery.js"></script>
<script src="js/popup.js"></script>
</body>
</html>