Search Tools Data

Thứ Tư, 12 tháng 7, 2017

Popup Modal

Popup Modal

Popup modal

<link type='text/css' rel='stylesheet' href='https://rawgit.com/ntpvt/searchtools.top/master/css/popModal-up.css'/>
<link type='text/css' rel='stylesheet' href='https://rawgit.com/ntpvt/searchtools.top/master/css/popModal-down.css'/>
<script src="https://cdn.jsdelivr.net/jquery/3.1.0/jquery.min.js"></script>
<div class="exampleContainer">
     <div class="exampleLive">
      <div class="exampleLiveTitle">show as menu</div>
      <button id="popModal_ex3" class="btn btn-primary">Example</button>
     </div>  
    </div>
<div style="display:none">
<div id="content3">
 <ul>
  <li><a href="">Menu 1</a></li>
  <li><a href="">Menu 2</a></li>
  <li><a href="">Menu 3</a></li>
  <li><a href="">Menu 4</a></li>
  <li></li>
  <li><a href="">Menu 5</a></li>
 </ul>
</div>
</div>
<div class="exampleContainer">
<div class="exampleLive">
      <div class="exampleLiveTitle">loading ajax</div>
      <button id="popModal_ex2" class="btn btn-primary">Example</button>
     </div></div>
<div class="exampleContainer">
     <div class="exampleLive">
      <div class="exampleLiveTitle">default params</div>
      <button id="dialogModal_ex1" class="btn btn-primary">Example</button>
     </div></div>
<div id="dialog_content" class="dialog_content" style="display:none">
 <div class="dialogModal_header">Dialog header 1</div>
 <div class="dialogModal_content">
 Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.<br><br>
 Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.<br><br>
 Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.<br><br>
 Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.<br><br>
 Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.<br><br>
 Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.<br><br>
 Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.<br><br>
 Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
 </div>
 <div class="dialogModal_footer">
  <button type="button" class="btn btn-primary" data-dialogmodal-but="next">Next</button>
  <button type="button" class="btn btn-default" data-dialogmodal-but="cancel">Cancel</button>
 </div>
</div>
<div id="dialog_content2" class="dialog_content" style="display:none">
 <div class="dialogModal_header">Dialog header 2</div>
 <div class="dialogModal_content">
  Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
 </div>
 <div class="dialogModal_footer">
  <button type="button" class="btn btn-default btn-left" data-dialogmodal-but="prev">Back</button>
  <button type="button" class="btn btn-primary" data-dialogmodal-but="next">Next</button>
  <button type="button" class="btn btn-default" data-dialogmodal-but="cancel">Cancel</button>
 </div>
</div>
<div id="dialog_content3" class="dialog_content" style="display:none">
 <div class="dialogModal_header">Dialog header 3</div>
 <div class="dialogModal_content">
 Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
 </div>
 <div class="dialogModal_footer">
  <button type="button" class="btn btn-default btn-left" data-dialogmodal-but="prev">Back</button>
  <button type="button" class="btn btn-primary" data-dialogmodal-but="ok">Ok</button>
  <button type="button" class="btn btn-default" data-dialogmodal-but="cancel">Cancel</button>
 </div>
</div>
<script type='text/javascript'>
//<![CDATA[
 $('#popModal_ex2').click(function(){
  $('#popModal_ex2').popModal({
   html : function(callback) {
    $.ajax({url:'//rawgit.com/ntpvt/searchtools.top/master/html/ajaxtest.html'}).done(function(content){
     callback(content);
    });
   }
  });
 });
</script>
<script type='text/javascript'>
//<![CDATA[
$(function(){$("#popModal_ex1").click(function(){$("#popModal_ex1").popModal({html:$("#content"),placement:"bottomLeft",showCloseBut:true,onDocumentClickClose:true,onDocumentClickClosePrevent:"",overflowContent:false,inline:true,asMenu:false,beforeLoadingContent:"Please, wait...",onOkBut:function(){},onCancelBut:function(){},onLoad:function(){},onClose:function(){}})});$("#popModal_ex3").click(function(){$("#popModal_ex3").popModal({html:$("#content3"),placement:"bottomLeft",asMenu:true})});$("#notifyModal_ex1").click(function(){$("#content2").notifyModal({duration:2500,placement:"center",overlay:true,type:"notify",onClose:function(){}})});$("#dialogModal_ex1").click(function(){$(".dialog_content").dialogModal({topOffset:0,top:"10%",type:"",onOkBut:function(){},onCancelBut:function(){},onLoad:function(a,b){},onClose:function(){},onChange:function(a,b){if(b==3){a.find(".dialogModal_header span").text("Page 3");$.ajax({url:"ajax.html"}).done(function(c){a.find(".dialogModal_content").html(c)})}}})});$("#confirmModal_ex1").click(function(){$("#confirm_content").confirmModal({topOffset:0,onOkBut:function(){},onCancelBut:function(){},onLoad:function(){},onClose:function(){}})});(function(a){a.fn.tab=function(c){var b={init:function(d){a(".tab").click(function(){var e=a(this).attr("data-tab");a(this).parent().find("> .tab").each(function(){a(this).removeClass("active")});a(this).parent().find("+ .page_container > .page").each(function(){a(this).removeClass("active")});a(this).addClass("active");a('.page[data-page="'+e+'"]').addClass("active")})}};if(b[c]){return b[c].apply(this,Array.prototype.slice.call(arguments,1))}else{if(typeof c==="object"||!c){return b.init.apply(this,arguments)}}};a("html").tab()})(jQuery)});
//]]></script>
<script src="https://rawgit.com/ntpvt/searchtools.top/master/js/popModal.js"></script>

Phương Cần Thơ © 2016.