idk
This commit is contained in:
parent
c7a2c9ac34
commit
5b7f2a049e
21
Skeez Meet.html
Normal file
21
Skeez Meet.html
Normal file
|
@ -0,0 +1,21 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head><script type="text/javascript" src="/___vscode_livepreview_injected_script"></script>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Skeez Meet</title>
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/water.css@2/out/water.css">
|
||||
<script src="model.js"></script>
|
||||
<script src="viewHome.js"></script>
|
||||
<script src="viewAddSlope.js"></script>
|
||||
<script src="viewLogin.js"></script>
|
||||
<script src="common.js"></script>
|
||||
<script src="updateView.js"></script>
|
||||
<script src="viewSlopeInfo.js"></script>
|
||||
|
||||
</head>
|
||||
<body onload="updateView()">
|
||||
<div id="app">
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
|
@ -1,14 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Skeez Meet</title>
|
||||
<script src="modell.js"></script>
|
||||
<script src="view.js"></script>
|
||||
</head>
|
||||
<body onload="updateView()">
|
||||
<div id="app">
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
|
@ -1,87 +0,0 @@
|
|||
const model = {
|
||||
app: {
|
||||
pages: ["index", "profile", "slopeInfo", "addSlope", "register", "login", "newEvent"],
|
||||
currentPage: "index",
|
||||
loggedIn: false,
|
||||
},
|
||||
|
||||
input: {
|
||||
logIn: {
|
||||
userName: null,
|
||||
password: null,
|
||||
},
|
||||
registerUser: {
|
||||
userName: null,
|
||||
name: null,
|
||||
lastName: null,
|
||||
email: null,
|
||||
password: null,
|
||||
confirmPassword: null,
|
||||
image: null,
|
||||
personalBio: null,
|
||||
address: null,
|
||||
phoneNumber: null,
|
||||
},
|
||||
newEvent: {
|
||||
name: null,
|
||||
date: null,
|
||||
slope: null,
|
||||
comment: null,
|
||||
deadLine: null,
|
||||
},
|
||||
addSlope: {
|
||||
name: null,
|
||||
location: null,
|
||||
difficulty: null,
|
||||
description: null,
|
||||
comment: null,
|
||||
photo: null,
|
||||
type: null,
|
||||
},
|
||||
|
||||
},
|
||||
|
||||
data: {
|
||||
users: [{
|
||||
id: null,
|
||||
name: "",
|
||||
password: null,
|
||||
profilePicture: "",
|
||||
adress: "",
|
||||
phoneNumber: null,
|
||||
goals: {
|
||||
title: "",
|
||||
description: "",
|
||||
amount: null,
|
||||
},
|
||||
eventsAttending: [],
|
||||
},
|
||||
],
|
||||
slopes: [{
|
||||
id: null,
|
||||
name: "",
|
||||
location: "",
|
||||
description: "",
|
||||
ratings: [],
|
||||
avgRating: null,
|
||||
difficulty: null,
|
||||
type: [],
|
||||
photo: null,
|
||||
comment: [],
|
||||
},
|
||||
],
|
||||
|
||||
events: [{
|
||||
id: null,
|
||||
name: "",
|
||||
slope: "",
|
||||
date: "",
|
||||
comment: [],
|
||||
members: [],
|
||||
deadLine: null,
|
||||
},
|
||||
],
|
||||
|
||||
},
|
||||
|
||||
}
|
|
@ -1,8 +0,0 @@
|
|||
let app = document.getElementById('app');
|
||||
|
||||
function updateView() {
|
||||
document.getElementById('app').innerHTML = /*html*/ `
|
||||
${model.data.users}
|
||||
`;
|
||||
console.log(model.data.users, "hello");
|
||||
}
|
|
@ -1,6 +0,0 @@
|
|||
function updateView() {
|
||||
document.getElementById('app').innerHTML = /*html*/ `
|
||||
${model.data.users}
|
||||
`;
|
||||
console.log(model.data.users, "hello");
|
||||
}
|
|
@ -1,8 +0,0 @@
|
|||
let app = document.getElementById('app');
|
||||
|
||||
function updateView() {
|
||||
document.getElementById('app').innerHTML = /*html*/ `
|
||||
${model.data.users}
|
||||
`;
|
||||
console.log(model.data.users, "hello");
|
||||
}
|
|
@ -1,8 +0,0 @@
|
|||
let app = document.getElementById('app');
|
||||
|
||||
function updateView() {
|
||||
document.getElementById('app').innerHTML = /*html*/ `
|
||||
${model.data.users}
|
||||
`;
|
||||
console.log(model.data.users, "hello");
|
||||
}
|
Loading…
Reference in a new issue