'); } function hideVideoLogoOverlay() { $('.vjs-logo-overlay').fadeOut(750, function () { $('.vjs-logo-overlay').remove(); }); } function hasBrandingPage() { return brandingPages[current_hole - 1] != undefined; } function showVideoBrandingPageOverlay() { var container = $(".branding-page-overlay-container"); if (container.length "); if ($('.vjs-poster').length) $('.vjs-poster').after(container); else $('.video-js').append(container); } container.empty(); var brandingPage = brandingPages[current_hole - 1]; if (brandingPage != undefined) { brandingPages[current_hole - 1].css('display', 'block'); container.append(brandingPage); } } function hideVideoBrandingPageOverlay(instant) { if (instant) $('.vjs-branding-page-overlay').remove(); else $('.vjs-branding-page-overlay').fadeOut(750, function () { $('.vjs-branding-page-overlay').remove(); }); } function goto_next_hole() { var nextHole = current_hole + 1; if (nextHole 0) $('.btn-show-intro-video').removeClass("hidden"); else $('.btn-show-intro-video').addClass("hidden"); } function updateWindowURL() { var url = addUpdateURLParam("hole", String(current_hole), window.location.href); if (_initialized && url.includes("page-editor")) window.location.href = url; else window.history.replaceState('page2', 'Title', url); } var _initialized = false; // If holenumber is outside of bounds, it will wrap. // So next/prev buttons can inc/dec holenumber, without doing their own wrap logic. function goto_hole(holenumber) { // So next/prev buttons can inc/dec holenumber, without doing their own wrap logic. if (holenumber > max_hole) holenumber = holenumber - max_hole; else if (holenumber
"); $('body').append(windowFade); } var hole_ob = hole_obs[current_hole]; $("#intro-movie").attr("src", hole_ob.IntroMovieURL); LCIntroVideo.rewindVideo(); var f = 293 / 500; $('.intro-container-popup').css("transform", 'translate(-50%, 0)'); $('.intro-container-popup').css("top", ($('.holenav').offset().top + $('.holenav').height() + 20) + "px"); $('.intro-container-popup').css("left", "50%"); //$('.video-container-overlay').css("left", $('.holenav').offset().left + "px"); $('.intro-container-popup .video-container-overlay').css("width", $('.container').width() + "px"); $('.intro-container-popup .video-container-overlay').css("height", $('.container').height() + "px"); $('.intro-container-popup .video-container-overlay').css("left", "0px"); $('.intro-container-popup .video-container-overlay').css("top", "0px"); $('.intro-container-popup .video-container-overlay').css("transform", "none"); var scaleF = $('.page-content > .row').width() / 500; //$('.vjs-branding-page-overlay').css('transform', 'scale(' + scaleF + ')'); $('.intro-container-popup').removeClass('hidden'); setTimeout(function () { $(document).on("click", LCIntroVideo.videoVisibilityClickHandler); }, 100); LCIntroVideo.playVideo(); }, hideVideo: function () { if (LCIntroVideo.settings.fade) { windowFade.remove(); windowFade = null; } LCIntroVideo.pauseVideo(); $('.intro-container-popup').addClass('hidden'); setTimeout(function () { $(document).off("click", LCIntroVideo.videoVisibilityClickHandler); }, 100); } };
Par:
HCP:
TEE | Meter
Gul - 290
Röd - 250
'); //alert(item.html()); //var title = $(this).parent('a').attr("title"); //item.attr("title",title); //$(itemDiv.html()).appendTo(item); item.appendTo('.holephotos-carousel-inner'); if (i == 0) { // set first item active item.addClass('active'); } } }); /* when clicking a thumbnail */ $(document).on("click", '.holephotos-gallery-images-container img.gallery-image-item', function (event) { var idx = $(event.target).parent().parent().index(); var id = parseInt(idx); $('#holephotos-lightbox-modal').modal('show'); // show the modal $('#holephotos-carousel').carousel(id); // slide carousel to selected }); $('#holephotos-lightbox-modal').on('show.bs.modal', function () { $('.modal-dialog-image-gallery .modal-content .img-responsive').css('max-height', $(window).height() * 0.8); }); });