This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function messageIdToRoomId (mid) { | |
return fetch(`http://crossorigin.me/http://chat.stackoverflow.com/messages/${mid}/history`).then(function (res) { | |
return res.text(); | |
}).then(function (html) { | |
return new DOMParser().parseFromString(html, 'text/html'); | |
}).then(function (doc) { | |
return doc.querySelector(`a[name="${mid}"]`).getAttribute('href').match(/\d+/)[0]; | |
}); | |
} | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"use strict"; | |
const words = require("./words.json"); | |
const faces = [":grin:", ":smile:", ":grinning:", ":slight_smile:", ":neutral_face:", ":slight_frown:", ":worried:", ":persevere:", ":tired_face:", ":dizzy_face:", ":skull:"]; | |
module.exports = class Hangman | |
{ | |
constructor() | |
{ | |
this.guesses = new Set(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<button class="cybr-btn"> | |
Cyber<span aria-hidden>_</span> | |
<span aria-hidden class="cybr-btn__glitch">Cyber_</span> | |
<span aria-hidden class="cybr-btn__tag">R25</span> | |
</button> | |
<button class="cybr-btn"> | |
Buttons<span aria-hidden>_</span> | |
<span aria-hidden class="cybr-btn__glitch">Buttons_</span> | |
<span aria-hidden class="cybr-btn__tag">R25</span> | |
</button> |
OlderNewer