Skip to content

a4-Nathan-Shemesh #42

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

Open
wants to merge 22 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
24 changes: 24 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
dist
dist-ssr
*.local

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
33 changes: 3 additions & 30 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,33 +1,6 @@
Assignment 4 - Components
===
## Totoally Legit website

Due: October 4th, by 11:59 AM.
hosting link https://glitch.com/edit/#!/roomy-eager-tadpole

For this assignment you will re-implement the client side portion of *either* A2 or A3 using either React or Svelte components. If you choose A3 you only need to use components for the data display / updating; you can leave your login UI as is.

[Svelte Tutorial](https://github.com/cs-4241-23/cs-4241-23.github.io/blob/main/using.svelte.md)
[React Tutorial](https://github.com/cs-4241-23/cs-4241-23.github.io/blob/main/using.react.md)

This project can be implemented on any hosting service (Glitch, DigitalOcean, Heroku etc.), however, you must include all files in your GitHub repo so that the course staff can view them.

Deliverables
---

Do the following to complete this assignment:

1. Implement your project with the above requirements.
3. Test your project to make sure that when someone goes to your main page on Glitch/Heroku/etc., it displays correctly.
4. Ensure that your project has the proper naming scheme `a4-firstname-lastname` so we can find it.
5. Fork this repository and modify the README to the specifications below. Be sure to add *all* project files.
6. Create and submit a Pull Request to the original repo. Name the pull request using the following template: `a4-firstname-lastname`.

Sample Readme (delete the above when you're ready to submit, and modify the below so with your links and descriptions)
---

## Your Web Application Title

your hosting link e.g. http://a4-charlieroberts.glitch.me

Include a very brief summary of your project here and what you changed / added to assignment #3. Briefly (3–4 sentences) answer the following question: did the new technology improve or hinder the development experience?

Unlike previous assignments, this assignment will be solely graded on whether or not you successfully complete it. Partial credit will be generously given.
I chose to revamp my assignment two assignmnet using sevelte and implimented submit, clear, display, and delete into my website.
74 changes: 74 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<link rel="stylesheet" href="src\client\style.css" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<script type="module" src="src/client/main.js"></script>
<title>Vite App</title>
</head>

<body id="bod">
<h1>Totally Legit Website</h1>
<form>
<table id="itemt">
<tr>
<td>
<label>Email:</label>
<input
type="email"
id="Email"
placeholder="your email here"
required
/>
</td>
</tr>

<tr>
<td>
<label>Name:</label>
<input
type="text"
id="Name"
placeholder="your full name here"
required
/>
</td>
</tr>

<tr>
<td>
<label>Birth date:</label>
<input type="date" id="Birth" placeholder="select date" required />
</td>
</tr>
</table>
</form>
<div id="btn">
<button id="submit">Submit</button>
<button id="display">Display info</button>
<button id="delete">Delete</button>
<button id="clear">Clear</button>
</div>
<p id="fade">Submission Successful</p>
<p id="dell">Deletion Successful: clear the table</p>
<p id="uD">Table has been updated</p>

<table id="data"></table>

<script>

let buttonHere = false;
let i;
function checkedOnClick(el) {
let checkboxlist = document.getElementsByClassName("checkOnce");
for (let i = 0; i < checkboxlist.length; i++) {
checkboxlist.item(i).checked = false;
}
el.checked = true;
}
</script>

</body>
</html>
Loading