|
|
|
@ -1,20 +1,20 @@
|
|
|
|
var ai = {}
|
|
|
|
var ai = {}
|
|
|
|
ai.toggle = function (){
|
|
|
|
ai.toggle = function (){
|
|
|
|
if($('.ai-button').html().match(/check/i)){
|
|
|
|
if($('.ai-button').html().match(/toggle-on/i)){
|
|
|
|
ai.disable()
|
|
|
|
ai.disable()
|
|
|
|
}else{
|
|
|
|
}else{
|
|
|
|
ai.enable()
|
|
|
|
ai.enable()
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
sessionStorage.AI = _val
|
|
|
|
// sessionStorage.AI = _val
|
|
|
|
$('.ai-button').html (_icon)
|
|
|
|
// $('.ai-button').html (_icon)
|
|
|
|
$('.ai-status').html(_status).css({color:_color})
|
|
|
|
// $('.ai-status').html(_status).css({color:_color})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
ai.enable = function (){
|
|
|
|
ai.enable = function (){
|
|
|
|
_val = 1
|
|
|
|
_val = 1
|
|
|
|
_status = 'Enabled'
|
|
|
|
var _status = 'Enabled'
|
|
|
|
_color = '#4682B4'
|
|
|
|
var _color = '#4682B4'
|
|
|
|
_icon = '<i class="fa-solid fa-check" style="color:green"></i>'
|
|
|
|
var _icon = '<i class="fa-solid fa-toggle-on" style="color:#4682b4"></i>'
|
|
|
|
$('.ai-workbench-status').html('AI Enabled').css({'color':'#4682b4'})
|
|
|
|
$('.ai-workbench-status').html('AI Enabled').css({'color':'#4682b4'})
|
|
|
|
sessionStorage.AI = _val
|
|
|
|
sessionStorage.AI = _val
|
|
|
|
$('.ai-button').html (_icon)
|
|
|
|
$('.ai-button').html (_icon)
|
|
|
|
@ -23,10 +23,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
ai.disable = function (){
|
|
|
|
ai.disable = function (){
|
|
|
|
_val = 0
|
|
|
|
var _val = 0
|
|
|
|
_status = 'Disabled'
|
|
|
|
var _status = 'Disabled'
|
|
|
|
_color = 'maroon'
|
|
|
|
var _color = 'maroon'
|
|
|
|
_icon = '<i class="fa-solid fa-times" style="color:maroon"></i>'
|
|
|
|
var _icon = '<i class="fa-solid fa-toggle-off" style="color:maroon"></i>'
|
|
|
|
$('.ai-workbench-status').html('AI Disabled').css({'color':'maroon'})
|
|
|
|
$('.ai-workbench-status').html('AI Disabled').css({'color':'maroon'})
|
|
|
|
sessionStorage.AI = _val
|
|
|
|
sessionStorage.AI = _val
|
|
|
|
$('.ai-button').html (_icon)
|
|
|
|
$('.ai-button').html (_icon)
|
|
|
|
|