Skip to content

Commit

Permalink
Update index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
code2344 authored Nov 6, 2024
1 parent bc138c4 commit f3873c2
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,21 @@
<p> </p>
<p> </p>
<p> </p>
<iframe class="ap-embed" title="Live election results via the Associated Press" src="https://interactives.ap.org/election-results/customers/layouts/organization-layouts/published/49221/23238.html" width="100%" frameborder="0" scrolling="no" marginheight="0" height="699" style="height: 699px;"/>
<button onclick="openFullscreen();">Open Fullscreen Mode</button>
<iframe class="ap-embed" title="Live election results via the Associated Press" src="https://interactives.ap.org/election-results/customers/layouts/organization-layouts/published/49221/23238.html" width="100%" frameborder="0" scrolling="no" marginheight="0" height="699" style="height: 699px;"/>
<script>
var elem = document.getElementById("ap-embed");
function openFullscreen() {
if (elem.requestFullscreen) {
elem.requestFullscreen();
} else if (elem.webkitRequestFullscreen) { /* Safari */
elem.webkitRequestFullscreen();
} else if (elem.msRequestFullscreen) { /* IE11 */
elem.msRequestFullscreen();
}
}
</script>

<!-- partial -->

</body>
Expand Down

0 comments on commit f3873c2

Please sign in to comment.