| <!doctype html> |
| <html lang="en"> |
| |
| <head> |
| <meta charset="utf-8"> |
| <title>Site Characteristics Database Test Page</title> |
| </head> |
| |
| <body> |
| <script> |
| // Play |test_audio.ogg|. |
| function PlayAudio() { |
| var audio = new Audio('test_audio.ogg'); |
| audio.addEventListener('loadeddata', function () { |
| audio.play(); |
| }) |
| } |
| |
| // Change the page title to |new_title| |
| function ChangeTitle(new_title) { |
| document.title = new_title; |
| } |
| |
| // Change the favicon to |default_favicon.png|. |
| function ChangeFavicon() { |
| favicon = document.createElement('link'); |
| favicon.setAttribute('rel', 'shortcut icon'); |
| var head = document.querySelector('head'); |
| head.appendChild(favicon); |
| favicon.setAttribute('type', 'image/png'); |
| favicon.setAttribute('href', 'default_favicon.png'); |
| } |
| </script> |
| </body> |
| |
| </html> |