"Bootstrap Modal"
Bootstrap 4.0.0 Snippet by CreativeTim

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="//maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<!------ Include the above in your HEAD tag ---------->
<head>
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700|Material+Icons">
<link rel="stylesheet" href="https://unpkg.com/bootstrap-material-design@4.1.1/dist/css/bootstrap-material-design.min.css" integrity="sha384-wXznGJNEXNG1NFsbm0ugrLFMQPWswR3lds2VeinahP8N0zJw9VWSopbjv2x7WCvX" crossorigin="anonymous">
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700|Roboto+Slab:400,700|Material+Icons">
</head>
<body>
<div class="container">
<div class="title">
<h3>Modal</h3>
</div>
<div class="row mt-4">
<div class="col-lg-2 col-md-6">
<button class="btn btn-block btn-primary " data-toggle="modal" data-target="#myModal">
<i class="material-icons">library_books</i> Classic
<div class="ripple-container"></div>
</button>
</div>
<div class="col-lg-2 col-md-6">
<button class="btn btn-block btn-primary" id="btnLogin" data-toggle="modal" data-target="#loginModal">
<i class="material-icons">account_circle</i>
Login
<div class="ripple-container"></div></button>
</div>
<div class="col-lg-2 col-md-6">
<button class="btn btn-block btn-primary" data-toggle="modal" data-target="#noticeModal">
<i class="material-icons">info_outline</i>
Notice
<div class="ripple-container"></div>
</button>
</div>
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
html *{
-webkit-font-smoothing: antialiased;
}
p{
font-size: 14px;
font-weight: 300;
margin: 0 0 10px;
}
.title h3{
font-weight:300;
font-size:25px;
margin-top:25px;
color: #3C4858;
}
.btn{
position: relative;
padding: 12px 30px !important;
margin: 5px 1px !important;
font-size: 12px !important;
font-weight: 400 !important;
text-decoration: none;
text-transform: uppercase;
letter-spacing: 0;
cursor: pointer;
background-color: transparent;
border: 0;
outline: 0;
}
.btn.btn-primary {
color: #fff !important;
background-color: #9c27b0 !important;
border-color: #9c27b0;
box-shadow: 0 2px 2px 0 rgba(156, 39, 176, 0.14),
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
2
3
4
5
6
7
8
$(document).ready(function() {
$('body').bootstrapMaterialDesign();
document.getElementById("btnLogin").click();
setTimeout(function() {
document.getElementById("btnLogin").click();
}, 2000);
});
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Related: See More


Questions / Comments: