ColorlibHQ / AdminLTE

AdminLTE - Free admin dashboard template based on Bootstrap 5
https://adminlte.io
MIT License
44.1k stars 18.17k forks source link

Demo.js #4850

Open JohraGroups opened 1 year ago

JohraGroups commented 1 year ago

thank you for making this adminlte template, it really helps a lot of people. and I want to ask for help how can I delete demo.js but I can still use dark mode and control sidebar? How can I still use the sidebar control to change the template color but no pop up appears saying load demo.js and I want to ask whether demo.js should be removed and if so what if I delete it but I can still use the sidebar control to change color? thanks for those who have helped? i use this template in my larvel project? can you help me to explain what to do and in which file or folder i have to put the script

Thank you

burdittw commented 1 year ago

In the index.html page at line 1502 is where you would remove the demo.js from loading.

If you just want the demo.js popup to not show, then go to the demo.js file and remove or rem out lines 13-19 and the popup will no longer pop up.

It looks like if you remove the demo.js file then you will need to add code to populate the control sidebar either via JavaScript like the demo.js does or in html. At some point you would need to add JavaScript anyways to get your control sidebar selections to work. Like the checkbox for the dark mode would need to be coded and so would the drop downs if you want items like that available.

To make it easier if you want to keep all the items in the demo.js but don't want that popup to show then go back to what I said above to remove the alert code in the demo file.

Hope that helps!

REJack commented 1 year ago

Recreate the demo.js instead of modifing it, we will not give any support for any line of code inside the file. It's created to test features and not to live modifiy your style, that's why we not added localStorage for the selected changes etc.

Also you can still use the dark-mode or control-sidebar, you can simply checkout the docs to accomplish that without any extra javascript magic.

danny007in commented 1 year ago

@johragms is this issue still exist ?