-
Notifications
You must be signed in to change notification settings - Fork 0
/
options.html
36 lines (34 loc) · 1008 Bytes
/
options.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
<!DOCTYPE html>
<html>
<head>
<title>Summarizer Extension Options</title>
</head>
<body>
<h1>Summarizer Extension Options</h1>
<label for="apiKey">API Key:</label>
<input type="text" id="apiKey" name="apiKey">
<br><br>
<label for="model">Model:</label>
<select id="model" name="model">
<option value="gpt">GPT</option>
<option value="claude">Claude</option>
</select>
<br><br>
<button id="save">Save</button>
<button id="checkSaved">Check Saved Options</button>
<p id="status"></p>
<script src="options.js"></script>
<!-- Add this at the end of your body tag -->
<button id="testStorage">Test Storage</button>
<script>
document.getElementById('testStorage').addEventListener('click', function() {
chrome.storage.sync.set({test: 'test value'}, function() {
console.log('Test value set');
chrome.storage.sync.get('test', function(result) {
console.log('Test value retrieved:', result.test);
});
});
});
</script>
</body>
</html>