Created
October 7, 2022 18:45
-
-
Save tripplyons/9d878fcf549fe576fd1710394f09a86f to your computer and use it in GitHub Desktop.
Letter Pairs
This file contains 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
<script> | |
list = ["BC", "BD", "BE", "BF", "BG", "BQ", "BI", "BK", "BL", "BO", "BP", "BR", "BS", "BT", "BU", "BV", "BN", "BA", "CB", "CD", "CE", "CG", "CQ", "CJ", "CK", "CL", "CM", "CO", "CP", "CR", "CS", "CT", "CU", "CV", "CN", "CA", "DB", "DC", "DF", "DG", "DQ", "DI", "DJ", "DK", "DL", "DM", "DO", "DP", "DS", "DT", "DU", "DV", "DN", "DA", "EB", "EC", "EF", "EG", "EQ", "EI", "EJ", "EK", "EL", "EM", "EO", "EP", "ES", "ET", "EU", "EV", "EN", "EA", "FB", "FD", "FE", "FG", "FQ", "FJ", "FK", "FL", "FM", "FO", "FP", "FR", "FS", "FT", "FU", "FV", "FN", "FA", "GB", "GC", "GD", "GE", "GF", "GQ", "GI", "GJ", "GK", "GM", "GO", "GP", "GR", "GS", "GT", "GU", "GN", "GA", "QB", "QC", "QD", "QE", "QF", "QG", "QI", "QJ", "QK", "QL", "QM", "QO", "QP", "QR", "QT", "QV", "QN", "QA", "IB", "ID", "IE", "IG", "IQ", "IJ", "IK", "IL", "IM", "IO", "IP", "IR", "IS", "IT", "IU", "IV", "IN", "IA", "JC", "JD", "JE", "JF", "JG", "JQ", "JI", "JK", "JL", "JO", "JP", "JR", "JS", "JT", "JU", "JV", "JN", "JA", "KB", "KC", "KD", "KE", "KF", "KG", "KQ", "KI", "KJ", "KL", "KM", "KO", "KR", "KS", "KT", "KU", "KV", "KA", "LB", "LC", "LD", "LE", "LF", "LQ", "LI", "LJ", "LK", "LM", "LO", "LP", "LR", "LS", "LT", "LU", "LN", "LA", "MC", "MD", "ME", "MF", "MG", "MQ", "MI", "MK", "ML", "MO", "MP", "MR", "MS", "MT", "MU", "MV", "MN", "MA", "OB", "OC", "OD", "OE", "OF", "OG", "OQ", "OI", "OJ", "OK", "OL", "OM", "OP", "OR", "OS", "OU", "OV", "ON", "PB", "PC", "PD", "PE", "PF", "PG", "PQ", "PI", "PJ", "PL", "PM", "PO", "PR", "PS", "PT", "PU", "PV", "PA", "RB", "RC", "RF", "RG", "RQ", "RI", "RJ", "RK", "RL", "RM", "RO", "RP", "RS", "RT", "RU", "RV", "RN", "RA", "SB", "SC", "SD", "SE", "SF", "SG", "SI", "SJ", "SK", "SL", "SM", "SO", "SP", "SR", "ST", "SV", "SN", "SA", "TB", "TC", "TD", "TE", "TF", "TG", "TQ", "TI", "TJ", "TK", "TL", "TM", "TP", "TR", "TS", "TU", "TV", "TN", "UB", "UC", "UD", "UE", "UF", "UG", "UI", "UJ", "UK", "UL", "UM", "UO", "UP", "UR", "UT", "UV", "UN", "UA", "VB", "VC", "VD", "VE", "VF", "VQ", "VI", "VJ", "VK", "VM", "VO", "VP", "VR", "VS", "VT", "VU", "VN", "VA", "NB", "NC", "ND", "NE", "NF", "NG", "NQ", "NI", "NJ", "NL", "NM", "NO", "NR", "NS", "NT", "NU", "NV", "NA", "AB", "AC", "AD", "AE", "AF", "AG", "AQ", "AI", "AJ", "AK", "AL", "AM", "AP", "AR", "AS", "AU", "AV", "AN"] | |
/* | |
function convertChar(c) { | |
if (c == 'U') { | |
return 'Q'; | |
} | |
if (c == 'Q') { | |
return 'H'; | |
} | |
return c; | |
} | |
list = list.map(x => x.split('').map(convertChar).join('')) */ | |
function getItem() { | |
return list[Math.floor(Math.random() * list.length)] | |
} | |
function handler(e) { | |
document.body.innerText = getItem() | |
e && e.preventDefault() | |
} | |
document.body.onclick = handler; | |
document.body.ontouchstart = handler; | |
window.onload = handler | |
</script> | |
<style> | |
html, body { | |
width: 100vw; | |
height: 100vh; | |
font-family: sans-serif; | |
font-size: 48px; | |
padding: 0; | |
margin: 0; | |
display: flex; | |
justify-content: center; | |
align-items: center; | |
} | |
</style> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment