Skip to content
Snippets Groups Projects
Commit 3c3c53a9 authored by Dr.Pirmann's avatar Dr.Pirmann
Browse files

Initial commit

parents
No related branches found
No related tags found
No related merge requests found
Showing
with 257 additions and 0 deletions
CREATE TABLE [Books] (
[Order] INTEGER PRIMARY KEY AUTOINCREMENT,
[ISBN] INTEGER NOT NULL,
[Title] VARCHAR(50) NOT NULL,
[Author] VARCHAR(50) NOT NULL
);
INSERT INTO Books (ISBN, Title, Author)
Values
('9781514828144', 'A Byte of Python', 'Swaroop C H'),
('9781108171021', 'Artificial Intelligence: Foundations of Computational Agents', 'David Poole and Alan Mackworth'),
('9781441419057', 'How to Think Like a Computer Scientist: C ++', 'Allen B. Downey'),
('9787308040365', 'How to Think Like a Computer Scientist: Java', 'Allen B. Downey'),
('9781563249914', 'Philosophy of Computer Science', 'William J. Rapaport');
CREATE TABLE [Availability] (
[ISBN] INTEGER PRIMARY KEY NOT NULL,
[Available] CHARACTER(1) NOT NULL
);
INSERT INTO Availability (ISBN, Available)
VALUES ('9781514828144', 'Y'), ('9781108171021', 'N'),
('9781441419057', 'N'), ('9787308040365', 'Y'), ('9781563249914', 'N');
File added
This diff is collapsed.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<script src="index.js"></script>
<!--Question 5-->
<link rel="stylesheet" href="stylesheet.css">
<title>Lab 5</title>
</head>
<body>
<!--Question 4-->
<img src="#"/>
<h1>Welcome to the CLC Lending Site</h1>
<!--Question 2-->
<h3>Designed by ____ </h3>
<!--Question 3-->
<table border="1" id="book-list">
<tr id="header-row">
<th>Title</th>
<th>Author</th>
<th>ISBN</th>
<th>Available?</th>
</tr>
<tr class="rows">
<td>A Byte of Python</td>
<td>Swaroop C H</td>
<td>9781514828144</td>
<td>Yes</td>
</tr>
<tr class="rows">
<td>Artificial Intelligence: Foundations of Computational Agents</td>
<td>David Poole and Alan Mackworth</td>
<td>9781108171021</td>
<td>No</td>
</tr>
<tr class="rows">
<td>How to Think Like a Computer Scientist: C++</td>
<td>Allen B. Downey</td>
<td>9781441419057</td>
<td>No</td>
</tr>
<tr class="rows">
<td>How to Think Like a Computer Scientist: Java</td>
<td>Allen B. Downey</td>
<td>9787308040365</td>
<td>Yes</td>
</tr>
<tr class="rows">
<td>Philosophy of Computer Science</td>
<td>William J. Rapaport</td>
<td>9781563249914</td>
<td>No</td>
</tr>
</table>
<!--Question 10-->
<button onclick="#">Click me</button>
</body>
</html>
\ No newline at end of file
index.js 0 → 100644
function goToCCI() {
//window.open('https://drexel.edu/cci/');
}
/**
* Week 6
*/
function getBooks() {
let xhr = new XMLHttpRequest();
xhr.open("GET", "/getBooks");
xhr.onreadystatechange=function() {
myCallBack(xhr);
};
xhr.send(null);
}
function myCallBack(xhr) {
if (xhr.readyState==4 && xhr.status==200) {
let table = document.getElementById('book-list');
table.innerHTML = `<tr>
<th>Title</th>
<th>Author</th>
<th>ISBN</th>
<th>Available?</th>
</tr>` + xhr.responseText;
}
}
\ No newline at end of file
logos/cci-1.jpg

32 KiB

logos/cci-2.png

33.4 KiB

logos/drexel.png

6.79 KiB

#!/bin/sh
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
case `uname` in
*CYGWIN*) basedir=`cygpath -w "$basedir"`;;
esac
if [ -x "$basedir/node" ]; then
"$basedir/node" "$basedir/../detect-libc/bin/detect-libc.js" "$@"
ret=$?
else
node "$basedir/../detect-libc/bin/detect-libc.js" "$@"
ret=$?
fi
exit $ret
@IF EXIST "%~dp0\node.exe" (
"%~dp0\node.exe" "%~dp0\..\detect-libc\bin\detect-libc.js" %*
) ELSE (
@SETLOCAL
@SET PATHEXT=%PATHEXT:;.JS;=;%
node "%~dp0\..\detect-libc\bin\detect-libc.js" %*
)
\ No newline at end of file
#!/bin/sh
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
case `uname` in
*CYGWIN*) basedir=`cygpath -w "$basedir"`;;
esac
if [ -x "$basedir/node" ]; then
"$basedir/node" "$basedir/../mime/cli.js" "$@"
ret=$?
else
node "$basedir/../mime/cli.js" "$@"
ret=$?
fi
exit $ret
@IF EXIST "%~dp0\node.exe" (
"%~dp0\node.exe" "%~dp0\..\mime\cli.js" %*
) ELSE (
@SETLOCAL
@SET PATHEXT=%PATHEXT:;.JS;=;%
node "%~dp0\..\mime\cli.js" %*
)
\ No newline at end of file
#!/bin/sh
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
case `uname` in
*CYGWIN*) basedir=`cygpath -w "$basedir"`;;
esac
if [ -x "$basedir/node" ]; then
"$basedir/node" "$basedir/../mkdirp/bin/cmd.js" "$@"
ret=$?
else
node "$basedir/../mkdirp/bin/cmd.js" "$@"
ret=$?
fi
exit $ret
@IF EXIST "%~dp0\node.exe" (
"%~dp0\node.exe" "%~dp0\..\mkdirp\bin\cmd.js" %*
) ELSE (
@SETLOCAL
@SET PATHEXT=%PATHEXT:;.JS;=;%
node "%~dp0\..\mkdirp\bin\cmd.js" %*
)
\ No newline at end of file
#!/bin/sh
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
case `uname` in
*CYGWIN*) basedir=`cygpath -w "$basedir"`;;
esac
if [ -x "$basedir/node" ]; then
"$basedir/node" "$basedir/../needle/bin/needle" "$@"
ret=$?
else
node "$basedir/../needle/bin/needle" "$@"
ret=$?
fi
exit $ret
@IF EXIST "%~dp0\node.exe" (
"%~dp0\node.exe" "%~dp0\..\needle\bin\needle" %*
) ELSE (
@SETLOCAL
@SET PATHEXT=%PATHEXT:;.JS;=;%
node "%~dp0\..\needle\bin\needle" %*
)
\ No newline at end of file
#!/bin/sh
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
case `uname` in
*CYGWIN*) basedir=`cygpath -w "$basedir"`;;
esac
if [ -x "$basedir/node" ]; then
"$basedir/node" "$basedir/../node-pre-gyp/bin/node-pre-gyp" "$@"
ret=$?
else
node "$basedir/../node-pre-gyp/bin/node-pre-gyp" "$@"
ret=$?
fi
exit $ret
@IF EXIST "%~dp0\node.exe" (
"%~dp0\node.exe" "%~dp0\..\node-pre-gyp\bin\node-pre-gyp" %*
) ELSE (
@SETLOCAL
@SET PATHEXT=%PATHEXT:;.JS;=;%
node "%~dp0\..\node-pre-gyp\bin\node-pre-gyp" %*
)
\ No newline at end of file
#!/bin/sh
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
case `uname` in
*CYGWIN*) basedir=`cygpath -w "$basedir"`;;
esac
if [ -x "$basedir/node" ]; then
"$basedir/node" "$basedir/../nopt/bin/nopt.js" "$@"
ret=$?
else
node "$basedir/../nopt/bin/nopt.js" "$@"
ret=$?
fi
exit $ret
@IF EXIST "%~dp0\node.exe" (
"%~dp0\node.exe" "%~dp0\..\nopt\bin\nopt.js" %*
) ELSE (
@SETLOCAL
@SET PATHEXT=%PATHEXT:;.JS;=;%
node "%~dp0\..\nopt\bin\nopt.js" %*
)
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment