Skip to content

Commit

Permalink
add local to url params
Browse files Browse the repository at this point in the history
  • Loading branch information
yymao committed Dec 8, 2017
1 parent cfdc669 commit 9f132d2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,10 @@ <h3>Preview your LSST DESC meeting badge</h3>
const keys = ['lname', 'sname', 'affili', 'pronoun'];
if (keys.reduce((accumulator, currentValue) => accumulator || searchParams.has(currentValue), false)) keys.forEach(function (currentValue) { $("#" + currentValue).val(searchParams.has(currentValue) ? searchParams.get(currentValue) : ""); });
['event', 'location'].forEach(function (currentValue) { if (searchParams.has(currentValue)) $("#" + currentValue).val(searchParams.get(currentValue)); });
if(searchParams.get('local')) {
$("#local").prop('checked', true);
$("#local").change();
}
}
load_params();
$("input").keyup();
Expand Down

0 comments on commit 9f132d2

Please sign in to comment.