From a7f5f61839e4a95b989f32de362da54ff5f0c63d Mon Sep 17 00:00:00 2001 From: Adam Collins Date: Mon, 19 Jun 2023 10:20:44 +1000 Subject: [PATCH] Use carousel for expert distributions --- grails-app/assets/javascripts/species.show.js | 2 +- grails-app/assets/stylesheets/atlas.css | 21 ++++++++++++- grails-app/views/species/_overview.gsp | 30 ++++++++++++------- 3 files changed, 41 insertions(+), 12 deletions(-) diff --git a/grails-app/assets/javascripts/species.show.js b/grails-app/assets/javascripts/species.show.js index 67ab902..be8ed6c 100755 --- a/grails-app/assets/javascripts/species.show.js +++ b/grails-app/assets/javascripts/species.show.js @@ -913,7 +913,7 @@ function prevDistribution() { function showDistribution() { $("#expertDistroDiv img").attr("src", distributions[distributionsIdx].url); - $("#dataResourceAreaName").text(distributions[distributionsIdx].name) + $("#dataResourceAreaName").text((distributionsIdx + 1) + ": " + distributions[distributionsIdx].name) if (distributions[distributionsIdx].dr) { var attr = $('').attr('href', SHOW_CONF.collectoryUrl + '/public/show/' + distributions[distributionsIdx].dr).text(distributions[distributionsIdx].providerName) $("#expertDistroDiv #dataResource").html(attr); diff --git a/grails-app/assets/stylesheets/atlas.css b/grails-app/assets/stylesheets/atlas.css index ad0414e..7d25f11 100755 --- a/grails-app/assets/stylesheets/atlas.css +++ b/grails-app/assets/stylesheets/atlas.css @@ -216,4 +216,23 @@ html, body {height:100%;} .margin-bottom-30 { margin-bottom: 30px; -} \ No newline at end of file +} + +/* expertDistro */ +.carousel-button { + height:316px; + font-size:30px; + color:gray; + background: #3a3a3a; + border:0; +} + +.carousel-button:hover { + color:white; + /*background: #7a7a7a;*/ +} + +.carousel-button:disabled { + opacity: 0.0; +} + diff --git a/grails-app/views/species/_overview.gsp b/grails-app/views/species/_overview.gsp index 5585064..e63468b 100644 --- a/grails-app/views/species/_overview.gsp +++ b/grails-app/views/species/_overview.gsp @@ -73,18 +73,28 @@