golden hour
/var/www/html/wp-content/plugins/Ultimate_VC_Addons/assets/js
⬆️ Go Up
Upload
File/Folder
Size
Actions
SmoothScroll-compatible.js
23.59 KB
Del
OK
SmoothScroll.js
11.18 KB
Del
OK
bootstrap-datetimepicker.js
48.95 KB
Del
OK
classie.js
2.44 KB
Del
OK
content-box.js
3.62 KB
Del
OK
count-timer.js
7.16 KB
Del
OK
countUp.js
6.03 KB
Del
OK
countdown-dependent.js
5.69 KB
Del
OK
countdown.js
34.48 KB
Del
OK
creative-link.js
3.04 KB
Del
OK
custom.js
36.61 KB
Del
OK
dual-button.js
21.72 KB
Del
OK
easy-ticker.js
4.38 KB
Del
OK
expandable-section.js
11.06 KB
Del
OK
fixto.js
24.9 KB
Del
OK
flip-box.js
8.48 KB
Del
OK
froogaloop2-min.js
1.73 KB
Del
OK
headings.js
4.68 KB
Del
OK
highlight-box.js
2.07 KB
Del
OK
hotspot-tooltipster.js
45.76 KB
Del
OK
hotspot.js
3.71 KB
Del
OK
ihover.js
2 KB
Del
OK
image-separator.js
623 B
Del
OK
index.php
86 B
Del
OK
info-banner.js
1.1 KB
Del
OK
info-box.js
609 B
Del
OK
info-circle.js
19.89 KB
Del
OK
jparallax.js
8.78 KB
Del
OK
jquery-appear.js
3.42 KB
Del
OK
jquery-ui-effect.js
32.1 KB
Del
OK
jquery-ui-labeledslider.js
4.59 KB
Del
OK
jquery-ui.js
192.36 KB
Del
OK
jquery.sticky-kit.js
7.9 KB
Del
OK
masonry.js
24.49 KB
Del
OK
mb-YTPlayer.js
118.78 KB
Del
OK
modal.js
14.41 KB
Del
OK
modernizr-custom.js
8.19 KB
Del
OK
range-slider-touch-punch.js
5.13 KB
Del
OK
range-slider.js
10.54 KB
Del
OK
slick-custom.js
6.01 KB
Del
OK
slick.js
40.99 KB
Del
OK
snap-svg.js
65.44 KB
Del
OK
sticky-section.js
12.24 KB
Del
OK
swatchbook.js
5.06 KB
Del
OK
tabs-accordion.js
19.31 KB
Del
OK
tabs.js
27.48 KB
Del
OK
teams.js
4.12 KB
Del
OK
tooltip.js
12.1 KB
Del
OK
typed.js
15.92 KB
Del
OK
ultimate-params.js
4.11 KB
Del
OK
ultimate_bg.js
75.98 KB
Del
OK
vc-fronteditor.js
362 B
Del
OK
vc-inline-editor.js
1.71 KB
Del
OK
vc_column.js
1.25 KB
Del
OK
vhparallax.js
7.72 KB
Del
OK
video-banner.js
1.89 KB
Del
OK
video_module.js
3.4 KB
Del
OK
Edit: sticky-section.js
//(function ($) { jQuery(document).ready(function($){ var _window = $(window); var _windowsize = _window.width(); var resize_flag = -1; var top_for_row = 0; inside_row_(); sticky_relocate(); _window.resize(function() { resize_flag = 0; _windowsize = _window.width(); sticky_relocate(); //inside_row_(); }); _window.bind('scroll', function() { sticky_relocate(); }); function inside_row_(){ var row_elements = $('div.ult-sticky-anchor'); row_elements.each(function(){ var $this = $(this); var ult_row_spacer = $this.closest('.ult_row_spacer'); var ult_sticky = $this.find('.ult-sticky'); var stick_behaviour = ult_sticky.data('stick_behaviour'); var support = ult_sticky.data('support'); if ( stick_behaviour != 'stick_with_scroll_row' && support == 'no' ){ return; } /*var fullwidth_row = false; //for Browser full width row if ( $this.parents('.upb-background-text').length ){ // has parent fullwidth_row = true; }*/ var global_height = 0; //for resize var gutter = ult_sticky.data('gutter'); var gutter_class = ult_sticky.data('sticky_gutter_class'); var gutter_id = ult_sticky.data('sticky_gutter_id'); var mobile = ult_sticky.data('mobile'); //if ( stick_behaviour == 'stick_with_scroll_row' ) { gutter = ult_explode_offset( global_height, gutter, gutter_class, gutter_id ); var parent = $this.closest(".wpb_column").closest('.vc_row');//parent();//$this.closest('.vc_row'); var self_offset = $this.parent().offset().top; //alert(parent_offset); $this.addClass("ult_stick_to_row"); parent.addClass("ult_s_container"); //alert(parent); //alert(mobile); if (support == 'yes') { parent = 'body'; } if( _windowsize < 768 && mobile == 'no'){ return; }else{ $this.fixTo(parent, { //className : 'is-stuck', //zIndex: 10, top: gutter, useNativeSticky: false }); } }); } /***** inside row ******/ /*function inside_row () { var row_elements = $('div.ult-sticky-anchor'); row_elements.each(function(){ var $this = $(this); var ult_row_spacer = $this.closest('.ult_row_spacer'); var ult_sticky = $this.find('.ult-sticky'); var stick_behaviour = ult_sticky.data('stick_behaviour'); if ( stick_behaviour != 'stick_with_scroll_row' ){ return; } var fullwidth_row = false; //for Browser full width row if ( $this.parents('.upb-background-text').length ){ // has parent fullwidth_row = true; } var global_height = 0; //for resize var gutter = ult_sticky.data('gutter'); var gutter_class = ult_sticky.data('sticky_gutter_class'); var gutter_id = ult_sticky.data('sticky_gutter_id'); var mobile = ult_sticky.data('mobile'); //if ( stick_behaviour == 'stick_with_scroll_row' ) { gutter = ult_explode_offset( global_height, gutter, gutter_class, gutter_id ); var parent = $this.closest(".wpb_column").parent();//$this.closest('.vc_row'); var self_offset = $this.parent().offset().top; //alert(parent_offset); $this.addClass("ult_stick_to_row"); parent.addClass("ult_s_container"); //alert(parent); //alert(mobile); if( _windowsize < 768 && mobile == 'no'){ $this.trigger("sticky_kit:detach") return; }else{ $this.trigger("sticky_kit:recalc") $this.stick_in_parent({parent:".ult_s_container", offset_top:gutter, spacer: ult_row_spacer}) .on("sticky_kit:stick", function(e) { //console.log("has stuck!", e.target); //console.log( $(e.target).closest(".wpb_column").parent().css("display", "flex") ); $(e.target).css("top", "0"); //console.log($(e.target).offset().top); $(e.target).closest(".wpb_column").parent().css("display", "flex"); }) .on("sticky_kit:unstick", function(e) { //console.log("has unstuck!", e.target); //$(e.target).closest(".vc_row").css("display", "") $(e.target).closest(".wpb_column").parent().css("display", "") }) .on("sticky_kit:bottom", function(e) { //console.log("has stuck!", e.target); $(e.target).addClass("is_bottom"); $(e.target).css("bottom",""); // var s = $(window).scrollTop(); // var y = $(e.target).parent().offset().top; // var z = s-y+50; $(e.target).css('top', top_for_row + 'px'); }) .on("sticky_kit:unbottom", function(e) { //console.log("has unstuck!", e.target); $(e.target).removeClass("is_bottom"); }); } }); }*/ /****** inside row end *******/ function sticky_relocate() { elements = $('div.ult-sticky-anchor'); elements.each(function() { var $this = $(this); var ult_sticky = $this.find('.ult-sticky'); //var fullwidth_row = false; //for Browser full width row // if ( $this.parents('.upb-background-text').length ){ // has parent // fullwidth_row = true; // } var mobile = ult_sticky.data('mobile'); var ult_space = $this.find('.ult-space'); if ( _windowsize < 768 && mobile == 'no' ){ ult_sticky.removeClass("ult-stick"); ult_space.css('height', '') $this.removeClass('ult-permanent-flag'); return; } var window_top = _window.scrollTop(); var div_top = $this.offset().top; var win_height = _window.height(); var stick_behaviour = ult_sticky.data('stick_behaviour'); var support = ult_sticky.data('support'); // if( fullwidth_row = true && $this.hasClass( "is_stuck" ) ){ // var s = _window.scrollTop(); // var parent_height = $this.closest(".wpb_column").parent().parent().innerHeight(); // var parent_offset = $this.closest(".wpb_column").parent().parent().offset().top; // var parent_offset_height = parseInt(parent_offset) + parseInt(parent_height); // var y = $this.parent().offset().top; // var z = s-y+50; // var anchor_height = s + 50 + $this.outerHeight(); // console.log(parent_offset); // console.log(window_top); // if( anchor_height < parent_offset_height ){ // top_for_row = z; // $this.css('position','absolute'); // $this.css('top',z + 'px'); // } // return; // } if( stick_behaviour == 'stick_with_scroll_row' || support == 'yes'){ return; } var div_width = $this.parent().width(); var div_height = ult_sticky.height();//$(this).parents(".vc_row").height(); var global_height = 0; //for resize var gutter = ult_sticky.data('gutter'); var gutter_class = ult_sticky.data('sticky_gutter_class'); var gutter_id = ult_sticky.data('sticky_gutter_id'); var lr_position = ult_sticky.data('lr_position'); var lr_value = ult_sticky.data('lr_value'); var sticky_customwidth = ult_sticky.data('sticky_customwidth'); var sticky_width = ult_sticky.data('sticky_width'); var sticky_position = ult_sticky.data('sticky_position'); var flag = -1; //for bottom position //var sticky_element = $(this).find('ult-sticky'); gutter = ult_explode_offset( global_height, gutter, gutter_class, gutter_id ); if( sticky_position == 'top'){ window_top = parseInt(window_top) + parseInt(gutter); }else{ window_top = parseInt(window_top)+ parseInt(win_height)-parseInt(div_height)-parseInt(gutter); div_top = parseInt(div_top); //+ parseInt(div_height); } if(sticky_width == 'fullwidth' ){ div_width = '100%'; }else if( sticky_width == 'customwidth' ) { div_width = sticky_customwidth ; } var custom_css = {}; var div_width_pro = 'width'; custom_css[sticky_position] = gutter; custom_css[div_width_pro] = div_width; // for permanent if ( stick_behaviour == 'stick_permanent') { custom_css[lr_position] = lr_value; } var custom_css_t = {}; custom_css_t[sticky_position] = ""; custom_css_t[div_width_pro] = ""; if ( stick_behaviour == 'stick_permanent' && !$this.hasClass('ult-permanent-flag') ) { $this.addClass('ult-permanent-flag'); ult_sticky.addClass('ult-stick').css(custom_css); //$this.parents('.wpb_column').css('min-height', '0px'); } //alert(stick_behaviour); if ( stick_behaviour == 'stick_with_scroll' && window_top > div_top ) { //alert(resize_flag); flag=0; if( !$this.hasClass('ult-flag') || resize_flag == 0){ $this.addClass('ult-flag'); //resize_flag = -1; if ( sticky_width == 'fullwidth' ) { ult_sticky.addClass('ult-stick-full-width').css(custom_css); //div_height = $(this).find('.ult-sticky').height(); $this.find('.ult-space').css('height', div_height); flag=1; }else{ ult_sticky.addClass('ult-stick').css(custom_css); //div_height = $(this).find('.ult-sticky').height(); $this.find('.ult-space').css('height', div_height); flag=1; } // checked fullwidth end else } //checked ult flag end if } else if( stick_behaviour == 'stick_with_scroll' ) { if( $this.hasClass('ult-flag') ){ $this.removeClass('ult-flag'); if ( sticky_width == 'fullwidth' ) { ult_sticky.removeClass('ult-stick-full-width').css( custom_css_t ); $this.find('.ult-space').css('height', ''); }else{ ult_sticky.removeClass('ult-stick').css( custom_css_t ); $this.find('.ult-space').css('height', ''); } }//checked ult flag if end }// scroll top else end /* if( sticky_position == 'bottom' && flag != 1 && !$this.hasClass('ult-permanent-flag') ) { //var scroll_flag = -1; var temp_top = ""; if( window_top > div_top) { //scroll_flag = 0; temp_top = window_top-div_top; } else { // alert(); temp_top = 0; } if( window_top > div_top ) { div_height = ult_sticky.height(); } else { div_height = $this.find('.ult-space').height();} if( div_height - temp_top <= 0 ){ div_height = 0; } else{ div_height = div_height - temp_top; } $this.find('.ult-space').css('height', div_height); }*/ }); resize_flag = -1; } function ult_explode_offset (global_height, gutter, gutter_class, gutter_id ) { // gutter class and id height calculate if( !gutter_class ){ gutter_class = 'null'; } else{ var gutter_class_arr = gutter_class.split(' '); jQuery.each( gutter_class_arr, function( i, val ) { global_height = parseInt(global_height) + $( val ).outerHeight(); }); } if( !gutter_id ){ gutter_id = 'null'; } else{ var gutter_id_arr = gutter_id.split(' '); jQuery.each( gutter_id_arr, function( i, val ) { global_height = parseInt(global_height) + $( val ).outerHeight(); }); } if ( !gutter ){ gutter = global_height; }else{ gutter = parseInt(gutter) + parseInt(global_height) } return gutter; } //$(window).scroll(sticky_relocate); //sticky_relocate(); }); //})(jQuery);
Save