tangled
alpha
login
or
join now
stau.space
/
aecc-db
0
fork
atom
AECC database project.
0
fork
atom
overview
issues
pulls
pipelines
.
Diego A. Estrada Rivera
10 months ago
be677b5e
516cabca
+148
-5
4 changed files
expand all
collapse all
unified
split
index.css
index.html
lib
egg.js
template.html
+14
index.css
···
424
424
border-color: #4f7df3;
425
425
transition: 2ms;
426
426
}
427
427
+
428
428
+
.static {
429
429
+
transition: 15s;
430
430
+
background:
431
431
+
repeating-radial-gradient(#000 0 0.0001%,#111 0 0.0002%) 50% 0/250px 250px,
432
432
+
repeating-conic-gradient(#000 0 0.0001%,#111 0 0.0002%) 60% 60%/250px 250px !important;
433
433
+
background-blend-mode: difference;
434
434
+
animation: b .2s infinite alternate;
435
435
+
@keyframes b{
436
436
+
100% {
437
437
+
background-position: 50% 0, 60% 50%;
438
438
+
}
439
439
+
}
440
440
+
}
+10
-5
index.html
···
16
16
<script src="lib/header.js"></script>
17
17
<script src="lib/product.js"></script>
18
18
<script src="lib/transaction.js"></script>
19
19
+
<script src="lib/egg.js"></script>
19
20
<link rel="stylesheet" href="index.css">
20
21
</head>
21
22
<body>
···
34
35
What would you like to work with?
35
36
<br />
36
37
<br />
37
37
-
<button onclick="hide('buttons'); activity();">Activities</button>
38
38
-
<button onclick="hide('buttons'); activity_transaction();">Activity Transactions</button>
39
39
-
<button onclick="hide('buttons'); board_member();">Board Members</button>
40
40
-
<button onclick="hide('buttons'); member();">Members</button>
38
38
+
<button onclick="next('activityFunctionality')">Activities</button>
39
39
+
<button onclick="next('activityTransactionFunctionality')">Activity Transactions</button>
40
40
+
<button onclick="next('boardMemberFunctionality')">Board Members</button>
41
41
+
<button onclick="next('memberFunctionality')">Members</button>
41
42
<button onclick="next('productFunctionality');">Products</button>
42
43
<button onclick="next('transactionFunctionality');">Transactions</button>
44
44
+
<div id="theMatrix"></div>
43
45
</div>
44
46
47
47
+
<x-include src="activity.html"></x-include>
48
48
+
<x-include src="activity_transaction.html"></x-include>
49
49
+
<x-include src="board_member.html"></x-include>
50
50
+
<x-include src="member.html"></x-include>
45
51
<x-include src="product.html"></x-include>
46
46
-
47
52
<x-include src="transaction.html"></x-include>
48
53
49
54
<div id="product">
+51
lib/egg.js
···
1
1
+
2
2
+
const sleep = delay => new Promise(resolve => setTimeout(resolve, delay));
3
3
+
window.onload = async () => {
4
4
+
await sleep(30000);
5
5
+
while (buttons.hidden) {
6
6
+
await sleep(1000);
7
7
+
}
8
8
+
const elems = document.getElementsByTagName("*");
9
9
+
for (var i = 0; i < elems.length; ++i) {
10
10
+
elems[i].classList.add("static");
11
11
+
}
12
12
+
theMatrix.innerHTML += "<br />";
13
13
+
const msg1 = "Wake up, neo . . .";
14
14
+
const msg2 = "The Matrix has you . . .";
15
15
+
const msg3 = "Follow the white rabbit.";
16
16
+
const msg4 = "Knock, knock, Neo.";
17
17
+
for (var i = 0; i < msg1.length; i++) {
18
18
+
theMatrix.innerHTML += msg1[i];
19
19
+
await sleep(120);
20
20
+
}
21
21
+
theMatrix.innerHTML += "<br />";
22
22
+
await sleep(200);
23
23
+
theMatrix.innerHTML += "<br />";
24
24
+
await sleep(500);
25
25
+
for (var i = 0; i < msg2.length; i++) {
26
26
+
theMatrix.innerHTML += msg2[i];
27
27
+
await sleep(120);
28
28
+
}
29
29
+
theMatrix.innerHTML += "<br />";
30
30
+
await sleep(300);
31
31
+
theMatrix.innerHTML += "<br />";
32
32
+
await sleep(500);
33
33
+
for (var i = 0; i < msg3.length; i++) {
34
34
+
theMatrix.innerHTML += msg3[i];
35
35
+
await sleep(120);
36
36
+
}
37
37
+
theMatrix.innerHTML += "<br />";
38
38
+
await sleep(300);
39
39
+
theMatrix.innerHTML += "<br />";
40
40
+
await sleep(600);
41
41
+
for (var i = 0; i < msg4.length; i++) {
42
42
+
theMatrix.innerHTML += msg4[i];
43
43
+
await sleep(200);
44
44
+
}
45
45
+
await sleep(6000);
46
46
+
for (var i = 0; i < elems.length; ++i) {
47
47
+
elems[i].classList.remove("static");
48
48
+
}
49
49
+
theMatrix.innerHTML = "no matter where you are, everyone is always CONNECTED";
50
50
+
theMatrix.style = "display:none;";
51
51
+
};
+73
template.html
···
1
1
+
<div id="templateFunctionality" hidden>
2
2
+
template are <b>AWESOME</b>
3
3
+
<br />
4
4
+
What would you like to do?
5
5
+
<br />
6
6
+
<br />
7
7
+
<nav>
8
8
+
<button onclick="next('templateCreator')">Create</button>
9
9
+
<button onclick="next('templateFinder');">Find</button>
10
10
+
<button onclick="next('templateEditor');">Edit</button>
11
11
+
<button onclick="next('templateDeleter');">Delete</button>
12
12
+
</nav>
13
13
+
<br />
14
14
+
a template . . .
15
15
+
</div>
16
16
+
17
17
+
<div id="templateCreator" hidden>
18
18
+
So you want to create a template . . .
19
19
+
<br />
20
20
+
<form id="templateCreatorForm" onsubmit="templateCreatorFormHandler(event);">
21
21
+
<fieldset>
22
22
+
<legend>template</legend>
23
23
+
<input type="submit" value="Submit">
24
24
+
</fieldset>
25
25
+
</form>
26
26
+
</div>
27
27
+
28
28
+
<div id="templateFinder" hidden>
29
29
+
<h1>Here is the list of template:</h1>
30
30
+
<label for="tableFilter">Filter the results:</label>
31
31
+
<search>
32
32
+
<input type="search" id="tableFilter" onkeyup="table_filter()" placeholder="filter...">
33
33
+
</search>
34
34
+
<table id="templateResultsTable"></table>
35
35
+
</div>
36
36
+
37
37
+
<div id="templateEditor" hidden>
38
38
+
Time to edit a template. First, choose a template:
39
39
+
<br />
40
40
+
<br />
41
41
+
<select id="templateEditorOptions" onchange="loadTemplateEditorSubmission();" ></select>
42
42
+
<div id="templateEditorMenu" hidden>
43
43
+
Current template description:
44
44
+
<br />
45
45
+
Field1: <span id="templateEditorField1"></span>
46
46
+
Field2: <span id="templateEditorField2"></span>
47
47
+
<br />
48
48
+
<form id="templateEditorForm" onsubmit="templateEditorFormHandler(event);">
49
49
+
<fieldset>
50
50
+
<legend>Edit template:</legend>
51
51
+
<input type="submit" value="Submit" />
52
52
+
<input type="hidden" id="templateEditorSubmissionId" value="" />
53
53
+
</fieldset>
54
54
+
</form>
55
55
+
</div>
56
56
+
</div>
57
57
+
58
58
+
<div id="templateDeleter" hidden>
59
59
+
Let's delete a template. First choose from this list:
60
60
+
<br />
61
61
+
<br />
62
62
+
<select id="templateDeleterOptions" onchange="loadTemplateDeleterSubmission();" ></select>
63
63
+
<div id="templateDeleterMenu" hidden>
64
64
+
Current template description:
65
65
+
<br />
66
66
+
Field1: <span id="templateDeleterField1"></span>
67
67
+
<br />
68
68
+
Field2: <span id="templateDeleterField2"></span>
69
69
+
<br />
70
70
+
<br />
71
71
+
<button style="color:#ff5454;" onclick="deleteTemplate();">Delete?</button>
72
72
+
</div>
73
73
+
</div>