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 with n.style.filter="alpha(opacity=".concat(100*o,")") in TagCloud.min.js #37

Open
adrienlaveau opened this issue Mar 19, 2024 · 1 comment

Comments

@adrienlaveau
Copy link

First of all, thanks for sharing this great work.

I am about to use TagCloud.min.js for my website, but during testing my browser sends this error
Se esperaba 'none', una URL o una función de filtrado, pero se encontró 'alpha('. Error al interpretar el valor para 'filter'. Declaración rechazada
English translation : Expected 'none', a URL or a filter function, but found 'alpha('. Error interpreting the value for 'filter'. Statement rejected

It seems it comes from all the lines using n.style.filter="alpha(opacity

After looking into the css "filter" properties it seems it cannot be used with Alpha. Am I missing something here ?

Also I cannot understand the difference between TagCloud.js and TagCloud.min.js Could you please tell me ? The code is a bit complex for me to understand.

Thank you

@adrienlaveau
Copy link
Author

Sorry for my previous message, I think I understand my mistake.
The code is as follows:
itemEl.style.filter = 'alpha(opacity=0)'; --> for Internet Explorer
itemEl.style.opacity = 0; --> for new browser
And this is then just that firefox does not like itemEl.style.filter = 'alpha(opacity=0)'; and warns me.

For my understanding, is not it an issue from a performance point of view ?

Thanks

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

1 participant