mirror of
https://github.com/JimmXinu/FanFicFare.git
synced 2026-01-08 09:03:21 +01:00
Web: Save output format setting in cookie.
This commit is contained in:
parent
85f28d1054
commit
aa88e96b76
1 changed files with 46 additions and 10 deletions
|
|
@ -4,6 +4,42 @@
|
|||
<link href="/css/index.css" rel="stylesheet" type="text/css">
|
||||
<title>FanFicFare - read Fanfiction from fanfiction.net, archiveofourown.org, fimfiction.net, fictionpress.com, fictionalley.org, ficwad.com, potionsandsnitches.net, harrypotterfanfiction.com, mediaminer.org and many others on Kindle, Nook, Sony Reader, iPad, iPhone, Android, Aldiko, Stanza, etc</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<script src="https://code.jquery.com/jquery-3.3.1.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-cookie/1.4.1/jquery.cookie.js"></script>
|
||||
<script>
|
||||
var cookie_name="saved_fff_settings";
|
||||
function savesettings() {
|
||||
var savedcheckboxes=[];
|
||||
$.each($("#typebox :radio"), function() {
|
||||
var state=[];
|
||||
state.push(this.id);
|
||||
state.push($(this).is(":checked"));
|
||||
savedcheckboxes.push(state)
|
||||
});
|
||||
$.cookie(cookie_name,
|
||||
JSON.stringify({'checkboxes':savedcheckboxes,
|
||||
//'texts':savedtexts,
|
||||
//'dates':saveddates,
|
||||
}),
|
||||
{ expires: 365 });
|
||||
}
|
||||
function loadsettings() {
|
||||
if( $.cookie(cookie_name) ) {
|
||||
var temps_settings = JSON.parse($.cookie(cookie_name));
|
||||
$.each(temps_settings['checkboxes'], function() {
|
||||
var input_id=this[0];
|
||||
var input_value=this[1];
|
||||
$("#"+input_id).prop("checked", input_value);
|
||||
});
|
||||
}
|
||||
}
|
||||
$(function () {
|
||||
$("#typebox").on("change", function(e) {
|
||||
savesettings()
|
||||
});
|
||||
loadsettings();
|
||||
});
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<div id='main'>
|
||||
|
|
@ -30,8 +66,8 @@
|
|||
<p>
|
||||
If you have any problems with this application, please
|
||||
report them in
|
||||
the <a href="http://groups.google.com/group/fanfic-downloader">FanFicFare Google Group</a>. The
|
||||
<a href="http://2-37-0.fanficfare.appspot.com">previous version
|
||||
the <a href="https://groups.google.com/group/fanfic-downloader">FanFicFare Google Group</a>. The
|
||||
<a href="https://2-28-0.fanficfare.appspot.com">previous version
|
||||
</a> is also available for you to use if necessary.
|
||||
</p>
|
||||
<div id='error'>
|
||||
|
|
@ -44,10 +80,10 @@
|
|||
<br />
|
||||
<div id='typelabel'>Ebook format</div>
|
||||
<div id='typeoptions'>
|
||||
<input type='radio' name='format' value='epub' checked>EPub</input>
|
||||
<input type='radio' name='format' value='html'>HTML</input>
|
||||
<input type='radio' name='format' value='txt'>Plain Text</input>
|
||||
<input type='radio' name='format' value='mobi'>Mobi(Kindle)</input>
|
||||
<label for="epub"><input type='radio' name='format' value='epub' id='epub' checked>EPub</label>
|
||||
<label for="html"><input type='radio' name='format' value='html' id='html'>HTML</label>
|
||||
<label for="txt"><input type='radio' name='format' value='txt' id='txt'>Plain Text</label>
|
||||
<label for="mobi"><input type='radio' name='format' value='mobi' id='mobi'>Mobi(Kindle)</label>
|
||||
</div>
|
||||
<div>
|
||||
<br />
|
||||
|
|
@ -85,7 +121,7 @@
|
|||
<br /><br />
|
||||
|
||||
There's also a version of this downloader that runs inside
|
||||
the popular <a href="http://calibre-ebook.com/">Calibre</a>
|
||||
the popular <a href="https://calibre-ebook.com/">Calibre</a>
|
||||
ebook management package as a plugin.
|
||||
|
||||
<br /><br />
|
||||
|
|
@ -93,7 +129,7 @@
|
|||
Once you have Calibre installed and running, inside
|
||||
Calibre, you can go to 'Get plugins to enhance calibre' or
|
||||
'Get new plugins' and
|
||||
install <a href="http://www.mobileread.com/forums/showthread.php?t=259221">FanFicFare</a>.
|
||||
install <a href="https://www.mobileread.com/forums/showthread.php?t=259221">FanFicFare</a>.
|
||||
|
||||
</p>
|
||||
</div>
|
||||
|
|
@ -129,14 +165,14 @@
|
|||
</li>
|
||||
<li>
|
||||
If you think that something that should work in fact doesn't, post a message to
|
||||
our <a href="http://groups.google.com/group/fanfic-downloader">Google Group</a>. we also encourage you to join it so
|
||||
our <a href="https://groups.google.com/group/fanfic-downloader">Google Group</a>. we also encourage you to join it so
|
||||
you will find out about latest updates and fixes as soon as possible
|
||||
</li>
|
||||
</ol>
|
||||
Otherwise, just have fun, and if you want to say thank you — use the contacts above.
|
||||
</div>
|
||||
<div style='text-align: center'>
|
||||
<img src="http://code.google.com/appengine/images/appengine-silver-120x30.gif"
|
||||
<img src="https://code.google.com/appengine/images/appengine-silver-120x30.gif"
|
||||
alt="Powered by Google App Engine" />
|
||||
<br/><br/>
|
||||
This is a web front-end to <A href="https://github.com/JimmXinu/FanFicFare">FanFicFare</a><br/>
|
||||
|
|
|
|||
Loading…
Reference in a new issue