Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue on Mac-Book #144

Open
gaut7 opened this issue Aug 23, 2021 · 2 comments
Open

Issue on Mac-Book #144

gaut7 opened this issue Aug 23, 2021 · 2 comments

Comments

@gaut7
Copy link

gaut7 commented Aug 23, 2021

https://projects.iamcal.com/js-emoji/demo/demo.htm
I was checking this link and it seems like on mac-book we are not getting html output. I need "data-codepoints" value so that i can use it latter.

let me know how i can get "data-codepoints" from "\ud83c\udfc6".

@gaut7 gaut7 changed the title Mac book Issue on Mac-Book Aug 23, 2021
@iamcal
Copy link
Owner

iamcal commented Aug 23, 2021

I don't understand what you're asking. What are you trying to accomplish? What have you tried?

@gaut7
Copy link
Author

gaut7 commented Aug 23, 2021

Actually i was using this library to draw the emojis on top of chart as an image.....

For that i am using this library to get emoji image url

var emoji1 = new EmojiConvertor();
emoji1.img_sets.apple.path = 'js-emoji/build/emoji-data/emoji-apple-64/';
emoji1.img_sets.apple.sheet = 'js-emoji/build/emoji-data/sheet_apple_64.png';
emoji1.use_sheet = false;
emoji1.init_env();
var auto_mode = emoji1.replace_mode;
emoji1.img_set = "apple";
emoji1.replace_mode = auto_mode;
emoji1.text_mode = false;

											emoji1.replace_mod
											document.getElementById('goalSuccess').innerHTML = emoji1.replace_unified(unescapeUnicode(#unicode dta));

var goalSuccessImage = new Image();
var successImageCode = document.getElementById('goalSuccess').firstChild.attributes["data-codepoints"].value;
goalSuccessImage.src = BASE_URL+"apple_icons/"+successImageCode+".png";

This way i am creating image object and latter i am using this image object on all required places...but now macbook is throwing exception on below line.

var successImageCode = document.getElementById('goalSuccess').firstChild.attributes["data-codepoints"].value;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants