Ignore:
Timestamp:
2022-06-21T14:58:37+12:00 (22 months ago)
Author:
davidb
Message:

fixed scrollIntoView issue where entire page would scroll by changing option block to nearest from center. small changes to colours

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/web/interfaces/default/js/utility_scripts.js

    r36217 r36269  
    268268   var itemType;
    269269
    270    var accentColour = "#4CA72D";
    271    // var accentColour = "#F8C537";
     270   // var accentColour = "#4CA72D";
     271   var accentColour = "#F8C537";
    272272   var regionTransparency = "59";
    273273
     
    279279      backgroundColor: "rgb(54, 73, 78)",
    280280      waveColor: "white",
    281       progressColor: ["white", accentColour],
     281      progressColor: accentColour,
    282282      barWidth: 2,
    283283      barHeight: 1.2,
     
    326326         document.getElementById("chapter" + region.id.replace("region", "")).scrollIntoView({
    327327            behavior: "smooth",
    328             block: "center"
     328            block: "nearest"
    329329         });
    330330      }
     
    344344         itemType = "word";
    345345         loadJSONFile(inputFile);
    346       } else {
     346      } else {                     
    347347         console.log("Filetype of " + inputFile + " not supported.")
    348348      }
    349349      loader.remove(); // remove load text
    350350   });
    351 
    352    function downloadURI(loc, name)
    353    {
     351   
     352   function downloadURI(loc, name) {
    354353      var link = document.createElement("a");
    355354      link.download = name;
Note: See TracChangeset for help on using the changeset viewer.