12 |
<script type="application/x-javascript" |
<script type="application/x-javascript" |
13 |
src="/www/2005/uri-resolver/SimpleURIResolver.js"></script> |
src="/www/2005/uri-resolver/SimpleURIResolver.js"></script> |
14 |
<script type="application/x-javascript"> |
<script type="application/x-javascript"> |
15 |
const NS_XHTML1 = 'http://www.w3.org/1999/xhtml'; |
var NS_XHTML1 = 'http://www.w3.org/1999/xhtml'; |
16 |
document.suikaURNResolver = new SimpleURIResolver (); |
document.suikaURNResolver = new SimpleURIResolver (); |
17 |
document.suikaURNResolver.addMappingTableURI |
document.suikaURNResolver.addMappingTableURI |
18 |
('urn:x-suika-fam-cx:', |
('urn:x-suika-fam-cx:', |
26 |
if (r1) { |
if (r1) { |
27 |
var con = document.getElementById ('AJAX-RESULT-PRIMARY'); |
var con = document.getElementById ('AJAX-RESULT-PRIMARY'); |
28 |
con.textContent = ''; |
con.textContent = ''; |
29 |
|
con.innerText = ''; |
30 |
var code = con.appendChild (document.createElementNS |
var code = con.appendChild (document.createElementNS |
31 |
(NS_XHTML1, 'code')); |
(NS_XHTML1, 'code')); |
32 |
code.className = 'URI'; |
code.className = 'URI'; |
35 |
var a = code.appendChild (document.createElementNS (NS_XHTML1, 'a')); |
var a = code.appendChild (document.createElementNS (NS_XHTML1, 'a')); |
36 |
a.href = r1; |
a.href = r1; |
37 |
a.textContent = r1; |
a.textContent = r1; |
38 |
|
a.innerText = r1; |
39 |
code.appendChild (document.createTextNode ('>')); |
code.appendChild (document.createTextNode ('>')); |
40 |
} else { |
} else { |
41 |
var con = document.getElementById ('AJAX-RESULT-PRIMARY'); |
var con = document.getElementById ('AJAX-RESULT-PRIMARY'); |
42 |
con.textContent = '(なし)'; |
con.textContent = '(なし)'; |
43 |
|
con.innerText = '(なし)'; |
44 |
} |
} |
45 |
if (r2) { |
if (r2) { |
46 |
var con = document.getElementById ('AJAX-RESULT-SECONDARY'); |
var con = document.getElementById ('AJAX-RESULT-SECONDARY'); |
47 |
con.textContent = ''; |
con.textContent = ''; |
48 |
|
con.innerText = ''; |
49 |
var code = con.appendChild (document.createElementNS |
var code = con.appendChild (document.createElementNS |
50 |
(NS_XHTML1, 'code')); |
(NS_XHTML1, 'code')); |
51 |
code.className = 'URI'; |
code.className = 'URI'; |
54 |
var a = code.appendChild (document.createElementNS (NS_XHTML1, 'a')); |
var a = code.appendChild (document.createElementNS (NS_XHTML1, 'a')); |
55 |
a.href = r2; |
a.href = r2; |
56 |
a.textContent = r2; |
a.textContent = r2; |
57 |
|
a.innerText = r2; |
58 |
code.appendChild (document.createTextNode ('>')); |
code.appendChild (document.createTextNode ('>')); |
59 |
} else { |
} else { |
60 |
var con = document.getElementById ('AJAX-RESULT-SECONDARY'); |
var con = document.getElementById ('AJAX-RESULT-SECONDARY'); |
61 |
con.textContent = '(なし)'; |
con.textContent = '(なし)'; |
62 |
|
con.innerText = '(なし)'; |
63 |
} |
} |
64 |
var au = document.getElementById ('AJAX-RESULT-AJAX-URI'); |
var au = document.getElementById ('AJAX-RESULT-AJAX-URI'); |
65 |
au.textContent = 'http://suika.fam.cx/uri-res/2005/ajax?' |
au.textContent = 'http://suika.fam.cx/uri-res/2005/ajax?' |
66 |
+ encodeURIComponent (origURI); |
+ encodeURIComponent (origURI); |
67 |
|
au.innerText = au.textContent; |
68 |
au.href = au.textContent; |
au.href = au.textContent; |
69 |
var uu = document.getElementById ('AJAX-RESULT-N2L-URI'); |
var uu = document.getElementById ('AJAX-RESULT-N2L-URI'); |
70 |
uu.textContent = 'http://suika.fam.cx/uri-res/N2L?' |
uu.textContent = 'http://suika.fam.cx/uri-res/N2L?' |
71 |
+ encodeURIComponent (origURI); |
+ encodeURIComponent (origURI); |
72 |
|
uu.innerText = uu.textContent; |
73 |
uu.href = uu.textContent; |
uu.href = uu.textContent; |
74 |
}; |
}; |
75 |
}, false); |
}, false); |