123456789101112131415161718192021222324252627282930 |
- <html>
- <head>
- <title>
- If you see this, JavaScript threw an error
- </title>
- </head>
- <body>
- <h1>
- If you see this, JavaScript threw an error
- </h1>
- <footer>
- <hr />
- <ul>
- <li><a href="https://travis-ci.org/transloadit/transloadit-js-client">Travis</a></li>
- <li><a href="https://github.com/transloadit/transloadit-js-client">GitHub</a></li>
- </ul>
- </footer>
- </body>
- <script src="./transloadit-js-client.js"></script>
- <script>
- var branch = location.pathname.split('/')[2];
- var elTitle = document.querySelector('title');
- var elH1 = document.querySelector('h1');
- var title = 'You are reviewing the latest push of branch: ' + branch;
- elTitle.innerHTML = title;
- elH1.innerHTML = title;
- </script>
- </html>
|