A new gallery for RSD maybe? - Post...

User 2823310 Photo


Registered User
312 posts

Figured we need a simple gallery so I started a script after work today...
It uses 4 big pictures (1200x500) put in an folder called img then uses those pics for the thumbnails too.
So if anyone wants to play around with it?

Temporay Gallery Test Example
Temporay Gallery Zip Download

What I want to do eventually is get the containers done so I can float the
paragraph that I have coming from the pictures alt tag below for small
screens and over the image on large screens like I did with the orbit carousel
So if anyone wants to fool around with that part
I'm going to write a bit more script maybe to add an active class for the thumbs
so when you select them the border stays a changed color on the thumbs

Anyway I put a picture in a column gave it the ID bigpic
and to the id made it 100% width then added the class thumb
that's where it's tricky all the images need the thumb class
so you have to apply style to the ID & the class separately

I put a paragraph below it and gave it the ID description
and edited it to say 1st picture description
gave it the class gallery-description to style it
That changes by using the pictures alt tags

Then I add a container and gave it the class thumbnails
In it I added a picture gave it the class thumb
For it's alt I used 1st image description
duplicated it 3 time and changed the images and alt tags

On the container used Flex Direction Row and justify Space around

In the FOOTER slapped this script:

<script>
$('.thumbnails img').click(function(){
var thumbSrc = $('.thumb').children('img').attr('src');
var largeSrc = $('div#bigpic img').attr('src');
$('div#bigpic img').attr('src',$(this).attr('src').replace(thumbSrc,largeSrc));
$('#description').html($(this).attr('alt'));
});
</script>
That gets the the pictures with the class thumb and puts them in the bigpic image then uses the alt for the description.

Eventually I'll get it done and up as a step by step tutorial.
Nice having the proper src, now we can do normal stuff like this.
User 2699991 Photo


Registered User
5,397 posts

Alter Eagle wrote:
Figured we need a simple gallery so I started a script after work today...
It uses 4 big pictures (1200x500) put in an folder called img then uses those pics for the thumbnails too.
So if anyone wants to play around with it?

Temporay Gallery Test Example
Temporay Gallery Zip Download

What I want to do eventually is get the containers done so I can float the
paragraph that I have coming from the pictures alt tag below for small
screens and over the image on large screens like I did with the orbit carousel
So if anyone wants to fool around with that part
I'm going to write a bit more script maybe to add an active class for the thumbs
so when you select them the border stays a changed color on the thumbs

Anyway I put a picture in a column gave it the ID bigpic
and to the id made it 100% width then added the class thumb
that's where it's tricky all the images need the thumb class
so you have to apply style to the ID & the class separately

I put a paragraph below it and gave it the ID description
and edited it to say 1st picture description
gave it the class gallery-description to style it
That changes by using the pictures alt tags

Then I add a container and gave it the class thumbnails
In it I added a picture gave it the class thumb
For it's alt I used 1st image description
duplicated it 3 time and changed the images and alt tags

On the container used Flex Direction Row and justify Space around

In the FOOTER slapped this script:

<script>
$('.thumbnails img').click(function(){
var thumbSrc = $('.thumb').children('img').attr('src');
var largeSrc = $('div#bigpic img').attr('src');
$('div#bigpic img').attr('src',$(this).attr('src').replace(thumbSrc,largeSrc));
$('#description').html($(this).attr('alt'));
});
</script>
That gets the the pictures with the class thumb and puts them in the bigpic image then uses the alt for the description.

Eventually I'll get it done and up as a step by step tutorial.
Nice having the proper src, now we can do normal stuff like this.


Nice One again Alter Eagle,,, just as a thought do you think it would be possible to have the thumbs slide for when there are more than take up the width, rather than have then stack ? ? for those who have a large number of images, That is going to be a bit beyond my capabilities I think.if it is at all possible

thanks again for sharing

Wayan
Mastering The Understanding With Hands-On Learning
NEW TO "COFFEECUP SITE DESIGNER" FOUNDATION 6 FRAMEWORK?
STUCK ON SOMETHING?

LEARNING & UNDERSTANDING "THE HOW TO"? THE WHY'S & THE WHEREFORE'S?
WITH WAYAN'S STEP BY STEP TUTORIALS


A simple quick way to contact me
https://mawarputih.coffeecup.com/forms/contact-wayan/
User 2823310 Photo


Registered User
312 posts

Hi Wayan,
What you can try for horizontal scrolling thumbs is:
Change the thumbnails container back to block from flex
In POSITION set it overflow auto
In TYPOGRAPHY set wrapping to no wrap and center align

On the pictures set them to inline block

User 2823310 Photo


Registered User
312 posts

Wayan,
I changed the thumbnails container so it will go to sliding images for more images so you can see how that works.
If you make the screen smaller in this example it'll add a bottom cursor or on mobile you can just slide them over.
Also made the description so it goes on the image for large screens and below for mobile.
So the download is updated for those that want to fool around with it.

I'll add it to step by step for a gallery option for RSD eventually
User 2823310 Photo


Registered User
312 posts

It's now a TUTORIAL on step by step (links in the signature below)
Refresh / reload your browser to see the changes if needed

I'll be removing the above test links & download, I use that folder for new stuff.
User 2699991 Photo


Registered User
5,397 posts

Alter Eagle wrote:
It's now a TUTORIAL on step by step (links in the signature below)
Refresh / reload your browser to see the changes if needed

I'll be removing the above test links & download, I use that folder for new stuff.


Another little beauty from Alter Eagle great thanks for doing it,
Mastering The Understanding With Hands-On Learning
NEW TO "COFFEECUP SITE DESIGNER" FOUNDATION 6 FRAMEWORK?
STUCK ON SOMETHING?

LEARNING & UNDERSTANDING "THE HOW TO"? THE WHY'S & THE WHEREFORE'S?
WITH WAYAN'S STEP BY STEP TUTORIALS


A simple quick way to contact me
https://mawarputih.coffeecup.com/forms/contact-wayan/
User 2699991 Photo


Registered User
5,397 posts

Alter Eagle wrote:
It's now a TUTORIAL on step by step (links in the signature below)
Refresh / reload your browser to see the changes if needed

I'll be removing the above test links & download, I use that folder for new stuff.


Hi Alter Eagle
Call me thick if you like,, but I am really struggling on how to change the text for the picture description on slides 2-4
I have tried to follow your instructions but still can't get how to do that.
& on the first slide I edited the text (put bigger description which shows ok when first opened on the page, but when you go back to the first image after looking at the other images, the description reverts back to "First picture description" (as in the alt for that picture1.jpg
I am sorry to trouble you but not much hair left trying to work it out

here is link to a short video showing what is happening
https://youtu.be/q_V26JSssBM
Mastering The Understanding With Hands-On Learning
NEW TO "COFFEECUP SITE DESIGNER" FOUNDATION 6 FRAMEWORK?
STUCK ON SOMETHING?

LEARNING & UNDERSTANDING "THE HOW TO"? THE WHY'S & THE WHEREFORE'S?
WITH WAYAN'S STEP BY STEP TUTORIALS


A simple quick way to contact me
https://mawarputih.coffeecup.com/forms/contact-wayan/
User 2699991 Photo


Registered User
5,397 posts

Wayan Jaya wrote:
Alter Eagle wrote:
It's now a TUTORIAL on step by step (links in the signature below)
Refresh / reload your browser to see the changes if needed

I'll be removing the above test links & download, I use that folder for new stuff.


Hi Alter Eagle
Call me thick if you like,, but I am really struggling on how to change the text for the picture description on slides 2-4
I have tried to follow your instructions but still can't get how to do that.
& on the first slide I edited the text (put bigger description which shows ok when first opened on the page, but when you go back to the first image after looking at the other images, the description reverts back to "First picture description" (as in the alt for that picture1.jpg
I am sorry to trouble you but not much hair left trying to work it out

here is link to a short video showing what is happening
https://youtu.be/q_V26JSssBM


Actually I think I worked it out,,, The description is the "Alt" and the text is just for styling (simple really and amazing how once you just sort of share something one has been puzzling over for a long time,,, suddenly that AHHH moment comes out of the blue)
My only problem now is the limitation of how many characters one can have for the "Alt" not enough for what I was hoping to do ahh well back to the drawing board

Thanks again for sharing this little beauty,
Mastering The Understanding With Hands-On Learning
NEW TO "COFFEECUP SITE DESIGNER" FOUNDATION 6 FRAMEWORK?
STUCK ON SOMETHING?

LEARNING & UNDERSTANDING "THE HOW TO"? THE WHY'S & THE WHEREFORE'S?
WITH WAYAN'S STEP BY STEP TUTORIALS


A simple quick way to contact me
https://mawarputih.coffeecup.com/forms/contact-wayan/
User 2823310 Photo


Registered User
312 posts

Yes Wayan the descriptions come from the alt text you put in for the images. In RSD it looks like they are limiting that to 114 characters? I see the one line I put in there on it may not make that clear enough. I'll put a little more in the tutorial about how that works, thanks for pointing that out.

I was trying to make it as easy as possible so used the alt tags and the large images as thumbs plus that way I could keep the little script I wrote down to only a few lines in the footer.

We are surrounded by 7 wildfires this morning here north of San Francisco in California, so I hope you guys avert that volcano both can make the air quality hard to breath downwind. Between volcanos earthquakes and fires it's like we are living life on the edge huh?
User 2699991 Photo


Registered User
5,397 posts

Alter Eagle wrote:
Yes Wayan the descriptions come from the alt text you put in for the images. In RSD it looks like they are limiting that to 114 characters? I see the one line I put in there on it may not make that clear enough. I'll put a little more in the tutorial about how that works, thanks for pointing that out.

I was trying to make it as easy as possible so used the alt tags and the large images as thumbs plus that way I could keep the little script I wrote down to only a few lines in the footer.

We are surrounded by 7 wildfires this morning here north of San Francisco in California, so I hope you guys avert that volcano both can make the air quality hard to breath downwind. Between volcanos earthquakes and fires it's like we are living life on the edge huh?


Yep mother nature is starting to complain a bit I think,, here the rainy season has already started (2 months early) last year we hardly had a rainy season when it was suppossed to be instead we has rainy season, when it was supposed to be dry season.

I got round that limit in alt thingy by inserting the text I want after exporting,, works & looks a treat (although not finished the site fully yet,

Thanks again

Stay safe over there in hot & presumably smoky California (I have an Aunt that lives in Auburn might have to check on her to see if she is ok, although not sure if that is near San Fransisco

Wayan
Mastering The Understanding With Hands-On Learning
NEW TO "COFFEECUP SITE DESIGNER" FOUNDATION 6 FRAMEWORK?
STUCK ON SOMETHING?

LEARNING & UNDERSTANDING "THE HOW TO"? THE WHY'S & THE WHEREFORE'S?
WITH WAYAN'S STEP BY STEP TUTORIALS


A simple quick way to contact me
https://mawarputih.coffeecup.com/forms/contact-wayan/

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.