various fixes
This commit is contained in:
parent
cc34929bdb
commit
ae43fd497a
3 changed files with 20 additions and 12 deletions
|
@ -79,5 +79,3 @@ class voice{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
const audio=new voice("triangle",101);
|
|
||||||
//audio.play();
|
|
||||||
|
|
|
@ -140,13 +140,15 @@ class embed{
|
||||||
{
|
{
|
||||||
const td=document.createElement("td");
|
const td=document.createElement("td");
|
||||||
const img=document.createElement("img");
|
const img=document.createElement("img");
|
||||||
img.classList.add("embedimg");
|
if(this.json.thumbnail){
|
||||||
img.onclick=function(){
|
img.classList.add("embedimg");
|
||||||
const full=new fullscreen(["img",img.src,["fit"]]);
|
img.onclick=function(){
|
||||||
full.show();
|
const full=new fullscreen(["img",img.src,["fit"]]);
|
||||||
|
full.show();
|
||||||
|
}
|
||||||
|
img.src=this.json.thumbnail.proxy_url;
|
||||||
|
td.append(img);
|
||||||
}
|
}
|
||||||
img.src=this.json.thumbnail.proxy_url;
|
|
||||||
td.append(img);
|
|
||||||
trtop.append(td);
|
trtop.append(td);
|
||||||
}
|
}
|
||||||
const bottomtr=document.createElement("tr");
|
const bottomtr=document.createElement("tr");
|
||||||
|
@ -165,10 +167,12 @@ class embed{
|
||||||
|
|
||||||
const div=document.createElement("div");
|
const div=document.createElement("div");
|
||||||
div.classList.add("embed");
|
div.classList.add("embed");
|
||||||
const providor=document.createElement("p");
|
if(this.json.provider){
|
||||||
providor.classList.add("provider");
|
const providor=document.createElement("p");
|
||||||
providor.textContent=this.json.provider.name;
|
providor.classList.add("provider");
|
||||||
div.append(providor);
|
providor.textContent=this.json.provider.name;
|
||||||
|
div.append(providor);
|
||||||
|
}
|
||||||
const a=document.createElement("a");
|
const a=document.createElement("a");
|
||||||
a.href=this.json.url;
|
a.href=this.json.url;
|
||||||
a.textContent=this.json.title;
|
a.textContent=this.json.title;
|
||||||
|
|
|
@ -62,6 +62,9 @@ pre {
|
||||||
background-color: var(--code-bg);
|
background-color: var(--code-bg);
|
||||||
width: 100%;
|
width: 100%;
|
||||||
overflow-wrap: break-word;
|
overflow-wrap: break-word;
|
||||||
|
word-wrap: break-word;
|
||||||
|
word-break: break-word;
|
||||||
|
white-space: pre-wrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
samp {
|
samp {
|
||||||
|
@ -291,6 +294,7 @@ div {
|
||||||
width: 99%;
|
width: 99%;
|
||||||
height: .5in;
|
height: .5in;
|
||||||
z-index: -100;
|
z-index: -100;
|
||||||
|
max-width: 99%;
|
||||||
}
|
}
|
||||||
|
|
||||||
p {
|
p {
|
||||||
|
@ -432,6 +436,7 @@ p {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
grid-template-rows: auto 1fr;
|
grid-template-rows: auto 1fr;
|
||||||
height: calc(100dvh - .1in - var(--servertd-height));
|
height: calc(100dvh - .1in - var(--servertd-height));
|
||||||
|
max-width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.timestamp {
|
.timestamp {
|
||||||
|
@ -605,6 +610,7 @@ textarea {
|
||||||
|
|
||||||
.servernamediv {
|
.servernamediv {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
max-width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
button {
|
button {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue