Difference between revisions of "MemEOL"

From Desal Wiki
Line 257: Line 257:
  
 
$( document ).ready(function() {
 
$( document ).ready(function() {
 +
        mw.loader.using( ['jquery.ui.core', 'ext.bootstrap','ext.bootstrap.scripts', 'ext.bootstrap.styles'], function () {
 +
            $('.form-memEOL').bootstrapValidator()
 +
            .on('success.form.bv', function(e) {
 +
            // Prevent form submission
 +
                e.preventDefault();
 +
                //$('.nav-pills > .active').next('li').find('a').trigger('click');
 +
            });
 +
        });
 
mw.loader.using( 'jquery.ui.core', function () {
 
mw.loader.using( 'jquery.ui.core', function () {
 
     $( ".memEOL-submit" )
 
     $( ".memEOL-submit" )
Line 626: Line 634:
 
<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>
 
-->
 
-->
<script>
+
</head><body></div></body></html>
    //validator
+
    $( document ).ready(function() {
+
       
+
        mw.loader.using( ['jquery.ui.core', 'ext.bootstrap','ext.bootstrap.scripts', 'ext.bootstrap.styles'], function () {
+
            $('.form-memEOL').bootstrapValidator()
+
            .on('success.form.bv', function(e) {
+
            // Prevent form submission
+
                e.preventDefault();
+
                $('.nav-pills > .active').next('li').find('a').trigger('click');
+
            });
+
            /*
+
            $('.form-memEOL').bootstrapValidator({
+
                message: 'This value is not valid.',
+
                live: 'enabled',
+
                debug: true,
+
                feedbackIcons: {
+
                    valid: 'glyphicon glyphicon-ok',
+
                    invalid: 'glyphicon glyphicon-remove',
+
                    validating: 'glyphicon glyphicon-refresh'
+
                },
+
                submitButtons: 'button[type="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: 3,
+
                                message: 'Permeability value is too long.'
+
                            },
+
                            regexp: {
+
                                regexp: /^[0-9]+([\.][0-9]+)?$/i,
+
                                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]+)?$/i,
+
                                message: 'Please enter a number between 0 and 100.'
+
                            }       
+
                    }
+
                }
+
            });
+
            */
+
        });
+
    });
+
    //end validator
+
</script></head><body></div></body></html>
+
 
[[Category:Major Resources]]
 
[[Category:Major Resources]]
 
[[Category:Resources]]
 
[[Category:Resources]]

Revision as of 08:02, 5 January 2015

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
Rank from most important to least important.

Based on your inputs, the optimum end-of-life scenario for your used membrane is:

A suitable alternative is: