Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!doctype html>
- <html>
- <head>
- <meta charset="utf-8">
- <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
- <meta name="google" content="notranslate">
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
- <title>Thesis</title>
- <style>
- body, html {
- height: 100%;
- margin: 0;
- }
- </style>
- <script type="text/javascript">
- function getRandomInt(min, max) {
- return Math.floor(Math.random() * (max - min + 1)) + min;
- }
- document.addEventListener("DOMContentLoaded", function(event) {
- var iframe = document.getElementById("iframe");
- iframe.src = "https://docs.google.com/viewer?url=http://sub.domain.tld/out/thesis.pdf?nocache=" + getRandomInt(0, 9999) + "&embedded=true";
- });
- </script>
- </head>
- <body>
- <iframe id="iframe" src="" frameborder="0" height="100%" width="100%"></iframe>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement