toggle fullscreen on iframe

HTML

<ul id="list">
  <li>
    <div>
      <iframe src="http://www.thinkstockphotos.co.uk/CMS/StaticContent/Hero/TS_AnonHP_462882495_01.jpg" scrolling="no" frameborder="0"></iframe>
    </div>
  </li>

</ul>

CSS

#list {
  overflow: auto;
}

#list li {
  float: left;
  margin-right: 10px;
}

div {
  width: 450px;
  height: 380px;
  border: 1px solid gray;
  position: relative;
}

iframe {
  width: 450px;
  height: 380px;
  border: 1px solid black
  display: block;
}

span.button {
  position: absolute;
  left: 0;
  top: 0;
  background-color: black;
  padding: 5px 10px 5px 10px;
  color: white;
  cursor: pointer;
}

div.close {
  display: none;
}

JavaScript

$('#list div').each(function() {
  $(this).append('<span class="button">Close</span>');
});

$("span.button").click(function() {
  $(this).closest("li").children("div").toggleClass("close");
});