javascript - I've moved to an SSL and now my popup menu doesn't work -
i've moved ssl , popup menu on nav doesn't work. did work before hand. can't see why it's not working. didn't css or javascript code.
$(document).ready(function(){ // mobile menu toggle $('.fa-reorder').click(function(){ $('body>nav ul').slidetoggle(); }); //checkboxes customization $(':checkbox').click(function(e){ if ($(this).is(':checked')) $(this).addclass('checked'); else $(this).removeclass('checked'); }); //landing page popups $('#signup').click(function(){ $('#signup-popup, #cover').show(); $('#cover, .fa-times').click(function(){ $('#cover, #signup-popup').hide(); }); }); $('#login').click(function(){ $('#login-popup, #cover').show(); $('#cover, .fa-times').click(function(){ $('#cover, #login-popup').hide(); }); }); }); <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> <nav> <i class="fa fa-reorder"></i> <ul> <li><a href="https://www.serviceposts.com">home</a></li> <li><a href="https://www.serviceposts.com/site/postings">posts</a></li> <li><a href="https://www.serviceposts.com/site/about/hspw.php">how works</a></li> <li><a href="https://www.serviceposts.com/site/about">about</a></li> <li><a href="https://www.serviceposts.com/site/about/emailcsb.php">contact</a></li> </ul> <div class="buttons"> <input type="button" class="button green" value="sign up" id="signup"> <input type="button" class="button" value="login" id="login"> </div> <div id="signup-popup"> <h3>let's started <i class="fa fa-times"></i></h3> <div class="part"> <figure> <a href="https://www.serviceposts.com/site/management/cust_reg.php"><img src="images/sp_signup_03.png" alt=""/></a> </figure> <input type="button" class="button green" value="i consumer"> <p><a href="https://www.serviceposts.com/site/management/cust_reg.php" class="blue">make service match today</a></p> </div> <div class="part"> <figure> <a href="https://www.serviceposts.com/site/management/bus_reg.php"><img src="images/sp_signup_05.png" alt=""/></a> </figure> <a href="https://www.serviceposts.com/site/management/bus_reg.php"><input type="button" class="button orange" value="i service provider"></a> <p><a href="https://www.serviceposts.com/site/management/bus_reg.php" class="blue">make service match today</a></p> </div> </div> <div id="login-popup"> <h3>login<i class="fa fa-times"></i></h3> <form action="https://www.serviceposts.com/site/welcome.php" method="post"> <label for="username1">username</label> <input type="text" id="username1" name="uname"/> <label for="password1">password</label> <input type="password" id="password1" name="txtpassword"/> <input type="submit" class="button green" value="login"/> </form> <a href="#">forgot username or password?</a> </div> </nav> is there tokenizer javascript/css/html?
the best practice adding redirect http https (web server redirect clients requests https, if forget change protocol in app configuration):
apache exemple:
<virtualhost *:80> servername www.example.com redirect "/" "https://www.example.com/" </virtualhost > <virtualhost *:443> servername www.example.com # ... ssl configuration goes here </virtualhost > nginx exemple:
server { listen *:80; server_name example.com; proxy_set_header host example.com; location / { rewrite ^(.*)$ https://example.com$1 permanent; } } server { listen *:443 ssl; server_name example.com; proxy_set_header host example.com; location / { proxy_pass http://127.0.0.1:8080; } }
Comments
Post a Comment