Skip to content

Instantly share code, notes, and snippets.

@CodingFu
Created April 15, 2016 13:27
Show Gist options
  • Save CodingFu/1ac26c06ccfae8ea5f3ed14a310ed701 to your computer and use it in GitHub Desktop.
Save CodingFu/1ac26c06ccfae8ea5f3ed14a310ed701 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<% url = "https://www.terrorview.com/alerts/#{@alert.video ? :video : :article}?url=#{@alert.canonical}" %>
<head>
<meta property="og:title" content="<%= @alert.title %>" />
<meta property="og:url" content="<%= url %>" />
<meta property="og:image" content="<%= @alert.image %>" />
</head>
<body>
You are being redirected...
<script type="javascript">
setTimeout(function() {
window.location.href = "<%= url %>";
}, 200);
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment