44 lines
728 B
JavaScript
44 lines
728 B
JavaScript
|
|
(function($) {
|
|
'use strict';
|
|
|
|
|
|
$("#modal_trigger").leanModal({top : 100, overlay : 0.6, closeButton: ".modal_close" });
|
|
|
|
$(function(){
|
|
// Calling Login Form
|
|
$("#login_form").click(function(){
|
|
$(".social_login").hide();
|
|
$(".user_login").show();
|
|
return false;
|
|
});
|
|
|
|
// Calling Register Form
|
|
$("#register_form").click(function(){
|
|
$(".social_login").hide();
|
|
$(".user_register").show();
|
|
$(".header_title").text('Register');
|
|
return false;
|
|
});
|
|
|
|
// Going back to Social Forms
|
|
$(".back_btn").click(function(){
|
|
$(".user_login").hide();
|
|
$(".user_register").hide();
|
|
$(".social_login").show();
|
|
$(".header_title").text('Login');
|
|
return false;
|
|
});
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
})(jQuery);
|
|
|
|
|
|
|
|
|