MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    Using Unicode Character and symbols in module

    Scheduled Pinned Locked Moved Development
    2 Posts 1 Posters 1.3k Views 1 Watching
    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 Offline
      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 Offline
        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 Sam, technical setup by Karsten.
        This forum is using NodeBB as its core | Contributors
        Contact | Privacy Policy