diff --git a/example/index.html b/example/index.html index fe04110..8dd891f 100644 --- a/example/index.html +++ b/example/index.html @@ -20,6 +20,12 @@
+
+ + +
+

My container

+
@@ -90,7 +96,22 @@ delay: 5000 }); } + + function show_toast_in_container() { + let type = TYPES[Math.floor(Math.random() * TYPES.length)], + title = TITLES[type], + content = CONTENT[type]; + + $.toast({ + title: title, + subtitle: '11 mins ago', + content: content, + type: type, + delay: 5000, + container: $("#my_container") + }); + } - \ No newline at end of file +