diff options
author | RossTheRoss <mstrapp@protonmail.com> | 2021-05-16 21:38:59 -0500 |
---|---|---|
committer | RossTheRoss <mstrapp@protonmail.com> | 2021-05-16 21:38:59 -0500 |
commit | 9148fa6e2fad9d54e3451a4478e03f55f0a9fa3c (patch) | |
tree | 9e739b11361f5fd122b31cfce107947502b69809 /csci4131/hw6 | |
parent | Add trash (diff) | |
download | homework-9148fa6e2fad9d54e3451a4478e03f55f0a9fa3c.tar homework-9148fa6e2fad9d54e3451a4478e03f55f0a9fa3c.tar.gz homework-9148fa6e2fad9d54e3451a4478e03f55f0a9fa3c.tar.bz2 homework-9148fa6e2fad9d54e3451a4478e03f55f0a9fa3c.tar.lz homework-9148fa6e2fad9d54e3451a4478e03f55f0a9fa3c.tar.xz homework-9148fa6e2fad9d54e3451a4478e03f55f0a9fa3c.tar.zst homework-9148fa6e2fad9d54e3451a4478e03f55f0a9fa3c.zip |
Rearrange files
Diffstat (limited to '')
-rw-r--r-- | OLD/csci4131/hw6/strap012_hw6/README.txt (renamed from csci4131/hw6/strap012_hw6/README.txt) | 0 | ||||
-rw-r--r-- | OLD/csci4131/hw6/strap012_hw6/api/utilities.js (renamed from csci4131/hw6/strap012_hw6/api/utilities.js) | 0 | ||||
-rw-r--r-- | OLD/csci4131/hw6/strap012_hw6/create_accounts_table.js (renamed from csci4131/hw6/strap012_hw6/create_accounts_table.js) | 0 | ||||
-rw-r--r-- | OLD/csci4131/hw6/strap012_hw6/create_contacts_table.js (renamed from csci4131/hw6/strap012_hw6/create_contacts_table.js) | 0 | ||||
-rw-r--r-- | OLD/csci4131/hw6/strap012_hw6/dbio.js (renamed from csci4131/hw6/strap012_hw6/dbio.js) | 0 | ||||
-rw-r--r-- | OLD/csci4131/hw6/strap012_hw6/index.js (renamed from csci4131/hw6/strap012_hw6/index.js) | 0 | ||||
-rw-r--r-- | OLD/csci4131/hw6/strap012_hw6/insert_into_accounts_table.js (renamed from csci4131/hw6/strap012_hw6/insert_into_accounts_table.js) | 0 | ||||
-rw-r--r-- | OLD/csci4131/hw6/strap012_hw6/login.html (renamed from csci4131/hw6/strap012_hw6/login.html) | 0 | ||||
-rw-r--r-- | OLD/csci4131/hw6/strap012_hw6/package.json (renamed from csci4131/hw6/strap012_hw6/package.json) | 0 | ||||
-rw-r--r-- | OLD/csci4131/hw6/strap012_hw6/public/addContact.html (renamed from csci4131/hw6/strap012_hw6/public/addContact.html) | 0 | ||||
-rw-r--r-- | OLD/csci4131/hw6/strap012_hw6/public/stock.html (renamed from csci4131/hw6/strap012_hw6/public/stock.html) | 0 | ||||
-rw-r--r-- | OLD/csci4131/hw6/strap012_hw6/public/welcome.html (renamed from csci4131/hw6/strap012_hw6/public/welcome.html) | 0 | ||||
-rw-r--r-- | csci4131/hw6/strap012_hw6/public/contacts.html | 78 |
13 files changed, 0 insertions, 78 deletions
diff --git a/csci4131/hw6/strap012_hw6/README.txt b/OLD/csci4131/hw6/strap012_hw6/README.txt index e056441..e056441 100644 --- a/csci4131/hw6/strap012_hw6/README.txt +++ b/OLD/csci4131/hw6/strap012_hw6/README.txt diff --git a/csci4131/hw6/strap012_hw6/api/utilities.js b/OLD/csci4131/hw6/strap012_hw6/api/utilities.js index 65a087f..65a087f 100644 --- a/csci4131/hw6/strap012_hw6/api/utilities.js +++ b/OLD/csci4131/hw6/strap012_hw6/api/utilities.js diff --git a/csci4131/hw6/strap012_hw6/create_accounts_table.js b/OLD/csci4131/hw6/strap012_hw6/create_accounts_table.js index 61b2602..61b2602 100644 --- a/csci4131/hw6/strap012_hw6/create_accounts_table.js +++ b/OLD/csci4131/hw6/strap012_hw6/create_accounts_table.js diff --git a/csci4131/hw6/strap012_hw6/create_contacts_table.js b/OLD/csci4131/hw6/strap012_hw6/create_contacts_table.js index bcad389..bcad389 100644 --- a/csci4131/hw6/strap012_hw6/create_contacts_table.js +++ b/OLD/csci4131/hw6/strap012_hw6/create_contacts_table.js diff --git a/csci4131/hw6/strap012_hw6/dbio.js b/OLD/csci4131/hw6/strap012_hw6/dbio.js index 302334b..302334b 100644 --- a/csci4131/hw6/strap012_hw6/dbio.js +++ b/OLD/csci4131/hw6/strap012_hw6/dbio.js diff --git a/csci4131/hw6/strap012_hw6/index.js b/OLD/csci4131/hw6/strap012_hw6/index.js index 851b096..851b096 100644 --- a/csci4131/hw6/strap012_hw6/index.js +++ b/OLD/csci4131/hw6/strap012_hw6/index.js diff --git a/csci4131/hw6/strap012_hw6/insert_into_accounts_table.js b/OLD/csci4131/hw6/strap012_hw6/insert_into_accounts_table.js index 3157ce3..3157ce3 100644 --- a/csci4131/hw6/strap012_hw6/insert_into_accounts_table.js +++ b/OLD/csci4131/hw6/strap012_hw6/insert_into_accounts_table.js diff --git a/csci4131/hw6/strap012_hw6/login.html b/OLD/csci4131/hw6/strap012_hw6/login.html index 9bb80cc..9bb80cc 100644 --- a/csci4131/hw6/strap012_hw6/login.html +++ b/OLD/csci4131/hw6/strap012_hw6/login.html diff --git a/csci4131/hw6/strap012_hw6/package.json b/OLD/csci4131/hw6/strap012_hw6/package.json index db9cf8f..db9cf8f 100644 --- a/csci4131/hw6/strap012_hw6/package.json +++ b/OLD/csci4131/hw6/strap012_hw6/package.json diff --git a/csci4131/hw6/strap012_hw6/public/addContact.html b/OLD/csci4131/hw6/strap012_hw6/public/addContact.html index 629f9b2..629f9b2 100644 --- a/csci4131/hw6/strap012_hw6/public/addContact.html +++ b/OLD/csci4131/hw6/strap012_hw6/public/addContact.html diff --git a/csci4131/hw6/strap012_hw6/public/stock.html b/OLD/csci4131/hw6/strap012_hw6/public/stock.html index d63b233..d63b233 100644 --- a/csci4131/hw6/strap012_hw6/public/stock.html +++ b/OLD/csci4131/hw6/strap012_hw6/public/stock.html diff --git a/csci4131/hw6/strap012_hw6/public/welcome.html b/OLD/csci4131/hw6/strap012_hw6/public/welcome.html index 095023e..095023e 100644 --- a/csci4131/hw6/strap012_hw6/public/welcome.html +++ b/OLD/csci4131/hw6/strap012_hw6/public/welcome.html diff --git a/csci4131/hw6/strap012_hw6/public/contacts.html b/csci4131/hw6/strap012_hw6/public/contacts.html deleted file mode 100644 index 5cd2907..0000000 --- a/csci4131/hw6/strap012_hw6/public/contacts.html +++ /dev/null @@ -1,78 +0,0 @@ -<html>
- <head>
- <meta charset="utf-8">
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
- <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
- <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
- <script type="text/javascript" defer>
- //Get JSON
- var xmlhttp = new XMLHttpRequest();
- var url = "api/contacts";
- xmlhttp.onreadystatechange = function () {
- if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
- var parse = JSON.parse(xmlhttp.responseText);
- process(parse);
- }
- }
- xmlhttp.open("GET", url, true);
- xmlhttp.send();
-
- function process(a) {
- var table = document.getElementsByTagName("tbody")[0];
- var contacts = a;
- for (let i = 0; i < contacts.length; i++) {
- var contact = contacts[i];
- var row = table.insertRow();
- for (var j in contact) {
- if (j === "contact_id") continue;
- if (j === "website_url") {
- var url = row.insertCell();
- url.innerHTML = "<a href =" + contact[j] + ">" + contact[j] + "</a>";
- } else if (j === "email") {
- var email = row.insertCell();
- email.innerHTML = "<a href =mailto://" + contact[j] + ">" + contact[j] + "</a>";
- } else {
- var value = row.insertCell();
- value.innerHTML = contact[j];
- }
- }
- }
- }
-
- </script>
- </head>
- <body>
- <nav class="navbar navbar-default">
- <div class="container-fluid">
- <ul class="nav navbar-nav">
- <li><a href="/"><b>Home</b></a></li>
- <li><a href="contacts"><b>Contacts</b></a></li>
- <li><a href="addContact"><b>Add Contact</b></a></li>
- <li><a href="stock"><b>Stock Page</b></a></li>
- <li><a href="logout"><b>Logout</b></a></li>
- </ul>
- </div>
- </nav>
- <br><br>
-
- <div class="container">
- <table class="table" id="contactsTable">
- <thead>
- <tr>
- <th scope="col">Name</th>
- <th scope="col">Category</th>
- <th scope="col">Location</th>
- <th scope="col">Contact Information</th>
- <th scope="col">Email</th>
- <th scope="col">Website <br> (URL) </th>
- </tr>
- </thead>
- <tbody></tbody>
- </table>
- </div>
- <script type="text/javascript">
-
- </script>
- </body>
-</html>
|