Add files via upload

This commit is contained in:
Wiwi Kuan
2021-06-21 01:04:35 +08:00
committed by GitHub
parent 4444adc2c5
commit b96fd62eef
2 changed files with 3 additions and 3 deletions

View File

@@ -321,7 +321,7 @@ let around = ['戀愛中的ooo',
'來一個ooo',
'我把ooo弄丟了',
'ooo好神奇',
'你才ooo你全家都xxx',
'你才ooo你全家都ooo',
'失眠的ooo',
'明天的ooo',
'愛的ooo',

View File

@@ -131,8 +131,8 @@ function randomTempo() {
function randomTitle() {
let result = around[Math.floor(Math.random() * around.length)];
result = result.replace("ooo", noun[Math.floor(Math.random() * noun.length)]);
result = result.replace("xxx", noun[Math.floor(Math.random() * noun.length)]);
result = result.replace(/ooo/g, noun[Math.floor(Math.random() * noun.length)]);
result = result.replace(/xxx/g, noun[Math.floor(Math.random() * noun.length)]);
document.getElementById("titleResult").innerHTML = "🤔 " + result;
}