Answer the question
In order to leave comments, you need to log in
How to make bootstrap modal window?
Good afternoon, help fix the modal window, it gives the following error
Uncaught TypeError: $(...).modal is not a function
at HTMLLIElement. (main.html:265)
at HTMLLIElement.dispatch (jquery.js:4435)
at HTMLLIElement.r.handle (jquery.js:4121)
here is the site https://kicherov.000webhostapp.com/main.html , when clicked on the first gear should appear a modal window. Everything worked before, but when I copied the project under Linux, the modal windows broke...
Answer the question
In order to leave comments, you need to log in
You have the lines commented out, and there is a bootstrap.min.js connection (which you don't have right now)
<!-- <script async="" src="./static/main_page_files/analytics.js.Без названия"></script><script src="./static/main_page_files/jquery-2.1.1.min.js.Без названия"></script><script>window.Promise || document.write('<script src="lib/js/es6-promise.auto.min.js"><\/script>');</script><script src="./static/main_page_files/i18next.min.js.Без названия"></script><script src="./static/main_page_files/i18nextXHRBackend.min.js.Без названия"></script><script src="./static/main_page_files/i18nextBrowserLanguageDetector.min.js.Без названия"></script><script src="./static/main_page_files/jquery-i18next.min.js.Без названия"></script><script src="./static/main_page_files/jquery-ui.js.Без названия"></script><script src="./static/main_page_files/riot.min.js.Без названия"></script><script src="./static/main_page_files/pixi.js.Без названия"></script><script src="./static/main_page_files/jquery.ui.touch-punch.min.js.Без названия"></script><script src="./static/main_page_files/m4.js.Без названия"></script><script src="./static/main_page_files/m3.js.Без названия"></script><script src="./static/main_page_files/stats.min.js.Без названия"></script><script src="./static/main_page_files/bootstrap.min.js.Без названия"></script><script src="./static/main_page_files/mobile-detect.min.js.Без названия"></script><script src="./static/main_page_files/md.viewer.min.6.1.1.js.Без названия"></script>
-->
Check that all scripts are connected and that your actions regarding "copied the project under Linux"
are correct. At the moment, you only have jQuery connected, but it does not have the functionality you need.
prntscr.com/if8uhy
As already mentioned, the bootstrap is not connected!!!
Insert before
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question