Type: js
Java
MemberPress: Change default values for state and country fields on registration forms
(function($) { $(document).ready(function() { // Set defaults US, TX $(‘#mepr_signup_form #mepr-address-country’).val(‘US’).change(); $(‘#mepr_signup_form #mepr-address-state’).val(‘TX’).change(); }); })(jQuery);Continue reading
Radio Show Header Cover Update JS
// Get Showdata from Session Storage function loadShowDataFirst() { // Get Json Show Data let json = sessionStorage.getItem(“currentshowData”); // Get Showdata from Session Storage let obj = JSON.parse(json); console.log = obj.coverURL; // Accessing Header Objects Meta Data document.getElementById(“currentRadioShow”).src = RadioShowImg;…Continue reading
Bikesure Talkative
import(`https://eu.engage.app/api/ecs/v1/loader/11786fbb-7e1a-4c0a-9d37-94e77ca67e98.js?path=${encodeURIComponent(window.location.origin+window.location.pathname)}&selectedVersion=${(new URLSearchParams(window.location.search)).get(‘ecsSelectedVersion’) || ”}`)Continue reading
Adrian Flux Talkative
import(`https://eu.engage.app/api/ecs/v1/loader/11786fbb-7e1a-4c0a-9d37-94e77ca67e98.js?path=${encodeURIComponent(window.location.origin+window.location.pathname)}&selectedVersion=${(new URLSearchParams(window.location.search)).get(‘ecsSelectedVersion’) || ”}`)Continue reading
Conversion Tag
GTM
Update Quiz button
(function(w, d, s, o){ var j = d.createElement(s); j.async = true; j.src = ‘//script.marquiz.io/v2.js’;j.onload = function() { if (document.readyState !== ‘loading’) Marquiz.init(o); else document.addEventListener(“DOMContentLoaded”, function() { Marquiz.init(o); }); }; d.head.insertBefore(j, d.head.firstElementChild); })(window, document, ‘script’, { host: ‘//quiz.marquiz.io’, region: ‘us’, id:…Continue reading
Injects Rewards into mobile burger menu
jQuery( document ).ready( () => { let mobile_menu_container = jQuery( ‘.gm-mobile-menu-container’ ).first(); if ( typeof mobile_menu_container == typeof undefined ) { return; } let component = ` Terra Rewards Earn points, rewards and discounts! `; mobile_menu_container.before( component ); });Continue reading