https://github.com/otherwa/stunning-disco
Registration Site for students (Events) A webform, web form or HTML form on a web page allows a user to enter data that is sent to a server for processing.
https://github.com/otherwa/stunning-disco
css-animations css3 firebse html html-css-javascript html5 json json-api none webdevelopment
Last synced: about 1 month ago
JSON representation
Registration Site for students (Events) A webform, web form or HTML form on a web page allows a user to enter data that is sent to a server for processing.
- Host: GitHub
- URL: https://github.com/otherwa/stunning-disco
- Owner: Otherwa
- License: unlicense
- Created: 2021-12-06T14:02:17.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-09-30T07:20:26.000Z (over 2 years ago)
- Last Synced: 2025-02-03T00:06:45.888Z (3 months ago)
- Topics: css-animations, css3, firebse, html, html-css-javascript, html5, json, json-api, none, webdevelopment
- Language: HTML
- Homepage:
- Size: 23.3 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Security: SECURITY.md
Awesome Lists containing this project
README
# Stunning-disco


# Prequisite
- `Firebase account.` [documentation](https://firebase.google.com/docs?authuser=0&hl=en)
- `basic JS.`
- `Google fonts API.` [documentation](https://fonts.google.com/knowledge)
- `Google Analaytics API.` [documentation](https://developers.google.com/analytics)
- `Scroll JS.` [documentation](https://scrollrevealjs.org/)## In a nutshell
and

# Introduction
- Interfacing form data by storing it in JSON format in `LiveDataBase` [NoSQL Database DOM oriented]//Firebase
- [For Reference] (https://youtu.be/zx2YoBMfflM)
- Static page can be rendered as per the person whose going to implement this### Database bridge
## Basic Snippet for
`Collecting Form Data`
```
// Your web app's Firebase configuration
const mainConfig = {
apiKey: "",
authDomain: "",
databaseURL: "",
projectId: "",
storageBucket: "",
messagingSenderId: "",
appId: ""
};// Initialize Firebase
firebase.initializeApp(mainConfig);// Refernece contactInfo collections
let contactInfo = firebase.database().ref("Inventrix_Regs");// Listen for a submit
document.querySelector(".contact-form").addEventListener("submit", submitForm);function submitForm(e) {
e.preventDefault();// Get input Values
let name = document.getElementById(" ").value;
let email =
let message =
let roll =
let phone =
var rate;
//all your validation code
}
else{
saveContactInfo(name, email, message,roll,phone,rate);
//err code
document.querySelector(".contact-form").reset();
}
}// Save infos to Firebase
function saveContactInfo(name, email, message,roll,phone,rate) {
let newContactInfo = contactInfo.push();
newContactInfo.set({
department: roll,
name: name,
email: email,
message: message,
phone: phone,
exited: rate,
});}
```# Overview
