Skip to content

Commit

Permalink
3.21.1
Browse files Browse the repository at this point in the history
- Some improvements
  • Loading branch information
Sav22999 committed Apr 20, 2024
1 parent b90d36e commit 49b0874
Showing 1 changed file with 42 additions and 39 deletions.
81 changes: 42 additions & 39 deletions js/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,45 +149,6 @@ loadSettings(true, true);
generateTitles();

function loaded() {
console.log(all_emojis)
for (let emoji in all_emojis[2]) {
all_emojis[2][emoji].push(titles["😀"]);
}
for (let emoji in all_emojis[3]) {
all_emojis[3][emoji].push(titles["🙋"]);
}
console.log(all_emojis[3])
for (let emoji in all_emojis[4]) {
all_emojis[4][emoji].push(titles["🦊"]);
}
for (let emoji in all_emojis[5]) {
all_emojis[5][emoji].push(titles["🅰️"]);
}
for (let emoji in all_emojis[6]) {
all_emojis[6][emoji].push(titles["🍎"]);
}
for (let emoji in all_emojis[7]) {
all_emojis[7][emoji].push(titles["🏳️‍🌈"]);
}
for (let emoji in all_emojis[8]) {
all_emojis[8][emoji].push(titles["🏊"]);
}
for (let emoji in all_emojis[9]) {
all_emojis[9][emoji].push(titles["✈️"]);
}
for (let emoji in all_emojis[10]) {
all_emojis[10][emoji].push(titles["🖱️"]);
}
for (let emoji in all_emojis[11]) {
all_emojis[11][emoji].push(titles["👗"]);
}
for (let emoji in all_emojis[12]) {
all_emojis[12][emoji].push(titles["🖐️"]);
}
for (let emoji in all_emojis[13]) {
all_emojis[13][emoji].push(titles["🛎️"]);
}

searchBarInputElement.onkeyup = function (e) {
let emojisToGenerate = searchEmoji(searchBarInputElement.value);
//console.log(emojisToGenerate);
Expand Down Expand Up @@ -1980,6 +1941,48 @@ function setSkinToneEmojis() {
all_emojis[3] = JSON.parse(string[3]);
all_emojis[8] = JSON.parse(string[8]);
all_emojis[12] = JSON.parse(string[12]);

addDescriptionTitleToButtons();
}

function addDescriptionTitleToButtons() {
for (let emoji in all_emojis[2]) {
all_emojis[2][emoji].push(titles["😀"]);
}
for (let emoji in all_emojis[3]) {
all_emojis[3][emoji].push(titles["🙋"]);
}
for (let emoji in all_emojis[4]) {
all_emojis[4][emoji].push(titles["🦊"]);
}
for (let emoji in all_emojis[5]) {
all_emojis[5][emoji].push(titles["🅰️"]);
}
for (let emoji in all_emojis[6]) {
all_emojis[6][emoji].push(titles["🍎"]);
}
for (let emoji in all_emojis[7]) {
all_emojis[7][emoji].push(titles["🏳️‍🌈"]);
}
for (let emoji in all_emojis[8]) {

all_emojis[8][emoji].push(titles["🏊"]);
}
for (let emoji in all_emojis[9]) {
all_emojis[9][emoji].push(titles["✈️"]);
}
for (let emoji in all_emojis[10]) {
all_emojis[10][emoji].push(titles["🖱️"]);
}
for (let emoji in all_emojis[11]) {
all_emojis[11][emoji].push(titles["👗"]);
}
for (let emoji in all_emojis[12]) {
all_emojis[12][emoji].push(titles["🖐️"]);
}
for (let emoji in all_emojis[13]) {
all_emojis[13][emoji].push(titles["🛎️"]);
}
}

function editMode() {
Expand Down

0 comments on commit 49b0874

Please sign in to comment.