Files
LazyLibrarian/data/interfaces/default/config.html
nncrypted 793908e70a Merge pull request #97 from daktak/config_scan_hide
Config: hide full scan options
2014-05-15 08:15:04 -04:00

783 lines
36 KiB
HTML
Executable File

<%inherit file="base.html"/>
<%!
import lazylibrarian
%>
<%def name="headerIncludes()">
<div id="subhead_container">
<ul id="subhead_menu">
<li><a onclick="self.shutdownQA(this)" id="button">Shutdown</a></li>
<li><a id="button" onclick="self.restartQA(this, '', '')">Restart</a></li>
<li ><a id="button" href="checkForUpdates">Check for Updates</a></li>
</ul>
</div>
</%def>
<%def name="body()">
<form action="configUpdate" method="post">
<div id="form">
<div id="tabs">
<ul>
<li id="tabs1" class="active"><a href="#tabs-1" onclick="$('#tabs2').removeClass('active');$('#tabs3').removeClass('active');$('#tabs4').removeClass('active');$('#tabs5').removeClass('active');$('#tabs6').removeClass('active');$('.table_wrapper').hide();$('.tabs-1').parent().show();$('#tabs1').addClass('active');">Web Interface</a></li>
<li id="tabs2" ><a href="#tabs-2" onclick="$('#tabs1').removeClass('active');$('#tabs3').removeClass('active');$('#tabs4').removeClass('active');$('#tabs5').removeClass('active');$('#tabs6').removeClass('active');$('.table_wrapper').hide();$('.tabs-2').parent().show();$('#tabs2').addClass('active');">Import Options</a></li>
<li id="tabs3" ><a href="#tabs-3" onclick="$('#tabs1').removeClass('active');$('#tabs2').removeClass('active');$('#tabs4').removeClass('active');$('#tabs5').removeClass('active');$('#tabs6').removeClass('active');$('.table_wrapper').hide();$('.tabs-3').parent().show();$('#tabs3').addClass('active');">Download Settings</a></li>
<li id="tabs4" ><a href="#tabs-4" onclick="$('#tabs1').removeClass('active');$('#tabs2').removeClass('active');$('#tabs3').removeClass('active');$('#tabs5').removeClass('active');$('#tabs6').removeClass('active');$('.table_wrapper').hide();$('.tabs-4').parent().show();$('#tabs4').addClass('active');">Providers</a></li>
<li id="tabs5" ><a href="#tabs-5" onclick="$('#tabs1').removeClass('active');$('#tabs2').removeClass('active');$('#tabs3').removeClass('active');$('#tabs4').removeClass('active');$('#tabs6').removeClass('active');$('.table_wrapper').hide();$('.tabs-5').parent().show();$('#tabs5').addClass('active');">Search & Processing</a></li>
<li id="tabs6" ><a href="#tabs-6" onclick="$('#tabs1').removeClass('active');$('#tabs2').removeClass('active');$('#tabs3').removeClass('active');$('#tabs4').removeClass('active');$('#tabs5').removeClass('active');$('.table_wrapper').hide();$('.tabs-6').parent().show();$('#tabs6').addClass('active');">Notifications</a></li>
</ul>
</div>
<div class="table_wrapper">
<div class="tabs-1">
<table class="configtable" summary="Webinterface">
<tr>
<td>
<div>
<label>Hostname:</label><input type="text" name="http_host" value="${config['http_host']}" size="20" maxlength="40">
</div>
<div>
<label>Port:</label><input type="text" name="http_port" value="${config['http_port']}" size="10" maxlength="40">
</div>
<label>Web Root:</label><input type="text" name="http_root" value="${config['http_root']}" size="20" maxlength="40">
</div>
<br>
<br>
<label>Logdir:</label><input type="text" name="logdir" value="${config['logdir']}" size="50"><br>
<br>
<br>
<div>
<label>Proxy Host:</label><input type="text" name="proxy_host" value="${config['proxy_host']}" size="20"><br>
<i class="smalltext">Set this value if you are behind a proxy</i>
</div>
<br>
<div>
<label>Proxy Type:</label><input type="text" name="proxy_type" value="${config['proxy_type']}" size="10"><br>
<i class="smalltext">http, https, etc</i>
</div>
</td>
<td>
<div>
<label>Username:</label><input type="text" name="http_user" value="${config['http_user']}" size="20" maxlength="40">
</div>
<div>
<label>Password:</label><input type="password" name="http_pass" value="${config['http_pass']}" size="20" maxlength="40">
</div>
</td>
<td>
<h5><input type="checkbox" name="launch_browser" value=1 ${config['launch_browser']} /> Launch browser</h5>
<br>
<h5>Interface: <select name="http_look"><h5>
%for http_look in config['http_look_list']:
<%
if http_look == lazylibrarian.HTTP_LOOK:
selected = 'selected="selected"'
else:
selected = ''
%>
<option value="${http_look}" ${selected}>${http_look}</option>
%endfor
</select>
</td>
</tr>
</table>
</div>
</div>
<div class="table_wrapper" style="display:none">
<div class="tabs-2">
<table class="configtable" summary="Importsettings">
<tr>
<td>
<h3>Book API</h3>
<BR>
<%
if lazylibrarian.BOOK_API == "GoodReads":
gr_selected = 'selected="selected"'
else:
gr_selected = ''
if lazylibrarian.BOOK_API == "GoogleBooks":
gb_selected = 'selected="selected"'
else:
gb_selected = ''
%>
<label>Book Search API: .....</label><select name="book_api">
<option value = "GoodReads" ${gr_selected}>GoodReads</option>
<option value = "GoogleBooks" ${gb_selected}>GoogleBooks</option>
</select>
<BR>
<label>Goodreads API:</label><input type="text" name="gr_api" value="${config['gr_api']}" size="40" maxlength="40" >
<BR>
<label>GoogleBooks API:</label><input type="text" name="gb_api" value="${config['gb_api']}" size="40" maxlength="40" >
</td>
<td>
<h3>Language</h3>
<BR>
<label>Import languages:</label><input type="text" name="imp_preflang" value="${config['imp_preflang']}" size="20" maxlength="40">
<br>
<i class="smalltext">Comma separated country shortcodes:
<br> GoodReads e.g: eng, en-US, spa, ita
<BR> GoogleBooks e.g: en, es, it
<BR> Default: en, eng, en-US
<BR> Try adding "Unknown" to list if GoodReads is missing results</i>
</td>
<td>
<h3>File Formats</h3>
<BR>
<label>Ebook Format:</label><input type="text" name="ebook_type" value="${config['ebook_type']}" size="0" maxlength="40">
<br>
<i class="smalltext">Comma separated file extensions:
<BR>Default: epub, mobi, pdf </i>
</td>
</tr>
</table>
</div>
</div>
<div class="table_wrapper" style="display:none">
<div class="tabs-3">
<table class="configtable" summary="Downloadsettings">
<tr>
<td>
<fieldset>
<h3>Usenet</h3>
<div class="row checkbox">
<input type="checkbox" name="use_nzb" id="nzb" value="1" ${config['use_nzb']} />
<label>Enable NZB Search</label>
</div>
<fieldset id="usenet_options">
<div class="row checkbox">
<input type="checkbox" name="nzb_downloader_sabnzbd" id="nzb_downloader_sabnzbd" value="1" ${config['nzb_downloader_sabnzbd']} />
<label>Use Sabnzbd+</label>
</div>
<fieldset id="sabnzbd_options">
<div class="row">
<label>SABnzbd Host:</label>
<input type="text" name="sab_host" value="${config['sab_host']}" size="30" align="right">
</div>
<div class="row">
<label>SABnzbd Port:</label>
<input type="text" name="sab_port" value="${config['sab_port']}" size="30">
</div>
<div class="row">
<label>SABnzbd Username</label>
<input type="text" name="sab_user" value="${config['sab_user']}" size="30">
</div>
<div class="row">
<label>SABnzbd Password:</label>
<input type="password" name="sab_pass" value="${config['sab_pass']}" size="30">
</div>
<div class="row">
<label>SABnzbd API:</label>
<input type="text" name="sab_api" value="${config['sab_api']}" size="30">
</div>
<div class="row">
<label>SABnzbd Category:</label>
<input type="text" name="sab_cat" value="${config['sab_cat']}" size="30">
</div>
<div class="row">
<label>SABnzbd SubDir:</label>
<input type="text" name="sab_subdir" value="${config['sab_subdir']}" size="30">
</div>
</fieldset>
<div class="row checkbox">
<input type="checkbox" name="nzb_downloader_blackhole" id="nzb_downloader_blackhole" value="1" ${config['nzb_downloader_blackhole']} />
<label>Use NZB Blackhole</label>
</div>
<fieldset id="nzb_blackhole_options">
<div class="row">
<label>NZB Blackhole Directory:</label>
<input type="text" name="nzb_blackholedir" value="${config['nzb_blackholedir']}" size="30">
</fieldset>
</fieldset>
</fieldset>
</td>
<td>
<fieldset>
<h3>Torrents</h3>
<div class="row checkbox">
<input type="checkbox" name="use_tor" id="tor" value="1" ${config['use_tor']} />
<label>Enable Torrent Search</label>
</div>
<fieldset id="torrent_options">
<div>
<label>Minimum seeders:</label>
<input type="text" name="numberofseeders" value="${config['numberofseeders']}" size="5">
<BR>
<small>Number of minimum seeders a torrent must have to be accepted</small>
</div>
<div class="row checkbox">
<input type="checkbox" name="tor_downloader_utorrent" id="tor_downloader_utorrent" value="1" ${config['tor_downloader_utorrent']} />
<label>Use uTorrent</label>
</div>
<fieldset id="utorrent_options">
<div class="row">
<label>uTorrent Host:</label>
<input type="text" name="utorrent_host" value="${config['utorrent_host']}" size="30">
</div>
<div class="row">
<label>uTorrent Username:</label>
<input type="text" name="utorrent_user" value="${config['utorrent_user']}" size="30">
</div>
<div class="row">
<label>uTorrent Password:</label>
<input type="password" name="utorrent_pass" value="${config['utorrent_pass']}" size="30">
</div>
<div class="row">
<label>uTorrent Label:</label>
<input type="text" name="utorrent_label" value="${config['utorrent_label']}" size="30">
</div>
</fieldset>
<div class="row checkbox">
<input type="checkbox" name="tor_downloader_blackhole" id="tor_downloader_blackhole" value="1" ${config['tor_downloader_blackhole']} />
<label>Use Torrent Blackhole</label>
</div>
<fieldset id="tor_blackhole_options">
<div class="row">
<label>Torrent Blackhole Directory:</label>
<input type="text" name="torrent_dir" value="${config['torrent_dir']}" size="30">
</div>
</fieldset>
</fieldset>
</fieldset>
</td>
<td>
<fieldset>
<h3>Download Settings</h3>
<div class="row">
<label>Directory:</label><input type="text" name="download_dir" value="${config['download_dir']}" size="30">
<BR>
<small>Full path to the folder where books are downloaded to.</small>
</div>
</fieldset>
</td>
</tr>
</table>
</div>
</div>
<div class="table_wrapper" style="display:none">
<div class="tabs-4">
<table class="configtable" summary="Providers">
<tr>
<td>
<h3>Newznab Providers</h3>
</td>
<td>
<h3>Torrent Providers</h3>
</td>
<td>
<h3>Usenet Crawler</h3>
</td>
</tr>
<tr>
<td>
<input type="checkbox" name="newznab" value=1 ${config['use_newznab']} style="margin-bottom:4px;" />
<input type="text" placeholder="Enter Host Here" name="newznab_host" value="${config['newznab_host']}" size="20" maxlength="100">
<input type="text" placeholder="Enter API Here" name="newznab_api" value="${config['newznab_api']}" size="30" maxlength="40">
</td>
<td>
<input type="checkbox" name="kat" value=1 ${config['use_kat']} style="margin-bottom:4px;" /> KAT
</td>
<td>
<input type="checkbox" name="usenetcrawler" value=1 ${config['use_usenetcrawler']} style="margin-bottom:4px;" />
<input type="text" placeholder="Enter Host Here" name="usenetcrawler_host" value="${config['usenetcrawler_host']}" size="20" maxlength="40">
<input type="text" placeholder="Enter API Here" name="usenetcrawler_api" value="${config['usenetcrawler_api']}" size="30" maxlength="40">
</td>
</tr>
<tr>
<td>
<input type="checkbox" name="newznab2" value=1 ${config['use_newznab2']} style="margin-bottom:4px;" />
<input type="text" placeholder="Enter Host Here" name="newznab_host2" value="${config['newznab_host2']}" size="20" maxlength="100">
<input type="text" placeholder="Enter API Here" name="newznab_api2" value="${config['newznab_api2']}" size="30" maxlength="40">
</td>
</tr>
</table>
</div>
</div>
<div class="table_wrapper" style="display:none">
<div class="tabs-5">
<table class="configtable" summary="Search & Processing">
<tr>
<td>
<h3>Intervals</h3>
<BR>
<div>
<label>NZB Scan Interval:</label><input type="text" name="search_interval" value="${config['search_interval']}" size="8" maxlength="40"> mins
</div>
<div>
<label>Post-Processing Interval</label><input type="text" name="scan_interval" value="${config['scan_interval']}" size="8" maxlength="40"> mins
</div>
<div>
<label>Version Check Interval</label><input type="text" name="versioncheck_interval" value="${config['versioncheck_interval']}" size="8" maxlength="40"> hours
</div>
<div>
<label>Match Ratio</label><input type="text" name="match_ratio" value="${config['match_ratio']}" size="8" maxlength="40"> percent
</div>
</td>
<td>
</td>
</tr>
<tr>
<td>
<div>
<label>Base Destination Folder:</label><input type="text" name="destination_dir" value="${config['destination_dir']}" size="50">
</div>
<BR>
<div>
<input type="checkbox" name="destination_copy" value=1 ${config['destination_copy']} /><label>Keep original files</label>
</div>
</td>
<td>
</td>
</tr>
<tr>
<td>
<label>eBook Destination Folder:</label><input type="text" name="ebook_dest_folder" value="${config['ebook_dest_folder']}" size="30" maxlength="40">
<label>eBook Destination File:</label><input type="text" name="ebook_dest_file" value="${config['ebook_dest_file']}" size="30" maxlength="40">
<BR>
<small>Options include $Author, $Title, any string
<BR>
Current limitation: each file has to be in unique subfolder
</small>
</td>
<td>
<label>Magazine Destination Folder:</label><input type="text" name="mag_dest_folder" value="${config['mag_dest_folder']}" size="30" maxlength="40">
<label>Magazine Destination File:</label><input type="text" name="mag_dest_file" value="${config['mag_dest_file']}" size="30" maxlength="40">
<BR>
<small>Options include $Title, $IssueDate, any string
<BR>
Current limitation: each file has to be in unique subfolder
</small>
</td>
</tr>
<tr>
<td>
<div>
<label>Calibre Auto Add:</label><input type="text" name="imp_autoadd" value="${config['imp_autoadd']}" size="50" maxlength="90">
</div>
<small>Directory for a copy to be placed for auto add process</small>
</td>
<td>
</td>
</tr>
<tr>
<td>
<div>
<label>Full Scan:</label><input type="checkbox" name="full_scan" id="fullscan" value=1 ${config['full_scan']} />
<br>
<i class="smalltext">This will remove entries if ebooks are not found in the download location</i>
</div>
<div id="fullscanoptions">
<label>Missing Book Status:</label>
<select name="notfound_status">
%for nf_status in config['status_list']:
<%
selected = ''
if nf_status == config['notfound_status']:
selected = 'selected="selected"'
%>
<option value="${nf_status}" ${selected}>${nf_status}</option>
%endfor
</select>
<br>
<i class="smalltext">Value to update ebooks to if not found</i>
</div>
<div>
<label>Add Authors:</label><input type="checkbox" name="add_author" value=1 ${config['add_author']} />
<br>
<i class="smalltext">This will auto add new authors from GoodReads</i>
</div>
</td>
<td>
</td>
</tr>
</table>
</div>
</div>
<div class="table_wrapper" style="display:none">
<div class="tabs-6">
<table class="configtable" summary="Notifications">
<tr>
<td>
<fieldset>
<h3>Twitter</h3>
<div class="row checkbox">
<input type="checkbox" name="use_twitter" id="twitter" value="1" ${config['use_twitter']} />
<label>Enable Twitter Notifications</label>
</div>
<div id="twitteroptions">
<div class="row">
<input type="checkbox" name="twitter_notify_onsnatch" value="1" ${config['twitter_notify_onsnatch']} />Notify on snatch
</div>
<div class="row">
<input type="checkbox" name="twitter_notify_ondownload" value="1" ${config['twitter_notify_ondownload']} />Notify on download
</div>
<div class="row">
<input type="button" value="Request Authorization" id="twitterStep1" />
</div>
<div class="row">
<input type="text" id="twitter_key" value="" size="35" placeholder="Input Authorization Key"/>
</div>
<div class="row">
<input type="button" value="Verify Key" id="twitterStep2" />
</div>
<div class="row">
<input type="button" value="Test Twitter" id="testTwitter" />
</div>
</div>
</fieldset>
</td>
<td>
<fieldset>
<h3>Boxcar2</h3>
<div class="row checkbox">
<input type="checkbox" name="use_boxcar" id="boxcar" value="1" ${config['use_boxcar']} />
<label>Enable boxcar Notifications</label>
</div>
<div id="boxcaroptions">
<div class="row">
<input type="checkbox" name="boxcar_notify_onsnatch" value="1" ${config['boxcar_notify_onsnatch']} />Notify on snatch
</div>
<div class="row">
<input type="checkbox" name="boxcar_notify_ondownload" value="1" ${config['boxcar_notify_ondownload']} />Notify on download
</div>
<div class="row">
<input type="text" name="boxcar_token" value="${config['boxcar_token']}" size="35" placeholder="Boxcar token">
</div>
</div>
</fieldset>
</td>
<td>
<fieldset>
<h3>Pushbullet</h3>
<div class="row checkbox">
<input type="checkbox" name="use_pushbullet" id="pushbullet" value="1" ${config['use_pushbullet']} />
<label>Enable Pushbullet Notifications</label>
</div>
<div id="pushbulletoptions">
<div class="row">
<input type="checkbox" name="pushbullet_notify_onsnatch" value="1" ${config['pushbullet_notify_onsnatch']} />Notify on snatch
</div>
<div class="row">
<input type="checkbox" name="pushbullet_notify_ondownload" value="1" ${config['pushbullet_notify_ondownload']} />Notify on download
</div>
<div class="row">
<input type="text" name="pushbullet_token" value="${config['pushbullet_token']}" size="35" placeholder="Pushbullet API">
</div>
<div class="row">
<input type="text" name="pushbullet_deviceid" value="${config['pushbullet_deviceid']}" size="35" placeholder="Pushbullet DeviceID">
</div>
</div>
</fieldset>
</td>
<td>
<fieldset>
<h3>NotifyMyAndroid</h3>
<div class="checkbox row">
<input type="checkbox" name="nma_enabled" id="nma" value="1" ${config['nma_enabled']} /><label>Enable NotifyMyAndroid</label>
</div>
<div id="nmaoptions">
<div class="row checkbox">
<input type="checkbox" name="nma_onsnatch" value="1" ${config['nma_onsnatch']} /><label>Notify on snatch?</label>
</div>
<div class="row">
<label>NotifyMyAndroid API Key</label>
<input type="text" name="nma_apikey" value="${config['nma_apikey']}" size="30">
<small>Separate multiple api keys with commas</small>
</div>
<div class="row">
<label>Priority</label>
<select name="nma_priority">
%for x in [-2,-1,0,1,2]:
<%
if config['nma_priority'] == x:
nma_priority_selected = 'selected'
else:
nma_priority_selected = ''
if x == -2:
nma_priority_value = 'Very Low'
elif x == -1:
nma_priority_value = 'Moderate'
elif x == 0:
nma_priority_value = 'Normal'
elif x == 1:
nma_priority_value = 'High'
else:
nma_priority_value = 'Emergency'
%>
<option value=${x} ${nma_priority_selected}>${nma_priority_value}</option>
%endfor
</select>
</div>
</div>
</fieldset>
</td>
</table>
</div>
</div>
<div class="table_wrapper_button">
<p><input type="submit" value="Save changes" id="add" style="float:right;"></p>
</div>
<p style="text-align:center;position:fixed;bottom:10px;margin-left:20px;color:grey">Branch: ${lazylibrarian.CURRENT_BRANCH} Current Version: ${lazylibrarian.CURRENT_VERSION} : Latest Version: ${lazylibrarian.LATEST_VERSION}</p>
</div>
</form>
</%def>
<%def name="javascriptIncludes()">
<script>
function initThisPage()
{
if ($("#nzb").is(":checked"))
{
$("#usenet_options").show();
}
else
{
$("#usenet_options").hide();
}
$("#nzb").click(function(){
if ($("#nzb").is(":checked"))
{
$("#usenet_options").slideDown();
}
else
{
$("#usenet_options").slideUp();
}
});
if ($("#tor").is(":checked"))
{
$("#torrent_options").show();
}
else
{
$("#torrent_options").hide();
}
$("#tor").click(function(){
if ($("#tor").is(":checked"))
{
$("#torrent_options").slideDown();
}
else
{
$("#torrent_options").slideUp();
}
});
if ($("#tor_downloader_blackhole").is(":checked"))
{
$("#tor_blackhole_options").show();
}
else
{
$("#tor_blackhole_options").hide();
}
$("#tor_downloader_blackhole").click(function(){
if ($("#tor_downloader_blackhole").is(":checked"))
{
$("#tor_blackhole_options").slideDown();
}
else
{
$("#tor_blackhole_options").slideUp();
}
});
if ($("#tor_downloader_utorrent").is(":checked"))
{
$("#utorrent_options").show();
}
else
{
$("#utorrent_options").hide();
}
$("#tor_downloader_utorrent").click(function(){
if ($("#tor_downloader_utorrent").is(":checked"))
{
$("#utorrent_options").slideDown();
}
else
{
$("#utorrent_options").slideUp();
}
});
if ($("#nzb_downloader_blackhole").is(":checked"))
{
$("#nzb_blackhole_options").show();
}
else
{
$("#nzb_blackhole_options").hide();
}
$("#nzb_downloader_blackhole").click(function(){
if ($("#nzb_downloader_blackhole").is(":checked"))
{
$("#nzb_blackhole_options").slideDown();
}
else
{
$("#nzb_blackhole_options").slideUp();
}
});
if ($("#nzb_downloader_sabnzbd").is(":checked"))
{
$("#sabnzbd_options").show();
}
else
{
$("#sabnzbd_options").hide();
}
$("#nzb_downloader_sabnzbd").click(function(){
if ($("#nzb_downloader_sabnzbd").is(":checked"))
{
$("#sabnzbd_options").slideDown();
}
else
{
$("#sabnzbd_options").slideUp();
}
});
if ($("#twitter").is(":checked"))
{
$("#twitteroptions").show();
}
else
{
$("#twitteroptions").hide();
}
$("#twitter").click(function(){
if ($("#twitter").is(":checked"))
{
$("#twitteroptions").slideDown();
}
else
{
$("#twitteroptions").slideUp();
}
});
if ($("#boxcar").is(":checked"))
{
$("#boxcaroptions").show();
}
else
{
$("#boxcaroptions").hide();
}
$("#boxcar").click(function(){
if ($("#boxcar").is(":checked"))
{
$("#boxcaroptions").slideDown();
}
else
{
$("#boxcaroptions").slideUp();
}
});
if ($("#fullscan").is(":checked"))
{
$("#fullscanoptions").show();
}
else
{
$("#fullscanoptions").hide();
}
$("#fullscan").click(function(){
if ($("#fullscan").is(":checked"))
{
$("#fullscanoptions").slideDown();
}
else
{
$("#fullscanoptions").slideUp();
}
});
if ($("#pushbullet").is(":checked"))
{
$("#pushbulletoptions").show();
}
else
{
$("#pushbulletoptions").hide();
}
$("#pushbullet").click(function(){
if ($("#pushbullet").is(":checked"))
{
$("#pushbulletoptions").slideDown();
}
else
{
$("#pushbulletoptions").slideUp();
}
});
if ($("#nma").is(":checked"))
{
$("#nmaoptions").show();
}
else
{
$("#nmaoptions").hide();
}
$("#nma").click(function(){
if ($("#nma").is(":checked"))
{
$("#nmaoptions").slideDown();
}
else
{
$("#nmaoptions").slideUp();
}
});
$('#twitterStep1').click(function () {
$('#testTwitter-result').html('');
$.get("twitterStep1", function (data) {window.open(data); })
.done(function () { $('#testTwitter-result').html('<b>Step1:</b> Confirm Authorization'); });
});
$('#twitterStep2').click(function () {
$('#testTwitter-result').html('');
var twitter_key = $("#twitter_key").val();
$.get("twitterStep2", {'key': twitter_key},
function (data) { $('#testTwitter-result').html(data); });
});
$('#testTwitter').click(function () {
$.get("testTwitter",
function (data) { $('#testTwitter-result').html(data); });
});
}
$(document).ready(function() {
initThisPage();
});
</script>
</%def>