Imagine a static web site compiled with jekyll and hosted on github pages. Is it possible to have some javascript on this page that asks the user some input, and then "git push" this input into some github repository ?
In other words, how to write in javascript the following program:
- Ask the user for his name, put the name in variable s
- Download (or pull) from a given github repo a text file "allnames.txt"
- Add s at the end of allnames.txt
- Commit and push the file "allnames.txt" back into github
Of course, I understand the potential security risks, because the javascript code would need to embed private ssh keys. But this would be a fun way to add dynamicity to a static web site, and may be someone knows of some solution to make this secure ?
Thank you !