Skip to content

Commit

Permalink
Add frames.erb
Browse files Browse the repository at this point in the history
  • Loading branch information
alextwoods committed Feb 26, 2024
1 parent 9cf7ffb commit caa6fba
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions doc-src/templates/default/fulldoc/html/frames.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title><%= options.title %></title>
</head>
<script type="text/javascript">
var match = unescape(window.location.hash).match(/^#!(.+)/);
var name = match ? match[1] : '<%= url_for_main %>';
name = name.replace(/^(\w+):\/\//, '').replace(/^\/\//, '');
var url = new URL(name);
if (url.protocol !== 'javascript:') {
window.top.location = url;
}
</script>
<noscript>
<h1>Oops!</h1>
<h2>YARD requires JavaScript!</h2>
</noscript>
</html>

0 comments on commit caa6fba

Please sign in to comment.