JSFiddle - React, Tailwind, and code Playground
by cathead
HTML
<script src="http://fancyapps.com/fancybox/source/jquery.fancybox.js"></script>
<link rel="stylesheet" href="http://fancyapps.com/fancybox/source/jquery.fancybox.css">
<a
class="fancybox"
href=""
data-product_url="http://google.com"
data-marcel="last name is moreau $$"
>
Button
</a>
JavaScript
$(".fancybox").fancybox({
afterLoad: function() {
var marcel = $(this.element).data("marcel");
this.title = marcel;
},
helpers : {
title: {
type: 'inside'
}
}
});