JSFiddle - React, Tailwind, and code Playground

by shinyakoizumi

HTML

Preview:<br/>
<iframe id="tst" style="border:0; width:500px;height:500px;" src="http://sites.google.com/a/googleuniversity.org/ski-club/Home/About-the-Club" >
<p>Your browser does not support tampering with iframe content.</p>
</iframe>

JavaScript

$(document).ready(function () {

 $('iframe').load(function () {
  var $frame = $(this);

  if ($frame[0].document) {

   var w = $frame.width();
   var zw = w / $($frame[0].document.body).width();      
   //set to iframe
   $frame.css({ 'width': w, 'height': h, 'zoom': (zw * 100) + '%' });
   $frame.show();
  }
  else {
   $frame.replaceWith($($frame.text()));
  }
 });
});