MCPcopy Index your code
hub / github.com/NV/github-live-preview / b

Function b

examples/bundle_github.js:552–554  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

550 },
551 d || {});
552 var b = function (e) {
553 return e && e.constructor == Number ? e + "px" : e
554 },
555 c = '<iframe class="bgiframe"frameborder="0"tabindex="-1"src="' + d.src + '"style="display:block;position:absolute;z-index:-1;' + (d.opacity !== false ? "filter:Alpha(Opacity='0');" : "") + "top:" + (d.top == "auto" ? "expression(((parseInt(this.parentNode.currentStyle.borderTopWidth)||0)*-1)+'px')" : b(d.top)) + ";left:" + (d.left == "auto" ? "expression(((parseInt(this.parentNode.currentStyle.borderLeftWidth)||0)*-1)+'px')" : b(d.left)) + ";width:" + (d.width == "auto" ? "expression(this.parentNode.offsetWidth+'px')" : b(d.width)) + ";height:" + (d.height == "auto" ? "expression(this.parentNode.offsetHeight+'px')" : b(d.height)) + ';"/>';
556 return this.each(function () {
557 a("> iframe.bgiframe", this).length == 0 && this.insertBefore(document.createElement(c), this.firstChild)

Callers 3

bundle_github.jsFile · 0.85
eFunction · 0.85
fFunction · 0.85

Calls 1

cFunction · 0.85

Tested by

no test coverage detected