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 |
|
@ -106,3 +106,7 @@ html, body{
|
|||
margin: 0px;
|
||||
font-size: 60%;
|
||||
}
|
||||
|
||||
.messageImage{
|
||||
width: 100%;
|
||||
}
|
|
@ -14,9 +14,17 @@ class Phone{
|
|||
h2.className = "messageTitle";
|
||||
h2.innerText = message.title;
|
||||
|
||||
let p = document.createElement("p");
|
||||
let p;
|
||||
let match = message.content.match(/:(\w+):/);
|
||||
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(p);
|
||||
|
@ -46,6 +54,7 @@ class Phone{
|
|||
}
|
||||
|
||||
changePosition(){
|
||||
if(!document.getElementById("phoneContainer").contains(document.activeElement)){
|
||||
if(this.position == 0){
|
||||
document.getElementById("phoneContainer").className = "visible";
|
||||
this.position = 1;
|
||||
|
@ -54,4 +63,6 @@ class Phone{
|
|||
this.position = 0;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|