Skip to content

Instantly share code, notes, and snippets.

@shunito
Created December 13, 2012 10:58
Show Gist options
  • Save shunito/4275713 to your computer and use it in GitHub Desktop.
Save shunito/4275713 to your computer and use it in GitHub Desktop.
EPUBのfootnotesからのリンクがうまく動かないテスト
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:epub="http://www.idpf.org/2007/ops" lang="ja" xml:lang="ja">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Footnotes</title>
</head>
<body>
<div>
<p><a epub:type="noteref" href="#fn1">Footnote 1</a></p>
<p><a epub:type="noteref" href="#fn2">Footnote 2</a></p>
<p><a epub:type="noteref" href="#fn3">Footnote 3</a></p>
<p><a epub:type="noteref" href="#fn4">Footnote 4</a></p>
<p><a epub:type="noteref" href="#fn5">Footnote 5</a></p>
</div>
<div id="fn1" epub:type="footnote">
<a href="http://example.com/">http://example.com/</a>
</div>
<div id="fn2" epub:type="footnote">
<a href="http://example.com/" target="_blank">http://example.com/</a>
</div>
<div id="fn3" epub:type="footnote">
<a href="javascript:void(window.open('http://example.com/', null));">http://example.com/</a>
</div>
<div id="fn4" epub:type="footnote">
<a href="http://example.com/" onclick="window.open('http://example.com/',null); return false;" target="_blank">http://example.com/</a>
</div>
<div id="fn5" epub:type="footnote">
<a href="javascript:top.location.href='http://example.com/';" target="_blank">http://example.com/</a>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment