Skip to content

Instantly share code, notes, and snippets.

View ignacioribes's full-sized avatar
💭
Hello World 👽

Ignacio Ribes ignacioribes

💭
Hello World 👽
View GitHub Profile
@ignacioribes
ignacioribes / cookie.js
Last active February 23, 2023 20:17
Cookie UTM
@ignacioribes
ignacioribes / scroll-top-tab.html
Last active August 19, 2022 20:20
Scroll to top tab elementor wordpress
<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');
@ignacioribes
ignacioribes / GasPricesWidget.js
Last active May 19, 2022 08:24
A scriptable Gas Price Widget
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;