concord images adding
BIN
public_html/assets/concord_images/carrey.jpg
Normal file
After Width: | Height: | Size: 99 KiB |
BIN
public_html/assets/concord_images/elon.jpg
Normal file
After Width: | Height: | Size: 82 KiB |
BIN
public_html/assets/concord_images/esquirol.jpg
Normal file
After Width: | Height: | Size: 6.1 KiB |
BIN
public_html/assets/concord_images/gournay.jpg
Normal file
After Width: | Height: | Size: 3.9 KiB |
BIN
public_html/assets/concord_images/jyf.jpg
Normal file
After Width: | Height: | Size: 3.3 KiB |
BIN
public_html/assets/concord_images/lepen.jpg
Normal file
After Width: | Height: | Size: 4.1 MiB |
BIN
public_html/assets/concord_images/macron.jpg
Normal file
After Width: | Height: | Size: 192 KiB |
BIN
public_html/assets/concord_images/melanchon.jpg
Normal file
After Width: | Height: | Size: 68 KiB |
BIN
public_html/assets/concord_images/melanchon.png
Normal file
After Width: | Height: | Size: 370 KiB |
BIN
public_html/assets/concord_images/nicomette.jpg
Normal file
After Width: | Height: | Size: 9.5 KiB |
BIN
public_html/assets/concord_images/patrickseb.jpg
Normal file
After Width: | Height: | Size: 87 KiB |
BIN
public_html/assets/concord_images/poutine.jpg
Normal file
After Width: | Height: | Size: 12 KiB |
BIN
public_html/assets/concord_images/raquet.jpg
Normal file
After Width: | Height: | Size: 41 KiB |
BIN
public_html/assets/concord_images/rebillard.jpg
Normal file
After Width: | Height: | Size: 605 KiB |
BIN
public_html/assets/concord_images/trump.jpg
Normal file
After Width: | Height: | Size: 17 KiB |
BIN
public_html/assets/concord_images/vieu.jpg
Normal file
After Width: | Height: | Size: 790 KiB |
BIN
public_html/assets/concord_images/zemmour.jpg
Normal file
After Width: | Height: | Size: 115 KiB |
|
@ -105,4 +105,8 @@ html, body{
|
||||||
.messageContent{
|
.messageContent{
|
||||||
margin: 0px;
|
margin: 0px;
|
||||||
font-size: 60%;
|
font-size: 60%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.messageImage{
|
||||||
|
width: 100%;
|
||||||
}
|
}
|
|
@ -14,9 +14,17 @@ class Phone{
|
||||||
h2.className = "messageTitle";
|
h2.className = "messageTitle";
|
||||||
h2.innerText = message.title;
|
h2.innerText = message.title;
|
||||||
|
|
||||||
let p = document.createElement("p");
|
let p;
|
||||||
p.className = "messageContent";
|
let match = message.content.match(/:(\w+):/);
|
||||||
p.innerText = message.content;
|
if(match){
|
||||||
|
p = document.createElement("img");
|
||||||
|
p.className = "messageImage";
|
||||||
|
p.src = "assets/concord_images/" + match[1] + '.jpg';
|
||||||
|
}else{
|
||||||
|
p = document.createElement("p");
|
||||||
|
p.className = "messageContent";
|
||||||
|
p.innerText = message.content;
|
||||||
|
}
|
||||||
|
|
||||||
msg.appendChild(h2);
|
msg.appendChild(h2);
|
||||||
msg.appendChild(p);
|
msg.appendChild(p);
|
||||||
|
@ -46,12 +54,15 @@ class Phone{
|
||||||
}
|
}
|
||||||
|
|
||||||
changePosition(){
|
changePosition(){
|
||||||
if(this.position == 0){
|
if(!document.getElementById("phoneContainer").contains(document.activeElement)){
|
||||||
document.getElementById("phoneContainer").className = "visible";
|
if(this.position == 0){
|
||||||
this.position = 1;
|
document.getElementById("phoneContainer").className = "visible";
|
||||||
}else{
|
this.position = 1;
|
||||||
document.getElementById("phoneContainer").className = "hidden";
|
}else{
|
||||||
this.position = 0;
|
document.getElementById("phoneContainer").className = "hidden";
|
||||||
|
this.position = 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|