Latest
Video – Wave World Champion 2019 – Sarah-Quita
- Details
- Category: Latest
- Published: 01 December 2019
- Written by Oda Johanne
- Hits: 1288
");
});
$(".flex_grid_content_wrapper").each(function() {
$(this).siblings().not("#flex_grid_content_image, .features_overlay").appendTo($(this));
});
$('.flex_grid_hidden_text').hide();
// $("#flex_grid_wrapper .et_pb_column, #solid_grid_wrapper .et_pb_column").hover(function(e) {
// e.preventDefault();
// $(".flex_grid_hidden_text", this).fadeToggle(200);
// });
}
// Timeout is just to ensure that we're not delaying however both
// elements load at the same time without a flash of unstyled elements
setTimeout(function() {
// $("#main-header, #top-header").css("visibility", "visible").css("transition",".75s");
$("#main-header, #top-header").css("opacity", "1");
if ($("#flex_video_slider").length > 0) {
$(".et_pb_carousel_items.columns-4").hide();
$("#flex_video_slider").hover(function(e) {
e.preventDefault();
$(".et_pb_carousel_items.columns-4", this).fadeToggle(200);
});
}
}, 1000);
// Divi won't allow us to overlay an image on top of slider content
// So this code dynamically creates that Div inbetween the wrapper
// and slider and then inserts the div, we then insert html
$(".flex_hero_slider_logo").prepend("
");
$("#slider_logo").html("
");
// Manually adding a youtube ico to the end of the social
// icons on the secondary menu bar
$("#et-secondary-menu .et-social-icons").append("");
$(".et-social-youtube").html("Youtube");
// Manually insert instagram
$("#et-secondary-menu .et-social-icons").append("");
$(".et-social-instagram").html("Instagram");
// Divi doesn't support this functionality
// We have to hide the content we want to display (loads in background)
// Then as we toggle, we're changing the text lable of the button
$(".reveal").hide();
$(".learn_more").click(function(e) {
e.preventDefault();
var txt = $(".reveal").is(':visible') ? 'Learn more' : 'Show less';
$(".learn_more").text(txt);
$(".reveal").slideToggle();
});
// Email optin form won't allow us to change field placeholders
// so we're doing it here instead
$("#et_pb_signup_firstname").attr("placeholder", "FULL NAME");
$("#et_pb_signup_email").attr("placeholder", "EMAIL");
// Removes search when scrolling
$(window).scroll(function() {
if ($(this).scrollTop()>0){
$('.et_search_outer').fadeOut();
} else {
$('.et_search_outer').fadeIn();
}
});
// This is the scrollTo function for the product details page
// This relates directly to the third menu only available in this page
// Due to the customised menu we have to update this manually to work
function scrollToAnchor(hash) {
var target = $(hash),
headerHeight = $("#et-secondary-menu").height() + 37;
target = target.length ? target : $('[name=' + hash.slice(1) +']');
if (target.length){
$("html,body").animate({
scrollTop: target.offset().top - headerHeight
}, 500, "swing");
}
}
if (window.location.hash) {
scrollToAnchor(window.location.hash);
}
$("a[href*=\\#]:not([href=\\#])").click(function() {
var hash = this.hash;
if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'')
|| location.hostname == this.hostname){
setTimeout(function() {
scrollToAnchor(hash)
}, 0);
}
$(".fullwidth-menu.nav.downwards a.active_link").removeClass("active_link");
$(this).addClass("active_link");
});
// Due to Divi & Wordpress limitations we cannot re-position the
// menu to be 1st, 2nd, 3rd so we have to grab the top-bar
// and manually insert it into the header so we can control it better
// Updated to include rule that will remove secondary menu from
// home page and only if it's not on mobile, Divi renders the
// Mobile class AFTER the page loads so the timeout ensures we can
// read that class and take the right action
// if ($("body").hasClass("home")) {
// $("#top-header").remove();
// }
setTimeout(function() {
var isHome = $("body").hasClass("home");
var isMobile = $("body").hasClass("et_mobile_device");
// if (isHome && !isMobile) {
// if (isHome) {
// $("#main-header").css("height", "97px");
// } else {
$("#top-header").appendTo("#main-header").show("slow");
// }
// if(!isMobile && !isHome) {
if(!isMobile) {
$("#top-header .container").prepend("

Authors: Oda Johanne
Read more https://windsurf.star-board.com/video-wave-world-champion-2019-sarah-quita/