Compare commits
2 Commits
61fd417013
...
aa95418b70
Author | SHA1 | Date | |
---|---|---|---|
|
aa95418b70 | ||
|
6f5302043d |
48
index.html.l
48
index.html.l
@ -2,32 +2,38 @@
|
||||
|
||||
{% function content() %}
|
||||
<div style="text-align:center;height:50%;margin-top:25vh;">
|
||||
<div style="max-width:15cm;display:inline-block;">
|
||||
<div style="width:12cm;display:inline-block;">
|
||||
<h1>{{ Escapes.htmlescape(BigGlobe.cfg.sitename) }}</h1>
|
||||
<form action="/search" method="GET" id="searchform">
|
||||
<input type="text" name="n" placeholder="Filter by name..." style="position:relative;width:100%;" />
|
||||
|
||||
{% if BigGlobe.cfg.enable18plus then %}
|
||||
<ul class="over18">
|
||||
<li>
|
||||
<input type="radio" name="a" value="-1" id="o18h" onchange="upd(-1)" checked />
|
||||
<label for="o18h">Hide 18+</label>
|
||||
</li><li>
|
||||
<input type="radio" name="a" value="0" id="o18s" onchange="upd(0)" />
|
||||
<label for="o18s">Show 18+</label>
|
||||
</li><li>
|
||||
<input type="radio" name="a" value="1" id="o18o" onchange="upd(1)" />
|
||||
<label for="o18o">Only 18+</label>
|
||||
</li>
|
||||
</ul>
|
||||
{% end %}
|
||||
|
||||
<input type="hidden" id="tparam" name="t" value="" />
|
||||
<div data-formid="searchform" data-formparaminputid="tparam" style="position:relative;width:100%;margin-top:1em;" class="tagbox">
|
||||
<p>Filter by tags...</p>
|
||||
<span style="position:relative;min-width:4px;left:0;" contenteditable></span>
|
||||
|
||||
<div style="position: relative;">
|
||||
<div data-formid="searchform" data-formparaminputid="tparam" style="position:relative;width:58%;margin-top:1em;display:inline-block;vertical-align:top;white-space:nowrap;overflow-x:scroll;" class="tagbox">
|
||||
<p>Filter by tags...</p>
|
||||
|
||||
<!-- Firefox has a 10-year old bug where a contenteditable with 0 padding loses focus when you press the right arrow key to the end -->
|
||||
<span style="position:relative;min-width:4px;left:0;padding-right:1px;" contenteditable autofocus></span>
|
||||
</div>
|
||||
|
||||
{% if BigGlobe.cfg.enable18plus then %}
|
||||
<ul class="over18" style="width:40%;display:inline-block;vertical-align:middle;">
|
||||
<li>
|
||||
<input type="radio" name="a" value="-1" id="o18h" onchange="upd(-1)" checked />
|
||||
<label for="o18h">🛇</label>
|
||||
</li><li>
|
||||
<input type="radio" name="a" value="0" id="o18s" onchange="upd(0)" />
|
||||
<label for="o18s">18+?</label>
|
||||
</li><li>
|
||||
<input type="radio" name="a" value="1" id="o18o" onchange="upd(1)" />
|
||||
<label for="o18o">✓</label>
|
||||
</li>
|
||||
</ul>
|
||||
{% end %}
|
||||
|
||||
<div class="autocomplete" style="visibility:hidden;width:100%;position:absolute;top:70%;box-sizing:border-box;"></div>
|
||||
</div>
|
||||
<div class="autocomplete" style="visibility:hidden;width:100%;"></div>
|
||||
|
||||
<input type="submit" value="Search" style="margin-top:1em;" />
|
||||
|
||||
@ -77,6 +83,8 @@
|
||||
|
||||
showalltags = function() {}
|
||||
}
|
||||
|
||||
document.querySelector("[autofocus]").focus()
|
||||
</script>
|
||||
|
||||
{% end %}
|
||||
|
20
login.html.l
20
login.html.l
@ -19,9 +19,15 @@
|
||||
worked = false
|
||||
end
|
||||
|
||||
if worked and BigGlobe.cfg.anarchy == "ANARCHY" then
|
||||
response:addHeader("Refresh", "3;url=" .. zzz)
|
||||
response:statusCode(303)
|
||||
if BigGlobe.cfg.anarchy == "ANARCHY" then
|
||||
if u and u.privs > DB.USER_PRIVS_APPROVED then
|
||||
worked = false
|
||||
end
|
||||
|
||||
if worked then
|
||||
response:addHeader("Refresh", "3;url=" .. zzz)
|
||||
response:statusCode(303)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@ -30,9 +36,13 @@
|
||||
|
||||
{% function content() %}
|
||||
{% if BigGlobe.cfg.anarchy == "ANARCHY" then %}
|
||||
<p>In anarchy mode, anyone can be anything. Please wait..</p>
|
||||
{% if worked and zzz then %}
|
||||
<p>In anarchy mode, anyone can be anything. Please wait..</p>
|
||||
|
||||
<p>If that doesn't work, <a href="{{ Escapes.htmlescape(zzz) }}">click here</a>.</p>
|
||||
<p>If that doesn't work, <a href="{{ Escapes.htmlescape(zzz) }}">click here</a>.</p>
|
||||
{% else %}
|
||||
<p>User doesn't exist.</p>
|
||||
{% end %}
|
||||
{% else %}
|
||||
{% if worked then %}
|
||||
<p>Link has been sent to {{ em and Escapes.htmlescape(em) }}. This page may be closed.</p>
|
||||
|
Loading…
Reference in New Issue
Block a user