PHP Classes

File: js/avatar.js

Recommend this page to a friend!
  Classes of Ann   Purp Project   js/avatar.js   Download  
File: js/avatar.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/avatar.js
Date: 1 year ago
Size: 521 bytes
 

Contents

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