mirror of
https://github.com/sehugg/8bitworkshop.git
synced 2025-02-16 17:30:27 +00:00
About menu; fixed regex for platform on import url
This commit is contained in:
parent
5510d5be89
commit
40f24233b1
11
index.html
11
index.html
@ -118,6 +118,17 @@ if (window.location.host.endsWith('8bitworkshop.com')) {
|
|||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
|
<hr>
|
||||||
|
<li class="dropdown dropdown-submenu">
|
||||||
|
<a tabindex="-1" href="#">About</a>
|
||||||
|
<ul class="dropdown-menu">
|
||||||
|
<li><a class="dropdown-item" target="_8bws_about" href="https://8bitworkshop.com/">8bitworkshop.com</a></li>
|
||||||
|
<li><a class="dropdown-item" target="_8bws_about" href="https://8bitworkshop.com/blog">Latest News</a></li>
|
||||||
|
<li><a class="dropdown-item" target="_8bws_about" href="https://8bitworkshop.com/projects">Projects</a></li>
|
||||||
|
<li><a class="dropdown-item" target="_8bws_about" href="https://twitter.com/8bitworkshop">Twitter</a></li>
|
||||||
|
<li><a class="dropdown-item" target="_8bws_about" href="https://github.com/sehugg/8bitworkshop">GitHub</a></li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
<!--
|
<!--
|
||||||
<hr><li><a class="dropdown-item" href="/redir.html">Use Latest Version</a></li>
|
<hr><li><a class="dropdown-item" href="/redir.html">Use Latest Version</a></li>
|
||||||
-->
|
-->
|
||||||
|
@ -197,7 +197,7 @@ export class GithubService {
|
|||||||
}
|
}
|
||||||
// check README for proper platform
|
// check README for proper platform
|
||||||
// unless we use githubURL=
|
// unless we use githubURL=
|
||||||
const re8plat = /8bitworkshop.com[^)]+platform=(\w+)/;
|
const re8plat = /8bitworkshop.com[^)]+platform=([A-Za-z0-9._\-]+)/;
|
||||||
m = re8plat.exec(readme);
|
m = re8plat.exec(readme);
|
||||||
if (m) {
|
if (m) {
|
||||||
console.log("platform id: '" + m[1] + "'");
|
console.log("platform id: '" + m[1] + "'");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user