const style = document.createElement('style'); style.innerHTML = ` @font-face { font-family: 'TG Frida Mono'; src: url('https://dl.dropboxusercontent.com/scl/fi/i120ory44h25qroqoyaz7/tgfridamono-light.otf?rlkey=9px1tk49q2k7ai4nepvquel7g&st=mz2enswi') format('opentype'); font-weight: 300; } @font-face { font-family: 'TG Frida Mono'; src: url('https://dl.dropboxusercontent.com/scl/fi/t7vkhvu9v6su9aehlejlr/tgfridamono-regular.otf?rlkey=i69wzsh2ascosdi38mhalu7oq&st=cmwj7pqy') format('opentype'); font-weight: 400; } @font-face { font-family: 'TG Frida Mono'; src: url('https://dl.dropboxusercontent.com/scl/fi/g84ecrzj7ze1ewv99labu/tgfridamono-bold.otf?rlkey=mee0t9omd0t9kdjfuk8tacc1o&st=mxfslvwc') format('opentype'); font-weight: 700; } @font-face { font-family: 'TG Frida Mono'; src: url('https://dl.dropboxusercontent.com/scl/fi/nirko5yd779dz84mjqv5r/tgfridamono-extrabold.otf?rlkey=hhjjg9b4en6o91rtifjnm79x5&st=87ct5rzd') format('opentype'); font-weight: 800; } body,h1,h2,h3,p,a * { font-family: 'TG Frida Mono', monospace !important; } `; document.head.appendChild(style); //end of font /* Add custom JS code below */ document.addEventListener('DOMContentLoaded', function () { // --------- 1. Load Google Fonts (Playfair Display + Lato) --------- const fontLink = document.createElement('link'); fontLink.rel = 'stylesheet'; fontLink.href = 'https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700;800;900&family=Lato:wght@100;300;400;700;900&display=swap'; document.head.appendChild(fontLink); // --------- 2. Load Font Awesome --------- const fa = document.createElement('link'); fa.rel = 'stylesheet'; fa.href = 'https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css'; document.head.appendChild(fa); // --------- 3. Modify #about-3 h2 --------- const heading = document.querySelector('#about-3 h2'); if (!heading) return; // Split text and wrap 3rd word const words = heading.innerText.trim().split(/\s+/); if (words.length >= 3) { words[2] = `${words[2]}`; } // Update h2 content with Instagram icon inline heading.innerHTML = ` ${words.join(' ')} `; }); //video (function () { const VIDEO_ID = 'custom-video-card'; const VIDEO_SRC = 'https://h.top4top.io/m_3554pzv771.mp4'; let lastPath = location.pathname; function insertStandaloneVideoCard() { const sallaList = document.querySelector('salla-products-list'); if (!sallaList || document.getElementById(VIDEO_ID)) return; const wrapper = sallaList.querySelector('.s-products-list-wrapper'); const firstCard = wrapper?.querySelector('.product-card'); const height = firstCard?.offsetHeight || 320; const videoCard = document.createElement('div'); videoCard.id = VIDEO_ID; videoCard.className = firstCard?.className || 'product-card'; videoCard.style.height = `${height}px`; videoCard.style.overflow = 'hidden'; videoCard.style.marginBottom = '2px'; videoCard.style.position = 'relative'; videoCard.innerHTML = `