A Pen by Dave DeSandro on CodePen.
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 rc_container = document.getElementById('recharge_add_to_upcoming') | |
const sub_form = document.getElementById('upcoming_subscriptions') | |
const sub_add_btn = document.getElementById('add_to_subscription') | |
const variant_selector = document.getElementById('productSelect-1') | |
const adding_loader = document.getElementById('adding_to_') | |
const available_content = document.getElementById('available-add-on') | |
const success_content = document.getElementById('add-on-success') | |
const ohana_skus = [ | |
'30900', |
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
export const newModules = { | |
global: ` | |
_type, | |
_key, | |
"slug": slug.current, | |
`, | |
grid: ` | |
_type == 'grid' => { | |
_type, | |
_key, |