changes (a lot)
This commit is contained in:
parent
8cedefb765
commit
e40bdc2a39
@ -190,7 +190,7 @@
|
|||||||
<span class="convo-date">2022/05/04</span>
|
<span class="convo-date">2022/05/04</span>
|
||||||
</div>
|
</div>
|
||||||
<p>
|
<p>
|
||||||
ee ee n_n
|
ee ee n_n ariri
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -2,7 +2,7 @@ LU'NYA
|
|||||||
i lunya.jpeg
|
i lunya.jpeg
|
||||||
d 2022/05/04
|
d 2022/05/04
|
||||||
nyan'pash! balfur yu e she polika'nya dre?
|
nyan'pash! balfur yu e she polika'nya dre?
|
||||||
|
|
||||||
ESH'NYUI
|
ESH'NYUI
|
||||||
i eshnyui.png
|
i eshnyui.png
|
||||||
re chu meshu yu polika'nya
|
re chu meshu yu polika'nya
|
||||||
|
23
input_test.txt
Normal file
23
input_test.txt
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
ITS ME PEKORA
|
||||||
|
d deez
|
||||||
|
r hiiiii!!!!
|
||||||
|
! uwu
|
||||||
|
|
||||||
|
HOLY SHIT REMI
|
||||||
|
d a
|
||||||
|
amogus
|
||||||
|
|
||||||
|
|
||||||
|
it's meee pekora!!!!
|
||||||
|
i eshnyui.png
|
||||||
|
d yolo
|
||||||
|
so cool
|
||||||
|
so cool
|
||||||
|
so cool
|
||||||
|
|
||||||
|
how this work owo
|
||||||
|
|
||||||
|
|
||||||
|
so cool
|
||||||
|
so uwu
|
||||||
|
very good
|
37
main.js
37
main.js
@ -7,13 +7,15 @@ let words = {}
|
|||||||
|
|
||||||
let currentFont = "r";
|
let currentFont = "r";
|
||||||
|
|
||||||
|
let timeout = "";
|
||||||
|
|
||||||
function init() {
|
function init() {
|
||||||
// createWordList();
|
// createWordList();
|
||||||
// injectWords();
|
// injectWords();
|
||||||
// document.querySelector("#popup-container").addEventListener("click", () => {
|
// document.querySelector("#popup-container").addEventListener("click", () => {
|
||||||
// document.querySelector("#popup-container").style.opacity = 0;
|
// document.querySelector("#popup-container").style.opacity = 0;
|
||||||
// document.querySelector("#popup-container").style.pointerEvents = "none";
|
// document.querySelector("#popup-container").style.pointerEvents = "none";
|
||||||
// })
|
// });
|
||||||
// above are commented out until wordlist is added~
|
// above are commented out until wordlist is added~
|
||||||
document.querySelector("#font-button").addEventListener("click", () => {fontButton();});
|
document.querySelector("#font-button").addEventListener("click", () => {fontButton();});
|
||||||
}
|
}
|
||||||
@ -29,6 +31,31 @@ function showPopup(word) {
|
|||||||
c.style.pointerEvents = "all";
|
c.style.pointerEvents = "all";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function showSmolPopup(word) {
|
||||||
|
let p = document.querySelector("#smol-popup");
|
||||||
|
p.querySelector("h1").innerText = word;
|
||||||
|
p.querySelector("#smol-heo").innerText = words[word]["heonian"];
|
||||||
|
p.querySelector("#smol-type").innerText = words[word]["type"];
|
||||||
|
p.querySelector("#smol-meaning").innerText = words[word]["meaning"];
|
||||||
|
p.style.opacity = 1;
|
||||||
|
p.style.pointerEvents = "all";
|
||||||
|
}
|
||||||
|
|
||||||
|
function checkHover(word) {
|
||||||
|
if (timeout != "") {
|
||||||
|
clearTimeout(timeout);
|
||||||
|
}
|
||||||
|
timeout = setTimeout(() => {
|
||||||
|
showSmolPopup(word);
|
||||||
|
}, 450);
|
||||||
|
}
|
||||||
|
|
||||||
|
function clearHover() {
|
||||||
|
if (timeout != "") {
|
||||||
|
clearTimeout(timeout);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
function createWordList() { //sometimes i really dislike javascript..
|
function createWordList() { //sometimes i really dislike javascript..
|
||||||
let t = document.querySelector("tbody");
|
let t = document.querySelector("tbody");
|
||||||
t.querySelectorAll("tr").forEach(element => {
|
t.querySelectorAll("tr").forEach(element => {
|
||||||
@ -66,6 +93,14 @@ function injectWords() {
|
|||||||
element.addEventListener('click', function(e) {
|
element.addEventListener('click', function(e) {
|
||||||
showPopup(element.innerText);
|
showPopup(element.innerText);
|
||||||
}, false);
|
}, false);
|
||||||
|
element.addEventListener('mouseover', function(e) {
|
||||||
|
checkHover(element.innerText);
|
||||||
|
}
|
||||||
|
, false);
|
||||||
|
element.addEventListener('mouseout', function(e) {
|
||||||
|
clearHover();
|
||||||
|
}
|
||||||
|
, false);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -58,12 +58,6 @@ nyan'pash! balfur yu e she polika'nya dre?
|
|||||||
<p class="convo-heonian">
|
<p class="convo-heonian">
|
||||||
! ?
|
! ?
|
||||||
</p>
|
</p>
|
||||||
<p class="convo-roman">
|
|
||||||
|
|
||||||
</p>
|
|
||||||
<p class="convo-heonian">
|
|
||||||
|
|
||||||
</p>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="convo-container right">
|
<div class="convo-container right">
|
||||||
|
@ -9,8 +9,8 @@
|
|||||||
--notes-color: rgb(255, 235, 181);
|
--notes-color: rgb(255, 235, 181);
|
||||||
--spacer-color: rgba(0, 0, 0, 0.4);
|
--spacer-color: rgba(0, 0, 0, 0.4);
|
||||||
--spacer-color-2: rgba(0, 0, 0, 0.2);
|
--spacer-color-2: rgba(0, 0, 0, 0.2);
|
||||||
--left-color: #a7b3a7;
|
--left-color: rgb(230, 229, 235);
|
||||||
--right-color: #61ce61;
|
--right-color: rgb(75, 187, 251);
|
||||||
--font-normal: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
|
--font-normal: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
|
||||||
--font-heonian: "heonian", -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
|
--font-heonian: "heonian", -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
|
||||||
}
|
}
|
||||||
@ -43,7 +43,7 @@ main {
|
|||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
margin: 8px;
|
margin: 16px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.right {
|
.right {
|
||||||
@ -52,13 +52,19 @@ main {
|
|||||||
|
|
||||||
.convo {
|
.convo {
|
||||||
width: 400px;
|
width: 400px;
|
||||||
border: 1px solid var(--left-color);
|
border-radius: 16px;
|
||||||
border-radius: 8px;
|
|
||||||
padding: 8px;
|
padding: 8px;
|
||||||
|
padding-top: 0px;
|
||||||
|
padding-bottom: 10px;
|
||||||
|
/* padding bottom isnt actually required, but due to how
|
||||||
|
browsers render fonts, it makes things look better... */
|
||||||
|
background-color: var(--left-color);
|
||||||
|
box-shadow: 0px 0px 6px var(--spacer-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
.right .convo {
|
.right .convo {
|
||||||
border: 1px solid var(--right-color);
|
background-color: var(--right-color);
|
||||||
|
color: white;
|
||||||
}
|
}
|
||||||
|
|
||||||
.convo p {
|
.convo p {
|
||||||
@ -66,9 +72,9 @@ main {
|
|||||||
margin-top: 8px;
|
margin-top: 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.convo *:first-child {
|
.convo p:first-child {
|
||||||
margin-top: 0;
|
margin-top: 8px;
|
||||||
/* edge case for when a p is alone in a .convo */
|
/* wow! */
|
||||||
}
|
}
|
||||||
|
|
||||||
.convo-header {
|
.convo-header {
|
||||||
@ -82,6 +88,8 @@ main {
|
|||||||
border-radius: 42069px;
|
border-radius: 42069px;
|
||||||
width: 48px;
|
width: 48px;
|
||||||
margin-right: 8px;
|
margin-right: 8px;
|
||||||
|
margin-left: -8px;
|
||||||
|
border-radius: 16px 0px 16px 0px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.convo-date {
|
.convo-date {
|
||||||
|
Loading…
Reference in New Issue
Block a user