Forrst Fire / forrst-fire.chromeextension / options.html

<html>
	<head><title>Forrst Fire Extension Options</title></head>
	<script type="text/javascript">
		// Saves options to localStorage.
		function save_options() {
			var clever_girl = document.getElementById("id_clever_girl");
			var raptor = clever_girl.value;
			localStorage["show_raptor"] = raptor;

			// Update status to let user know options were saved.
			var status = document.getElementById("status");
			status.innerHTML = "Options Saved.";
			setTimeout(function() {
				status.innerHTML = "";
			}, 750);
		}

		// Restores select box state to saved value from localStorage.
		function restore_options() {
			var raptor = localStorage["show_raptor"];
			var clever_girl = document.getElementById("id_clever_girl");
			if (raptor) {
				clever_girl.checked = true;
			} else {
				clever_girl.checked = false;
			}
		}
</script>

<body onload="restore_options()">
	<label for="id_clever_girl">Clever girl&hellip;</label>
	<input type="checkbox" id="id_clever_girl" checked>

	<br>
	<button onclick="save_options()">Save</button>
</body>
</html>
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.