Skip to content

Instantly share code, notes, and snippets.

import { createClient } from 'https://cdn.jsdelivr.net/npm/@supabase/supabase-js/+esm';
const supabase = createClient(
'https://ogwhskbvowkkwdvtguwx.supabase.co',
'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6Im9nd2hza2J2b3dra3dkdnRndXd4Iiwicm9sZSI6ImFub24iLCJpYXQiOjE3NTM5ODI4NzAsImV4cCI6MjA2OTU1ODg3MH0.B-EjyhvIhce6BH5xRyb4cJe1gvkkD4B3i6z9mhRSyYg'
);
document.addEventListener('DOMContentLoaded', async () => {
const resendLink = document.getElementById('resend-link');
const statusMessage = document.getElementById('status-message');
import { createClient } from 'https://cdn.jsdelivr.net/npm/@supabase/supabase-js/+esm';
console.log('Script started');
const supabase = createClient(
'https://ogwhskbvowkkwdvtguwx.supabase.co',
'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6Im9nd2hza2J2b3dra3dkdnRndXd4Iiwicm9sZSI6ImFub24iLCJpYXQiOjE3NTM5ODI4NzAsImV4cCI6MjA2OTU1ODg3MH0.B-EjyhvIhce6BH5xRyb4cJe1gvkkD4B3i6z9mhRSyYg'
);
document.addEventListener('DOMContentLoaded', async () => {
"use strict";
var CoinGeckoApi;
(function (CoinGeckoApi) {
CoinGeckoApi["AllCoins"] = "coins/markets?vs_currency=usd&page=1&per_page=30&sparkline=false";
CoinGeckoApi["Base"] = "https://api.coingecko.com/api/v3";
})(CoinGeckoApi || (CoinGeckoApi = {}));
var RequestStatus;
(function (RequestStatus) {
RequestStatus["Error"] = "Error";
RequestStatus["Idle"] = "Idle";
(function() {
const buttons = document.querySelectorAll('.neumo-menu .menu-btn');
const currentPath = window.location.pathname;
let currentActiveBtn = null;
if (buttons.length === 0) return;
buttons.forEach(btn => {
const href = btn.getAttribute('href');
const hrefPath = href ? new URL(href).pathname : '';
import { createClient } from 'https://cdn.jsdelivr.net/npm/@supabase/supabase-js/+esm';
console.log('Book showcase ratings script started');
console.log('Vue:', typeof Vue !== 'undefined' ? 'Loaded' : 'Not loaded');
console.log('jQuery:', typeof $ !== 'undefined' ? 'Loaded' : 'Not loaded');
const supabase = createClient(
'https://ogwhskbvowkkwdvtguwx.supabase.co',
'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6Im9nd2hza2J2b3dra3dkdnRndXd4Iiwicm9sZSI6ImFub24iLCJpYXQiOjE3NTM5ODI4NzAsImV4cCI6MjA2OTU1ODg3MH0.B-EjyhvIhce6BH5xRyb4cJe1gvkkD4B3i6z9mhRSyYg'
);
document.addEventListener('DOMContentLoaded', function() {
document.querySelectorAll('.share-btn').forEach(btn => {
const popout = document.createElement('div');
popout.className = 'share-popout';
const card = btn.closest('.card');
const readMoreLink = card.querySelector('.btn-neumorphic').getAttribute('href');
const title = card.querySelector('h2').textContent;
const shareText = encodeURIComponent(`${title} - ${readMoreLink}`);
import { createClient } from 'https://cdn.jsdelivr.net/npm/@supabase/supabase-js/+esm';
console.log('Script started');
const supabase = createClient(
'https://ogwhskbvowkkwdvtguwx.supabase.co',
'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6Im9nd2hza2J2b3dra3dkdnRndXd4Iiwicm9sZSI6ImFub24iLCJpYXQiOjE3NTM5ODI4NzAsImV4cCI6MjA2OTU1ODg3MH0.B-EjyhvIhce6BH5xRyb4cJe1gvkkD4B3i6z9mhRSyYg'
);
document.addEventListener('DOMContentLoaded', async function() {
const mobileTypewriter = {
activeIntervals: [],
timeouts: [],
init: function() {
this.items = document.querySelectorAll('.mobile-typewriter-item');
this.$bg = $('.js-mobile-bg');
this.$restartButton = $('.js-mobile-restart');
this.setupBackgroundAnimation();
this.run();
function isIOS() {
return /iPad|iPhone|iPod/.test(navigator.userAgent) ||
(navigator.platform === 'MacIntel' && navigator.maxTouchPoints > 1);
}
function setupIOSAnimation() {
$('.mast__title, .custom-mast__title').each(function() {
var $title = $(this);
$title.html($title.text());