PHP Classes

File: web/js/files/login.js

Recommend this page to a friend!
  Classes of Murat Cileli   Papernic   web/js/files/login.js   Download  
File: web/js/files/login.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Papernic
Manage documents colaboratively
Author: By
Last change:
Date: 8 years ago
Size: 1,022 bytes
 

Contents

Class file image Download
$(function(){ // Checking for CSS 3D transformation support $.support.css3d = supportsCSS3D(); var formContainer = $('.loginWrapper'); // Listening for clicks on the ribbon links $('.flip').click(function(e){ // Flipping the forms formContainer.toggleClass('flipped'); // If there is no CSS3 3D support, simply // hide the login form (exposing the recover one) if(!$.support.css3d){ $('#loginForm').toggle(); } e.preventDefault(); }); formContainer.find('form').submit(function(e){ // Preventing form submissions. If you implement // a backend, you might want to remove this code //e.preventDefault(); }); // A helper function that checks for the // support of the 3D CSS3 transformations. function supportsCSS3D() { var props = [ 'perspectiveProperty', 'WebkitPerspective', 'MozPerspective' ], testDom = document.createElement('a'); for(var i=0; i<props.length; i++){ if(props[i] in testDom.style){ return true; } } return false; } });