File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55 </ div >
66
77 < div class ="text-center ">
8- < button class ="srt-button m-2 "
9- style ="float:none; display:inline; margin-top:3em; "
10- id ="login "
11- aria-label ="Login with MAX "
12- onClick =" (function() {
13- var client_host = window.location.hostname
14- var server_host = '';
15- if (client_host === 'localhost') { server_host = 'localhost:3000'}
16- if (client_host === 'srt-client.app.cloud.gov' || client_host === 'srt.app.cloud.gov') { server_host = 'srt-server.app.cloud.gov' }
17- if (client_host === 'srt-client-dev.app.cloud.gov') { server_host = 'srt-server-dev.app.cloud.gov' }
18- if (client_host === 'srt-client-staging.app.cloud.gov') { server_host = 'srt-server-staging.app.cloud.gov' }
19- //default to current name for dev servers
20- if (server_host === '') { server_host = 'localhost:3000';}
21- window.location = 'http://' + server_host + '/api/casLogin'
22- }()) "> Login with MAX
23- </ button >
248 < button class ="srt-button m-2 "
259 style ="float:none; display:inline; margin-top:3em; "
2610 id ="login "
You can’t perform that action at this time.
0 commit comments