All Projects → HTMLGuyLLC → Jalert

HTMLGuyLLC / Jalert

Licence: mit
jQuery alert/modal/lightbox plugin

Projects that are alternatives of or similar to Jalert

Jquery Confirm
A multipurpose plugin for alert, confirm & dialog, with extended features.
Stars: ✭ 1,776 (+2332.88%)
Mutual labels:  jquery-plugin, alert, popup, modals, jquery
Jbox
jBox is a jQuery plugin that makes it easy to create customizable tooltips, modal windows, image galleries and more.
Stars: ✭ 1,251 (+1613.7%)
Mutual labels:  jquery-plugin, modal, alert, popup, popup-window
Popup Maker
Popup Maker plugin for WordPress
Stars: ✭ 87 (+19.18%)
Mutual labels:  jquery-plugin, modal, popup-window, jquery
Bdialog
Extend the Bootstrap Modal features, making dialog more functions and easier to use, dialog type including modal, alert, mask and toast types
Stars: ✭ 174 (+138.36%)
Mutual labels:  jquery-plugin, modal, alert, jquery
BalloonPopup
Forget Android Toast! BalloonPopup displays a round or squared popup and attaches it to a View, like a callout. Uses the Builder pattern for maximum ease. The popup can automatically hide and can persist when the value is updated.
Stars: ✭ 32 (-56.16%)
Mutual labels:  alerts, alert, popup-window, popup
Cdalertview
Highly customizable alertview and alert/notification/success/error/alarm popup written in Swift
Stars: ✭ 1,056 (+1346.58%)
Mutual labels:  alert, popup, popup-window, alerts
Bootstrap Show Modal
A Bootstrap 4 / jQuery plugin wrapper, to create modals dynamically in JavaScript
Stars: ✭ 38 (-47.95%)
Mutual labels:  jquery-plugin, modal, jquery
Nativepopup
Clone of Apple iOS App's feedback popup, and easily customizable.
Stars: ✭ 247 (+238.36%)
Mutual labels:  modal, alert, popup
React Native Alert Pro
The Pro Version of React Native Alert (Android & iOS)
Stars: ✭ 69 (-5.48%)
Mutual labels:  modal, alert, popup
eins-modal
Simple to use modal / alert / dialog / popup. Created with pure JS. No javascript knowledge required! Works on every browser and device! IE9
Stars: ✭ 30 (-58.9%)
Mutual labels:  alert, modal, popup
Django Bootstrap Modal Forms
A Django plugin for creating AJAX driven forms in Bootstrap modal.
Stars: ✭ 244 (+234.25%)
Mutual labels:  modal, popup, jquery
vue-modal
Reusable Modal component, supports own custom HTML, text and classes.
Stars: ✭ 29 (-60.27%)
Mutual labels:  modal, modals, popup
react-redux-modal-flex
[DEPRECATED] Make easy a modal/popup with Redux
Stars: ✭ 14 (-80.82%)
Mutual labels:  alert, modal, popup
Popbox.js
A tiny and simple stackable modal plugin for web apps
Stars: ✭ 295 (+304.11%)
Mutual labels:  modal, popup, popup-window
Popupdialog
A simple, customizable popup dialog for iOS written in Swift. Replaces UIAlertController alert style.
Stars: ✭ 3,709 (+4980.82%)
Mutual labels:  modal, alert, popup
Sweetalert
A beautiful replacement for JavaScript's "alert"
Stars: ✭ 21,871 (+29860.27%)
Mutual labels:  modal, alert, popup
React Popup
React popup component
Stars: ✭ 198 (+171.23%)
Mutual labels:  modal, alert, popup
Pmalertcontroller
PMAlertController is a great and customizable alert that can substitute UIAlertController
Stars: ✭ 2,397 (+3183.56%)
Mutual labels:  modal, alert, popup
react-native-popup
React Native Animated Popup Modal
Stars: ✭ 19 (-73.97%)
Mutual labels:  alert, modal, popup
Gijgo
Gijgo - Free Javascript Controls
Stars: ✭ 424 (+480.82%)
Mutual labels:  jquery-plugin, modal, jquery

Join the chat at https://gitter.im/jAlert/Lobby Packagist Codeship npm

jAlert

by HTMLGuy, LLC (https://htmlguy.com)

example jalert

Demo & Detailed Docs

https://htmlguyllc.github.io/jAlert/

What is it?

Simple jQuery (Modal | Popup | Lightbox | Alert) Plugin

Whether you call it a lightbox, modal, popup, or window, jAlert is an excellent replacement / alternative for Simple Modal, FancyBox, or Reveal.

Getting the files

Available on NPM (https://www.npmjs.com/package/jAlert):

npm install jAlert

Dependencies

jQuery 1.7+

Setup

Include the CSS files from the folder in the head section:

<link rel="stylesheet" href="jAlert-master/dist/jAlert.css">

Include the JS file from the folder before the </body>:

<script src="jAlert-master/dist/jAlert.min.js"></script>
<script src="jAlert-master/dist/jAlert-functions.min.js"></script> <!-- COMPLETELY OPTIONAL -->

To use the 'data-jAlert' attributes, you must attach the handlers (must be re-attached for newly added dynamic content):

<a href='#' data-jAlert data-title='New jAlert!' data-content='Great job!'>Click Me</a>
$(function(){
  $.jAlert('attach');
});

This is the default usage. Doesn't require jAlert-functions.js

  $.jAlert({ //this is the normal usage
    'title': 'Test',
    'content': 'Howdy',
    'theme': 'green',
    'size': 'xsm'
  });

Quick Use (requires jAlert-functions.js!!!)

  alert('hi'); //override is enabled by default 

Note: When you run alert() in your console, it works as expected but will return "undefined"...ignore that. It's just because the function doesn't return anything. Had to add this disclaimer because people got confused..lol..

  successAlert('Success', 'You did it!'); //green alert
  errorAlert('Error', 'It didn\'t work!'); //red alert
  infoAlert('Info', 'Information!'); //blue alert
  warningAlert('Warning', 'Warning!'); //yellow alert
  blackAlert('Warning', 'Warning!'); //black alert (obviously)
  imageAlert('http://mydomain.com/myimg.jpg'); //optional second param is the image width (defaults to auto)
  videoAlert('http://youtube.com/viddk35k');
  ajaxAlert('http://mydomain.com/myfile.php'); //optional second param is onOpen callback which gets passed the instance of jAlert
  iframeAlert('http://mydomain.com'); //optional second param is height (defaults to fill the viewport height)
  confirm(function(){
    console.log('confirmed!');
  }, function(){
    console.log('denied');
  });
  $.fn.jAlert.defaults.backgroundColor = 'white'; //override a default setting
  
  $.fn.jAlert({ //same as $.jAlert when you're not passing an element - this alert will now have the white background color
    'title': 'Test',
    'content': 'Howdy',
    'theme': 'green',
    'size': 'xsm'
    //'backgroundColor': 'white' //you could also pass it here
  });
  
  $.fn.jAlert.defaults.backgroundColor = 'black'; //set it back to black
  $('.btn').alertOnClick({ //this function attaches an onclick handler to .btn and passes the options to jAlert
    'title': 'It worked!',
    'content': 'You clicked the button'
  });
  $.alertOnClick('.btn', { //this function attaches an onclick handler to the body for .btn and kicks off jAlert
    'title': 'Like magic',
    'content': 'You clicked the button that was dynamically added'
  });
  $.jAlert({ //creates a lightbox for the image - responsive and all
    'image': 'http://mysite.com/my-image.jpg'
  });
  $.jAlert({ //creates a lightbox for the video - responsive and all
    'video': 'http://youtube.com/dflskd'
  });
  $.jAlert({ //creates an alert that fills most of the height with a scrollable iframe
    'iframe': 'http://mysite.com'
  });
  $.jAlert({ //gets content from another file with $.get()
    'ajax': 'my-ajax-content.php'
  });
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].