Created
February 14, 2018 18:43
-
-
Save AramZS/070aa1d4899680c65bfb95ed1683db0e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html class="js no-touch svg no-oldie no-ie" xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" lang="en-US" prefix="og: http://ogp.me/ns#"> | |
<head> | |
<meta charset="UTF-8" /> | |
<script type="text/javascript"> | |
if (window.self === window.top) { | |
window.onload = function() { | |
if (!String.prototype.includes) { | |
String.prototype.includes = function(search, start) { | |
'use strict'; | |
if (typeof start !== 'number') { | |
start = 0; | |
} | |
if (start + search.length > this.length) { | |
return false; | |
} else { | |
return this.indexOf(search, start) !== -1; | |
} | |
}; | |
} | |
var curUserAgent = navigator.userAgent; | |
curUserAgent = curUserAgent.toLocaleLowerCase(); | |
var iosPattern = /os (\d+)_(\d+)(_(\d+))? like mac os x/g; | |
var ios9Version = getVersionNumber(9, 0, 0); | |
var iosDevice = isIOS(); | |
var socialMediaBot = isSocialMediaBot(); | |
if (iosDevice && curUserAgent.includes("fbav")) { | |
var openAppInFrame = function (location) { | |
var iframe = document.createElement("iframe"); | |
document.body.appendChild(iframe); | |
iframe.style.display = "none"; | |
iframe.contentDocument.write("\<script\>top.location.replace(\"" + location + "\");\<\/script\>"); | |
}; | |
openAppInFrame("applenews:///A9RtQawRBTEKHFXcL2heC3Q<");} | |
function getVersionNumber(majorVersion, minorVersion, pointVersion) { | |
return (majorVersion * (1000 * 1000)) + (minorVersion * 1000) + pointVersion; | |
} | |
function isIOS() { | |
var isIos = false; | |
if (curUserAgent.includes("ipad") || curUserAgent.includes("ipod") || curUserAgent.includes("iphone")) { | |
var match = iosPattern.exec(curUserAgent); | |
var majorVersion = match[1] != null ? parseInt(match[1]) : 0; | |
var minorVersion = match[2] != null ? parseInt(match[2]) : 0; | |
var pointVersion = match[3] != null ? parseInt(match[3].substring(1)) : 0; | |
var result = getVersionNumber(majorVersion, minorVersion, pointVersion); | |
isIos = (result >= ios9Version); | |
} | |
return isIos; | |
} | |
function isSocialMediaBot() { | |
return curUserAgent.includes("twitterbot") || curUserAgent.includes("facebookexternalhit") || curUserAgent.includes("facebot") || curUserAgent.includes("linkedinbot") || false; | |
} | |
function redirectToUrl(url) { | |
top.location.replace(url); | |
} | |
function redirectToUrlAfterTimeout(url, timeout) { | |
setTimeout(function() { redirectToUrl(url) }, timeout); | |
} | |
}; | |
} | |
</script> | |
<meta name="viewport" content="width=device-width, initial-scale=1" /> | |
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7, IE=9" /> | |
<meta name="apple-itunes-app" content="app-id=1066498020, app-argument=https://apple.news/A9RtQawRBTEKHFXcL2heC3Q<" /> | |
<meta property="og:type" content="article" /> | |
<meta property="og:image" content="/images/AppiconOpenGraph_v3.png" /> | |
<meta name="twitter:card" content="summary" /> | |
<meta name="twitter:image" content="/images/AppiconTwitterCard_v3.png" /> | |
<link rel="shortcut icon" href="/images/favicon.ico" /> | |
<link rel="apple-touch-icon" href="/images/apple-touch-icon.png" /> | |
<link rel="stylesheet" href="https://www.apple.com/wss/fonts?family=Myriad+Set+Pro&v=1" type="text/css" /> | |
<link rel="stylesheet" href="/css/index.css" type="text/css" /> | |
</head> | |
<body> | |
<div id="main"> | |
<div class="content"> | |
<div class="middle_column semi_narrow_column"> | |
<img src="/images/Appicon_v3.png" srcset="/images/Appicon_v3.png 1x, | |
/images/Appicon_v3@2x.png 2x, | |
/images/Appicon_v3@3x.png 3x"/> | |
<br /> | |
<h1>Sorry, this item isn't available <nobr>in Apple News.</nobr></h1> | |
<p><a class="more" href="https://www.apple.com/news">Learn more about Apple News </a> | |
</div> | |
</div> | |
<div class="footer"> | |
<div class="policies"> | |
<div class="first_logo"><img src="/images/applelogo.png" srcset="/images/applelogo.png 1x, | |
/images/applelogo@2x.png 2x, /images/applelogo@3x.png 3x" width="19" height="23"/></div> | |
<a href="https://www.apple.com/privacy/">Privacy Policy</a> | |
<span class="separator">|</span> | |
<a href="https://www.apple.com/legal/internet-services/terms/site.html">Terms and Conditions</a> | |
</div> | |
<div class="copyright">Copyright © 2018 Apple Inc. All Rights Reserved.</div> | |
<div class="second_logo"><img src="/images/applelogo.png" srcset="/images/applelogo.png 1x, | |
/images/applelogo@2x.png 2x, /images/applelogo@3x.png 3x"/></div> | |
</div> | |
</div> | |
</body> | |
</html> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment