summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/resources/click_to_play_plugin.html
blob: b29dc7edd98965a6a752f70ceeb30b00d1d84e1e (plain)
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
52
53
54
55
56
57
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, user-scalable=no">
<script>
function debug(msg) {
  document.getElementById('debug').textContent = msg;
}
</script>
<link rel="stylesheet" href="plugin_placeholders.css"></link>
<style>
body {
  background-color: rgb(128, 128, 128);
}

body #outer:hover {
  background: -webkit-linear-gradient(#d2d2d2, #a5a5a5);
}

body #outer:active {
  background: -webkit-linear-gradient(#b9b9b9, #d2d2d2);
}

#plugin_icon {
  opacity: .4;
}

#outer:hover #plugin_icon {
  opacity: 1.0;
}

#outer {
  cursor: pointer;
}
</style>
</head>

<body id="t">
<div i18n-values="title:name" id="outer" onclick="plugin.load()">
<div id="inner">
<div><img id="plugin_icon" src="plugin_blocked.png" /></div>
<h1 i18n-content="message">PLUGIN_LOAD</h1>
<p id="debug"> </p>
</div>
<div id="close" i18n-values="title:hide" onclick="event.stopPropagation(); plugin.hide()" />
</div>
<script>
size = document.getElementById('outer');
style = getComputedStyle(size);
if (parseInt(style.width) < 32 && parseInt(style.height) < 32) {
  i = document.getElementById('close');
  i.parentNode.removeChild(i);
}
</script>
</body>
</html>