mirror of
https://github.com/kremalicious/blog.git
synced 2024-11-28 23:16:22 +01:00
40 lines
953 B
JavaScript
40 lines
953 B
JavaScript
|
|
//=require webcomponents.js/CustomElements.js
|
|
//=require svg4everybody/dist/svg4everybody.js
|
|
//=require jquery/dist/jquery.js
|
|
//=require time-elements/time-elements.js
|
|
//=require vex-js/dist/js/vex.combined.js
|
|
|
|
//
|
|
// include modules
|
|
//
|
|
//=include _menu.js
|
|
//=include _search.js
|
|
//=include _tooltips.js
|
|
//=include _analytics.js
|
|
|
|
(function($) {
|
|
|
|
//
|
|
// init modules
|
|
//
|
|
Menu.init();
|
|
Search.init();
|
|
GoogleAnalytics.init();
|
|
|
|
svg4everybody({
|
|
nosvg: false
|
|
});
|
|
|
|
$('.js-vex-btc').click(function(e) {
|
|
e.preventDefault();
|
|
|
|
vex.defaultOptions.className = 'vex-theme-kremalicious vex-bitcoin';
|
|
vex.dialog.buttons.YES.text = 'Close';
|
|
vex.open({
|
|
unsafeContent: '<h3 class=\"vex__title\">My Bitcoin Address</h3>\n <img src=\"/assets/img/btc-qr.png\" />\n <pre class=\"highlight\"><code class=\"nt\">171qDmKEXm9YBgBLXyGjjPvopP5o9htQ1V</code></pre>'
|
|
});
|
|
});
|
|
|
|
}(jQuery));
|