algolia search

Tìm thấy x bài viết trong xms.

Tạo thông báo Notification cho website cực ngầu bằng thư viện jQuery


Hôm nay mình viết bài tạo thông báo Notification cho website cực ngầu 😁, cực chất 😋, cực trất'ss 😘 bằng thư viện jQuery cực chất cho anh em xài nhé.

Toàn bộ các thư viện này xài rất đơn giản, cấu hình 30s là bung lụa xài thôi, kaka.

Muốn chỉnh chu đàng hoàng thì vô trang chủ cài thêm config nha 🤩

Notify.js

Notify.js is a jQuery plugin to provide simple yet fully customisable notifications. The javascript code snippets in this documentation with the green edge are runnable by clicking them.

Cách xài: import jQuery, Notify.js là xài thôi

<!DOCTYPE html>
<html>
<head>
	<title>Notification cực ngầu, cực chất, cực trất'ss</title>
	<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.2.4/jquery.min.js"></script>
	<script src="https://cdnjs.cloudflare.com/ajax/libs/notify/0.4.2/notify.min.js"></script>
	<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/notify/0.4.2/styles/metro/notify-metro.css" />

	<script type="text/javascript">
		function notify() {
			$.notify("Access granted", "success");
		}
	</script>
</head>

<body>
<a href="#" onclick="notify()">Notify</a>
</body>
</html>

Demo 1 cái thôi nha, mấy cái khác anh em vô trang chủ coi nó bày cách làm nghen ở đây mình giới thiệu cho anh em biết thôi.

PNotify

Beautiful JavaScript notifications.

Tạo thông báo Notification cho website cực ngầu bằng thư viện jQuery

Toastr

Demo

toastr is a Javascript library for Gnome / Growl type non-blocking notifications. jQuery is required. The goal is to create a simple core library that can be customized and extended.

Tạo thông báo Notification cho website cực ngầu bằng thư viện jQuery

bootstrap-notify 

Tạo thông báo Notification cho website cực ngầu bằng thư viện jQuery

Show alert mang phong cách bootstrap, show nhiều quá thì chạy ra 4 góc coi chỗ nào trong nó show, tha hồ mà notify 😁

Noty

Thanh niên này chơi animation giật giật, kool nhé.

Alertify.js

Tạo thông báo Notification cho website cực ngầu bằng thư viện jQuery

Ngoài show notify 4 góc bình thường ra còn show notify bự chà bá ra giữa màn hình, cái này thích hợp quảng cáo, show like box facebook các kiểu nha.

mouse0270-bootstrap-notify

This is a simple plugin that turns standard Bootstrap alerts into "Growl-like" notifications.

Humane.js

A simple, modern, framework-independent, well-tested, unobtrusive, notification system.
Utilizes CSS transitions when available, falls back to JS animation when not. Includes mobile support.

ng-notify

A simple, lightweight module for displaying notifications in your AngularJS app.

Thấy ng là thấy AngularJS rồi.

...

Anh em đang xài gì comment nào 😱😱

Đánh giá bài viết

Thích thì like
Tạo thông báo Notification cho website cực ngầu bằng thư viện jQuery
5/5 1 votes

Bình luận

x2teamno1 avatar
x2teamno1
Mình muốn làm một chức năng tạo thông báo đẩy giống như OneSignal, mỗi khi có bài viết mới thì tất cả những người đã đăng ký sẽ đc nhận thông báo thì làm cho Laravel như thế nào vậy bạn? 
Mong nhận được hồi âm từ bạn!
x2teamno1 avatar
x2teamno1
Hì, hay quá bạn ơi. Làm thêm chức năng thông báo qua mail khi có reply mới thì hay qá, mình tìm mãi mà ko nhớ đã comment vào bài viết nào trên site của bạn nữa :)
Hiển thị bình luận Facebook