Difference between revisions of "MemEOL"

From Desal Wiki
Line 3: Line 3:
 
<html>
 
<html>
 
<head>
 
<head>
 +
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/jquery.bootstrapvalidator/0.5.2/css/bootstrapValidator.min.css"/>
 +
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/jquery.bootstrapvalidator/0.5.2/js/bootstrapValidator.min.js"></script>
 
<script>
 
<script>
 
$( document ).ready(function() {
 
$( document ).ready(function() {
Line 12: Line 14:
 
});
 
});
 
});
 
});
 +
 +
//validator
 +
/*
 +
$('.registerForm').bootstrapValidator({
 +
        message: 'This value is not valid.',
 +
        live: 'enabled',
 +
        feedbackIcons: {
 +
            valid: 'glyphicon glyphicon-ok',
 +
            invalid: 'glyphicon glyphicon-remove',
 +
            validating: 'glyphicon glyphicon-refresh'
 +
        },
 +
        submitButtons: '.memEOL-submit',
 +
        fields: {
 +
        damagedMembranes: {
 +
        validators: {
 +
        notEmpty: {
 +
        message: 'Please indicate if the membrane has been damaged.'
 +
        }
 +
        }
 +
        },
 +
        testedPermeability: {
 +
                    notEmpty: {
 +
                        message: 'The permeability of your membranes is a required parameter for this decision tool.'
 +
                    },
 +
                    stringLength: {
 +
                        max: 100,
 +
                        message: 'Permeability value is too long.'
 +
                    },
 +
                    regexp: {
 +
                        regexp: /^[0-9]+([\.][0-9]+)?$/,
 +
                        message: 'Please enter a number (eg. 2.0).'
 +
                    }       
 +
        },
 +
        NaClRejection: {
 +
                    notEmpty: {
 +
                        message: 'The salt rejection of your membranes is a required parameter for this decision tool.'
 +
                    },
 +
                    stringLength: {
 +
                        max: 20,
 +
                        message: 'Salt rejection value is too long.'
 +
                    },
 +
                    regexp: {
 +
                        regexp: /^[0-9][0-9]?([\.][0-9]+)?$/,
 +
                        message: 'Please enter a number between 0 and 100.'
 +
                    }       
 +
        }
 +
        }
 +
    });
 +
*/
 +
//end validator
  
 
var dictionaryMagicNumbers = {
 
var dictionaryMagicNumbers = {
Line 61: Line 113:
 
}
 
}
  
 +
function getPhysicalDamage(){
 +
var result = $('input[name="damagedMembranes"]:checked').val();
 +
return result; //damagedMembranesYes damagedMembranesNo
 +
}
  
 +
function getPermeability(){
 +
var result = $('#testedPermeability').val();
 +
return result;
 +
}
  
 +
function getNaClRejection(){
 +
var result = $('#NaClRejection').val();
 +
return result;
 +
}
  
 
$( document ).ready(function() {
 
$( document ).ready(function() {
Line 132: Line 196:
 
<div class="form-group">
 
<div class="form-group">
 
<label class="control-label sr-only" for="testedPermeability">Tested permeability (LMH/bar):</label>
 
<label class="control-label sr-only" for="testedPermeability">Tested permeability (LMH/bar):</label>
<input type="text" class="form-control" id="testedPermeability" placeholder="Tested permeability in LMH/bar">
+
<input type="text" class="form-control" id="testedPermeability" name="testedPermeability" placeholder="Tested permeability in LMH/bar">
 
</div>
 
</div>
 
</form>
 
</form>
Line 147: Line 211:
 
<div class="form-group">
 
<div class="form-group">
 
<label class="control-label sr-only" for="NaClRejection">Tested permeability (LMH/bar):</label>
 
<label class="control-label sr-only" for="NaClRejection">Tested permeability (LMH/bar):</label>
<input type="text" class="form-control" id="NaClRejection" placeholder="% NaCl Rejection">
+
<input type="text" class="form-control" id="NaClRejection" name="NaClRejection" placeholder="% NaCl Rejection">
 
</div>
 
</div>
 
</form>
 
</form>
Line 216: Line 280:
 
<form class="form-horizontal" role="form">
 
<form class="form-horizontal" role="form">
 
<div class="form-group">
 
<div class="form-group">
<button type="button" class="btn btn-primary btn-lg btn-block memEOL-submit">Submit</button>
+
<button type="submit" class="btn btn-primary btn-lg btn-block memEOL-submit">Submit</button>
 
</div>
 
</div>
 
</form>
 
</form>
Line 227: Line 291:
 
}
 
}
 
</style>
 
</style>
 +
<!--
 
<script src="http://cdnjs.cloudflare.com/ajax/libs/jquery-validate/1.11.1/jquery.validate.js"></script>
 
<script src="http://cdnjs.cloudflare.com/ajax/libs/jquery-validate/1.11.1/jquery.validate.js"></script>
 
<script src="http://cdnjs.cloudflare.com/ajax/libs/jquery-validate/1.11.1/additional-methods.js"></script>
 
<script src="http://cdnjs.cloudflare.com/ajax/libs/jquery-validate/1.11.1/additional-methods.js"></script>
 +
-->
 
</head>
 
</head>
 
<body></body></html>
 
<body></body></html>
 
[[Category:Major Resources]]
 
[[Category:Major Resources]]
 
[[Category:Resources]]
 
[[Category:Resources]]

Revision as of 07:25, 29 October 2014

Introduction text

Do you suspect there is any physical damage to the membranes that would prevent them from being reused?

What is the tested permeability of your membranes (LMH/bar)?

What is the tested NaCl rejection of your membranes? (% NaCl rejection)


Please order the following criteria in the order of importance for your project (drag and drop):

  • Financial
  • Effort required
  • Environmental impact
  • Landfill impact
  • Public perception
Most important Least important