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

Blogger Error #6

Open
RuthlessRuler opened this issue Jun 22, 2019 · 5 comments
Open

Blogger Error #6

RuthlessRuler opened this issue Jun 22, 2019 · 5 comments

Comments

@RuthlessRuler
Copy link

I'm trying to add this on my blogger blog, but i get the following Error. the Ocde i implemented is below.

Uncaught TypeError: Cannot read property 'insertBefore' of null
at new e (darkmode-js.min.js:1)
at (index):37

`<script src="https://cdn.jsdelivr.net/npm/[email protected]/lib/darkmode-js.min.js"></script>

<script> var options = { bottom: '64px', // default: '32px' right: 'unset', // default: '32px' left: '32px', // default: 'unset' time: '0.5s', // default: '0.3s' mixColor: '#fff', // default: '#fff' backgroundColor: '#fff', // default: '#fff' buttonColorDark: '#100f2c', // default: '#100f2c' buttonColorLight: '#fff', // default: '#fff' saveInCookies: false, // default: true, label: '🌓' // default: '' } const darkmode = new Darkmode(options); darkmode.showWidget(); </script>

`

Also, Is there a way to use it someway show that it appears with a set of FontAwesome Icons but on clicking the icon the website returns dark theme. I would prefer that instead of a floating Button.

@fdemir
Copy link

fdemir commented Jun 23, 2019

i have same error. How can i solve that?

@NaveenDA
Copy link
Contributor

This problem might raise if the your webpage doesn't have tag.
Please let me know your webpage have the tag.

@asdf2014
Copy link

Also encountered...

@quanengineering
Copy link

Me too :(

@sandoche
Copy link
Owner

Please try this code:
#8 (comment)

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

6 participants