-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathembed.js
More file actions
32 lines (32 loc) · 1.09 KB
/
embed.js
File metadata and controls
32 lines (32 loc) · 1.09 KB
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
var DLBTN = DLBTN || (function(){
var _args = {}; // private
var _settings = {
hash: '',
maxWidth: '100%',
width: '100%'
};
return {
init : function(Args) {
_args = Args;
var i=0;
for(var prop in _settings) {
if(_settings.hasOwnProperty(prop)&&null != _args[i]) {
_settings[prop] = _args[i];
}
i++;
}
this.embed();
},
embed : function() {
var a='e',b='m',c='b',d='e',e='d',f='f',g='i',h='l',i='e',j='https',k='net',l='embed',m='button';
var iframe = document.createElement('iframe');
iframe.src = j+'://'+a+b+c+d+e+f+g+h+i+'.'+k+'/'+l+'/'+m+'/'+_settings.hash;
iframe.style.maxWidth = _settings.maxWidth;
iframe.style.height = '54px';
iframe.style.border = 0;
iframe.style.overflow = 'hidden';
iframe.style.width = _settings.width;
document.write(iframe.outerHTML);
}
};
}());