javascript - Modal pop up not working on my website (Ubuntu VPS) -
so uploaded files ubuntu vps , seems work when press example chat rules on website nothing happens url changes from
http://website
http://website/?#chatrulesmodal
but no pop up
<div class="modal" id="chatrulesmodal"> <div class="modal-content"> <h4>chat rules</h4> <ol> <li>no begging.</li> <li>no spamming.</li> <li>no advertising.</li> <li>no code spamming.</li> <li>english only.</li> <li>always polite, mods , admins.</li> <li>no coin trading</li> </ol> </div> </div> <div class="col s4 left-align"><input type="checkbox" id="mute" /><label for="mute">mute</label></div><div class="col s4 center-align"><a href="#chatrulesmodal" class="center modal-trigger">chat rules</a></div><div class="col s4 right-align"><input type="checkbox" id="chatpause" /><label for="chatpause">pause</label></div>
also, if want login , terms should pop doesn't work either shows http://website/#tos-modal
.
do need specific stuff installed on ubuntu server make work?
i see using materialize.
modal dialogs require more css alone.
at http://materializecss.com/modals.html can see code samples show how set modal. in case, following js should trick:
<script> $(document).ready(function(){ // "href" attribute of .modal-trigger must specify modal id wants triggered $('#chatrulesmodal').leanmodal(); }); </script>
you need make sure include materialize javascript code.
<script src="js/materialize.min.js"></script>
Comments
Post a Comment