Skip to content

Styles and classes #185

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 21, 2021
Merged
Show file tree
Hide file tree
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
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ importance: 5

---

# Create a notification
# নোটিফিকেশন তৈরি

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.
`showNotification(options)` নামের একটি ফাংশন লিখুন যা একটি নোটিফিকেশন দেখাবে: `<div class="notification">`। নোটিফিকেশনটি ১.৫ সেকেন্ড পর অদৃশ্য হবে।

The options are:
options হবে:

```js
// shows an element with the text "Hello" near the right-top of the window
// "Hello" টেক্সট সহকারে একটি এলিমেন্ট দেখাবে 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)
Expand All @@ -21,4 +21,4 @@ showNotification({
[demo src="solution"]


Use CSS positioning to show the element at given top/right coordinates. The source document has the necessary styles.
CSS পজিশনিং স্ট্যাইল ব্যবহার করুন top/right এর জন্য।
Loading