Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix build on POSIX systems, remove getElementById #35

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<meta name="theme-color" content="#000000" />
<meta
name="description"
content="Celesta is annual techno management fest of IIT Patna."
content="Celesta is the annual techno management fest of IIT Patna."
/>

<!--
Expand Down
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
17 changes: 9 additions & 8 deletions src/views/Cryptech.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,16 @@ function Cryptech() {
const [popupVisible, setPopupVisible] = useState(false);
const handleSubmit = async (event) => {
event.preventDefault();
const form = event.currentTarget;
const formData = {
teamName: document.getElementById("team").value,
member1: document.getElementById("name1").value,
member1_emailId: document.getElementById("email1").value,
member2: document.getElementById("name2").value,
member2_emailId: document.getElementById("email2").value,
transactionId: document.getElementById("txnid").value,
class_: document.getElementById("class").value,
city: document.getElementById("city").value,
teamName: form.team.value,
member1: form.name1.value,
member1_emailId: form.email1.value,
member2: form.name2.value,
member2_emailId: form.email2.value,
transactionId: form.txnid.value,
class_: form.class.value,
city: form.city.value,
};
try {
const response = await fetch(`https://script.google.com/macros/s/AKfycbyoc_hnWyP8huqqcdJrdgYBrn2JGJHmnvV7FjZoHDDNLCoEACJKw6vqvtZ9-m4cw8zz/exec?tN=${formData.teamName}&m1=${formData.member1}&m1_email=${formData.member1_emailId}&m2=${formData.member2}&m2_email=${formData.member2_emailId}&txnId=${formData.transactionId}&class_=${formData.class_}&city=${formData.city}`)
Expand Down
5 changes: 0 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4721,11 +4721,6 @@ fs.realpath@^1.0.0:
resolved "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz"
integrity sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==

fsevents@^2.3.2, fsevents@~2.3.2:
version "2.3.2"
resolved "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz"
integrity sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==

function-bind@^1.1.1:
version "1.1.1"
resolved "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz"
Expand Down