JAVASCRIPT Tutorial
screen
objectscreen
:const screen = window.screen;
const resolution = `${screen.width}x${screen.height}`;
const colorDepth = screen.colorDepth; // عمق اللون
const pixelDepth = screen.pixelDepth; // عمق البكسل
const aspectRatio = screen.aspectRatio; // نسبة العرض إلى الارتفاع
const touchEnabled = screen.touchEnabled; // هل يدعم لمس الشاشة
const orientation = screen.orientation; // اتجاه الشاشة
document.addEventListener('touchstart', (event) => {
// تعامل مع مدخلات اللمس هنا
});
screen
objectconst screen = window.screen;
const output = `
دقة الشاشة: ${screen.width}x${screen.height}
عمق اللون: ${screen.colorDepth}
يدعم لمس الشاشة: ${screen.touchEnabled}
`;
console.log(output);