index.php suggestion
In order to type directly our username, without clicking on the input field, after having loaded the index page ; I suggest to set up a feature.
What do you think about it @flabbyrabbit ?
After having checked the code on GitHub, here is the code to add in the
Let me know if you’re interested in that, it could be better for the recurring login process.
Instead of suggesting, you can directly make a request on GitHub.
I am completely lost with GitHub. How am I supposed to create a pull request ? I clicked on “new pull request” but then this is a mess…
Anyone could simply show me the way to the edition of the request please ?
Thank you ! :)
PS : I already read that https://help.github.com/articles/using-pull-requests but still lost with the repositories. I need to find the one of index.php (loading page)
You should perform the following steps:
- Fork HackThis git repository. It contains all files, including index.php
- Clone your own copy of the repository. Use the command ‘git clone http://github.com/hackay/hackthis.co.uk’ (assuming hackay is your username in github.
- make the changes locally test, add & commit.
- push your changes back to your copy of the repository using ‘git push origin master’.
By now, if you enter your profile on github and check index.php on your repository, your changes should be visible. - On github, in your copy of hackthis.co.uk repository click on the green button with the arrows on the upper left handside of the screen (tooltip of compare, review, create pull request).
- Click on create pull request and then send pull request.
PM me if you need further assistance.
Good suggestion, one note though. The feature you are after is probably better achieved by using the autofocus attribute, instead of relying on javascript. See https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/Forms_in_HTML#The_autofocus_attribute.
That said, this seems like a great little thing to do as a first pull request :).
print(", ".join([str(x) for x in range(1,100) if not [y for y in range(2, x) if x%y==0]]))
You’re right auofocus is better in that case :)
But first I have to understad how to make my pull request… @Singleton is going to give me a hand with that :)
Pull request made, I close.
Big thanks to @singleton and @roun512 !