Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 32 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
<a class="nav-link" href="#">Home <span class="sr-only">(current)</span></a>
</li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle disabled" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
Dropdown
</a>
<div class="dropdown-menu" aria-labelledby="navbarDropdown">
Expand All @@ -58,6 +58,8 @@
</ul>
</div>
</nav>
<p>Ahoj aadriana</p>


<div class="squares">
<div class="square o"></div>
Expand All @@ -70,7 +72,35 @@
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js" integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-ho+j7jyWK8fNQe+A12Hb8AhRq26LrZ/JpcUGGOn+Y7RsweNrtN/tE3MoK7ZeZDyx" crossorigin="anonymous"></script>
<script>

const menu = document.querySelector('.dropdown-menu');
const values = ['#fe4503', '#abe493', '#7351eb'];
values.forEach(value => {
const a = document.createElement('a');
a.classList.add('dropdown-item');
a.innerText = value;
if (value === '#7351eb') {
const div = document.createElement('div');
div.classList.add('dropdown-divider');
menu.append(div);
}
menu.append(a);
});
console.log(`%c${new Date().toDateString()}`, 'color:#0000ff;font-weight:bold');
const sq = document.querySelector('.squares');
sq.firstElementChild.style.width = 121 % 122 + 'px';
sq.lastElementChild.style.width += parseInt(sq.firstElementChild.style.width.substr(0, 3)) + (3 % 2) + 'px';
const fi = (3 % 12).toString();
const thi = (12 % 15).toString();
const fii = document.createElement('span');
const thii = document.createElement('span');
fii.classList.add('text');
thii.classList.add('text');
fii.innerText = fi;
thii.innerText = thi;
sq.firstElementChild.append(fii);
sq.lastElementChild.append(thii);


</script>
</body>
</html>