| 1 |
<!DOCTYPE html> |
| 2 |
<html lang="en"> |
| 3 |
<head> |
| 4 |
<meta http-equiv="content-type" content="text/html; charset=utf-8"> |
| 5 |
<title>Go CDK Image Conversion Sample</title> |
| 6 |
<link href="https://fonts.googleapis.com/css?family=Roboto:400,400i,700&display=swap" rel="stylesheet"> |
| 7 |
<link rel="stylesheet" type="text/css" href="/style.css"> |
| 8 |
</head> |
| 9 |
<body> |
| 10 |
<header id="PageHeader"> |
| 11 |
<a href="/" class="PageTitle-link"><h1 id="PageTitle">Go CDK Image Conversion Sample</h1></a> |
| 12 |
</header> |
| 13 |
<main id="PageContent"> |
| 14 |
<div class="FrontPageActions"> |
| 15 |
<button class="FrontPageActions-button" data-href="/orders/new">Convert an Image</button> |
| 16 |
<button class="FrontPageActions-button" data-href="/orders">List Conversions</button> |
| 17 |
</div> |
| 18 |
</main> |
| 19 |
<script type="text/javascript"> |
| 20 |
// If an element with the attribute "data-href" is clicked, then redirect |
| 21 |
// the browser to the value of the attribute instead of performing the |
| 22 |
// default behavior. |
| 23 |
document.addEventListener('click', function(e) { |
| 24 |
if (e.target.dataset.href) { |
| 25 |
window.location.href = e.target.dataset.href; |
| 26 |
return false; |
| 27 |
} |
| 28 |
}); |
| 29 |
</script> |
| 30 |
</body> |
| 31 |
</html> |