This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript"> | |
// Scroll to tab top | |
jQuery('.elementor-tab-title').on('click', function (e) { | |
var idName = jQuery(this).attr('id'); | |
console.log(idName) | |
setTimeout(function (){ | |
// Code you want to delay or you can call the function reference directly instead of defining one | |
jQuery('html, body').animate({ | |
scrollTop: jQuery("#" + idName).offset().top | |
}, 'slow'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const ethGasStationApiUrl = `https://ethgasstation.info/api/ethgasAPI.json`; | |
const req = new Request(ethGasStationApiUrl); | |
const res = await req.loadJSON(); | |
if (config.runsInWidget) { | |
const widget = new ListWidget(); | |
const title = widget.addText("Gas Prices"); | |
title.textColor = Color.white(); | |
title.textOpacity = 0.8; |