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
function hideTdo() { | |
var timer = null; | |
var target = document.querySelector('#tidio-chat iframe'); | |
if(!target) { | |
if(timer !== null) { | |
clearTimeout(timer); | |
} | |
timer = setTimeout(hideTdo, 500); | |
return; | |
} else { |
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 | |
add_action( 'wp_enqueue_scripts', 'enqueue_child_theme_styles', PHP_INT_MAX); | |
function enqueue_child_theme_styles() { | |
wp_enqueue_style( 'parent-style', get_template_directory_uri().'/style.css' ); | |
} | |
?> | |
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 id="hello" class="desktop-6 tablet-6 mobile-3"> | |
<p><img class="contryflag" src="{{ 'earth.png' | file_url }}">{{ settings.hello }} <span id="country-name">Worldwide!</span></p> | |
</div> | |
<script> | |
jQuery.ajax( { | |
url: '//freegeoip.net/json/', | |
type: 'POST', | |
dataType: 'jsonp', |
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
use player.js and small script code | |
<script src="https://player.vimeo.com/api/player.js"></script> | |
<script> | |
$(document).ready(function(){ | |
var iframe = document.querySelector('iframe'); | |
var player = new Vimeo.Player(iframe); | |
player.play(); | |
player.on('play', function() { | |
alert('played the video!'); |
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
use this script | |
<script> | |
$(document).ready(function(){ | |
function resize(){ | |
// Load Variables - we do this here so they are reset when the screen changes size. | |
var SW = $(window).width(); |