Forum Replies Created
-
AuthorPosts
-
Thank you for your answer
I’ve tried that already and it didn’t work for me because I’ve enabled the next and previous sliders to search within a single category only and this plugin cancels that.
works like a charm, thanks!
should also have opacity:0; for .current-menu-parent in case there are dropdown menus
November 30, 2014 at 9:50 pm in reply to: Resizing gallery preview image according to browser window's height. #360416Thanks Josue,
This is what I ended up using :)<script>
var ratio = 1.5;
var factor = 0.75;
var global_window_height = jQuery(window).height();function myfunction() {
var window_height = jQuery(window).height();
var container_width = parseFloat(jQuery(‘.entry-content’).css(‘width’));
var new_height = factor * window_height;
var new_width = new_height/ratio;
if (new_width > container_width) {
new_width = container_width;
new_height = new_width*ratio;
}
jQuery(‘.avia-gallery-big-inner img’).css(‘height’, new_height);
jQuery(‘.avia-gallery-big-inner img’).css(‘width’, new_width);
}jQuery(window).on(‘resize’, myfunction);
jQuery(window).on(‘load’,myfunction);
</script>Ok, thanks.
problem existed between keyboard and chair
sorry!February 24, 2014 at 10:23 am in reply to: Accommodate vertical and horizontal images in slider w/out controls changing pos #228397Thank you for your answer.
It’s not what I’m after exactly. Let me describe it in detail and maybe you would have some suggestions on where I should start looking to program it.
– The div image container stays square at 800×800 or less (dynamically resized so that all images are fully visible inside the current window size and don’t overflow it, causing the need to scroll)
– Horizontal pictures are vertically aligned to the middle of the div
– As a result the “next/previous” arrow controls stay at the same place throughout the slideshowThanks again
Edit: Let me just add that doing the same with the lightbox instead of the fullwidth slider is also good for me, would that be easier to program?
- This reply was modified 10 years, 10 months ago by AlexKK.
-
AuthorPosts