summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
Diffstat (limited to 'data')
-rw-r--r--data/plugins.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/data/plugins.js b/data/plugins.js
index 324b5796..da6fa9cb 100644
--- a/data/plugins.js
+++ b/data/plugins.js
@@ -1,7 +1,7 @@
const DwbPlugin = {
_plugins : [],
remove:
- function (id, values) {
+ function (id, values, mimetype) {
var e = document.getElementById(id);
for (var i=0; i<DwbPlugin._plugins.length; i++) {
if (DwbPlugin._plugins[i] == id) {
@@ -17,15 +17,18 @@ const DwbPlugin = {
obj.style.background="transparent url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAABGdBTUEAALGPC/xhBQAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAACs1JREFUaN7tWEtsnNd1/s69/3Me5IzE4VgzJCvSBZnajhpYcW3DDQqYLRIbRpLaSIpk2UXSVdEku7arAu6mi27SBAGyCYrCRRABCeJF0cpADbhwYJukFNGyo1i2RJqkZkbkPP7H/K97TxbUDEhRjyHNRlnkAAMMOec/9/vO457/HOD38mCFjvrg448/jqWlJTz33HMl0zQfFULMMbOplNoMguC9tbW1zQ8//DAtlUrodDq/WwQWFxcRhqGsVquLUsq/ZeYnmXmcmQlAqLW+nKbpj9rt9rlms3kzl8ux67p4++23j52APIzyyy+/jDiOsbS0RGfOnPmKlPJ7WuuzWuscEUkiEgBsIpoyDOPPHMeRSqnVfr8fmqaJra2tB0vA933MzMygXq//sRDi35h5lohw8uRJTE1NoVKpgIgQRRGY2SaiTwshNoIgeE9KmdZqtWMnIQ6jXCgUcPnyZSml/CsACwBQrVYxNzeHEydOoFQqYXZ2FtPT0wAAIio5jvPVXC43k6bpkevtWAg8+eSTsG0b9Xp9jIieYWbkcjnUajVIKcHMYGYQESqVCsrlMpgZUspPua47nySJ8UAJAAAzI8syl5knAKBcLsOyLDDzPj3DMJDP53cPECIvpZw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Wm82m686jvNTwzBmhRAlpVSUpumm1npNCNESQsTMjJWVleGD+ywyMxzHwcLCwr6RUggBKeW+glJKdXu93k89z/txlmWXmLmjtc6Y2bQsa6JcLn++UCh8W0r5h77vY2dnB9Vq9V7FrYmoF8fxzTiOfwVASilZCKGklArA0Ot75Y4uGTStvaKUwvb29mBQTzzPe7Xb7f6AiC4ahhEODnjsscf6aZp6m5ub/z41NRUWCoV/AVBptVool8swTRP3EsuyeHl5OQMw0hZs5BVKFEXwfX9wnf3a87xzAH6JW68VA++srq7Ctm1++OGH/Var9bM0TX9ORAiCAL1eD3fbPOwdbQ8jI3dirTW01mBmjuP4QpZlq0KIkIgOhNYwDGxtbeHixYudLMv+i5kDZr7vmuUoMjKBPd7Jsiy7prXe2XXcwZx+6623YBgGXnjhBSRJ8hEz944d+f0I3CucRKSY+Z4bNCEEmPnAguz2bccnlTvuhZIk2decAAz3/QAM0zSniMhVSnXutgCL4xj1eh0bGxunhRAlYLdxxXE8zPfj2FYf2AtFUYT333//gCIzQykFIiLbtj+by+Vmu91u03EcdfbsWSwtLe3TLxaLuHDhglutVl8A4ALA5ubmcBQEMLD3iQiIATDc2h4zM+I4PvDZEwEYhvHI+Pj411zXrfi+f+Buf/rpp7G6ukrVavXLUsovDv6fpuk+m7dF4EgVbgxSJgzDC0T0PWYuYYRZWSkVGIZRzuVyTWbed7jWGvPz83a/37cAnGNm53abe0gTM3eUUh8JIQ5NwmBmXLlyBY1G4wIRXRNCjDRtEVEmpezlcjlO03Tfb0mSgIjiGzdunBNC/A8R3W/yy6SUPSlldox7pt/Lb0V+A2tqxXNDKGbHAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDExLTAzLTIzVDEyOjIzOjI3KzAxOjAwQsWR+gAAACV0RVh0ZGF0ZTptb2RpZnkAMjAxMS0wMy0yM1QxMjoyMzoyNyswMTowMDOYKUYAAAAASUVORK5CYII=) no-repeat scroll center";
obj.style.backgroundRepeat = 'no-repeat';
obj.style.backgroundPosition = 'center';
+ obj.style.cursor = 'pointer';
obj.onclick = function() { DwbPlugin.onClick(obj, id, values); };
e.parentNode.appendChild(obj);
e.parentNode.removeChild(e);
+ return 0;
},
onClick:
function(obj, id, values) {
if (!document.getElementById('dwb_plugin_' + id)) {
obj.innerHTML = '<div id=dwb_plugin_' + id + '><embed ' + values + ' /></div>';
obj.style.border = '0px';
+ obj.style.cursor = 'auto';
window.scrollBy(0,1);
window.scrollBy(0,-1);
}