-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtesteriono.html
181 lines (140 loc) · 6.53 KB
/
testeriono.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
<!DOCTYPE html>
<html lang="en">
<head>
<script src="core/draggableelement.js"></script>
<meta charset="UTF-8">
<title>Title</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css"
integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.min.js"
integrity="sha384-QJHtvGhmr9XOIpI6YVutG+2QOK9T+ZnN4kzFN1RtK3zEFEIsxhlmWl5/YESvpZ13"
crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js"
integrity="sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+1p"
crossorigin="anonymous"></script>
<!-- <script src="https://platform.linkedin.com/badges/js/profile.js" async defer type="text/javascript"></script>-->
<style>
body{
background-image: url("resources/images/IMG_0350_bg.jpg");
background-position:center top;
background-attachment:fixed;
}
th {
color: #47c1e0;
}
td {
color: beige;
}
.jumplink{
color: beige;
}
</style>
</head>
<body>
<div style="position: absolute;left: 4%;top: 2%; width: 92%; height: auto;
background-color: rgb(0, 0, 0); opacity: 85%;display: block; border-radius: 7px; text-align: center; color: #f5f5dc"
id="dragEa10">
<div style="font-size: large; padding: 15px">
Programmer | Portfolio & Projects Portal | Kian C. Nielsen
</div>
</div>
<!--<div style="position: absolute;left: 4%;top: 32%; width: 271px; height: 296px;-->
<!-- background-color: rgb(0, 0, 0); opacity: 85%;display: block; border-radius: 7px; text-align: center; color: beige; padding: 10px"-->
<!-- id="dragEa11">-->
<!-- <div class="badge-base LI-profile-badge" data-locale="da_DK" data-size="medium" data-theme="dark" data-type="VERTICAL" data-vanity="kian-c-nielsen" data-version="v1"><a class="badge-base__link LI-simple-link" href="https://dk.linkedin.com/in/kian-c-nielsen?trk=profile-badge"></a></div>-->
<!--</div>-->
<!--<div style="position: absolute;left: 4%;top: 8%; width: auto; height: auto;-->
<!-- background-color: rgb(0, 0, 0); opacity: 85%;display: block; border-radius: 7px; text-align: center; color: #E06647; padding: 10px; padding-bottom: 14px"-->
<!-- id="dragEa11">-->
<!-- <div class="jumplink">-->
<!-- <a href="https://www.linkedin.com/in/kian-c-nielsen" target="_blank">LinkedIn</a>-->
<!-- </div>-->
<!--</div>-->
<div style="position: absolute;left: 65%;top: 35%; width: auto; height: auto; background-color: rgb(0, 0, 0); opacity: 85%;display: block; border-radius: 7px"
id="dragEa">
<code>
<table class="table-sm m-2" id="declarativeCodeTable">
<tr>
<th id="dragEaHeader">Dwittish
</th>
</tr>
<tr>
<td>Live coding environment for HTML5 Canvas.</td>
</tr>
<tr>
<td>Hommage to dwitter.net</td>
</tr>
<tr>
<td><a href="https://kiancn.github.io/dwittish/" target="main_frame">Here</a> | <a
href="https://kiancn.github.io/dwittish/" target="_blank">New Tab</a></td>
</tr>
</table>
</code>
</div>
<div style="position: absolute;left: 65%;top: 10%; width: 360px; height: auto; background-color: rgb(0, 0, 0); opacity: 85%;display: block; border-radius: 7px"
id="dragEa1">
<code>
<table class="table-sm m-2" id="declarativeCodeTable1">
<tr>
<th id="dragEaHeader1">JS 2D Particle Sandbox
</th>
</tr>
<tr>
<td>I really enjoy cellular automata, so I had try simulating 'elemental' particles in 2D in pure
Javascript.
</td>
</tr>
<tr>
<td>Paint sand, water, earth or smoke.</td>
</tr>
<tr>
<td><a href="https://kiancn.github.io/JS-Particle-Sandbox/" target="main_frame">Here</a> | <a
href="https://kiancn.github.io/JS-Particle-Sandbox/" target="_blank">New Tab</a></td>
</tr>
</table>
</code>
</div>
<div id="selectedContent"
style="position: absolute;left: 17%;top: 70%; width: 65%; height: auto; background-color: rgb(0, 0, 0); opacity: 85%;display: block">
b
<iframe src="https://kiancn.github.io/dwittish/" frameborder="0" style="width: 100%; height: 850px"
name="main_frame"></iframe>
</div>
<script>
window.addEventListener("load", function () {
makeDragElement(document.getElementById("dragEa"))
makeDragElement(document.getElementById("dragEa1"))
makeDragElement(document.getElementById("dragEa11"))
})
function sortTableAlphabetically(tableID, tdIndexToSortBy, startRowFromTop = 1, endRowFromBottom = 0) {
// table is the DOM table object
// rows are the row objects of the that table
// switching is a boolean indicating if sort is supposed to go on
// i counts the objects in the rows
// a & b stores the temporary relevant 2 values of the <td> that are being compared
// shouldSwitch set each iteration, signifies if x-row and y-row should switch
let table, rows, switching, i, a, b, shouldSwitch;
table = document.getElementById(tableID); // get table
switching = true;
while (switching) {
switching = false; // switched back if round results in switch, remains false if no switch during round
rows = table.rows; // row objects
for (i = startRowFromTop; i < (rows.length - (1 + endRowFromBottom)); i++) {
shouldSwitch = false
// getting content of td to compare
a = rows[i].getElementsByTagName("TD")[tdIndexToSortBy].innerHTML.toLowerCase();
b = rows[i + 1].getElementsByTagName("TD")[tdIndexToSortBy].innerHTML.toLowerCase();
if (a > b) { // conparing string content of
shouldSwitch = true;
break;
}
}
if (shouldSwitch) {
rows[i].parentNode.insertBefore(rows[i + 1], rows[i]); // move b-row before a row
switching = true // continue to switch if this happened
}
}
}
</script>
</body>
</html>