Diffstat (limited to 'frontend/gamma/js/Clipperz/PM/UI/Canvas/Features/directLogin.js') (more/less context) (ignore whitespace changes)
-rw-r--r-- | frontend/gamma/js/Clipperz/PM/UI/Canvas/Features/directLogin.js | 209 |
1 files changed, 209 insertions, 0 deletions
diff --git a/frontend/gamma/js/Clipperz/PM/UI/Canvas/Features/directLogin.js b/frontend/gamma/js/Clipperz/PM/UI/Canvas/Features/directLogin.js new file mode 100644 index 0000000..9c4e5ba --- a/dev/null +++ b/frontend/gamma/js/Clipperz/PM/UI/Canvas/Features/directLogin.js | |||
@@ -0,0 +1,209 @@ | |||
1 | /* | ||
2 | |||
3 | Copyright 2008-2011 Clipperz Srl | ||
4 | |||
5 | This file is part of Clipperz's Javascript Crypto Library. | ||
6 | Javascript Crypto Library provides web developers with an extensive | ||
7 | and efficient set of cryptographic functions. The library aims to | ||
8 | obtain maximum execution speed while preserving modularity and | ||
9 | reusability. | ||
10 | For further information about its features and functionalities please | ||
11 | refer to http://www.clipperz.com | ||
12 | |||
13 | * Javascript Crypto Library is free software: you can redistribute | ||
14 | it and/or modify it under the terms of the GNU Affero General Public | ||
15 | License as published by the Free Software Foundation, either version | ||
16 | 3 of the License, or (at your option) any later version. | ||
17 | |||
18 | * Javascript Crypto Library is distributed in the hope that it will | ||
19 | be useful, but WITHOUT ANY WARRANTY; without even the implied | ||
20 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
21 | See the GNU Affero General Public License for more details. | ||
22 | |||
23 | * You should have received a copy of the GNU Affero General Public | ||
24 | License along with Javascript Crypto Library. If not, see | ||
25 | <http://www.gnu.org/licenses/>. | ||
26 | |||
27 | */ | ||
28 | |||
29 | // | ||
30 | //directLogin.js | ||
31 | //directLogin | ||
32 | // | ||
33 | //Created by Giulio Cesare Solaroli on 3/7/10 | ||
34 | //Copyright 2010 Clipperz | ||
35 | //This code was generated by Opacity. You may use or modify it in any way. | ||
36 | // | ||
37 | |||
38 | var kClipperz_PM_UI_Canvas_Features_directLoginWidth = 76.0; | ||
39 | var kClipperz_PM_UI_Canvas_Features_directLoginHeight = 76.0; | ||
40 | |||
41 | function Clipperz_PM_UI_Canvas_Features_directLogin(canvas, aColor, aBannerColor, aBannerBackgroundColor) | ||
42 | { | ||
43 | var context = canvas.getContext("2d"); | ||
44 | var alignStroke; | ||
45 | var resolution; | ||
46 | var stroke; | ||
47 | var path; | ||
48 | var pointX; | ||
49 | var pointY; | ||
50 | if (window.devicePixelRatio) | ||
51 | resolution = window.devicePixelRatio; | ||
52 | else | ||
53 | resolution = 1.0; | ||
54 | resolution *= 0.5 * (canvas.width / kClipperz_PM_UI_Canvas_Features_directLoginWidth + canvas.height / kClipperz_PM_UI_Canvas_Features_directLoginHeight); | ||
55 | |||
56 | context.save(); | ||
57 | context.scale(canvas.width / kClipperz_PM_UI_Canvas_Features_directLoginWidth, canvas.height / kClipperz_PM_UI_Canvas_Features_directLoginHeight); | ||
58 | context.clearRect(0.0, 0.0, kClipperz_PM_UI_Canvas_Features_directLoginWidth, kClipperz_PM_UI_Canvas_Features_directLoginHeight); | ||
59 | |||
60 | // Layer 2 | ||
61 | |||
62 | stroke = 6.0; | ||
63 | stroke *= resolution; | ||
64 | if (stroke < 1.0) | ||
65 | stroke = Math.ceil(stroke); | ||
66 | else | ||
67 | stroke = Math.round(stroke); | ||
68 | stroke /= resolution; | ||
69 | alignStroke = (0.5 * stroke * resolution) % 1.0; | ||
70 | context.beginPath(); | ||
71 | pointX = 30.0; | ||
72 | pointY = 41.0; | ||
73 | pointX = (Math.round(resolution * pointX + alignStroke) - alignStroke) / resolution; | ||
74 | pointY = (Math.round(resolution * pointY + alignStroke) - alignStroke) / resolution; | ||
75 | context.moveTo(pointX, pointY); | ||
76 | pointX = 45.579; | ||
77 | pointY = 25.451; | ||
78 | pointX = (Math.round(resolution * pointX + alignStroke) - alignStroke) / resolution; | ||
79 | pointY = (Math.round(resolution * pointY + alignStroke) - alignStroke) / resolution; | ||
80 | context.lineTo(pointX, pointY); | ||
81 | context.strokeStyle = aColor; | ||
82 | context.lineWidth = stroke; | ||
83 | context.lineCap = "square"; | ||
84 | context.stroke(); | ||
85 | |||
86 | alignStroke = 0.0; | ||
87 | context.beginPath(); | ||
88 | pointX = 34.207; | ||
89 | pointY = 45.697; | ||
90 | pointX = (Math.round(resolution * pointX + alignStroke) - alignStroke) / resolution; | ||
91 | pointY = (Math.round(resolution * pointY + alignStroke) - alignStroke) / resolution; | ||
92 | context.moveTo(pointX, pointY); | ||
93 | pointX = 24.101; | ||
94 | pointY = 37.52; | ||
95 | pointX = (Math.round(resolution * pointX + alignStroke) - alignStroke) / resolution; | ||
96 | pointY = (Math.round(resolution * pointY + alignStroke) - alignStroke) / resolution; | ||
97 | context.lineTo(pointX, pointY); | ||
98 | pointX = 24.122; | ||
99 | pointY = 47.828; | ||
100 | pointX = (Math.round(resolution * pointX + alignStroke) - alignStroke) / resolution; | ||
101 | pointY = (Math.round(resolution * pointY + alignStroke) - alignStroke) / resolution; | ||
102 | context.lineTo(pointX, pointY); | ||
103 | pointX = 34.207; | ||
104 | pointY = 45.697; | ||
105 | pointX = (Math.round(resolution * pointX + alignStroke) - alignStroke) / resolution; | ||
106 | pointY = (Math.round(resolution * pointY + alignStroke) - alignStroke) / resolution; | ||
107 | context.lineTo(pointX, pointY); | ||
108 | context.closePath(); | ||
109 | context.fillStyle = aColor; | ||
110 | context.fill(); | ||
111 | |||
112 | stroke = 6.0; | ||
113 | stroke *= resolution; | ||
114 | if (stroke < 1.0) | ||
115 | stroke = Math.ceil(stroke); | ||
116 | else | ||
117 | stroke = Math.round(stroke); | ||
118 | stroke /= resolution; | ||
119 | alignStroke = (0.5 * stroke * resolution) % 1.0; | ||
120 | context.beginPath(); | ||
121 | pointX = 24.631; | ||
122 | pointY = 28.971; | ||
123 | pointX = (Math.round(resolution * pointX + alignStroke) - alignStroke) / resolution; | ||
124 | pointY = (Math.round(resolution * pointY + alignStroke) - alignStroke) / resolution; | ||
125 | context.moveTo(pointX, pointY); | ||
126 | pointX = 46.497; | ||
127 | pointY = 26.451; | ||
128 | pointX = (Math.round(resolution * pointX + alignStroke) - alignStroke) / resolution; | ||
129 | pointY = (Math.round(resolution * pointY + alignStroke) - alignStroke) / resolution; | ||
130 | context.lineTo(pointX, pointY); | ||
131 | context.strokeStyle = aColor; | ||
132 | context.stroke(); | ||
133 | |||
134 | alignStroke = 0.0; | ||
135 | context.beginPath(); | ||
136 | pointX = 25.014; | ||
137 | pointY = 35.265; | ||
138 | pointX = (Math.round(resolution * pointX + alignStroke) - alignStroke) / resolution; | ||
139 | pointY = (Math.round(resolution * pointY + alignStroke) - alignStroke) / resolution; | ||
140 | context.moveTo(pointX, pointY); | ||
141 | pointX = 22.166; | ||
142 | pointY = 22.58; | ||
143 | pointX = (Math.round(resolution * pointX + alignStroke) - alignStroke) / resolution; | ||
144 | pointY = (Math.round(resolution * pointY + alignStroke) - alignStroke) / resolution; | ||
145 | context.lineTo(pointX, pointY); | ||
146 | pointX = 15.784; | ||
147 | pointY = 30.675; | ||
148 | pointX = (Math.round(resolution * pointX + alignStroke) - alignStroke) / resolution; | ||
149 | pointY = (Math.round(resolution * pointY + alignStroke) - alignStroke) / resolution; | ||
150 | context.lineTo(pointX, pointY); | ||
151 | pointX = 25.014; | ||
152 | pointY = 35.265; | ||
153 | pointX = (Math.round(resolution * pointX + alignStroke) - alignStroke) / resolution; | ||
154 | pointY = (Math.round(resolution * pointY + alignStroke) - alignStroke) / resolution; | ||
155 | context.lineTo(pointX, pointY); | ||
156 | context.closePath(); | ||
157 | context.fillStyle = aColor; | ||
158 | context.fill(); | ||
159 | |||
160 | stroke = 6.0; | ||
161 | stroke *= resolution; | ||
162 | if (stroke < 1.0) | ||
163 | stroke = Math.ceil(stroke); | ||
164 | else | ||
165 | stroke = Math.round(stroke); | ||
166 | stroke /= resolution; | ||
167 | alignStroke = (0.5 * stroke * resolution) % 1.0; | ||
168 | context.beginPath(); | ||
169 | pointX = 42.282; | ||
170 | pointY = 47.03; | ||
171 | pointX = (Math.round(resolution * pointX + alignStroke) - alignStroke) / resolution; | ||
172 | pointY = (Math.round(resolution * pointY + alignStroke) - alignStroke) / resolution; | ||
173 | context.moveTo(pointX, pointY); | ||
174 | pointX = 47.771; | ||
175 | pointY = 25.714; | ||
176 | pointX = (Math.round(resolution * pointX + alignStroke) - alignStroke) / resolution; | ||
177 | pointY = (Math.round(resolution * pointY + alignStroke) - alignStroke) / resolution; | ||
178 | context.lineTo(pointX, pointY); | ||
179 | context.strokeStyle = aColor; | ||
180 | context.stroke(); | ||
181 | |||
182 | alignStroke = 0.0; | ||
183 | context.beginPath(); | ||
184 | pointX = 48.294; | ||
185 | pointY = 48.929; | ||
186 | pointX = (Math.round(resolution * pointX + alignStroke) - alignStroke) / resolution; | ||
187 | pointY = (Math.round(resolution * pointY + alignStroke) - alignStroke) / resolution; | ||
188 | context.moveTo(pointX, pointY); | ||
189 | pointX = 35.432; | ||
190 | pointY = 47.039; | ||
191 | pointX = (Math.round(resolution * pointX + alignStroke) - alignStroke) / resolution; | ||
192 | pointY = (Math.round(resolution * pointY + alignStroke) - alignStroke) / resolution; | ||
193 | context.lineTo(pointX, pointY); | ||
194 | pointX = 40.7; | ||
195 | pointY = 55.899; | ||
196 | pointX = (Math.round(resolution * pointX + alignStroke) - alignStroke) / resolution; | ||
197 | pointY = (Math.round(resolution * pointY + alignStroke) - alignStroke) / resolution; | ||
198 | context.lineTo(pointX, pointY); | ||
199 | pointX = 48.294; | ||
200 | pointY = 48.929; | ||
201 | pointX = (Math.round(resolution * pointX + alignStroke) - alignStroke) / resolution; | ||
202 | pointY = (Math.round(resolution * pointY + alignStroke) - alignStroke) / resolution; | ||
203 | context.lineTo(pointX, pointY); | ||
204 | context.closePath(); | ||
205 | context.fillStyle = aColor; | ||
206 | context.fill(); | ||
207 | |||
208 | context.restore(); | ||
209 | } | ||