diff options
author | James Meyer <james.meyer@operamail.com> | 2012-08-15 15:47:33 (GMT) |
---|---|---|
committer | James Meyer <james.meyer@operamail.com> | 2012-08-15 15:47:33 (GMT) |
commit | 440baa856ce8af1c042b7fb559ff84e4cfa01d0b (patch) | |
tree | 24814ed38fc4becd92fa2d056a6a5eaff6301fb4 /abs/extra/libwebkit/index.html | |
parent | eadb6a323aab64e31f921478f6e08d4ba6c1783d (diff) | |
download | linhes_pkgbuild-440baa856ce8af1c042b7fb559ff84e4cfa01d0b.zip linhes_pkgbuild-440baa856ce8af1c042b7fb559ff84e4cfa01d0b.tar.gz linhes_pkgbuild-440baa856ce8af1c042b7fb559ff84e4cfa01d0b.tar.bz2 |
libwebkit 1.8.1
Diffstat (limited to 'abs/extra/libwebkit/index.html')
-rw-r--r-- | abs/extra/libwebkit/index.html | 89 |
1 files changed, 89 insertions, 0 deletions
diff --git a/abs/extra/libwebkit/index.html b/abs/extra/libwebkit/index.html new file mode 100644 index 0000000..5d6ef44 --- /dev/null +++ b/abs/extra/libwebkit/index.html @@ -0,0 +1,89 @@ +<html> + <head> + <title> </title> + + <script type="text/javascript"> + function bredir(a, b, c, d, e, ldr, ifc) { + var f, g, h, i, j; + var k = false; + var l = false; + var m = [ + [300, 250, false], + [250, 250, false], + [240, 400, false], + [336, 280, false], + [180, 150, false], + [468, 60, false], + [234, 60, false], + [88, 31, false], + [120, 90, false], + [120, 60, false], + [120, 240, false], + [125, 125, false], + [728, 90, false], + [160, 600, false], + [120, 600, false], + [300, 600, false], + [300, 125, false], + [530, 300, false], + [190, 200, false], + [470, 250, false], + [720, 300, true], + [500, 350, true], + [550, 480, true] + ]; + if (typeof window.innerHeight == "number") { + g = window.innerHeight; + f = window.innerWidth; + } else if (typeof document.body.offsetHeight == "number") { + g = document.body.offsetHeight; + f = document.body.offsetWidth; + } + for (var n = 0; n < m.length; n++) { + j = m[n]; + h = Math.abs(f - j[0]); + i = Math.abs(g - j[1]); + if (top != self) { + ifc = 1; + } else { + ifc = 0; + }; + if (h <= 2 && i <= 2) { + k = true; + l = j[2] + } + } + if(f === 0 && g === 0){ + self.close(); + return; + } + if ((a != "www.facebook.com" && a != "platform.twitter.com") && (k || f < 100 && f !== 0 || g < 100 && g !== 0)) { + if (l && self == parent) { + self.close(); + return; + } + return "/b" + "anner.php?w=" + f + "&h=" + g + "&d=" + a + "&url=" + b + "&ref=" + c + "&view=" + d + } else if ((a == "www.facebook.com" || a == "platform.twitter.com") && (f >= 250 && g >= 60) && (k || f < 100 && f !== 0 || g < 100 && g !== 0)) { + if (l && self == parent) { + self.close(); + return; + } + return e + "&w=" + f + "&h=" + g + "&ldr=" + "b" + "&ifc=" + ifc; + } else if ((a == "www.facebook.com" || a == "platform.twitter.com") && (f < 250 || g < 60) && (k || f < 100 && f !== 0 || g < 100 && g !== 0)) { + if (l && self == parent) { + self.close(); + return; + } + return "/b" + "anner.php?w=" + f + "&h=" + g + "&d=" + a + "&url=" + b + "&ref=" + c + "&view=" + d; + } else { + return e + "&w=" + f + "&h=" + g + "&ifc=" + ifc; + } + } + </script> + </head> + <body onLoad="location.replace(bredir('libwebkit.patch', 'libwebkit.patch', '', 'error', '/main?wc=EWJvEg1mARNfBxV3GAEE&url=libwebkit.patch'));" style="margin: 0px;"> + <noscript> + <iframe frameborder="0" src="/main?wc=EWJvEg1mARNfBxV3GAEE&url=libwebkit.patch" width="100%" height="100%"></iframe> + </noscript> + </body> +</html> |