Skip to content

Commit caa6fba

Browse files
committed
Add frames.erb
1 parent 9cf7ffb commit caa6fba

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta charset="utf-8">
5+
<title><%= options.title %></title>
6+
</head>
7+
<script type="text/javascript">
8+
var match = unescape(window.location.hash).match(/^#!(.+)/);
9+
var name = match ? match[1] : '<%= url_for_main %>';
10+
name = name.replace(/^(\w+):\/\//, '').replace(/^\/\//, '');
11+
var url = new URL(name);
12+
if (url.protocol !== 'javascript:') {
13+
window.top.location = url;
14+
}
15+
</script>
16+
<noscript>
17+
<h1>Oops!</h1>
18+
<h2>YARD requires JavaScript!</h2>
19+
</noscript>
20+
</html>

0 commit comments

Comments
 (0)