Updated README.md
This commit is contained in:
1 parent
b8e28ca5ea
commit
21fce3ff1e
3 files changed
+1
-82
No files matched your search
@@ -3,7 +3,7 @@
|
|||||||
This school project is for my teacher to have students log in and check out their XP and assignments.
|
This school project is for my teacher to have students log in and check out their XP and assignments.
|
||||||
This website application is not available online, this is just a locally run website at our school.
|
This website application is not available online, this is just a locally run website at our school.
|
||||||
|
|
||||||
For a full tutorial on website functionality check out `DOCUMENT.md`.
|
For a full tutorial on website functionality check out the documenation [here](DOCUMENT.md).
|
||||||
|
|
||||||
If you'd like to use this yourself, you'll need to create a teacher, it must be done by a site admin.
|
If you'd like to use this yourself, you'll need to create a teacher, it must be done by a site admin.
|
||||||
|
|
||||||
|
|||||||
@@ -1,36 +0,0 @@
|
|||||||
{
|
|
||||||
"name": "XP-System",
|
|
||||||
"version": "2.0.0",
|
|
||||||
"description": "This XP System help show your progress in class and allows you to view assignments.",
|
|
||||||
"main": "app.js",
|
|
||||||
"scripts": {
|
|
||||||
"start": "node app.js",
|
|
||||||
"dev": "nodemon app.js"
|
|
||||||
},
|
|
||||||
"repository": {
|
|
||||||
"type": "git",
|
|
||||||
"url": "https://Braeden57/Dayz-Website"
|
|
||||||
},
|
|
||||||
"author": "Braeden Sowinski",
|
|
||||||
"license": "ISC",
|
|
||||||
"dependencies": {
|
|
||||||
"bad-words": "^3.0.4",
|
|
||||||
"bcryptjs": "^2.4.3",
|
|
||||||
"body-parser": "^1.19.0",
|
|
||||||
"connect-flash": "^0.1.1",
|
|
||||||
"dotenv": "^8.2.0",
|
|
||||||
"ejs": "^2.6.1",
|
|
||||||
"express": "^4.16.4",
|
|
||||||
"express-ejs-layouts": "^2.5.0",
|
|
||||||
"express-session": "^1.15.6",
|
|
||||||
"mongodb": "^3.6.3",
|
|
||||||
"mongoose": "^5.12.3",
|
|
||||||
"multer": "^1.4.2",
|
|
||||||
"passport": "^0.4.0",
|
|
||||||
"passport-local": "^1.0.0",
|
|
||||||
"socket.io": "^3.0.5"
|
|
||||||
},
|
|
||||||
"devDependencies": {
|
|
||||||
"nodemon": "^1.18.9"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,45 +0,0 @@
|
|||||||
<style>
|
|
||||||
#back {
|
|
||||||
position: absolute;
|
|
||||||
left: 10px;
|
|
||||||
top: 10px;
|
|
||||||
}
|
|
||||||
#div-container {
|
|
||||||
position: absolute;
|
|
||||||
left: 300px;
|
|
||||||
top: 50px;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
// Catch url Parameter
|
|
||||||
window.onload = function () {
|
|
||||||
const queryString = window.location.search;
|
|
||||||
if (queryString != null) {
|
|
||||||
const urlParams = new URLSearchParams(queryString);
|
|
||||||
const id = urlParams.get('id');
|
|
||||||
document.getElementById('div-container').innerHTML = "<h2>Uh oh, there was an issue getting the quest id! :(</h2>";
|
|
||||||
<% if(quests.length == 0) { %>
|
|
||||||
document.getElementById('div-container').innerHTML = "<h2>Uh oh, theres no quests :(</h2>";
|
|
||||||
<% } else if(quests.length > 0) { %>
|
|
||||||
<% quests.forEach(function (quest) { %>
|
|
||||||
if('<%= quest._id %>' == id) {
|
|
||||||
document.getElementById('div-container').innerHTML += '<div id="quest">';
|
|
||||||
document.getElementById('quest').innerHTML += '<h1 class="title"><%= quest.title %></h1>';
|
|
||||||
document.getElementById('quest').innerHTML += '<h2 class="title">Campaign: <%= quest.campaign %></h2>'
|
|
||||||
document.getElementById('quest').innerHTML += '<p class="info">XP: <%= quest.xp %></p>';
|
|
||||||
document.getElementById('quest').innerHTML += '<p class="info">Expires: <%= quest.expiry %></p>';
|
|
||||||
document.getElementById('quest').innerHTML += `<h3 class="info">Instructions: <%= quest.instruction %></h3>`;
|
|
||||||
}
|
|
||||||
<% }) %>
|
|
||||||
<% } %>
|
|
||||||
} else {
|
|
||||||
document.getElementById('div-container').innerHTML = "<h2>Uh oh, there was an issue getting the quest id :(</h2>";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<a id='back' href="/dashboard" class="btn btn-secondary">Back to Dashboard</a>
|
|
||||||
|
|
||||||
<!-- Quest container -->
|
|
||||||
<div id='div-container'></div>
|
|
||||||
Reference in new issue
Block a user