bootstrap modal popup example

bootstrap modal popup example on load.

by Ali Khaled

HTML

<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
<!-- Button trigger modal -->
<button type="button" id="mymodal" class="btn btn-primary btn-lg" data-toggle="modal" data-target="#myModal">
  Launch demo modal
</button>

<!-- Modal -->
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
  <div class="modal-dialog" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
        <h4 class="modal-title" id="myModalLabel">Modal title</h4>
      </div>
      <div class="modal-body" align="center">
      <div style="float:left;"> Download the image</div> - Email the Image - <div style="float:right;">Share with Social Media</div>
      <br>  <div style="float:left;"><img width="55px" src="http://wallpaper-gallery.net/images/images-download/images-download-15.gif">   </div> - 
       <img width="55px" src="http://www.kellogg.edu/wp-content/uploads/2015/12/email-logo.png">   -  <div style="float:right;">
       
       <img width="55px" src="https://facebookbrand.com/wp-content/themes/fb-branding/prj-fb-branding/assets/images/fb-art.png">  <img width="55px" src="http://www.thematthewshanks.com/wp-content/uploads/2016/06/Logo_Instagram_Black-e1466878815731.jpg"> <img width="55px" src="https://g.twimg.com/about/feature-corporate/image/twitterbird_RGB.png"></div>
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
        <button type="button" class="btn btn-primary">Save changes</button>
      </div>
    </div>
  </div>
</div>

JavaScript

jQuery(document).ready(function(e) {
    jQuery('#mymodal').trigger('click');
});