Search posts, tags, users, and pages
Godstime Onyibe
Please could not add it in my web page. Am using it directly in the browser. Please some some one should help out.
Anjal Binayak Adhikari
Software Engineer
Please read the documentation in here or contact Luiz Filipe da Silva
Hey, Godstime Onyibe! Currently, the code is stable and works fine.
Add the script before the closing tag body, as it follows:
body
... <script src="cdn.jsdelivr.net/gh/luizfilipezs/dark-theme-switcβ¦"></script> <script type="text/javascript"> new ThemeSwitcherGenerator().init(); // or new ThemeSwitcher(someElement).init(); </script> </body>
Remember that what the package does is inverting the colors. So, to change the background of your body tag, as an example, you must give it a background color.
Luiz Filipe da Silva
Brazilian full stack developer, tale writer, and aspiring computer scientist.
Luiz Filipe da Silva Thanks i have applied it and is working great ππ
π₯³π₯³ Godstime Onyibe