Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

155 lines (154 sloc) 7.065 kb
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="lib/3rdparty/jquery.js"></script>
<link rel="stylesheet" type="text/css" href="css/options.css" />
<title>inagist.com Options</title>
</head>
<body>
<header>
<a title="In-A-Gist" href="http://inagist.com/"><img src="img/logo.png" border="0" alt="inagist" /></a> &larr; options </header>
<div id="html5banner">
<a href="http://www.w3.org/html/logo/">
<img src="http://www.w3.org/html/logo/badge/html5-badge-v-connectivity-css3-graphics-storage.png" width="38" height="202" alt="HTML5 Powered with Connectivity / Realtime, CSS3 / Styling, Graphics, 3D &amp; Effects, and Offline &amp; Storage" title="HTML5 Powered with Connectivity / Realtime, CSS3 / Styling, Graphics, 3D &amp; Effects, and Offline &amp; Storage">
</a>
</div>
<div id="optionsbox">
<table>
<tr>
<td class="typekit tooltip" title="Your twitter id authenticated against inagist.com">User Id </td>
<td>
<input type="text" name="iconnecteduser" onChange="saveValues(); reconnect();"/>
</td>
</tr>
<tr>
<td class="typekit tooltip" title="Time in seconds the alert is shown, when auto close is on">
Alert Time
</td>
<td>
<input type="text" name="ialerttime" onChange="saveValues();"/>
</td>
</tr>
<tr>
<td class="typekit tooltip" title="For tweets qualified by auto search terms,
max age in seconds for tweet to be shown">
Relevance Time
</td>
<td>
<input type="text" name="irelevancetime" onChange="saveValues();"/>
</td>
</tr>
<tr>
<td class="typekit tooltip" title="Close alerts automatically?">
Auto Close
</td>
<td>
<input type="checkbox" name="iautoclose" id="iautoclose" onChange="saveValues();"/>
<label class="check" for="iautoclose"></label>
</td>
</tr>
<tr>
<td class="typekit tooltip" title="Show tweets in unknown language? Uses language preferences of chrome to get list known languages.">
Show Unknown Languages
</td>
<td>
<input type="checkbox" name="ishowulang" id="ishowulang" onChange="saveValues();"/>
<label class="check" for="ishowulang"></label>
</td>
</tr>
<tr>
<td class="typekit tooltip" title="Automatically start searching for detected trends?">
Auto Track Trends
</td>
<td>
<input type="checkbox" name="iautotracktrends" id="iautotracktrends" onChange="saveValues();"/>
<label class="check" for="iautotracktrends"></label>
</td>
</tr>
<tr>
<td class="typekit tooltip" title="Automatically start searching for detected channel trends?">
Auto Track Channel Trends
</td>
<td>
<input type="checkbox" name="iautotrackchanneltrends" id="iautotrackchanneltrends" onChange="saveValues();"/>
<label class="check" for="iautotrackchanneltrends"></label>
</td>
</tr>
<tr>
<td class="typekit tooltip" title="Use a secure websocket connection? Good for tunnelling through proxies.">
Use Secure Connection
</td>
<td>
<input type="checkbox" name="iencrypt" id="iencrypt" onChange="saveValues(); reconnect();"/>
<label class="check" for="iencrypt"></label>
</td>
</tr>
<tr>
<td class="typekit tooltip" title="Default search terms, will notify you with tweets for these terms">
Search Terms
</td>
<td><textarea name="isearch" cols="80" rows="3" onChange="saveValues(); reloadSearch();"></textarea></td>
</tr>
<tr>
<td class="typekit tooltip" title="Never track these terms when auto tracking trends">
Ignored Trends
</td>
<td><textarea name="iignored" cols="80" rows="3" onChange="saveValues(); reloadSearch();"></textarea></td>
</tr>
<tr>
<td class="typekit tooltip" title="Current search terms">
Current Search
</td>
<td><textarea name="icsearch" cols="80" rows="3" disabled="true"></textarea></td>
</tr>
</table>
</div>
<div id="tiptext"></div>
<div id="template_footer" style="padding-bottom: 5px; padding-top: 5px;">
<div align="center" style="padding-bottom: 5px; padding-top: 5px;">
<span>Follow Us</span> :
<a href="http://twitter.com/inagist" target="_blank">Twitter</a> |
<a href="http://facebook.com/inagist" target="_blank">Facebook</a>
</div>
<div align="center" style="padding-bottom: 5px; padding-top: 5px;">
Copyright &copy; 2010 <a href="http://iyottasoft.com">Iyottasoft.com</a> |
Powered By <a href="http://inagist.com">In-A-Gist</a>
</div>
<div class="clear">
</div>
</div>
<script>
var Options = chrome.extension.getBackgroundPage().Options;
$("input[name='iconnecteduser']")[0].value = Options.get("userid");
$("input[name='ialerttime']")[0].value = Options.get("alertTimeout");
$("input[name='irelevancetime']")[0].value = Options.getInt("relevanceTime");
$("textarea[name='isearch']")[0].value = Options.get("searchText");
$("textarea[name='iignored']")[0].value = Options.get("ignoredTrends");
$("textarea[name='icsearch']")[0].value = chrome.extension.getBackgroundPage().getSearchTerms();
$("input[name='iautoclose']")[0].checked = Options.getBoolean("autoClose");
$("input[name='ishowulang']")[0].checked = Options.getBoolean("showUnknownLanguages");
$("input[name='iautotracktrends']")[0].checked = Options.getBoolean("autoTrackTrends");
$("input[name='iautotrackchanneltrends']")[0].checked = Options.getBoolean("autoTrackChannelTrends");
$("input[name='iencrypt']")[0].checked = Options.getBoolean("encrypt");
function saveValues() {
Options.set("userid", $("input[name='iconnecteduser']")[0].value);
Options.set("alertTimeout", $("input[name='ialerttime']")[0].value);
Options.set("relevanceTime", $("input[name='irelevancetime']")[0].value);
Options.set("searchText", $("textarea[name='isearch']")[0].value);
Options.set("ignoredTrends", $("textarea[name='iignored']")[0].value);
Options.set("autoClose", $("input[name='iautoclose']")[0].checked);
Options.set("showUnknownLanguages", $("input[name='ishowulang']")[0].checked);
Options.set("autoTrackTrends", $("input[name='iautotracktrends']")[0].checked);
Options.set("autoTrackChannelTrends", $("input[name='iautotrackchanneltrends']")[0].checked);
Options.set("encrypt", $("input[name='iencrypt']")[0].checked);
}
function reloadSearch() {
chrome.extension.getBackgroundPage().sendSearchTerms();
$("textarea[name='icsearch']")[0].value = chrome.extension.getBackgroundPage().getSearchTerms();
}
function reconnect() {
chrome.extension.getBackgroundPage().reConnect();
}
</script>
</body>
</html>
Jump to Line
Something went wrong with that request. Please try again.