forked from qw3n/4-elements-tower-defense
-
Notifications
You must be signed in to change notification settings - Fork 0
/
svg.js
3 lines (3 loc) · 1.94 KB
/
svg.js
1
2
3
var svg='<svg xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="100" height="100" id="svg5406" version="1.1"><style>.s0{fill-opacity:0.39215686;fill:#eee;stroke-width:2;stroke:#a0a132;}</style><defs id="defs5408"><linearGradient id="linearGradient5944"><stop offset="0" id="stop5946" style="stop-color:#79791a;stop-opacity:1"/><stop offset="1" id="stop5948" style="stop-color:#fdfd20;stop-opacity:1"/></linearGradient><radialGradient xlink:href="#linearGradient5944" id="radialGradient5950" cx="12.56" cy="17.57" fx="12.56" fy="17.57" r="27.52" gradientTransform="matrix(0.19863452,-1.1113951,1.0595332,0.18936704,30.659117,60.750655)" gradientUnits="userSpaceOnUse"/></defs><metadata id="metadata5411"/><g id="layer1" transform="translate(0,-952.36218)"><rect id="rect5952-3" width="1.79" height="8.75" x="449.38" y="921.37" transform="matrix(-0.86925287,0.49436773,0.49436773,0.86925287,0,0)" ry="0.54" class="s0"/><rect id="rect5952" width="1.79" height="8.75" x="536.31" y="871.94" transform="matrix(0.86925287,0.49436773,-0.49436773,0.86925287,0,0)" ry="0.54" class="s0"/><path id="path5924" d="m35.61 21.21a6.06 6.06 0 1 1-12.12 0l6.06 0z" transform="matrix(4.4374999,0,0,4.5833331,-81.238361,910.71168)" fill="#c3c33f"/><path id="path5414" d="m75.51 41.79a26.52 24.37 0 1 1-53.03 0 26.52 24.37 0 1 1 53.03 0z" transform="translate(1.0076027,960.57222)" style="fill:url(#radialGradient5950);stroke-width:2;stroke:#a0a132"/><path id="path5414-0" d="m75.51 41.79a26.52 24.37 0 1 1-53.03 0 26.52 24.37 0 1 1 53.03 0z" transform="translate(1.007107,960.57229)" style="fill-opacity:0.6;fill:#*;stroke-width:2;stroke:#a0a132"/></g></svg>'
var pre='cbg{background-image:url(data:image/svg+xml;base64,';
q('cjs').innerHTML='.a'+pre+window.btoa(svg.replace('*','eee'))+')}.e'+pre+window.btoa(svg.replace('*','520'))+')}.f'+pre+window.btoa(svg.replace('*','f11'))+')}.w'+pre+window.btoa(svg.replace('*','7af'))+')}';