You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: parallax.html
+4-1
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,10 @@
16
16
Parallax is an effect where the background content or image in this case, is moved at a different speed than the foreground content while scrolling. Check out the
Copy file name to clipboardExpand all lines: toasts.html
+8-8
Original file line number
Diff line number
Diff line change
@@ -15,15 +15,15 @@
15
15
Materialize provides an easy way for you to send unobtrusive alerts to your users through toasts. These toasts are also placed and sized responsively, try it out by
16
16
clicking the button below on different device sizes.
17
17
</p>
18
-
<buttontype="button" class="waves-effect waves-light btn" onclick="M.toast({text: 'I am a toast', classes: 'primary'})">Toast!</button>
18
+
<buttontype="button" class="waves-effect waves-light btn tonal" onclick="M.toast({text: 'I am a toast', classes: 'primary'})">Show Toast</button>
19
19
<p>To do this, call the M.toast() function programmatically in JavaScript.</p>
20
20
<pre><codeclass="language-javascript">
21
21
M.toast({text: 'I am a toast!'})
22
22
</code></pre>
23
23
<p>One way to add this into your application is to add this as an onclick event to a button.</p>
24
24
<pre><codeclass="language-html">
25
25
<xmp>
26
-
<buttontype="button" onclick="M.toast({text: 'I am a toast'})" class="btn">Toast!</button>
26
+
<buttontype="button" onclick="M.toast({text: 'I am a toast'})" class="btn tonal">Show Toast</button>
<p>You can have the toast callback a function when it has been dismissed.</p>
161
-
<buttontype="button" class="btn" onclick="M.toast({text: 'I am a toast', completeCallback: function(){alert('Your toast was dismissed')}})">Toast!</button>
161
+
<buttontype="button" class="btn tonal" onclick="M.toast({text: 'I am a toast', completeCallback: function(){alert('Your toast was dismissed')}})">Show Toast</button>
162
162
<pre><codeclass="language-html">
163
-
<buttontype="button" class="btn" onclick="M.toast({text: 'I am a toast', completeCallback: function(){alert('Your toast was dismissed')}})">Toast!</button>
163
+
<buttontype="button" class="btn tonal" onclick="M.toast({text: 'I am a toast', completeCallback: function(){alert('Your toast was dismissed')}})">Show Toast</button>
<ahref="#" class="btn tooltipped" data-position="top" data-tooltip="I am a top tooltip"> Top</a>
28
-
<ahref="#" class="btn tooltipped" data-position="left" data-tooltip="I am a left tooltip"> Left</a>
27
+
<ahref="#" class="btn tonal tooltipped" data-position="top" data-tooltip="I am a top tooltip"> Top</a>
28
+
<ahref="#" class="btn tonal tooltipped" data-position="left" data-tooltip="I am a left tooltip"> Left</a>
29
29
<a
30
30
href="#"
31
-
class="btn tooltipped"
31
+
class="btn tonal tooltipped"
32
32
data-position="right"
33
33
data-tooltip="I am a right tooltip. Lorem, ipsum dolor sit amet consectetur adipisicing elit. Nesciunt ducimus possimus quidem voluptatem soluta ex dignissimos, itaque magnam aspernatur eum deleniti delectus, vitae rerum, distinctio quam? Quas sapiente sunt blanditiis?"
0 commit comments