var vid = document.getElementById('dices__video');
document.getElementById('btn_1').addEventListener('click', () => {
vid.currentTime = 0;
vid.play();
});
document.getElementById('btn_2').addEventListener('click', () => {
vid.currentTime = 10;
vid.play();
});
document.getElementById('btn_3').addEventListener('click', () => {
vid.currentTime = 20;
vid.play();
});
function makeid()
{
var text = "";
var possible = "abcdefghijklmnopqrstuvwxyz";
for( var i=0; i < 5; i++ )
text += possible.charAt(Math.floor(Math.random() * possible.length));
return text;
}
div {
font-size: 14px;
line-height: 1.3; /* надо обязательно задать line-height, ибо по умолчанию он хз какой будет */
height: 19.5em; /* допустим нам надо 15 строк текста: 15 * 1.3 = 19.5 */
}
body {
display: flex;
flex-direction: column;
}
.header, .footer {
height: 50px;
background-color: #ccc;
text-align: center;
}
.header {
margin-bottom: 10px;
}
.footer {
margin-top: 10px;
}
.clm_main {
display: flex;
flex-direction: row;
}
.clm {
display: flex;
flex-direction: column;
justify-content: space-between;
flex-grow: 1;
}
.clm:first-child {
margin-right: 10px;
}
.block {
flex-grow: 1;
min-height: 50px;
background-color: #eee;
border: 1px solid black;
text-align: center;
}
.block:not(:last-child) {
margin-bottom: 10px;
}
doctype html
html
head
title Slim Examples
meta name="keywords" content="template language"
link rel="stylesheet" href="block.css"
body
.header
| header
.clm_main
.clm
.block
| Block 1
.block
| Block 4
.block
| Block 6
.clm
.block
| Block 2
.block
| Block 3
.block
| Block 5
.block
| Block 7
.footer
| footer