Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: youtube
Fetching contributors…

Cannot retrieve contributors at this time

36 lines (30 sloc) 0.864 kb
<html>
<head><title>Tabby Options</title></head>
<script type="text/javascript">
// Saves options to localStorage.
function save_options() {
var input = document.getElementById("time_out");
var time_out = input.value;
localStorage["time_out"] = time_out;
// Update status to let user know options were saved.
var status = document.getElementById("status");
status.innerHTML = "Saved!";
setTimeout(function() {
status.innerHTML = "";
}, 750);
}
function init() {
var input = document.getElementById("time_out");
if (localStorage["time_out"]) {
input.value = localStorage["time_out"];
}
}
</script>
<body onload="init()">
<p>How many minutes should a tab be inactive for before Tabby closes it?</p>
<input id="time_out"></input>
<div id="status"></div>
<br>
<button onclick="save_options()">Save</button>
</body>
</html>
Jump to Line
Something went wrong with that request. Please try again.