This HTML5 document contains 7 embedded RDF statements represented using HTML+Microdata notation.

The embedded RDF content will be recognized by any processor of HTML5 Microdata.

PrefixNamespace IRI
n6http://ods-qa.openlinksw.com:8896/about/id/entity/https/discourse.mozilla.org/t/image-gallery-assessment/
pwdrhttp://www.w3.org/2007/05/powder-s#
schemahttp://schema.org/
rdfshttp://www.w3.org/2000/01/rdf-schema#
rdfhttp://www.w3.org/1999/02/22-rdf-syntax-ns#
n2http://ods-qa.openlinksw.com:8896/proxy-iri/
n7http://ods-qa.openlinksw.com:8896/about/id/https/discourse.mozilla.org/t/image-gallery-assessment/
xsdhhttp://www.w3.org/2001/XMLSchema#
Subject Item
n2:ad376cbfa46520f3079b31e9d616bc7254bdce36
rdf:type
rdf:Statement
rdfs:label
Embedded HTML5 Microdata Statement 185
pwdr:describedby
n6:24687 n7:24687
rdf:object
Hi guys, this is my code and it’s currently working. What do you think? /* Looping through images */ for (i = 1; i <= 5; i++) { var newImage = document.createElement(‘img’); newImage.setAttribute(‘src’, ‘./images/pic’ + i + ‘.jpg’); thumbBar.appendChild(newImage); newImage.onclick = getTheImage; function getTheImage(e, src) { var src = e.target.getAttribute(‘src’); displayedImage.setAttribute(‘src’, src); }; }; /* Wiring up the Darken/Lighten button */ btn.onclick = changeOverlay; function changeOverlay () { var cl = btn.getAttribute(‘class’); if (cl === ‘dark’) { btn.setAttribute(‘class’, ‘light’); btn.textContent = ‘Lighten’; overlay.style.backgroundColor = ‘rgba(0,0,0,0.5)’; } else { btn.setAttribute(‘class’, ‘dark’); btn.textContent = ‘Darken’; overlay.style.backgroundColor = ‘rgba(0,0,0,0)’; } };
rdf:predicate
schema:articleBody
rdf:subject
n2:abaaf0899371f1808e3670897798d71c67161ae4