Add other links (to be reviewed)

This commit is contained in:
Carlo Piovesan 2022-10-03 17:21:09 +02:00
parent 4817e88f7a
commit c4195a31cb

View file

@ -141,8 +141,8 @@
</a> </a>
</li> </li>
<li style=" margin-right: 50px; height: 100%; display: flex; align-items: center;"> <li style=" margin-right: 50px; height: 100%; display: flex; align-items: center;">
<a href="https://medium.com/p/40a60170b361" target="_blank"> <a href="https://discord.leaningtech.com" target="_blank">
<div style="color: white; font-family: montserrat; font-weight: 700; font-size: large;">About</div> <div style="color: white; font-family: montserrat; font-weight: 700; font-size: large;">Discord</div>
</a> </a>
</li> </li>
<li style=" margin-right: 50px; height: 100%; display: flex; align-items: center;"> <li style=" margin-right: 50px; height: 100%; display: flex; align-items: center;">
@ -198,9 +198,8 @@
" ", " ",
" Latest article: " + underline + "https://medium.com/p/40a60170b361" + normal + " ", " Latest article: " + underline + "https://medium.com/p/40a60170b361" + normal + " ",
" Repository: " + underline + "https://github.com/leaningtech/webvm" + normal + " ", " Repository: " + underline + "https://github.com/leaningtech/webvm" + normal + " ",
" Discord: " + underline + "https://medium.com/p/40a60170b361" + normal + " ", " Discord: " + underline + "https://discord.leaningtech.com" + normal + " ",
" Twitter: " + underline + "https://medium.com/p/40a60170b361" + normal + " ", " Twitter: " + underline + "https://twitter.com/leaningtech" + normal + " ",
" About us: " + underline + "https://medium.com/p/40a60170b361" + normal + " ",
"", "",
"", "",
" Welcome to WebVM (build CX_VERSION). If unsure, try these examples:", " Welcome to WebVM (build CX_VERSION). If unsure, try these examples:",
@ -357,6 +356,12 @@
term.registerLinkMatcher(/https:\/\/medium\.com\/p\/40a60170b361/, function(mouseEvent, matchedString) { term.registerLinkMatcher(/https:\/\/medium\.com\/p\/40a60170b361/, function(mouseEvent, matchedString) {
window.open(matchedString, "_blank") window.open(matchedString, "_blank")
}); });
term.registerLinkMatcher(/https:\/\/github.com\/leaningtech\/webvm/, function(mouseEvent, matchedString) {
window.open(matchedString, "_blank")
});
term.registerLinkMatcher(/https:\/\/discord.leaningtech.com/, function(mouseEvent, matchedString) {
window.open(matchedString, "_blank")
});
console.log("Welcome. We appreciate curiosity, but be warned that keeping the DevTools open causes significant performance degradation and crashes."); console.log("Welcome. We appreciate curiosity, but be warned that keeping the DevTools open causes significant performance degradation and crashes.");
} }
initialMessage(); initialMessage();