Ignore:
Timestamp:
2019-05-09T17:34:07+12:00 (5 years ago)
Author:
wy59
Message:
  1. Phase 2: Changed the thickness and opacity label display (which were next to their slider controls) into input fields. Editing the input fields now also updates the slider controls. 2. Some bug fixes, for example can now use numeric and regulare keypad's numbers when focus is on thickness/opacity inputs. 3. Changes to css to get the input fields looking right.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/web/interfaces/default/transform/pages/document.xsl

    r33042 r33061  
    247247                        <div id="SecondRow">
    248248                            <div id="LineThickness">
    249                                 <p>Line thickness:
    250                                     <span id="thicknessRangeVal-{@nodeID}">1.00</span>
    251                                     <!--<input id="thicknessRangeVal-{@nodeID}" type="number" min="1.00" max="5.00" value="1.00" />-->
    252                                     <input type="range" min="20" max="100" value="1" class="slider" id="thicknessRange-{@nodeID}" />
     249                                <p style="display:inline-block">Line thickness:
     250                                    <!-- <span id="thicknessRangeVal-{@nodeID}">1.00</span> -->
     251                                    <div class="valueChanger">
     252                                        <input type="number" class="valueInput" id="thicknessRangeVal-{@nodeID}" min="1.00" max="5.00" value="1.00" step="0.01" />
     253                                        <span class="unit" style="display:none">%</span>
     254                                        <!-- % sign added above, to keep the thickness field width equal to that of the opacity field -->
     255                                        <!-- setting the step attribute to 0.01 means we allow 2 decimal places
     256                                            (then Firefox won't make the box red/invalid for values with 2 dec places)
     257                                        -->
     258                                    </div>
     259                                    <input type="range"  size="2" min="20" max="100" value="1" class="slider" id="thicknessRange-{@nodeID}" />             
    253260                                </p>
    254261                                <!-- <p>Value: </p> -->
     
    256263                           
    257264                            <div id="ColourOpacity">
    258                                 <p>Colour opacity:
    259                                     <span id="opacityRangeVal-{@nodeID}">1.0</span>
    260                                     <input type="range" min="10" max="100" value="40" class="slider" id="colourOpacity-{@nodeID}" />
     265                                <p style="display:inline-block">Colour opacity:
     266                                    <!-- <span id="opacityRangeVal-{@nodeID}">1.0</span> -->
     267                                    <div class="valueChanger">
     268                                        <input type="number" class="valueInput" id="opacityRangeVal-{@nodeID}" min="0.0" max="100.0" value="40" />
     269                                        <span class="unit">%</span>
     270                                    </div>
     271                                    <input type="range" min="0" max="100" value="40" class="slider" id="colourOpacity-{@nodeID}" />
    261272                                </p>
    262273                                <!-- <p>Value: </p> -->
Note: See TracChangeset for help on using the changeset viewer.