forked from taoalpha/taoalpha.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
27 lines (26 loc) · 1.21 KB
/
Copy pathindex.html
File metadata and controls
27 lines (26 loc) · 1.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<head>
<meta charset='utf-8' />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Getting started with Scaled Inference</title>
<meta content='' name='description' />
<link href="css/print.css" rel="stylesheet" type="text/css" />
<link href='css/fonts.css' rel='stylesheet' type='text/css'>
<link rel="shortcut icon" href="favicon.png" type="image/x-icon" />
<script type="text/javascript" src="http://code.jquery.com/jquery-1.7.1.min.js"></script>
<!--
<script src="https://tutorial.amp.ai/libs/xxx.js" amp-config='{domain: "https://tutorial.amp.ai"}'></script>
-->
</head>
<body class='home' data-last-page='/'>
<script type="text/javascript">
var imgAr = ["car", "flowers"];
var num = Math.floor( Math.random() * imgAr.length );
var img = imgAr[ num ];
var imgStr = $('<img src="images/' + img + '.jpeg" alt = "">').appendTo(document.body);
var like = $('<p><button type="button" id="Like">Like></button>').appendTo(document.body);
// Let Amp observe if user clicked the link
like.click(function() { amp.observe("Like", {img: img} ); });
</script>
</body>
</html>