JSFiddle - React, Tailwind, and code Playground

by beebul

HTML

<link rel="stylesheet" href="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.1.0/css/bootstrap-combined.min.css">
<script src="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.1.0/js/bootstrap.min.js"></script>
<a data-toggle="modal" class="btn" href="https://i.unisa.edu.au/siteassets/sas/admissions" data-target="#myModal">click me</a>

<div class="modal hide fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
  <div class="modal-header">
    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
    <h3 id="myModalLabel">ATAR PROFILE</h3>
  </div>
  <div class="modal-body">
  </div>
</div>

CSS

.modal-dialog {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}

.modal-body {
  height: auto;
  min-height: 100%;
  max-height: 600px;
  border-radius: 0;
}

.modal.fade.in {
  top: 37%;
}

JavaScript

$('a.btn').on('click', function(e) {
  e.preventDefault();
  var url = $(this).attr('href');
  $(".modal-body").html('<iframe width="100%" height=600px" frameborder="0" scrolling="yes" allowtransparency="true" src="' + url + '"></iframe>');
});