aboutsummaryrefslogtreecommitdiff
path: root/phttps___opencores.org_projects.json
diff options
context:
space:
mode:
authorWojtek Kosior <koszko@koszko.org>2021-07-30 18:17:54 +0200
committerWojtek Kosior <koszko@koszko.org>2021-07-30 18:17:54 +0200
commitb87b7351866e52f2b740162e6a3422d32e0dd380 (patch)
tree0404cc1854453ac000c56d2fe1c658ad0b4ed997 /phttps___opencores.org_projects.json
downloadhachette_fixes_tmp-b87b7351866e52f2b740162e6a3422d32e0dd380.tar.gz
hachette_fixes_tmp-b87b7351866e52f2b740162e6a3422d32e0dd380.zip
gather initial fixes
Diffstat (limited to 'phttps___opencores.org_projects.json')
-rw-r--r--phttps___opencores.org_projects.json1
1 files changed, 1 insertions, 0 deletions
diff --git a/phttps___opencores.org_projects.json b/phttps___opencores.org_projects.json
new file mode 100644
index 0000000..3168a6d
--- /dev/null
+++ b/phttps___opencores.org_projects.json
@@ -0,0 +1 @@
+[{"sopencores":{"url":"","hash":"","text":"/**\n * Copyright 2021 Wojtek Kosior\n *\n * Available under the terms of Creative Commons Zero.\n */\n\nlet data = JSON.parse(document.getElementById(\"__NEXT_DATA__\").textContent);\nlet sections = {};\nfor (let h1 of document.getElementsByClassName(\"cMJCrc\")) {\n let ul = document.createElement(\"ul\");\n if (h1.nextElementSibling !== null)\n\th1.parentNode.insertBefore(ul, h1.nextElementSibling);\n else\n\th1.parentNode.appendChild(ul);\n\n sections[h1.children[1].firstChild.textContent] = ul;\n}\n\nfor (let prop of data.props.pageProps.list) {\n let ul = sections[prop.category];\n if (ul === undefined) {\n\tconsole.log(`unknown category \"${prop.category}\" for project \"${prop.title}\"`);\n\tcontinue;\n }\n\n let li = document.createElement(\"li\");\n let a = document.createElement(\"a\");\n a.setAttribute(\"href\", \"/projects/\" + prop.slug);\n a.textContent = prop.title;\n\n li.appendChild(a);\n ul.appendChild(li);\n}\n"}},{"phttps://opencores.org/projects":{"components":["s","opencores"]}}] \ No newline at end of file