Difference between revisions of "MemEOL"
From Desal Wiki
Line 180: | Line 180: | ||
return -1; | return -1; | ||
} | } | ||
+ | |||
+ | /* | ||
+ | function displayResults(maxName, secondName){ | ||
+ | switch (maxName) { | ||
+ | case CONST_LANDFILL: | ||
+ | recommendation ; | ||
+ | break; | ||
+ | case CONST_INCINERATION: | ||
+ | name = CONST_INCINERATION; | ||
+ | break; | ||
+ | case CONST_SYNGAS: | ||
+ | name = CONST_SYNGAS; | ||
+ | break; | ||
+ | case CONST_EAF: | ||
+ | name = CONST_EAF; | ||
+ | break; | ||
+ | case CONST_MAT_RECYCLE: | ||
+ | name = CONST_MAT_RECYCLE; | ||
+ | break; | ||
+ | case CONST_CONV_TO_UF: | ||
+ | name = CONST_CONV_TO_UF; | ||
+ | break; | ||
+ | case CONST_REUSE_RO: | ||
+ | name = CONST_REUSE_RO; | ||
+ | break; | ||
+ | default: | ||
+ | name = ""; | ||
+ | console.log('Error in switch statement. Criterion does not exist.'); | ||
+ | throw new Error('Error in switch statement. Criterion does not exist.'); //break the script | ||
+ | } | ||
+ | } | ||
+ | */ | ||
//prefereces are coded to be 0-4 not 1-5 | //prefereces are coded to be 0-4 not 1-5 | ||
Line 272: | Line 304: | ||
console.log('final ' + maxName + ': ' + String(max)); | console.log('final ' + maxName + ': ' + String(max)); | ||
console.log('final ' + secondName + ': ' + String(second)); | console.log('final ' + secondName + ': ' + String(second)); | ||
+ | |||
+ | /*displayResults(maxName, secondName);*/ | ||
}); | }); | ||
+ | |||
$( ".memEOL-questions" ) | $( ".memEOL-questions" ) | ||
.filter(":button") | .filter(":button") | ||
Line 278: | Line 313: | ||
.click(function( event ) { | .click(function( event ) { | ||
$('.nav-pills > .active').prev('li').find('a').trigger('click'); | $('.nav-pills > .active').prev('li').find('a').trigger('click'); | ||
+ | event.preventDefault(); | ||
}); | }); | ||
$( ".memEOL-feedback" ) | $( ".memEOL-feedback" ) | ||
Line 284: | Line 320: | ||
.click(function( event ) { | .click(function( event ) { | ||
$('.nav-pills > .active').next('li').find('a').trigger('click'); | $('.nav-pills > .active').next('li').find('a').trigger('click'); | ||
+ | event.preventDefault(); | ||
}); | }); | ||
}); | }); | ||
Line 406: | Line 443: | ||
<div class="panel-body"> | <div class="panel-body"> | ||
<html><head></head><body> | <html><head></head><body> | ||
− | <div class="recommendation | + | <div class="recommendation landfill alert alert-success" role="alert" alt="Disposal in local landfill."><h4>Disposal in local landfill.</h4><p>Text about disposal in local landfill. Blah Blah</p></div> |
− | <div class="recommendation | + | <div class="recommendation incineration alert alert-success" role="alert" alt="Energy recovery through incineration."><h4>Energy recovery through incineration.</h4><p>Text about energy recovery through incineration. Blah Blah</p></div> |
− | <div class="recommendation | + | <div class="recommendation syngas alert alert-success" role="alert" alt="Energy recovery though syngas production."><h4>Energy recovery though syngas production.</h4><p>Text about energy recovery though syngas production. Blah Blah</p></div> |
− | <div class="recommendation | + | <div class="recommendation eaf alert alert-success" role="alert" alt="Energy recovery through use as a coke substitute in Electric Arc Furnaces."><h4>Energy recovery through use as a coke substitute in Electric Arc Furnaces.</h4><p>Text about energy recovery through use as a coke substitute in Electric Arc Furnaces. Blah Blah</p></div> |
− | <div class="recommendation | + | <div class="recommendation material_recycling alert alert-success" role="alert" alt="Material recycling."><h4>Material recycling.</h4><p>Text about material recycling. Blah Blah</p></div> |
<div class="recommendation chemical-conversion alert alert-success" role="alert" alt="Chemical conversion to an ultrafiltration membrane and then reuse."><h4>Chemical conversion to an ultrafiltration membrane and then reuse.</h4><p>Text about chemical conversion to an ultrafiltration membrane and then reuse. Blah Blah</p></div> | <div class="recommendation chemical-conversion alert alert-success" role="alert" alt="Chemical conversion to an ultrafiltration membrane and then reuse."><h4>Chemical conversion to an ultrafiltration membrane and then reuse.</h4><p>Text about chemical conversion to an ultrafiltration membrane and then reuse. Blah Blah</p></div> | ||
<div class="recommendation direct-membrane-reuse alert alert-success" role="alert" alt="Direct membrane reuse."><h4>Direct membrane reuse.</h4><p>Text about direct membrane reuse. Blah Blah</p></div> | <div class="recommendation direct-membrane-reuse alert alert-success" role="alert" alt="Direct membrane reuse."><h4>Direct membrane reuse.</h4><p>Text about direct membrane reuse. Blah Blah</p></div> | ||
Line 427: | Line 464: | ||
<div class="panel-body"> | <div class="panel-body"> | ||
<html><head></head><body> | <html><head></head><body> | ||
− | <div class="alternative | + | <div class="alternative landfill alert alert-success" role="alert" alt="Disposal in local landfill."><h4>Disposal in local landfill.</h4><p>Text about disposal in local landfill. Blah Blah</p></div> |
− | <div class="alternative | + | <div class="alternative incineration alert alert-success" role="alert" alt="Energy recovery through incineration."><h4>Energy recovery through incineration.</h4><p>Text about energy recovery through incineration. Blah Blah</p></div> |
− | <div class="alternative | + | <div class="alternative syngas alert alert-success" role="alert" alt="Energy recovery though syngas production."><h4>Energy recovery though syngas production.</h4><p>Text about energy recovery though syngas production. Blah Blah</p></div> |
− | <div class="alternative | + | <div class="alternative eaf alert alert-success" role="alert" alt="Energy recovery through use as a coke substitute in Electric Arc Furnaces."><h4>Energy recovery through use as a coke substitute in Electric Arc Furnaces.</h4><p>Text about energy recovery through use as a coke substitute in Electric Arc Furnaces. Blah Blah</p></div> |
− | <div class="alternative | + | <div class="alternative material_recycling alert alert-success" role="alert" alt="Material recycling."><h4>Material recycling.</h4><p>Text about material recycling. Blah Blah</p></div> |
<div class="alternative chemical-conversion alert alert-success" role="alert" alt="Chemical conversion to an ultrafiltration membrane and then reuse."><h4>Chemical conversion to an ultrafiltration membrane and then reuse.</h4><p>Text about chemical conversion to an ultrafiltration membrane and then reuse. Blah Blah</p></div> | <div class="alternative chemical-conversion alert alert-success" role="alert" alt="Chemical conversion to an ultrafiltration membrane and then reuse."><h4>Chemical conversion to an ultrafiltration membrane and then reuse.</h4><p>Text about chemical conversion to an ultrafiltration membrane and then reuse. Blah Blah</p></div> | ||
<div class="alternative direct-membrane-reuse alert alert-success" role="alert" alt="Direct membrane reuse."><h4>Direct membrane reuse.</h4><p>Text about direct membrane reuse. Blah Blah</p></div> | <div class="alternative direct-membrane-reuse alert alert-success" role="alert" alt="Direct membrane reuse."><h4>Direct membrane reuse.</h4><p>Text about direct membrane reuse. Blah Blah</p></div> |
Revision as of 05:24, 17 December 2014
Introduction text