Template:Popper: Difference between revisions
From WikiMSK
No edit summary |
No edit summary |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<html> | <html> | ||
<button id=" | <button id="myButton" class="mw-ui-button">{{{1}}}</button> | ||
<script src="https://unpkg.com/@popperjs/core@2"></script> | <script src="https://unpkg.com/@popperjs/core@2"></script> | ||
<script src="https://unpkg.com/tippy.js@6"></script> | |||
<script> | <script> | ||
// With the above scripts loaded, you can call `tippy()` with a CSS | |||
// selector and a `content` prop: | |||
tippy('#myButton', { | |||
content: '{{{2}}}', | |||
theme: 'light', | |||
}); | }); | ||
</script> | </script> | ||
</html> | </html> | ||
<templatestyles src="Popper/styles.css" /> | <templatestyles src="Popper/styles.css" /> | ||
<noinclude>[[Category:Templates]] | <noinclude>[[Category:Templates]][[Template:Popper/styles.css]]</noinclude> | ||
[[Template:Popper/styles.css]] |