Merge pull request #199 from hundt/master
Add URL fragment to sign-in form
This commit is contained in:
commit
3a79827af2
10
templates.go
10
templates.go
@ -129,6 +129,16 @@ func getTemplates() *template.Template {
|
||||
</form>
|
||||
</div>
|
||||
{{ end }}
|
||||
<script>
|
||||
if (window.location.hash) {
|
||||
(function() {
|
||||
var inputs = document.getElementsByName('rd');
|
||||
for (var i = 0; i < inputs.length; i++) {
|
||||
inputs[i].value += window.location.hash;
|
||||
}
|
||||
})();
|
||||
}
|
||||
</script>
|
||||
<footer>
|
||||
{{ if eq .Footer "-" }}
|
||||
{{ else if eq .Footer ""}}
|
||||
|
Loading…
Reference in New Issue
Block a user