creativetimofficial / now-ui-kit

Now UI Kit Bootstrap 4 - Designed by Invision. Coded by Creative Tim
https://www.creative-tim.com/product/now-ui-kit
Other
1.7k stars 375 forks source link

Modals #40

Closed bretonio closed 6 years ago

bretonio commented 7 years ago

Having trouble getting modals to work.

My Pug code — I admit it, I merely ran your HTML mark-up through an HTML to Jade compiler — is as follows.

            button.btn.btn-primary.btn-lg(data-toggle='modal', data-target='#myModal')
                | Diálogo  
                i.fa.fa-upload.fa-lg

            #myModal.modal.fade(tabindex='-1', role='dialog', aria-labelledby='myModalLabel', aria-hidden='true')
                .modal-dialog
                    .modal-content
                        .modal-header
                            button.close(type='button', data-dismiss='modal', aria-hidden='true') ×
                            h4#myModalLabel.modal-title Modal title
                        .modal-body
                            | Far far away, behind the word mountains, far from the countries Vokalia and Consonantia, there live the blind texts. Separated they live in Bookmarksgrove right at the coast of the Semantics, a large language ocean. A small river named Duden flows by their place and supplies it with the necessary regelialia. It is a paradisematic country, in which roasted parts of sentences fly into your mouth. Even the all-powerful Pointing has no control about the blind texts it is an almost unorthographic life One day however a small line of blind text by the name of Lorem Ipsum decided to leave for the far World of Grammar.
                        .modal-footer
                            button.btn.btn-default.btn-simple(type='button', data-dismiss='modal') Close
                            button.btn.btn-info.btn-simple(type='button') Save

I have checked my Javascript configuration as well including the scripts in the order found on your page..

        script(src='https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.js')
        script(type='text/javascript', src='now-ui/assets/js/tether.min.js')
        script(src='https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js')
        script(type='text/javascript', src='now-ui/assets/js/plugins/bootstrap-switch.js')
        script(type='text/javascript', src='now-ui/assets/js/plugins/nouislider.min.js')
        script(type='text/javascript', src='now-ui/assets/js/plugins/bootstrap-datepicker.js')
        script(type='text/javascript', src='http://demos.creative-tim.com/now-ui-kit/assets/js/plugins/jquery.sharrre.js')
        script(type='text/javascript', src='now-ui/assets/js/now-ui-kit.js')

What bonehead config error am I making? Thanks!