PHP Classes

File: public/js/common.js

Recommend this page to a friend!
  Classes of Joseluis Laso   PHP Telegram CLI Wrapper   public/js/common.js   Download  
File: public/js/common.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: PHP Telegram CLI Wrapper
Send messages and other commands to Telegram users
Author: By
Last change:
Date: 8 years ago
Size: 790 bytes
 

Contents

Class file image Download
function alert(cls, msg, timeout) { $("#alert-pos").append( '<div class="fade in alert alert-'+cls+'" role="alert">'+ '<button type="button" class="close" data-dismiss="alert" aria-label="Close">'+ '<span aria-hidden="true">&times;</span>'+ '</button>' + msg + '</div>' ); setTimeout(function(){ $('.alert').alert('close'); }, timeout === undefined ? 5000 : timeout); } var inAjax = false; $(function() { $(".ajax-no").show(); $(".ajax-yes").hide(); $(document).ajaxStart(function () { $(".ajax-no").hide(); $(".ajax-yes").show(); inAjax = true; }); $(document).ajaxComplete(function () { $(".ajax-no").show(); $(".ajax-yes").hide(); inAjax = false; }); });