This file contains hidden or 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
$(document).ready(() => { | |
var panelists = document.getElementsByClassName("guest-name"); | |
var i; | |
for (i = 0; i < panelists.length; i++) { | |
panelists[i].addEventListener("click", function() { | |
this.classList.toggle("active"); | |
var panel = this.nextElementSibling; | |
if (panel.style.display === "block") { | |
panel.style.display = "none"; |
This file contains hidden or 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
import {puppeteer} from 'puppeteer'; | |
const browser = await puppeteer.launch(); | |
const page = await browser.newPage(); | |
await page.goto('http://devstaging1.jsabeta.com/'); | |
const meta = await page.$eval("head > meta[name='robots']", element => element.content); |
This file contains hidden or 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
/* | |
* Shortcode for image cta | |
*/ | |
function cta_one( $atts ) { | |
$a = shortcode_atts( array( | |
'max_width' => '800px' | |
), $atts ); | |
$img_src = get_template_directory_uri() . "/images/free-food-calc-wide.gif"; |
This file contains hidden or 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
{"first_name":"John","last_name":"Doe","email":"jd@gmail.com","phone_number":"5552341245","i_currently_live_in_the_following_state":"California","date_of_birth":"5/21/1993","webhook_answer_height":"6 foot","my_weight_slider":"100","are_you_raising_at_least_1_child_in_your_home":"Yes","do_you_receive_financial_assistance_2":"No","do_you_receive_financial_aid":"Yes","please_list_any_criminal_history_including_dui_minor_etc":"None","tobacco_use":"No","pregnancy_complication":"No","please_select_any_sexually_transmitted_infections_you_have_had_if_any":"None","please_check_if_you_experience_any_of_the_following":"Check experience","have_you_taken_any_medications_in_the_last_12_months":"No","please_list_any_supplements_or_medications_you_are_currently_taking":"No Medicines","pregnancy_1":"Pregnancy 1 result","pregnancy_2":"Pregnancy 2 result","pregnancy_3":"Pregnancy 3 result","pregnancy_4":"Pregnancy 4 result","pregnancy_5":"Pregnancy 5 result","pregnancy_6":"Pregnancy 6 result","pregnancy_7":"Pregnancy 7 result", |
This file contains hidden or 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
<div class="row row--equal" data-component="grid" data-builder="edit del clone dnd col"> | |
<div class="col-md-5" data-builder="edit del dnd"> | |
<div class="js_kartra_component_holder"> | |
<div class="kartra_element_bg kartra_element_bg--padding-special-medium kartra_element_bg--margin-bottom-special-medium js_kartra_component_holder" data-component="bundle" data-builder="dnd clone edit del edit edit edit edit edit edit edit edit edit edit edit edit edit edit edit edit edit edit edit edit edit edit edit edit edit edit edit edit edit edit edit edit edit edit edit edit" data-selector="div[data-component=bundle]" style="margin-top: 0px; margin-bottom: 30px; padding: 30px;"> | |
<div class="background-item background_changer--blur0" style="background-color: rgb(242, 242, 242); border-radius: 0px; border-color: rgb(240, 185, 17); border-style: dashed; border-width: 2px; background-image: none; opacity: 1;" |
This file contains hidden or 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
[...document.querySelectorAll('.navlink')].forEach((item) => { | |
setTimeout(() => { | |
TweenMax.to(item, 0.1, {left:0}); | |
}, 300) | |
}); |
This file contains hidden or 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
<?php /** @noinspection SpellCheckingInspection */ | |
/** | |
* This file contains the WordPress code for rendering a Google Reviews badge. | |
* | |
* Usage: | |
* | |
* 1. Create a Google API Console account if you have not already done so. | |
* 2. Register for the Google Places API. | |
* 3. Create an API key. | |
* 4. Ensure that the API key can be used from wherever this script will execute |
This file contains hidden or 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
//Scroll to form on button click and focus on first input | |
$('#up-to-form').on('click', function(e) { | |
e.preventDefault(); | |
$('html, body').animate({ | |
scrollTop: $('.form-container').offset().top - 20 | |
}, 'slow'); | |
$('.form-container form input').first().focus(); | |
}); | |
//Make form fixed so it stays in view on desktop viewport |
This file contains hidden or 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
# Apache config | |
<FilesMatch ".(eot|ttf|otf|woff|woff2)"> | |
Header set Access-Control-Allow-Origin "*" | |
</FilesMatch> |
This file contains hidden or 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
//Add to header.php file and reload page | |
<?php | |
$u = $users->get('admin'); // or whatever your supersuser name is | |
$u->of(false); | |
$u->pass = 'strong_password'; | |
$u->save(); | |
?> |