Ben Kurtovic
3de23628b7
Switching a bit of code from client-side to server-side.
- All POTD logic is now in Python instead of JS.
- Removed EarwigBackgroundCache cookie (now stored in a new `background` table in the database).
- Added EarwigScreenCache cookie
- Increase cookie life from a year to three.
vor 12 Jahren
Ben Kurtovic
8dd5687ab1
Testing a potential bugfix.
vor 12 Jahren
Ben Kurtovic
f3ddd8f700
Some adjustments to reduce HTML output size.
vor 12 Jahren
Ben Kurtovic
0217eaad8d
Some escapes to close potential security, plus a couple bugfixes.
vor 12 Jahren
Ben Kurtovic
3b9fa8c143
Needs page and result, not just page.
vor 12 Jahren
Ben Kurtovic
b5908160bf
Move copyvio error message to top. Order cookies in an interesting way.
vor 12 Jahren
Ben Kurtovic
2a77ec8d4f
Support double-indentation
vor 12 Jahren
Ben Kurtovic
68c3bd9d65
Do cookie updates before we generate the header.
vor 12 Jahren
Ben Kurtovic
f5ff26879c
Fix; delete background cache when updating background setting.
vor 12 Jahren
Ben Kurtovic
0e53bf5a11
Hmm, I guess we have to preserve the regexp object between execs.
vor 12 Jahren
Ben Kurtovic
0e326193e0
Define callback.
vor 12 Jahren
Ben Kurtovic
10364d1914
Don't stick quotes around 'checked'
vor 12 Jahren
Ben Kurtovic
ae2713e040
Apparently I can't make a single commit without at least five typos.
vor 12 Jahren
Ben Kurtovic
37cb1f568c
Fix default behavior.
vor 12 Jahren
Ben Kurtovic
44381e6e2a
Another fix.
vor 12 Jahren
Ben Kurtovic
21d8666589
Syntax!
vor 12 Jahren
Ben Kurtovic
5040337c37
Missed the images!
vor 12 Jahren
Ben Kurtovic
1523c2401f
Implement 'background' option plus background images.
vor 12 Jahren
Ben Kurtovic
833bdc6415
Support other backgrounds.
vor 12 Jahren
Ben Kurtovic
3cf62618b2
More adjustments.
vor 12 Jahren
Ben Kurtovic
a68e63af4b
Move status box.
vor 12 Jahren
Ben Kurtovic
d96f71924e
Missed a couple params.
vor 12 Jahren
Ben Kurtovic
94d266e740
Get around Mako bug that doesn't support try/else
vor 12 Jahren
Ben Kurtovic
13d140d899
Format cookies encoding JSON nicely.
vor 12 Jahren
Ben Kurtovic
ef204dbc05
background-attachment: fixed;
vor 12 Jahren
Ben Kurtovic
60579ab8d0
UglifyCSS as well.
vor 12 Jahren
Ben Kurtovic
3960c23ba8
Fix date.
vor 12 Jahren
Ben Kurtovic
cfb4cad519
UglifyJS; cache background information.
vor 12 Jahren
Ben Kurtovic
eceead74bb
Updates, mostly in cookies and settings.
vor 12 Jahren
Ben Kurtovic
bc4c2de763
Fixing cookie bug.
vor 12 Jahren
Ben Kurtovic
28fdad3975
Explicitly remove a cookie from the manager if we delete it.
vor 12 Jahren
Ben Kurtovic
4c8d724039
Magic numbers to verify my cookies.
vor 12 Jahren
Ben Kurtovic
cb323f8ae8
Some cleanup
vor 12 Jahren
Ben Kurtovic
4ef8900b29
Debug stuff
vor 12 Jahren
Ben Kurtovic
0fad121316
Support GET and POST in query.
vor 12 Jahren
Ben Kurtovic
e90f7059a7
Uhh, whoops.
vor 12 Jahren
Ben Kurtovic
e223412e79
Ignore cookies set by other TS services.
vor 12 Jahren
Ben Kurtovic
7ec50e1668
Fix.
vor 12 Jahren
Ben Kurtovic
409412ddcd
Take advantage of quoting/unquoting.
vor 12 Jahren
Ben Kurtovic
2e1e0cf20e
Relative import syntax is funky.
vor 12 Jahren
Ben Kurtovic
0768aa43aa
A couple of fixes.
vor 12 Jahren
Ben Kurtovic
3e934fbaef
Massively update cookie handling.
vor 12 Jahren
Ben Kurtovic
066dc9504f
Use cookies to store default site.
vor 12 Jahren
Ben Kurtovic
5f8c8307fc
Well, this seems a bit silly.
vor 12 Jahren
Ben Kurtovic
5789316300
cookie.key, not cookie.name; whoops
vor 12 Jahren
Ben Kurtovic
9677390ea3
More work on the settings page.
vor 12 Jahren
Ben Kurtovic
309cb30358
Beginning work on a settings page.
vor 12 Jahren
Ben Kurtovic
48d9fc4452
Don't hardcode the path - use window.location.pathname.
vor 12 Jahren
Ben Kurtovic
f11bf7198c
Oops, these are objects with values.
vor 12 Jahren
Ben Kurtovic
b2910d5754
Grammar
vor 12 Jahren