| Server IP : 162.214.74.102 / Your IP : 216.73.216.192 Web Server : Apache System : Linux dedi-4363141.lrsys.com.br 3.10.0-1160.119.1.el7.tuxcare.els25.x86_64 #1 SMP Wed Oct 1 17:37:27 UTC 2025 x86_64 User : lrsys ( 1015) PHP Version : 5.6.40 Disable Function : exec,passthru,shell_exec,system MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/lrsys/www/lrsys_apps/hexagon/application/plugins/module_teammanagement/assets/js/ |
Upload File : |
$(document).ready(function ()
{
$("#answer_quiz").click(function (e) {
showQuestion();
});
var _url = $("#_url").val();
function showQuestion() {
$.get(_url + "client/module_teammanagement/quiz/quiz")
.done(function (response) {
data=JSON.parse(response);
if(data.status!="start"){
swal({title:"",text: data.html, type:data.status, imageUrl: data.image});
}else{
swal({
title: _L['module_teammanagement quiz title'],
// imageUrl: 'application/storage/system/logo.png',
text:data.html,
type: "",
html: true,
showCancelButton: true,
confirmButtonClass: "btn-success",
confirmButtonText: "Confirmar",
cancelButtonText: "Parar",
closeOnConfirm: false,
closeOnCancel: true
},
function (isConfirm) {
if (isConfirm) {
optValue = $('input[name=option]:checked').val();
if(optValue>0){
$.post(_url + "client/module_teammanagement/quiz/quiz_post",$("#form-quiz-question").serialize())
.done(function (response) {
data=JSON.parse(response);
if(data.status=="message_erro"){
swal("", data.html,'error');
}else{
swal({
title: _L['module_teammanagement quiz title'],
imageUrl: data.image,
text:data.html,
type: data.status,
html: true,
showCancelButton: true,
confirmButtonClass: "btn-primary",
confirmButtonText: "Próxima Questão",
cancelButtonText: "Parar",
closeOnConfirm: false,
closeOnCancel: true
},
function (isConfirm) {
if (isConfirm) {
showQuestion();
}
});
}
});
}else{
$("#emsgquiz").removeClass("hide");
}
}
});
}
});
}
$(document).on('click', '.jump_question',function(e) {
e.preventDefault();
$.post(_url + "client/module_teammanagement/quiz/quiz_post_jump")
.done(function (response) {
data=JSON.parse(response);
if(data.status=="message_erro"){
swal("", data.html,'error');
}else{
showQuestion();
}
});
});
});