Created
July 8, 2020 06:09
-
-
Save eyalway2cu/c3241d7cd08d7f5e63c052d47f4e34af to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <script> | |
| var query = document.location.hash | |
| query = query.replace("#", ""); | |
| var qsarray = query.split("&"); | |
| var data = {}; | |
| for (i = 0; i < qsarray.length; i++) { | |
| var itemarr = []; | |
| itemarr = qsarray[i].split("="); | |
| data[itemarr[0]] = itemarr[1]; | |
| } | |
| document.querySelector("input#form-field-name").setAttribute("value", data.name); | |
| document.querySelector("input#form-field-phone").setAttribute("value", data.phone); | |
| document.querySelector("input#form-field-email").setAttribute("value", data.email); | |
| document.querySelector("input#form-field-cc434e8").setAttribute("value", data.thum); | |
| </script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment