OLD | NEW |
1 /* | 1 /* |
2 * This file is part of the Adblock Plus website, | 2 * This file is part of the Adblock Plus website, |
3 * Copyright (C) 2006-present eyeo GmbH | 3 * Copyright (C) 2006-present eyeo GmbH |
4 * | 4 * |
5 * Adblock Plus is free software: you can redistribute it and/or modify | 5 * Adblock Plus is free software: you can redistribute it and/or modify |
6 * it under the terms of the GNU General Public License version 3 as | 6 * it under the terms of the GNU General Public License version 3 as |
7 * published by the Free Software Foundation. | 7 * published by the Free Software Foundation. |
8 * | 8 * |
9 * Adblock Plus is distributed in the hope that it will be useful, | 9 * Adblock Plus is distributed in the hope that it will be useful, |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 container.style.visibility = ""; | 82 container.style.visibility = ""; |
83 } | 83 } |
84 image.src = "data:image/gif;base64,R0lGODlhGAAYAPQAAP%2F%2F%2FwCA%2F87m%2Fvr8%
2FuDv%2FrDX%2Fujz%2Fo7G%2Fsjj%2FpzN%2Ftjr%2FqjT%2FsDf%2FvL4%2Fna6%2FobC%2Frjb%2F
miz%2FgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH%2BGkNyZWF0ZWQgd
2l0aCBhamF4bG9hZC5pbmZvACH5BAAHAAAAIf8LTkVUU0NBUEUyLjADAQAAACwAAAAAGAAYAAAFriAgj
iQAQWVaDgr5POSgkoTDjFE0NoQ8iw8HQZQTDQjDn4jhSABhAAOhoTqSDg7qSUQwxEaEwwFhXHhHgzOA1
xshxAnfTzotGRaHglJqkJcaVEqCgyoCBQkJBQKDDXQGDYaIioyOgYSXA36XIgYMBWRzXZoKBQUMmil0l
galLSIClgBpO0g%2Bs26nUWddXyoEDIsACq5SsTMMDIECwUdJPw0Mzsu0qHYkw72bBmozIQAh%2BQQAB
wABACwAAAAAGAAYAAAFsCAgjiTAMGVaDg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LL
QADCHOtOpY5PgNlAAykAEUsQ1wzCgWdCIdeArczBQVbDJ0NAqyeBb64nQAGArBTt8R8mLuyPyEAOwAAA
AAAAAAAAA%3D%3D"; |
85 | 85 |
86 var request = new XMLHttpRequest(); | 86 var request = new XMLHttpRequest(); |
87 request.open("GET", loadPrefix + encodeURIComponent(animation.getAttribute("na
me")) + loadSuffix); | 87 request.open("GET", loadPrefix + encodeURIComponent(animation.getAttribute("na
me")) + loadSuffix); |
88 request.onload = function() { | 88 request.onload = function() { |
89 if (!request.responseXML || !request.responseXML.documentElement) | 89 if (!request.responseXML || !request.responseXML.documentElement) |
90 return; | 90 return; |
91 | 91 |
92 animation._data = request.responseXML.documentElement; | 92 animation._data = request.responseXML.documentElement.getElementsByTagName("
animation")[0]; |
93 initAnimation(animation); | 93 initAnimation(animation); |
94 } | 94 } |
95 request.send(null); | 95 request.send(null); |
96 } | 96 } |
97 | 97 |
98 function initAnimation(animation) { | 98 function initAnimation(animation) { |
99 while (animation.firstChild) | 99 while (animation.firstChild) |
100 animation.removeChild(animation.firstChild); | 100 animation.removeChild(animation.firstChild); |
101 | 101 |
102 var data = animation._data; | 102 var data = animation._data; |
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
340 if (/right/i.test(anchor)) | 340 if (/right/i.test(anchor)) |
341 coords[0] += size[0]; | 341 coords[0] += size[0]; |
342 else if (!/left/i.test(anchor)) | 342 else if (!/left/i.test(anchor)) |
343 coords[0] += Math.round(size[0]/2); | 343 coords[0] += Math.round(size[0]/2); |
344 | 344 |
345 if (/bottom/i.test(anchor)) | 345 if (/bottom/i.test(anchor)) |
346 coords[1] += size[1]; | 346 coords[1] += size[1]; |
347 else if (!/top/i.test(anchor)) | 347 else if (!/top/i.test(anchor)) |
348 coords[1] += Math.round(size[1]/2); | 348 coords[1] += Math.round(size[1]/2); |
349 } | 349 } |
OLD | NEW |