Skip to content

Instantly share code, notes, and snippets.

View wibawasuyadnya's full-sized avatar
🌱
Planting

Suyadnya wibawasuyadnya

🌱
Planting
View GitHub Profile
/*
src: "https://codepen.io/zazizuw/pen/WNQNrpr/"
this is only simplification from many animation heading style
*/
jQuery(document).ready(function($){
//set animation timing
var animationDelay = 6000;
const element = document.querySelector('.bottomMenu');
const styleJs = {
display: 'none',
position: 'fixed',
opacity: '0.95',
left: '0',
bottom: '0',
width: '100%',
height: '120px',
zIndex: '1'
var seat = 43;
document.getElementById('countdown').innerHTML = seat;
const myInterval = setInterval(decre, 15000);
function showChange(){
seat = seat - 2
document.getElementById('countdown').innerHTML = seat;
}
function decre(){
'use strict'
var testim = document.getElementById("testim"),
testimDots = Array.prototype.slice.call(document.getElementById("testim-dots").children),
testimContent = Array.prototype.slice.call(document.getElementById("testim-content").children),
testimLeftArrow = document.getElementById("left-arrow"),
testimRightArrow = document.getElementById("right-arrow"),
testimSpeed = 9000,
currentSlide = 0,
currentActive = 0,
testimTimer,
var $ = jQuery;
$(document).ready(function(){
//default
$('.text-details').hide();
$('.text-details.active').show();
//after click
$(".tabmenu").on("click", function(){
var dataId = $(this).attr("data-tab");
( function() {
var the_timer = setInterval( function() {
if( typeof Swiper && typeof jQuery ) {
runTheCode();
clearInterval( the_timer );
}
}, 100 );
} )();
function runTheCode() {
// add 'swiper-container' class to .elementor-container
var sp_freqency = 14500;
var sp_timeout = 1200;
var popbackup = "";
var names = ["Anonymous", "Anonymous", "Anonymous", "Someone", "Someone", "Irma", "Frank", "Ella", "Liz", "Sasha", "Mariella", "Jeremy", "Virginia", "Charles", "Karina", "Vihaan", "Reyansh", "Krishna", "Akshay", "Rajesh"];
var towns = ["Portland","Hillsboro","Beaverton","Bethany","Aloha","Tigard","King City","Forest Grove","Rock Creek","Raleigh Hills","Garden Home","East Portland","Tualatin"];
var pastactions = ["Buy Healy"];
var recentactions = ["Registered Free Lesson", "Buy Healy"];
var futureactions = ["Buy Healy", "Registered Free Lesson"];
const headerSticky = document.querySelector('#stickyheaders');
const headerUP = document.querySelector('.headerup');
const styles = {
sticky: {
transition : 'transform 0.34s ease'
},
up: {
transform: 'translateY(-80px)'
},
};
jQuery(document).ready(function($) {
$("#myInput").on("keyup", function() {
var value = $(this).val().toLowerCase();
//Select all article and show
$("article > div").show().filter(function() {
//Find h3 and p also check if the value is substring of the text. Return true if not found.
return $(this).find('h3,p').text().toLowerCase().indexOf(value) === -1;
}).hide();
//Hide all h3 and p that that the value is not the substring of text
});
selector .box-container:hover .box-img:after{
content: "COMING SOON";
opacity: 1;
font-size: 24px;
color: var(--e-global-color-710bfa0);
text-shadow: 0px 1px 0px 0px rgba(0.0.0.0,5);
letter-spacing: 1,5em;
position: absolute;
font-weight: bold;
top: 50%;