| Server IP : 65.108.144.40 / Your IP : 216.73.217.165 Web Server : Apache/2.4.52 (Ubuntu) System : Linux ubuntu-8gb-hel1-1 5.15.0-173-generic #183-Ubuntu SMP Fri Mar 6 13:29:34 UTC 2026 x86_64 User : dev ( 1000) PHP Version : 8.2.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/erp/pms/static/src/feedback/ |
Upload File : |
$(document).ready(function () {
// answer color for likert
var booleanText = $('.boolean-colour').text().trim()
var booleanEl = $('.boolean-colour')
var red = "oh-input-picker--1"
var orange = "oh-input-picker--2"
var yellow = "oh-input-picker--3"
var light_green = "oh-input-picker--4"
var green = "oh-input-picker--5"
$('.likert-colour').each(function() {
var likertText = $(this).text().trim()
if (likertText === 'Strongly Agree'){
$(this).addClass(green)
}
else if (likertText === 'Agree'){
$(this).addClass(light_green)
}
else if (likertText === 'Neutral'){
$(this).addClass(yellow)
}
else if (likertText === 'Disagree'){
$(this).addClass(orange)
}
else if (likertText === 'Strongly Disagree'){
$(this).addClass(red)
}
});
// boolean text colour adding
$('.boolean-colour').each(function() {
var booleanText = $(this).text().trim()
if (booleanText === 'yes'){
$(this).addClass(green)
}
else if (booleanText === 'no'){
$(this).addClass(red)
}
})
});