PHP Classes

File: assets/js/app.js

Recommend this page to a friend!
  Classes of Ahmed Saad   Simple PHP MVC Framework   assets/js/app.js   Download  
File: assets/js/app.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Simple PHP MVC Framework
Developing Web applications using the MVC pattern
Author: By
Last change:
Date: 2 years ago
Size: 283 bytes
 

Contents

Class file image Download
$('[data-toggle=tooltip]').tooltip(); function setDefaultImage( event ) { img = event.target; src = img.src; src = src.replace( /([\w\d-_]+(\.\w{3,4})?)$/g, 'default.png' ); img.src = src; $(img).off( 'error' ); } // Fix Broken Images $('img').on( 'error', setDefaultImage );