Skip to content
This repository has been archived by the owner on Jan 24, 2019. It is now read-only.

Commit

Permalink
Merge pull request #199 from hundt/master
Browse files Browse the repository at this point in the history
Add URL fragment to sign-in form
  • Loading branch information
jehiah authored Jun 20, 2016
2 parents f6778c7 + f74ad56 commit 3a79827
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions templates.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 ""}}
Expand Down

0 comments on commit 3a79827

Please sign in to comment.