update @ Wed 28 Jul 10:40:35 EEST 2021

This commit is contained in:
Ari Archer 2021-07-28 10:40:35 +03:00
parent 5d59adaeed
commit eb833890a2
5 changed files with 31 additions and 2 deletions

View file

@ -25,6 +25,12 @@
min-width: 100px;
max-width: 100%;
}
.box .imageArea * {
display: block;
margin: 0.2em;
padding-left: 2.5em;
width: 40%;
}
.box h1 {
width: 94%;
font-size: 1.75em;

View file

@ -45,6 +45,13 @@ $lyellow: #e9b648;
max-width: 100%;
}
.imageArea * {
display: block;
margin: 0.2em;
padding-left: 2.5em;
width: 40%;
}
h1 {
width: 94%;
font-size: 1.75em;

View file

@ -0,0 +1,14 @@
"use strict";
var random_person_instagram = document.getElementById("random_person_instagram");
function create_img_elements(html_element, count, dir) {
for (var i = 1; i < count + 1; ++i) {
var img = document.createElement("img");
img.setAttribute("src", "".concat(dir, "/").concat(i, ".jpg"));
img.setAttribute("width", "200px");
html_element.appendChild(img);
}
}
create_img_elements(random_person_instagram, 11, '/page/random/page/tbh_idc/img/random_person_on_instagram');

View file

@ -50,7 +50,9 @@
<div class="content">
<h1 id="instagram_random_person">#1 Some random person on instagram</h1>
<p id="random_person_instagram"></p>
<p>
<div class="imageArea" id="random_person_instagram"></div>
</p>
</div>
</div>
</div>

View file

@ -4,7 +4,7 @@ function create_img_elements(html_element, count, dir) {
for (let i = 1; i < count + 1; ++i) {
let img = document.createElement("img");
img.setAttribute("src", `${dir}/${i}.jpg`);
img.setAttribute("width", "100px")
img.setAttribute("width", "200px")
html_element.appendChild(img);
}
}