Skip to content

Commit

Permalink
Merge branch 'master' of github.com:Quard/chrome-convert
Browse files Browse the repository at this point in the history
  • Loading branch information
Quard committed Aug 27, 2011
2 parents 35b7e02 + bed4b6e commit 72a4fe8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions background.html
@@ -1,2 +1,3 @@
<script src="http://code.jquery.com/jquery-1.6.2.min.js"></script>
<script src="api.js"></script>
<script src="content_script.js"></script>
11 changes: 11 additions & 0 deletions options.html
Expand Up @@ -18,6 +18,14 @@

// Restores select box state to saved value from localStorage.
function restore_options() {
var downloaded = JSON.parse(localStorage["downloaded"]);
var div_down = document.getElementById("downloaded")
var fragment = document.createDocumentFragment();
for (var i = 0; i < downloaded.length; i++)
{
var item = downloaded[i];

}
var favorite = localStorage["favorite_color"];
if (!favorite) {
return;
Expand All @@ -44,6 +52,9 @@
<option value="yellow">yellow</option>
</select>

<div id="downloaded">
</div>

<br>
<button onclick="save_options()">Save</button>
</body>
Expand Down

0 comments on commit 72a4fe8

Please sign in to comment.