Skip to content

Commit 7ab2d4d

Browse files
get true for is* functions'
1 parent 7955d0c commit 7ab2d4d

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

examples/buttons/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ <h2 id="twoLineWidgetForClass"><a href="#twoLineWidgetForClass">twoLineWidgetFor
333333
<h2 id="isAudio"><a href="#isAudio">isAudio</a></h2>
334334
<script id="script-isAudio">
335335
window.addEventListener('DOMContentLoaded', (event) => {
336-
UI.store.add(UI.rdf.namedNode('http://example.com/audio.mpeg'), UI.ns.rdf('type'), UI.rdf.namedNode('http://www.w3.org/ns/iana/media-types/audio'))
336+
UI.store.add(UI.rdf.namedNode('http://example.com/audio.mpeg'), UI.ns.rdf('type'), UI.rdf.namedNode('http://www.w3.org/ns/iana/media-types/audio/'))
337337
const result = UI.widgets.isAudio(UI.rdf.namedNode('http://example.com/audio.mpeg'))
338338
$('#div-isAudio').appendChild(document.createTextNode(result))
339339
})
@@ -344,7 +344,7 @@ <h2 id="isAudio"><a href="#isAudio">isAudio</a></h2>
344344
<h2 id="isImage"><a href="#isImage">isImage</a></h2>
345345
<script id="script-isImage">
346346
window.addEventListener('DOMContentLoaded', (event) => {
347-
UI.store.add(UI.rdf.namedNode('http://example.com/image.jpeg'), UI.ns.rdf('type'), UI.rdf.namedNode('http://www.w3.org/ns/iana/media-types/image'))
347+
UI.store.add(UI.rdf.namedNode('http://example.com/image.jpeg'), UI.ns.rdf('type'), UI.rdf.namedNode('http://www.w3.org/ns/iana/media-types/image/'))
348348
const result = UI.widgets.isImage(UI.rdf.namedNode('http://example.com/image.jpeg'))
349349
$('#div-isImage').appendChild(document.createTextNode(result))
350350
})
@@ -355,7 +355,7 @@ <h2 id="isImage"><a href="#isImage">isImage</a></h2>
355355
<h2 id="isVideo"><a href="#isVideo">isVideo</a></h2>
356356
<script id="script-isVideo">
357357
window.addEventListener('DOMContentLoaded', (event) => {
358-
UI.store.add(UI.rdf.namedNode('http://example.com/video.mov'), UI.ns.rdf('type'), UI.rdf.namedNode('http://www.w3.org/ns/iana/media-types/video'))
358+
UI.store.add(UI.rdf.namedNode('http://example.com/video.mov'), UI.ns.rdf('type'), UI.rdf.namedNode('http://www.w3.org/ns/iana/media-types/video/'))
359359
const result = UI.widgets.isImage(UI.rdf.namedNode('http://example.com/video.mov'))
360360
$('#div-isVideo').appendChild(document.createTextNode(result))
361361
})

0 commit comments

Comments
 (0)