Skip to content
Open

bb #4

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
27 changes: 27 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,33 @@
<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>
Expand Down