feat: added comments and modified agenda

This commit is contained in:
Philippe Torrel
2026-07-20 08:56:14 +02:00
parent a0e84288a5
commit d0d53a1b3d
4 changed files with 82 additions and 3 deletions

View File

@@ -30,7 +30,10 @@
const box = document.querySelector('.box');
// reines JS (wenn Performance keine Rolle spielt)
console.log(getComputedStyle(box).width);
console.log(window.getComputedStyle(document.querySelector('h1'))); // => CSSStyleDeclaration Objekt
console.log(window.getComputedStyle(box).width);
console.log(getComputedStyle(box).height);
console.log(getComputedStyle(box).top);

View File

@@ -4,7 +4,11 @@
// === DOM & VARS =======
const module = document.querySelector('.product-manager') || console.error('Product Manager not found');
if (!module) return;
const DOM = {
module,
table: module.querySelector('.table-products'),
tBody: module.querySelector('tbody'),
inputName: module.querySelector('.input-product-name'),

View File

@@ -1,3 +1,4 @@
// Konfigurationsvariable
const PRODUCTS = [
{ name: '3Doodler 3D Printing Pen', price: 29.99 },
{ name: 'Powerstation 5- E. Maximus Chargus', price: 44.95 },