Ignore:
Timestamp:
2019-05-09T17:43:55+12:00 (5 years ago)
Author:
wy59
Message:

Tidying up the previous commit of debug statements

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/web/interfaces/default/js/map-scripts-editor.js

    r33061 r33062  
    55    // https://stackoverflow.com/questions/4271566/how-do-i-know-which-version-of-javascript-im-using
    66    this.MAX_THICKNESS = 5.0;
    7     this.MIN_THICKNESS = 0.0;
    8    
     7    this.MIN_THICKNESS = 0.0;   
    98    this.MAX_OPACITY = 100.00;
    109    this.MIN_OPACITY = 0.00;
     
    7069    var thicknessValue = ((thicknessSlider.value / 20) * 100) / 100;
    7170    thicknessSliderOutput.value = thicknessValue.toFixed(2);
    72     //console.log("Init thickness slider value: " + thicknessValue);
    7371
    7472    thicknessSlider.oninput = function () {
     
    9593    var opacitySlider = document.getElementById("colourOpacity" + "-" + this.id);
    9694    var opacitySliderOutput = document.getElementById("opacityRangeVal" + "-" + this.id);
    97     //opacitySliderOutput.innerHTML = Math.round(opacitySlider.value) + "%";
    9895   
    9996    opacitySlider.oninput = function () {
     
    484481MapEditor.prototype.addMarkerListeners = function (newShape, e) {
    485482    var that = this;
    486     //cLICK EVENT IF A MARKER IS CREATED
     483    //Click event if a marker is created
    487484    google.maps.event.addListener(newShape, 'click', function (e) {
    488485        if(that.shiftKeyPressed){
     
    662659}
    663660
    664 MapEditor.prototype.updateMenuValues = function (thi, opa, fCol, sCol) {
    665     //console.log("New thickness value: " + thi);
     661MapEditor.prototype.updateMenuValues = function (thi, opa, fCol, sCol) {   
    666662    //Update thickness slider and value on the settings menu
    667663    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   
    670665    thi = parseFloat(thi); //Ensure the thi is a number
    671666    thicknessSliderOutput.value = thi.toFixed(2);
Note: See TracChangeset for help on using the changeset viewer.