Logic Machine Forum
Change the frame´s icon in Touch visualization - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Visualization (https://forum.logicmachine.net/forumdisplay.php?fid=9)
+--- Thread: Change the frame´s icon in Touch visualization (/showthread.php?tid=3652)



Change the frame´s icon in Touch visualization - batistacaceres - 28.10.2021

Hello 

Is there any way to change the the frame´s icon when it is showing in Touch visualization??

thank you very much...


RE: Change the frame´s icon in Touch visualization - Erwin van der Zwart - 28.10.2021

Try this custom JS:

Code:
$(function(){
  $('.control-link').find('.control-icon').find('img').each(function() {
    if ($(this).attr("src").includes('frame.svg')){
      $(this).attr("src", "/scada/resources/icons/auto_1.svg") //new icon
    }
  });
});



RE: Change the frame´s icon in Touch visualization - batistacaceres - 28.10.2021

(28.10.2021, 12:56)Erwin van der Zwart Wrote: Try this custom JS:

Code:
$(function(){
  $('.control-link').find('.control-icon').find('img').each(function() {
    if ($(this).attr("src").includes('frame.svg')){
      $(this).attr("src", "/scada/resources/icons/auto_1.svg") //new icon
    }
  });
});

it works...

Thank you very much...