PHP Classes

File: js/profile.js

Recommend this page to a friend!
  Classes of Ann   Purp Project   js/profile.js   Download  
File: js/profile.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Purp Project
Application to manage photo albums
Author: By
Last change: Update of js/profile.js
Date: 1 year ago
Size: 507 bytes
 

Contents

Class file image Download
$(document).ready(function($) { $('.popup_open').click(function() { $('.popup_fade').fadeIn(); return false; }); $('.popup_close').click(function() { $(this).parents('.popup_fade').fadeOut(); return false; }); $(document).keydown(function(e) { if (e.keyCode === 27) { e.stopPropagation(); $('.popup_fade').fadeOut(); } }); $('.popup_fade').click(function(e) { if ($(e.target).closest('.popup').length == 0) { $(this).fadeOut(); } }); });