- Timestamp:
- 2019-05-09T17:43:55+12:00 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone3/web/interfaces/default/js/map-scripts-editor.js
r33061 r33062 5 5 // https://stackoverflow.com/questions/4271566/how-do-i-know-which-version-of-javascript-im-using 6 6 this.MAX_THICKNESS = 5.0; 7 this.MIN_THICKNESS = 0.0; 8 7 this.MIN_THICKNESS = 0.0; 9 8 this.MAX_OPACITY = 100.00; 10 9 this.MIN_OPACITY = 0.00; … … 70 69 var thicknessValue = ((thicknessSlider.value / 20) * 100) / 100; 71 70 thicknessSliderOutput.value = thicknessValue.toFixed(2); 72 //console.log("Init thickness slider value: " + thicknessValue);73 71 74 72 thicknessSlider.oninput = function () { … … 95 93 var opacitySlider = document.getElementById("colourOpacity" + "-" + this.id); 96 94 var opacitySliderOutput = document.getElementById("opacityRangeVal" + "-" + this.id); 97 //opacitySliderOutput.innerHTML = Math.round(opacitySlider.value) + "%";98 95 99 96 opacitySlider.oninput = function () { … … 484 481 MapEditor.prototype.addMarkerListeners = function (newShape, e) { 485 482 var that = this; 486 // cLICK EVENT IF A MARKER IS CREATED483 //Click event if a marker is created 487 484 google.maps.event.addListener(newShape, 'click', function (e) { 488 485 if(that.shiftKeyPressed){ … … 662 659 } 663 660 664 MapEditor.prototype.updateMenuValues = function (thi, opa, fCol, sCol) { 665 //console.log("New thickness value: " + thi); 661 MapEditor.prototype.updateMenuValues = function (thi, opa, fCol, sCol) { 666 662 //Update thickness slider and value on the settings menu 667 663 var thicknessSliderOutput = document.getElementById("thicknessRangeVal" + "-" + this.id); 668 // update the thickness innerHTML's value to always have 2 decimal places, https://www.w3schools.com/js/js_number_methods.asp 669 //console.log("thi =" + thi + " type of = " + typeof thi ); 664 // update the thickness innerHTML's value to always have 2 decimal places, https://www.w3schools.com/js/js_number_methods.asp 670 665 thi = parseFloat(thi); //Ensure the thi is a number 671 666 thicknessSliderOutput.value = thi.toFixed(2);
Note:
See TracChangeset
for help on using the changeset viewer.