blob: ffe77a7af21d52e94352c85ff3276fc16bfb6039 (
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
|
<!DOCTYPE html>
<html i18n-values="dir:textdirection">
<head>
<title i18n-content="title"></title>
<style>
#dialogBackground, #dialogBackground div {
display: -webkit-box;
-webkit-box-align: center;
}
#dialog button {
font-size: 12px;
height: 25px;
width: 150px;
}
#dialogBackground {
display: -webkit-box;
background-color: white;
height: 100%;
left: 0;
position: fixed;
top: 0;
width: 100%;
z-index: 1;
-webkit-box-orient: vertical;
-webkit-user-select: none;
}
html[dir='rtl'] #dialogBackground {
right: 0;
left: auto;
}
#dialogHBackground {
height: 100%;
-webkit-box-orient: horizontal;
}
#dialog {
padding: 14px 18px;
border: 2px solid hsl(213, 55%, 75%);
background-color: hsl(213, 63%, 93%);
-webkit-box-shadow: 3px 3px 6px hsla(0, 0%, 0%, .3);
border-radius: 6px 6px;
max-width: 450px;
-webkit-box-orient: vertical;
}
#eulaTitle {
padding-bottom: 8px;
font-weight: bold;
font-size: 105%;
}
#eulaButtonRow {
padding-top: 15px;
padding-bottom: 5px;
}
#eulaButtonRow button {
margin-left: 15px;
margin-right: 15px;
}
</style>
<script>
function acceptEula() {
chrome.send('acceptEula', []);
}
function declineEula() {
chrome.send('declineEula', []);
}
</script>
</head>
<body i18n-values=".style.fontFamily:fontfamily;.style.fontSize:fontsize">
<div id="dialogBackground">
<div id="dialogHBackground">
<div id="dialog">
<div id="eulaTitle" i18n-content="eulaTitle">EULA_TITLE</div>
<div id="eulaDesc" i18n-values=".innerHTML:eulaDesc">EULA_DESCRIPTION</div>
<div id="eulaButtonRow">
<button i18n-content="acceptButton" onclick="acceptEula()">
ACCEPT_EULA</button>
<button i18n-content="declineButton" onclick="declineEula()">
DECLINE_EULA</button>
</div>
</div>
</div>
</div>
</body>
</html>
|