Skip to content

Instantly share code, notes, and snippets.

View qcomer's full-sized avatar

Quinntin Comer qcomer

View GitHub Profile
let value;
try {
const elements = Array.from(document.querySelectorAll('.oc-product-total .item-total'));
const numberElements = elements.filter(el => !isNaN(parseFloat(el.textContent)));
if (numberElements.length > 0) {
value = parseFloat(numberElements[0].textContent);
}
} catch (error) {
console.error(error);
}
@qcomer
qcomer / ghl_survey.css
Created October 16, 2024 15:52 — forked from simple10/ghl_survey.css
GHL (Go High Level) survey form CSS style customization.
/* From https://ghlexperts.com/survey-blue-navigation-bar-placement */
@charset "UTF-8";
#_builder-form > div.ghl-footer {
background: #349DFF;
position: relative;
bottom: 0;
top: auto;
left: 0;
right: 0;