notherbase-fs 4.0.22 → 4.0.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -6
- package/controllers/creation.js +147 -147
- package/controllers/spirit-world.js +174 -174
- package/controllers/user.js +240 -240
- package/controllers/util.js +64 -64
- package/models/index.js +33 -33
- package/models/send-mail.js +58 -58
- package/models/spirit.js +234 -234
- package/notherbase-fs.js +112 -112
- package/package.json +40 -40
- package/public/js/base.js +222 -227
- package/public/js/chat-box.js +120 -120
- package/test/coast/tall-beach/nono-cove/index.css +17 -17
- package/test/coast/tall-beach/nono-cove/index.ejs +29 -29
- package/test/coast/tall-beach/nono-cove/nono-og/add-gold.js +15 -15
- package/test/coast/tall-beach/nono-cove/nono-og/index.ejs +46 -46
- package/test/coast/tall-beach/nono-cove/nono-og/nono.css +88 -88
- package/test/coast/tall-beach/nono-cove/nono-og/nono.js +207 -207
- package/test/pages/test-page/emailTime.js +8 -8
- package/test/pages/test-page/index.ejs +104 -104
- package/test/pages/void/index.ejs +35 -35
- package/test/pages/void/void.css +2 -2
- package/test/public/styles/main.css +792 -792
- package/test/the-front/add-gold.js +13 -13
- package/test/the-front/check/check.css +2 -2
- package/test/the-front/check/emailTime.js +9 -9
- package/test/the-front/check/flip.js +9 -9
- package/test/the-front/check/index.ejs +54 -54
- package/test/the-front/check/save-input.js +7 -7
- package/test/the-front/index.ejs +116 -99
- package/test/the-front/keeper/clipboards.js +133 -133
- package/test/the-front/keeper/index.ejs +80 -80
- package/test/the-front/keeper/keeper.css +157 -157
- package/test/the-front/keeper/keeper.js +140 -140
- package/test-index.js +19 -19
- package/test2/pages/test-page/emailTime.js +8 -8
- package/test2/pages/test-page/index.ejs +104 -104
- package/test2/pages/void/index.ejs +35 -35
- package/test2/pages/void/void.css +2 -2
- package/test2/public/styles/main.css +792 -792
- package/test2/the-front/add-gold.js +13 -13
- package/test2/the-front/check/check.css +2 -2
- package/test2/the-front/check/emailTime.js +9 -9
- package/test2/the-front/check/flip.js +9 -9
- package/test2/the-front/check/index.ejs +54 -54
- package/test2/the-front/check/save-input.js +7 -7
- package/test2/the-front/index.ejs +99 -99
- package/test2/the-front/keeper/clipboards.js +133 -133
- package/test2/the-front/keeper/index.ejs +80 -80
- package/test2/the-front/keeper/keeper.css +157 -157
- package/test2/the-front/keeper/keeper.js +140 -140
- package/views/explorer.ejs +82 -82
- package/views/footer.ejs +9 -9
- package/views/head.ejs +17 -17
|
@@ -1,105 +1,105 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="UTF-8">
|
|
5
|
-
<title>Test</title>
|
|
6
|
-
<meta name="viewport" content="width=device-width,initial-scale=1.0">
|
|
7
|
-
<script src="https://code.jquery.com/jquery-3.6.0.min.js" integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=" crossorigin="anonymous"></script>
|
|
8
|
-
<link rel="preconnect" href="https://fonts.googleapis.com">
|
|
9
|
-
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
|
10
|
-
<!-- font-family: 'Roboto' or 'Roboto Condensed', sans-serif; -->
|
|
11
|
-
<link href="https://fonts.googleapis.com/css2?family=Roboto&family=Roboto+Condensed:wght@700&display=swap" rel="stylesheet">
|
|
12
|
-
<!-- 'Redacted Script', cursive; -->
|
|
13
|
-
<link href="https://fonts.googleapis.com/css2?family=Redacted+Script:wght@300&display=swap" rel="stylesheet">
|
|
14
|
-
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css">
|
|
15
|
-
<link rel="stylesheet" href="/styles/main.css">
|
|
16
|
-
<link rel="stylesheet" href="/styles/menu.css">
|
|
17
|
-
<link rel="stylesheet" href="/styles/inventory.css">
|
|
18
|
-
<link rel="stylesheet" href="/styles/player.css">
|
|
19
|
-
<link rel="stylesheet" href="/styles/account.css">
|
|
20
|
-
<link rel="stylesheet" href="/styles/more.css">
|
|
21
|
-
<link rel="stylesheet" href="/styles/chat.css">
|
|
22
|
-
<script src="/js/base.js"></script>
|
|
23
|
-
</head>
|
|
24
|
-
<script>
|
|
25
|
-
const currentRoute = "<%- route %>";
|
|
26
|
-
</script>
|
|
27
|
-
|
|
28
|
-
<body>
|
|
29
|
-
<main>
|
|
30
|
-
<div class="chatter" id="adam"></div>
|
|
31
|
-
<input type="text" id="adam">
|
|
32
|
-
<button id="adam">Chat</button>
|
|
33
|
-
</main>
|
|
34
|
-
</body>
|
|
35
|
-
|
|
36
|
-
<script>
|
|
37
|
-
class Spirit {
|
|
38
|
-
constructor(name) {
|
|
39
|
-
this.name = name;
|
|
40
|
-
this.children = {};
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
addChild(child, parent) {
|
|
44
|
-
if (!this.children[child.name]) {
|
|
45
|
-
this.children[child.name] = 1;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
this.children[child.name]++;
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
class Chatter {
|
|
53
|
-
constructor(id) {
|
|
54
|
-
this.name = id;
|
|
55
|
-
this.brain = new Spirit("i");
|
|
56
|
-
this.$div = $(`.chatter#${id}`);
|
|
57
|
-
this.$input = $(`input#${id}`);
|
|
58
|
-
this.$submit = $(`button#${id}`);
|
|
59
|
-
|
|
60
|
-
this.$submit.click(() => {
|
|
61
|
-
this.listen(this.$input.val());
|
|
62
|
-
});
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
register = (word) => {
|
|
66
|
-
if (!this.brain[word]) {
|
|
67
|
-
this.brain[word] = new Spirit(word);
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
return this.brain[word];
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
think = () => {
|
|
74
|
-
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
listen = (message) => {
|
|
78
|
-
message = message.toLowerCase();
|
|
79
|
-
let words = message.split(" ");
|
|
80
|
-
|
|
81
|
-
//add words to the dialogue tree
|
|
82
|
-
this.register(words[0]);
|
|
83
|
-
for (let i = 0; i < words.length; i++) {
|
|
84
|
-
if (i < words.length - 1) {
|
|
85
|
-
let child = this.register(words[i + 1]);
|
|
86
|
-
if (i > 0) this.brain[words[i]].addChild(child, this.brain[words[i - 1]]);
|
|
87
|
-
else this.brain[words[i]].addChild(child, null);
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
//think
|
|
92
|
-
|
|
93
|
-
this.respond(message);
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
respond(message) {
|
|
97
|
-
this.$div.append(`<p>${this.name}: ${message}</p>`);
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
const adam = new Chatter("adam");
|
|
102
|
-
adam.listen(`In the beginning God created the heavens and the earth`);
|
|
103
|
-
adam.listen("if i have the first two words in a three word relationship can the third word be guessed")
|
|
104
|
-
</script>
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8">
|
|
5
|
+
<title>Test</title>
|
|
6
|
+
<meta name="viewport" content="width=device-width,initial-scale=1.0">
|
|
7
|
+
<script src="https://code.jquery.com/jquery-3.6.0.min.js" integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=" crossorigin="anonymous"></script>
|
|
8
|
+
<link rel="preconnect" href="https://fonts.googleapis.com">
|
|
9
|
+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
|
10
|
+
<!-- font-family: 'Roboto' or 'Roboto Condensed', sans-serif; -->
|
|
11
|
+
<link href="https://fonts.googleapis.com/css2?family=Roboto&family=Roboto+Condensed:wght@700&display=swap" rel="stylesheet">
|
|
12
|
+
<!-- 'Redacted Script', cursive; -->
|
|
13
|
+
<link href="https://fonts.googleapis.com/css2?family=Redacted+Script:wght@300&display=swap" rel="stylesheet">
|
|
14
|
+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css">
|
|
15
|
+
<link rel="stylesheet" href="/styles/main.css">
|
|
16
|
+
<link rel="stylesheet" href="/styles/menu.css">
|
|
17
|
+
<link rel="stylesheet" href="/styles/inventory.css">
|
|
18
|
+
<link rel="stylesheet" href="/styles/player.css">
|
|
19
|
+
<link rel="stylesheet" href="/styles/account.css">
|
|
20
|
+
<link rel="stylesheet" href="/styles/more.css">
|
|
21
|
+
<link rel="stylesheet" href="/styles/chat.css">
|
|
22
|
+
<script src="/js/base.js"></script>
|
|
23
|
+
</head>
|
|
24
|
+
<script>
|
|
25
|
+
const currentRoute = "<%- route %>";
|
|
26
|
+
</script>
|
|
27
|
+
|
|
28
|
+
<body>
|
|
29
|
+
<main>
|
|
30
|
+
<div class="chatter" id="adam"></div>
|
|
31
|
+
<input type="text" id="adam">
|
|
32
|
+
<button id="adam">Chat</button>
|
|
33
|
+
</main>
|
|
34
|
+
</body>
|
|
35
|
+
|
|
36
|
+
<script>
|
|
37
|
+
class Spirit {
|
|
38
|
+
constructor(name) {
|
|
39
|
+
this.name = name;
|
|
40
|
+
this.children = {};
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
addChild(child, parent) {
|
|
44
|
+
if (!this.children[child.name]) {
|
|
45
|
+
this.children[child.name] = 1;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
this.children[child.name]++;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
class Chatter {
|
|
53
|
+
constructor(id) {
|
|
54
|
+
this.name = id;
|
|
55
|
+
this.brain = new Spirit("i");
|
|
56
|
+
this.$div = $(`.chatter#${id}`);
|
|
57
|
+
this.$input = $(`input#${id}`);
|
|
58
|
+
this.$submit = $(`button#${id}`);
|
|
59
|
+
|
|
60
|
+
this.$submit.click(() => {
|
|
61
|
+
this.listen(this.$input.val());
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
register = (word) => {
|
|
66
|
+
if (!this.brain[word]) {
|
|
67
|
+
this.brain[word] = new Spirit(word);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
return this.brain[word];
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
think = () => {
|
|
74
|
+
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
listen = (message) => {
|
|
78
|
+
message = message.toLowerCase();
|
|
79
|
+
let words = message.split(" ");
|
|
80
|
+
|
|
81
|
+
//add words to the dialogue tree
|
|
82
|
+
this.register(words[0]);
|
|
83
|
+
for (let i = 0; i < words.length; i++) {
|
|
84
|
+
if (i < words.length - 1) {
|
|
85
|
+
let child = this.register(words[i + 1]);
|
|
86
|
+
if (i > 0) this.brain[words[i]].addChild(child, this.brain[words[i - 1]]);
|
|
87
|
+
else this.brain[words[i]].addChild(child, null);
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
//think
|
|
92
|
+
|
|
93
|
+
this.respond(message);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
respond(message) {
|
|
97
|
+
this.$div.append(`<p>${this.name}: ${message}</p>`);
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
const adam = new Chatter("adam");
|
|
102
|
+
adam.listen(`In the beginning God created the heavens and the earth`);
|
|
103
|
+
adam.listen("if i have the first two words in a three word relationship can the third word be guessed")
|
|
104
|
+
</script>
|
|
105
105
|
</html>
|
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="UTF-8">
|
|
5
|
-
<title>Test</title>
|
|
6
|
-
<meta name="viewport" content="width=device-width,initial-scale=1.0">
|
|
7
|
-
<script src="https://code.jquery.com/jquery-3.6.0.min.js" integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=" crossorigin="anonymous"></script>
|
|
8
|
-
<link rel="preconnect" href="https://fonts.googleapis.com">
|
|
9
|
-
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
|
10
|
-
<!-- font-family: 'Roboto' or 'Roboto Condensed', sans-serif; -->
|
|
11
|
-
<link href="https://fonts.googleapis.com/css2?family=Roboto&family=Roboto+Condensed:wght@700&display=swap" rel="stylesheet">
|
|
12
|
-
<!-- 'Redacted Script', cursive; -->
|
|
13
|
-
<link href="https://fonts.googleapis.com/css2?family=Redacted+Script:wght@300&display=swap" rel="stylesheet">
|
|
14
|
-
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css">
|
|
15
|
-
<link rel="stylesheet" href="/styles/main.css">
|
|
16
|
-
<link rel="stylesheet" href="/styles/menu.css">
|
|
17
|
-
<link rel="stylesheet" href="/styles/inventory.css">
|
|
18
|
-
<link rel="stylesheet" href="/styles/player.css">
|
|
19
|
-
<link rel="stylesheet" href="/styles/account.css">
|
|
20
|
-
<link rel="stylesheet" href="/styles/more.css">
|
|
21
|
-
<link rel="stylesheet" href="/styles/chat.css">
|
|
22
|
-
<script src="/js/base.js"></script>
|
|
23
|
-
</head>
|
|
24
|
-
<script>
|
|
25
|
-
const currentRoute = "<%- route %>";
|
|
26
|
-
</script>
|
|
27
|
-
<style>
|
|
28
|
-
<%- include("./void.css"); %>
|
|
29
|
-
</style>
|
|
30
|
-
|
|
31
|
-
<body>
|
|
32
|
-
<main>
|
|
33
|
-
<a href="/">Leave the Void</a>
|
|
34
|
-
</main>
|
|
35
|
-
</body>
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8">
|
|
5
|
+
<title>Test</title>
|
|
6
|
+
<meta name="viewport" content="width=device-width,initial-scale=1.0">
|
|
7
|
+
<script src="https://code.jquery.com/jquery-3.6.0.min.js" integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=" crossorigin="anonymous"></script>
|
|
8
|
+
<link rel="preconnect" href="https://fonts.googleapis.com">
|
|
9
|
+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
|
10
|
+
<!-- font-family: 'Roboto' or 'Roboto Condensed', sans-serif; -->
|
|
11
|
+
<link href="https://fonts.googleapis.com/css2?family=Roboto&family=Roboto+Condensed:wght@700&display=swap" rel="stylesheet">
|
|
12
|
+
<!-- 'Redacted Script', cursive; -->
|
|
13
|
+
<link href="https://fonts.googleapis.com/css2?family=Redacted+Script:wght@300&display=swap" rel="stylesheet">
|
|
14
|
+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css">
|
|
15
|
+
<link rel="stylesheet" href="/styles/main.css">
|
|
16
|
+
<link rel="stylesheet" href="/styles/menu.css">
|
|
17
|
+
<link rel="stylesheet" href="/styles/inventory.css">
|
|
18
|
+
<link rel="stylesheet" href="/styles/player.css">
|
|
19
|
+
<link rel="stylesheet" href="/styles/account.css">
|
|
20
|
+
<link rel="stylesheet" href="/styles/more.css">
|
|
21
|
+
<link rel="stylesheet" href="/styles/chat.css">
|
|
22
|
+
<script src="/js/base.js"></script>
|
|
23
|
+
</head>
|
|
24
|
+
<script>
|
|
25
|
+
const currentRoute = "<%- route %>";
|
|
26
|
+
</script>
|
|
27
|
+
<style>
|
|
28
|
+
<%- include("./void.css"); %>
|
|
29
|
+
</style>
|
|
30
|
+
|
|
31
|
+
<body>
|
|
32
|
+
<main>
|
|
33
|
+
<a href="/">Leave the Void</a>
|
|
34
|
+
</main>
|
|
35
|
+
</body>
|
|
36
36
|
</html>
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
:root {
|
|
2
|
-
--bgColor: purple;
|
|
1
|
+
:root {
|
|
2
|
+
--bgColor: purple;
|
|
3
3
|
}
|