diff --git a/docs/forties.js b/docs/forties.js
new file mode 100644
index 0000000..1928772
--- /dev/null
+++ b/docs/forties.js
@@ -0,0 +1,9 @@
+window.fortiesData = [
+
+];
+window.fortiesTODOs = `
+
+`;
+/* Other TODOs:
+
+*/
\ No newline at end of file
diff --git a/docs/index.html b/docs/index.html
index 14f44ea..8d8d9e0 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -78,9 +78,13 @@
//
try {
var search = document.location.search;
- if (/[?&]row\b/.test(search)) {
+ if (/[?&]40s\b/.test(search)) {
+ document.body.classList.add("forties");
+ } else if (/[?&]row\b/.test(search)) {
document.body.classList.add("rowstag");
- } else document.body.classList.add("colstag");
+ } else {
+ document.body.classList.add("colstag");
+ }
} catch (_) {}
})();
@@ -90,8 +94,6 @@
YellowAfterlife's ergonomic keyboard list
It does not contain every single keyboard,
but it's a pretty big sample - especially as far medium/big/interesting keyboards go.
-
- See the other list for row-staggered/standard-layout keyboards.
This is a collection of row-staggered ergonomic keyboards!
@@ -99,9 +101,19 @@
YellowAfterlife's ergonomic keyboard list
This one's a mostly-random sample of keyboards - there's not exactly a shortage of places
to look for row-staggered keyboards.
-
- See the other list for column-staggered and non-standard-layout keyboards.
+
+ This is a collection of little keyboards!
+
+
+ There are some lists of keyboards now:
+
"The rules"
@@ -287,11 +299,12 @@ Credits
-
-
+
+
+
-
-
+
+
diff --git a/docs/script.js b/docs/script.js
index 85cff96..c1ae2fe 100644
--- a/docs/script.js
+++ b/docs/script.js
@@ -2333,14 +2333,22 @@ Main.main = function() {
table_LinkListColumn.countryTags = window.countryTags;
var kbTable;
var row = window.document.body.classList.contains("rowstag");
- if(row) {
- kbTable = new RowStagTable();
+ var forties = window.document.body.classList.contains("forties");
+ if(row || forties) {
+ kbTable = new RowStagTable(forties);
} else {
kbTable = new ColStagTable();
}
KeyboardPage.main(kbTable);
ToDoList.element = window.document.querySelector("#todo");
- ToDoList.set(row ? window.rowStagTODOs : window.keyboardTODOs);
+ var dynWindow = window;
+ if(forties) {
+ ToDoList.set(dynWindow.fortiesTODOs);
+ } else if(row) {
+ ToDoList.set(dynWindow.rowStagTODOs);
+ } else {
+ ToDoList.set(dynWindow.keyboardTODOs);
+ }
};
Math.__name__ = true;
var OrthoBoards = function() { };
@@ -2601,13 +2609,15 @@ Reflect.copy = function(o) {
}
return o2;
};
-var RowStagTable = function() {
+var RowStagTable = function(isForties) {
+ this.isForties = isForties;
KeyboardTable.call(this);
};
RowStagTable.__name__ = true;
RowStagTable.__super__ = KeyboardTable;
RowStagTable.prototype = $extend(KeyboardTable.prototype,{
- collectFilters: function() {
+ isForties: null
+ ,collectFilters: function() {
var result = KeyboardTable.prototype.collectFilters.call(this);
result["row"] = "";
return result;
@@ -2921,7 +2931,13 @@ RowStagTable.prototype = $extend(KeyboardTable.prototype,{
this.addColumn(mw);
}
,initKeyboards: function() {
- var kbs = window.rowStagData;
+ var dynWindow = window;
+ var kbs;
+ if(this.isForties) {
+ kbs = dynWindow.fortiesData;
+ } else {
+ kbs = dynWindow.rowStagData;
+ }
var _g = 0;
while(_g < kbs.length) {
var kb = kbs[_g];
@@ -5671,8 +5687,7 @@ table_number_NumberRangeColumn.prototype = $extend(table_number_NumberColumnBase
,buildValue: function(out,kb) {
var range = this.field.access(kb);
var text = range != null ? type_NumRange.toString(range) + this.suffix : this.nullCaption;
- out.appendChild(window.document.createTextNode(text));
- tools_HtmlTools.setTippyTitle(out,[kb.name,this.name + ":",text].join("\n"));
+ tools_HtmlTools.setTippyTitle(tools_HtmlTools.appendElTextNode(out,"span",text),[kb.name,this.name + ":",text].join("\n"));
}
,matchesFilter: function(kb) {
var tmp = this.field.access(kb);
@@ -5816,8 +5831,7 @@ table_number_NumberRangeListColumn.prototype = $extend(table_number_NumberColumn
,buildValue: function(out,kb) {
var range = this.field.access(kb);
var text = range != null ? type_NumRangeList.toString(range) + this.suffix : this.nullCaption;
- out.appendChild(window.document.createTextNode(text));
- tools_HtmlTools.setTippyTitle(out,[kb.name,this.name + ":",text].join("\n"));
+ tools_HtmlTools.setTippyTitle(tools_HtmlTools.appendElTextNode(out,"span",text),[kb.name,this.name + ":",text].join("\n"));
}
,matchesFilter: function(kb) {
var tmp = this.field.access(kb);
@@ -6501,8 +6515,7 @@ table_tag_TagLikeColumnTools.buildSingleValue = function(self,out,item) {
var val = self.getValue(item);
if(val != null) {
self.tagToName(val);
- tools_HtmlTools.appendElTextNode(out,"span",self.getShortLabel(val));
- tools_HtmlTools.setTippyTitle(out,[table_tag_TagLikeColumnTools.getName(item),self.name + ":",self.getFilterLabel(val)].join("\n"));
+ tools_HtmlTools.setTippyTitle(tools_HtmlTools.appendElTextNode(out,"span",self.getShortLabel(val)),[table_tag_TagLikeColumnTools.getName(item),self.name + ":",self.getFilterLabel(val)].join("\n"));
} else {
tools_HtmlTools.appendElTextNode(out,"span",self.nullCaption);
}
diff --git a/docs/style.css b/docs/style.css
index c3248d9..d3e41a3 100644
--- a/docs/style.css
+++ b/docs/style.css
@@ -76,10 +76,16 @@ h2 {
.tag-options[column-count="3"] {
columns: 3;
}
+body.rowstag .if-colstag {
+ display: none;
+}
+body.forties .if-colstag {
+ display: none;
+}
body:not(.rowstag) .if-rowstag {
display: none;
}
-body.rowstag .if-colstag {
+body:not(.forties) .if-forties {
display: none;
}
input[invalid] {
diff --git a/src/Main.hx b/src/Main.hx
index 5caf1f8..7448c92 100644
--- a/src/Main.hx
+++ b/src/Main.hx
@@ -25,16 +25,21 @@ class Main {
var kbTable:KeyboardTable;
var row = document.body.classList.contains("rowstag");
- if (row) {
- kbTable = cast new RowStagTable();
+ var forties = document.body.classList.contains("forties");
+ if (row || forties) {
+ kbTable = cast new RowStagTable(forties);
} else kbTable = cast new ColStagTable();
KeyboardPage.main(kbTable);
ToDoList.element = document.querySelectorAuto("#todo");
- ToDoList.set(row
- ? (cast window).rowStagTODOs
- : (cast window).keyboardTODOs
- );
+ var dynWindow = cast window;
+ if (forties) {
+ ToDoList.set(dynWindow.fortiesTODOs);
+ } else if (row) {
+ ToDoList.set(dynWindow.rowStagTODOs);
+ } else {
+ ToDoList.set(dynWindow.keyboardTODOs);
+ }
}
}
\ No newline at end of file
diff --git a/src/RowStagTable.hx b/src/RowStagTable.hx
index cbb701e..bacf561 100644
--- a/src/RowStagTable.hx
+++ b/src/RowStagTable.hx
@@ -20,6 +20,11 @@ using tools.HtmlTools;
* @author YellowAfterlife
*/
class RowStagTable extends KeyboardTable {
+ public var isForties:Bool;
+ public function new(isForties) {
+ this.isForties = isForties;
+ super();
+ }
override public function collectFilters():DynamicAccess {
var result = super.collectFilters();
result["row"] = "";
@@ -237,7 +242,11 @@ class RowStagTable extends KeyboardTable {
addColumn(mw);
}
override public function initKeyboards() {
- var kbs:Array = (cast window).rowStagData;
+ var dynWindow = (cast window);
+ var kbs:Array;
+ if (isForties) {
+ kbs = dynWindow.fortiesData;
+ } else kbs = dynWindow.rowStagData;
for (kb in kbs) {
if (kb is String) {
document.querySelector("#version").innerText = cast kb;
diff --git a/src/styles/global.less b/src/styles/global.less
index 2e1c702..57a8fa2 100644
--- a/src/styles/global.less
+++ b/src/styles/global.less
@@ -87,11 +87,16 @@ h2 {
columns: 3;
}
+body.rowstag .if-colstag {
+ display: none;
+}
+body.forties .if-colstag {
+ display: none;
+}
body:not(.rowstag) .if-rowstag {
display: none;
}
-
-body.rowstag .if-colstag {
+body:not(.forties) .if-forties {
display: none;
}