bergware / dynamix

51 stars 38 forks source link

Change code in html source #89

Open odoncm opened 5 months ago

odoncm commented 5 months ago

Hello,

Those of us who want to change the text of the name of the fans from 'FAN 1', 'FAN 2'. etc in dashboard We do it with this code through custom.css and adding CSS in the theme engine plugin, since it seems that the FAN 3 tag does not come with the fan class and it is not impossible to change it.

Would it be possible to add that tag in the next version?

Thank you

</style>
<script>
document.addEventListener("DOMContentLoaded", function() {
    if ($(".fan:contains('FAN 1')").length) {
      $(".fan:contains('FAN 1')").text("CPU");
    }  
    if ($(".fan:contains('FAN 2')").length) {
      $(".fan:contains('FAN 2')").text("BOARD");
    }
    if ($(".fan:contains('FAN 3')").length) {
      $(".fan:contains('FAN 3')").text("BACKPLANE");
    }
        if ($(".fan:contains('FAN 4')").length) {
      $(".fan:contains('FAN 4')").text("BACK");
    }       
});
</script>
<style>