Take the javascript within the attached file, modify it or write a new one, to make it generate a link in the example web page attached.
The current script allows the link in the page with a USERNAME to be controlled by the web address using ?username
[login to view URL] It also controls the link on the page, where the visitor is redirected .
I have attached the html file to this project. I suggest that you upload this and test it so you can see how it works as is.
HOWEVER,
The new link I want people redirected to contains the USERNAME before the domain name.
[login to view URL]
I want people to type in their username as usual: [login to view URL]
Then make the link where they are sent to be: [login to view URL]
Similar to how this script is working now, however the username is in front of the domain :
[login to view URL]