This repository has been archived by the owner on Sep 10, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathdemo.html
51 lines (44 loc) · 1.7 KB
/
demo.html
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<!doctype html>
<!-- Copyright (c) 2014 Google Inc. All rights reserved. -->
<html>
<head>
<meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-scale=1.0, user-scalable=yes">
<title>google-cloud Demo</title>
<script src="../webcomponentsjs/webcomponents.js"></script>
<link rel="import" href="../google-signin/google-signin.html">
<link rel="import" href="google-cloud-config.html">
<link rel="import" href="google-cloud-compute.html">
</style>
</head>
<body unresolved>
<div>
<google-signin
clientId="1054047045356-j8pgqgls9vdef3rl09hapoicumbte0bo.apps.googleusercontent.com"
scopes="https://www.googleapis.com/auth/compute">
</google-signin>
</div>
<!-- Demo the google-cloud elements. -->
<polymer-element name="sample-cloud">
<template>
<p>Testing config for Project ID: <input type="text" name="projectId" value="{{projectId}}"></p>
<google-cloud-config id="config"
project="{{projectId}}">
</google-cloud-config>
<google-cloud-compute-instance id="codelab-vm" name="codelab-vm"
diskImage="google-containers:container-vm-v20140522"
metadata='[{"key": "google-container-manifest", "value": "version: v1beta1\ncontainers:\n- name: nodejs-hello\n image: google/nodejs-hello\n ports:\n - name: port8080\n hostPort: 8080\n containerPort: 8080\n"}]'
onclick="this.create()">
<img src="img/vm.png" height="70" width="70"></img>
</google-cloud-compute-instance>
</template>
<script>
Polymer('sample-cloud', {
publish: {
projectId: ''
}
});
</script>
</polymer-element>
<sample-cloud></sample-cloud>
</body>
</html>