Forum Replies Created
-
AuthorPosts
-
October 20, 2013 at 11:03 am in reply to: Fullscreen Slider: change the height of 100% to 100% – 100px #178039
Hi all, thanks for all the responses in this thread. Thanks for pointing me in the right direction.
I finally solved it adding “- 125” to this line of code in shortcodes.js:
slide_height = Math.ceil( (viewport / 100) * this.options.height - 125 );
October 19, 2013 at 10:41 am in reply to: Fullscreen Slider: change the height of 100% to 100% – 100px #177816Thanks Dude!
This is coming closer to what I want! But unfortunatly your code isnt working. But I found this:
_setSize: function( ) { var viewport = this.$win.height(), slide_height = Math.ceil( (viewport / 100) * this.options.height ); if(this.$subtract.length) { this.$subtract.each(function() { slide_height -= this.offsetHeight; }); }
If i change “viewport / 100” to “viewport / 125” it give me almost what I want. This is still relative. I want it to be fixed instead of relative. Meaning you can always see 125px of the page beneath the slider.
Michael
edit: i applied the / 125 at the moment
-
This reply was modified 11 years, 4 months ago by
vruchtvlees.
October 19, 2013 at 10:31 am in reply to: Fullscreen Slider: change the height of 100% to 100% – 100px #177814This reply has been marked as private.October 17, 2013 at 8:49 pm in reply to: Fullscreen Slider: change the height of 100% to 100% – 100px #177162Hi Josue,
will do that later. Thanks!
Meanwhile: isn’t there a piece of JavaScript running that measure the browsers height and sets the height as inline css (element.style) for the slider div? The marked green area in the above image?
I have the idea that with a simple customization of the JS we can set the height we want :)
For example something like this:
$browserheight=100%
$correction=100px
$newheight = $browserheight – $correction<div style=”$newheight”>slider content</div>
Michael
October 17, 2013 at 7:29 pm in reply to: Fullscreen Slider: change the height of 100% to 100% – 100px #177143Hi Josue,
thanks for your suggestion. Too bad it i’snt working.
The slider will still display fullscreen.Michael
October 17, 2013 at 10:23 am in reply to: Fullscreen Slider: change the height of 100% to 100% – 100px #176928Attached an image to make things more clear
October 17, 2013 at 9:36 am in reply to: Fullscreen Slider: change the height of 100% to 100% – 100px #176912Hi,
thanks for your reply. You can take a look at the(work in progress) website here
-
This reply was modified 11 years, 4 months ago by
vruchtvlees.
-
This reply was modified 11 years, 4 months ago by
-
AuthorPosts