<style type="text/css">#myModal{margin-top:0px;}
.modal-header button{
display: block;
margin: 5px 18px 20px auto;
background-color: transparent;
font-size: 30px;
color: #ffffff;
background: #03549a;
border-radius: 100%;
width: 45px;
height: 40px;
border: none;
outline: none;
cursor: pointer;
}
@media only screen and (max-width: 600px) {
.modal-content{
left:10% !important;
}
#pban img{
width: 286px !important;
}
}
</style>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script><script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<div class="bs-example"><!-- Button HTML (to Trigger Modal) --><!-- Modal HTML -->
<div class="modal fade" id="myModal">
<div class="modal-dialog" style="width:80%;">
<div class="modal-content">
<div class="modal-header" style="border: none; padding-bottom:0px;"><button aria-hidden="true" data-dismiss="modal" id="close" type="button">×</button></div>
<div class="modal-body" id="pban">
<center> </center>
<center><img alt="" src="/sites/hetaudamun.gov.np/files/u51/%E0%A4%AC%E0%A4%BE%E0%A4%B2%E0%A4%AE%E0%A5%88%E0%A4%A4%E0%A5%8D%E0%A4%B0%E0%A5%80%20%E0%A4%B8%E0%A5%82%E0%A4%9A%E0%A4%A8%E0%A4%BE_0.jpeg" style="width: 500px; height: 403px;" /></center>
</div>
</div>
</div>
</div>
</div>
<script type="text/javascript">
$(window).on('load',function(){
$('#myModal').modal('show');
});
document.querySelector("#close").addEventListener("click", function(){
document.querySelector(".modal-body").style.display = "none";
});
</script>