Software: Apache. PHP/5.6.40-67+ubuntu20.04.1+deb.sury.org+1 uname -a: Linux hosting1.erectacloud.it 5.4.0-182-generic #202-Ubuntu SMP Fri Apr 26 12:29:36 UTC uid=5229(web473) gid=5117(client172) groups=5117(client172),5002(sshusers) Safe-mode: OFF (not secure) /var/www/clients/client172/web473/web/js/alert/ drwxr-xr-x |
Viewing file: jAlert-functions.js (2.09 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) | /* Optional: Overwrites javascript's built-in alert function */ function alert(title, msg){ if( typeof msg == 'undefined' ) { msg = title; title = ''; } $.jAlert({ 'title': title, 'content': msg }); } /* Optional: Overwrites javascript's built-in confirm function (DANGER: operates differently - returns true every time and doesn't stop execution!) - You must provide a callback */ function confirm(confirmCallback, denyCallback, confirmQuestion) { $.jAlert({'type': 'confirm', 'confirmQuestion':confirmQuestion, 'onConfirm': confirmCallback, 'onDeny': denyCallback }); } /* Optional Alert shortcuts based on color */ function showAlert(title, msg, theme) { $.jAlert({ 'title': title, 'content': msg, 'theme': theme }); } function successAlert(title, msg) { if( typeof msg == 'undefined' ) { msg = title; title = 'Success'; } showAlert(title, msg, 'green'); } function errorAlert(title, msg) { if( typeof msg == 'undefined' ) { msg = title; title = 'Error'; } showAlert(title, msg, 'red'); } function infoAlert(title, msg) { if( typeof msg == 'undefined' ) { msg = title; title = 'Info'; } showAlert(title, msg, 'blue'); } function warningAlert(title, msg) { if( typeof msg == 'undefined' ) { msg = title; title = 'Warning'; } showAlert(title, msg, 'yellow'); } function blackAlert(title, msg) { if( typeof msg == 'undefined' ) { msg = title; title = 'Warning'; } showAlert(title, msg, 'black'); } function imageAlert(img, imgWidth) { if( typeof imgWidth == 'auto' ) { iframeHeight = false; } $.jAlert({ 'image': img, 'imageWidth': imgWidth }); } function videoAlert(video) { $.jAlert({ 'video': video }); } function iframeAlert(iframe, iframeHeight) { if( typeof iframeHeight == 'undefined' ) { iframeHeight = false; } $.jAlert({ 'iframe': iframe, 'iframeHeight': iframeHeight }); } function ajaxAlert(url, onOpen) { if( typeof onOpen == 'undefined' ) { onOpen = function(alert){ //on open call back. Fires just after the alert has finished rendering return false; }; } $.jAlert({ 'ajax': url, 'onOpen': onOpen }); } |
:: Command execute :: | |
--[ c99shell v.2.1 [PHP 7 Update] [1.12.2019] maintained by KaizenLouie and updated by cermmik | C99Shell Github (MySQL update) | Generation time: 0.0108 ]-- |