Navigation

    MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord

    Using Unicode Character and symbols in module

    Development
    1
    2
    844
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A
      AxLed Module Developer last edited by AxLed

      Hi,
      i have a problem, i want to use a Unicode character in my module.

      Its the lock character (🔒), see http://graphemica.com/%F0%9F%94%92.

      If i insert this, it works on the published IP Adress of MagicMirror (via browser) but not on MagicMirror (Electron) itselft:

      Browser:
      0_1527703300152_browser.jpg

      Electron:
      0_1527703311543_electron.jpg

      I use follwing code:

      link.innerHTML = this.config.Alias[index] + '\u{1F512}'+'🔒';
      the second locksymbol is '& # 128274 ;' written with no spaces.
      

      Electron is running in a Pixel VM (Oracle Virtualbox), for development purposes.

      Can somebody give me a tip how to solve this?

      Thanks in advance.

      AxLED

      1 Reply Last reply Reply Quote 0
      • A
        AxLed Module Developer last edited by

        Hi to all,

        i found a solution.
        0_1536262932769_lock.JPG

        I use font awesome (which comes with mm anyway) an the following css:

        .fa-lock1:after {
                    content: "\f023";
                  }
        

        AxLED

        1 Reply Last reply Reply Quote 2
        • 1 / 1
        • First post
          Last post
        Enjoying MagicMirror? Please consider a donation!
        MagicMirror created by Michael Teeuw.
        Forum managed by Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
        This forum is using NodeBB as its core | Contributors
        Contact | Privacy Policy