Matt2
(Matt)
January 19, 2016, 5:20pm
1
Would anybody be able to help? I’m trying to make an AD gallery responsive and having trouble inserting javascript. Not sure where it goes.
Have added css in ‘my-styles.css’ but struggling with code below which hopefully would correct height.
$ImageGallery1.settings.callbacks.afterImageVisible = function() {
var imgHeight = $(".ad-image img").height();
$(".ad-image-wrapper").css('height', imgHeight+'px');
}
Any pointers much appreciated
http://www.mattbrooke.co.uk/gallery/
freewaytalk mailing list
email@hidden
Update your subscriptions at:
The purpose of this topic is to provide information about the migration from FreewayTalk and Groups io to Discourse and the differences in Discourse, as well as a place to discuss the good or bad of the migration. For those previously subscribing...
Reading time: 2 mins 🕑
Likes: 1 ❤
Any particular reason you chose this one - the demo page doesn’t seem to be live any more which makes me think it is unsupported.
But to add a code block like this - without seeing the demo - should probably be in Page>Html Markup in the Before end section.
Wrapped in script tags so you have
<script type="text/javascript">
$ImageGallery1.settings.callbacks.afterImageVisible = function() {
var imgHeight = $(".ad-image img").height();
$(".ad-image-wrapper").css('height', imgHeight+'px');
}
</script>
David
freewaytalk mailing list
email@hidden
Update your subscriptions at:
The purpose of this topic is to provide information about the migration from FreewayTalk and Groups io to Discourse and the differences in Discourse, as well as a place to discuss the good or bad of the migration. For those previously subscribing...
Reading time: 2 mins 🕑
Likes: 1 ❤
On further investigation I think you are flogging a dead horse!
There are loads of responsive galleries out there with current discussions/support. This isn’t one of them and was never written to be responsive.
D
freewaytalk mailing list
email@hidden
Update your subscriptions at:
The purpose of this topic is to provide information about the migration from FreewayTalk and Groups io to Discourse and the differences in Discourse, as well as a place to discuss the good or bad of the migration. For those previously subscribing...
Reading time: 2 mins 🕑
Likes: 1 ❤
Matt2
(Matt)
January 19, 2016, 10:31pm
4
Thanks for getting back Dave.
I used to use slideshow pro and have indeed chosen another gallery that is quite old but like the look and how I can customise, well almost!
the demo looks like this http://www.mattbrooke.co.uk/ad-galley/example/example.html
I forgot to add comment below but still not sure if
‘$ImageGallery1’
is part of ‘var galleries = $(’.ad-gallery’).adGallery({
'in my jquery.ad-gallery.js file
$ImageGallery1 is our global instance of the adGallery used when we
first initialized it like so $ImageGallery1 = $('.gallery').adGallery({...});
freewaytalk mailing list
email@hidden
Update your subscriptions at:
The purpose of this topic is to provide information about the migration from FreewayTalk and Groups io to Discourse and the differences in Discourse, as well as a place to discuss the good or bad of the migration. For those previously subscribing...
Reading time: 2 mins 🕑
Likes: 1 ❤
Matt2
(Matt)
January 19, 2016, 10:34pm
5
Cheers Dave probably right might have a look at royalslider instead.
freewaytalk mailing list
email@hidden
Update your subscriptions at:
The purpose of this topic is to provide information about the migration from FreewayTalk and Groups io to Discourse and the differences in Discourse, as well as a place to discuss the good or bad of the migration. For those previously subscribing...
Reading time: 2 mins 🕑
Likes: 1 ❤
Wouldn’t this be an excellent job for EXHIBEOs’ “Showtime” theme?
Cheers
Thomas
freewaytalk mailing list
email@hidden
Update your subscriptions at:
The purpose of this topic is to provide information about the migration from FreewayTalk and Groups io to Discourse and the differences in Discourse, as well as a place to discuss the good or bad of the migration. For those previously subscribing...
Reading time: 2 mins 🕑
Likes: 1 ❤
Matt2
(Matt)
January 20, 2016, 10:30am
7
It would indeed if only I could get on with it! and was thinking of giving it another go. In the past I have always found the images a bit blurry
which I think is because it uses bilinear interpolation.
is it easy to re-style the look? I would like the forward
/back arrows in a different place and a image count.
freewaytalk mailing list
email@hidden
Update your subscriptions at:
The purpose of this topic is to provide information about the migration from FreewayTalk and Groups io to Discourse and the differences in Discourse, as well as a place to discuss the good or bad of the migration. For those previously subscribing...
Reading time: 2 mins 🕑
Likes: 1 ❤
On 20 Jan 2016, 10:30 am, Matt wrote:
It would indeed if only I could get on with it! and was thinking of giving it another go. In the past I have always found the images a bit blurry
which I think is because it uses bilinear interpolation.
Well Matt, the entire truth is, I’ve never used EXHIB for productional purposes - so I wasn’t aware of this.
is it easy to re-style the look? I would like the forward
/back arrows in a different place and a image count.
Hm - it’s as easy as inspecting elements in browser, playing with the settings and bringing them into your Freeway-doc (whatever place preferred). So everything from “not too much” up to “gosh, what?”, depending on your skills and expectations. But as said - never had a deeper look into it.
Cheers
Thomas
freewaytalk mailing list
email@hidden
Update your subscriptions at:
The purpose of this topic is to provide information about the migration from FreewayTalk and Groups io to Discourse and the differences in Discourse, as well as a place to discuss the good or bad of the migration. For those previously subscribing...
Reading time: 2 mins 🕑
Likes: 1 ❤
Matt2
(Matt)
January 20, 2016, 8:37pm
9
Where did it all go wrong! I hope exhibeo 2 is more promising. Showcase did a much better job than exhibeo for photos.
freewaytalk mailing list
email@hidden
Update your subscriptions at:
The purpose of this topic is to provide information about the migration from FreewayTalk and Groups io to Discourse and the differences in Discourse, as well as a place to discuss the good or bad of the migration. For those previously subscribing...
Reading time: 2 mins 🕑
Likes: 1 ❤