Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*--------------------------- PopUp Script ---------------------------------------- */
- $('.user_signin .popup_block').on('click', function(e) {
- e.stopPropagation();
- });
- $('.login_button').on('click', function(e) {
- e.preventDefault();
- $('body').css('overflow', 'hidden');
- $('.user_signin').fadeIn(function() {});
- });
- $('.user_signin .close, .user_signin').on('click', function(e) {
- e.preventDefault();
- $('.user_signin').fadeOut(function() {
- $('body').css('overflow', 'auto');
- });
- });
- /*------------------------ */
- $('.user_signup .popup_block').on('click', function(e) {
- e.stopPropagation();
- });
- $('.reg_button, .menu ul.not-auth li, .main_page_link').on('click', function(e) {
- e.preventDefault();
- $('.user_signin .close').click();
- setTimeout((function() {
- $('body').css('overflow', 'hidden');
- $('.user_signup').fadeIn();
- }), 400);
- });
- $('.user_signup .close, .user_signup ').on('click', function(e) {
- e.preventDefault();
- $('.user_signup').fadeOut(function() {
- $('body').css('overflow', 'auto');
- });
- });
- /*------------------------ */
- $('.user_signup-success .popup_block, .ipopup .popup_block').on('click', function(e) {
- e.stopPropagation();
- });
- $('.popup_thank_button').on('click', function(e) {
- e.preventDefault();
- $('.user_signup-success .close, .ipopup .close').click();
- $('body').css('overflow', 'hidden');
- $('.user_signup-success').fadeIn();
- });
- $('.user_signup-success .close, .user_signup-success, .user_signup-success a, .ipopup .close, .ipopup a, .user_forget-password .close, .user_forget-password').on('click', function(e) {
- e.preventDefault();
- $('.user_signup-success, .ipopup, .user_forget-password, .user_forget-password').fadeOut(function() {
- $('body').css('overflow', 'auto');
- });
- });
- // ---
- // generated by coffee-script 1.9.2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement