Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource

JavaScript

Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Auto Save

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                



<div class="container-fluid fill" >
   <div class="row">
     
       		<a data-toggle="modal" href="" data-target="#myModal">
                      Modal First
                    </a>
     <br>
             		<a data-toggle="modal" href="" data-target="#myModalinformation">
                      Modal Second
                    </a>  
     <br>
       		<a data-toggle="modal" href="" data-target="#myModaldetailproduct">
                      Modal Third
                    </a>  
 </div>
  
  
  <!--first modal-->
<div class="modal fade" data-keyboard="false" data-backdrop="static" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
   <div class="modal-dialog">
      <div class="modal-content">

         <div class="modal-header">
            <button type="button" class="close" data-dismiss="modal" aria-hidden="true" id="cancel">&times;</button>
            <h2 class="modal-title"> Product</h2>
         </div>

         <div class="modal-body">
            <form class="form-horizontal" method="post"  action="" id="form" >
              

                  <div class="form-group col-md-12 last-no-margin">
                     <label for="email">Keterangan  <span id="chars">150</span> Char remaining
                     </label>
                     <textarea class="form-control product" id="textarea" name="product_keterangan"  required maxlength="150"  rows="7"></textarea>
                     <span class="help-block"></span>
                  </div>
         </fieldset>
            </form>
         </div>
         <div class="modal-footer">
            <button type="button" id="btnsubmit"  class="btn btn-primary" >Save</button>
            <button type="button" id="btncancel" class="btn btn-danger" data-dismiss="modal" >Cancel</button>

         </div>
      </div>
   </div>
</div>




 <!--second modal-->
<div class="modal fade" data-keyboard="false" data-backdrop="static" id="myModalinformation" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
   <div class="modal-dialog">
      <div class="modal-content">

         <div class="modal-header">
            <button type="button" class="close" data-dismiss="modal" aria-hidden="true" id="cancel">&times;</button>
            <h2 class="modal-title"> Product</h2>
         </div>

         <div class="modal-body">
            <form class="form-horizontal" method="post"  action="" id="form" >
              

                  <div class="form-group col-md-12 last-no-margin">
                     <label for="email">Keterangan  <span id="chars">150</span> Char remaining
                     </label>
                     <textarea class="form-control product" id="textarea" name="product_keterangan"  required maxlength="150"  rows="7"></textarea>
                     <span class="help-block"></span>
                  </div>
         </fieldset>
            </form>
         </div>
         <div class="modal-footer">
            <button type="button" id="btnsubmit"  class="btn btn-primary" >Save</button>
            <button type="button" id="btncancel" class="btn btn-danger" data-dismiss="modal" >Cancel</button>

         </div>
      </div>
   </div>
</div>



<!--third  modal-->
<div class="modal fade" data-keyboard="false" data-backdrop="static" id="myModaldetailproduct" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
   <div class="modal-dialog">
      <div class="modal-content">

         <div class="modal-header">
            <button type="button" class="close" data-dismiss="modal" aria-hidden="true" id="cancel">&times;</button>
            <h2 class="modal-title"> Product</h2>
         </div>

         <div class="modal-body">
            <form class="form-horizontal" method="post"  action="" id="form" >
              

                  <div class="form-group col-md-12 last-no-margin">
                     <label for="email">Keterangan  <span id="chars">150</span> Char remaining
                     </label>
                     <textarea class="form-control product" id="textarea" name="product_keterangan"  required maxlength="150"  rows="7"></textarea>
                     <span class="help-block"></span>
                  </div>
         </fieldset>
            </form>
         </div>
         <div class="modal-footer">
            <button type="button" id="btnsubmit"  class="btn btn-primary" >Save</button>
            <button type="button" id="btncancel" class="btn btn-danger" data-dismiss="modal" >Cancel</button>

         </div>
      </div>
   </div>
</div>
              
            
!

CSS

              
                body {
    background-color: #fff;
}
.fill {
    padding-top: 55px;
    box-sizing: border-box;
}
.container-fluid{
      height:100%;
      width:100%;
       position: absolute;
}

.box {
    padding: 0 2px 0 3px;
}
.inner {
    background-color: #00ccff;
}

.navbar-default {
  background-color: #666666;
  border-color: #666666;
}
.navbar-default .navbar-brand {
  color: #00ccff;
}
.navbar-default .navbar-brand:hover, .navbar-default .navbar-brand:focus {
  color: #00ccff;
}
.navbar-default .navbar-brand:hover, .navbar-default .navbar-brand:hover {
  color: #00ccff;
}
.navbar-default .navbar-text {
  color: #00ccff;
}
.navbar-default .navbar-nav > li > a {
  color: #00ccff;
}
.navbar-default .navbar-nav > li > a:hover, .navbar-default .navbar-nav > li > a:focus {
  color: #00ccff;
}
.navbar-default .navbar-nav > .active > a, .navbar-default .navbar-nav > .active > a:hover, .navbar-default .navbar-nav > .active > a:focus {
  color: #00ccff;
  background-color: #666666;
}
.navbar-default .navbar-nav > .open > a, .navbar-default .navbar-nav > .open > a:hover, .navbar-default .navbar-nav > .open > a:focus {
  color: #00ccff;
  background-color: #666666;
}
.navbar-default .navbar-toggle {
  border-color: #666666;
}
.navbar-default .navbar-toggle:hover, .navbar-default .navbar-toggle:focus {
  background-color: #666666;
}
.navbar-default .navbar-toggle .icon-bar {
  background-color: #00ccff;
}
.navbar-default .navbar-link {
  color: #00ccff;
}
.navbar-default .navbar-link:hover {
  color: #00ccff;
}
/*overrirde navabr height*/
.navbar-nav > li > a, .navbar-brand {
    padding-top:4px !important; 
    padding-bottom:0 !important;
    height: 48px;
}
.navbar {
  min-height:48px !important;
  margin-bottom:0px;
}
.dropdown-menu > li > a {
    color: #00ccff;
}
.dropdown-menu {
	 background-color: #666666;
}
.navbar-default .navbar-nav .open .dropdown-menu>li>a {
       color: #00ccff;
}
.navbar-default .navbar-collapse, .navbar-default .navbar-form {
    border-color: inherit;
}








/*==========  Mobile First Method  ==========*/

/* Custom, iPhone Retina */ 
@media only screen and (min-width : 320px) {
.navbar img {
  margin:0px 0px 0px 0px;
}
.navbar h3 {
    margin: 8px 0px 0px 0px;
    color: red;
    font-size: 38px;
    float:left;
}
.dropdown-menu > li > a {
    color: #00ccff;
}




}




/* Extra Small Devices, Phones */ 
@media only screen and (min-width : 480px) {
.dropdown-menu > li > a {
    color: #00ccff;
}		
.navbar img {
  margin:0px 0px 0px 0px;
}
.navbar h3 {
    margin: 8px 0px 0px 0px;
    color: yellow;
    font-size: 38px;
    float:left;
}
.dropdown-menu {
	 background-color: #666666;
}






}

/* Small Devices, Tablets */
@media only screen and (min-width : 768px) {
	
.dropdown-menu {
	 background-color: #666666;
}
.navbar img {
  margin:0px 0px 0px 0px;
}
.navbar h3 {
    margin: 8px 0px 0px 0px;
    color: green;
    font-size: 38px;
    float:left;
}
  



}
/* Medium Devices, Desktops */
@media only screen and (min-width : 992px) {
.navbar img {
  margin:0px 0px 0px 0px;
}
.navbar h3 {
    margin: 8px 0px 0px 0px;
    color: pink;
    font-size: 38px;
    float:left;
}


}





/* Large Devices, Wide Screens */
@media only screen and (min-width : 1200px) {
	
.navbar-nav > li > a, .navbar-brand {
    padding-top:4px !important; 
    padding-bottom:0 !important;
    height: 48px;
}
.navbar {
  min-height:48px !important;
  margin-bottom:0px;
}
.navbar img {
  margin:0px 0px 0px 0px;
}
.navbar h3 {
    margin: 8px 0px 0px 0px;
    color: #00ccff;
    font-size: 38px;
    float:left;
}


}
	



	
	
	
	







              
            
!

JS

              
                //first modal
$('#myModal').on('shown.bs.modal', function(event) {
    event.preventDefault();
    tinymce.init({
        selector: "textarea",
        width: '100%',
        height: 300,
        plugins: ["anchor link"],
        statusbar: false,
        menubar: false,
        toolbar: 'alignleft aligncenter alignright alignjustify | bullist numlist',
    });
})

//second modal
$('#myModalinformation').on('shown.bs.modal', function(event) {
    event.preventDefault();

    tinymce.init({
        selector: "textarea#2",
        width: '100%',
        height: 300,
        plugins: ["anchor link"],
        statusbar: false,
        menubar: false,
        toolbar: 'alignleft aligncenter alignright alignjustify | bullist numlist',
    });

})

//third modal
$('#myModaldetailproduct').on('shown.bs.modal', function(event) {
    event.preventDefault();
    tinymce.init({
        selector: "textarea#3",
        width: '100%',
        height: 300,
        plugins: ["anchor link"],
        statusbar: false,
        menubar: false,
        toolbar: 'alignleft aligncenter alignright alignjustify | bullist numlist',
    });

})
              
            
!
999px

Console