Skip to content

Change code in html source #89

Description

@odoncm

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>

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions