اÛÙ Ù
ØØªÙا تÙÙØ§ در اÛ٠زباÙâÙØ§ Ù
ÙØ¬Ùد است: ÄeÅ¡tina, Dansk, English, Español, Italiano, æ¥æ¬èª, íêµì´, Ð ÑÑÑкий, УкÑаÑнÑÑка, OÊ»zbek, ç®ä½ä¸æ. ÙØ·Ùا٠ب٠Ù
ا
Create a notification
اÙÙ
ÛØª: 5
Write a function showNotification(options) that creates a notification: <div class="notification"> with the given content. The notification should automatically disappear after 1.5 seconds.
The options are:
// shows an element with the text "Hello" near the right-top of the window
showNotification({
top: 10, // 10px from the top of the window (by default 0px)
right: 10, // 10px from the right edge of the window (by default 0px)
html: "Hello!", // the HTML of notification
className: "welcome" // an additional class for the div (optional)
});
د٠٠درÙÙ ÛÚ© Ù¾ÙØ¬Ø±Ù Ø¬Ø¯ÛØ¯
Use CSS positioning to show the element at given top/right coordinates. The source document has the necessary styles.