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

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

PrefixNamespace IRI
n112018-07-23T10:13:
n4http://ods-qa.openlinksw.com:8896/about/id/entity/https/discourse.mozilla.org/t/image-gallery-assessment/
n9https://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#
n102018-07-20T12:14:
rdfhttp://www.w3.org/1999/02/22-rdf-syntax-ns#
n2http://ods-qa.openlinksw.com:8896/proxy-iri/
n5http://ods-qa.openlinksw.com:8896/about/id/https/discourse.mozilla.org/t/image-gallery-assessment/
xsdhhttp://www.w3.org/2001/XMLSchema#
n8https://discourse.mozilla.org/t/image-gallery-assessment/24687#
Subject Item
n2:855357179126784453275582897bc44944241090
rdf:type
rdf:Statement
rdfs:label
Embedded HTML5 Microdata Statement 27
pwdr:describedby
n4:24687 n5:24687
rdf:object
AvidLearner: Here, my function sourceAlter only has the parameter e and therefore, I did not pass any parameters when I called the function, hence image[i].addEventListener('click', sourceAlter) without any parentheses and parameters. However, what if my function requires two parameters, e.g. sourceAlter(a, b) , how do I pass on the parameters to said function? I don’t quite understand how looping works in JavaScript. It somehow does not make sense to me how for (...) in my code above worked. I do know that it loops five times (as expressed in the conditional statement i < image.length ) and that whenever an image with the order i is clicked, we run a function. But, when we click picture 1, 2,3 and then 1 again, it somehow worked? There is not decrement in the for loop, so how did it happen? Is the loop run over again after each action (in this case, click (but doesn’t have to be necessarily a click))? So to answer the first question, this isn’t the simplest, but it is possible. This stack overflow answer is useful, and contains multiple ways of doing it: https://stackoverflow.com/questions/256754/how-to-pass-arguments-to-addeventlistener-listener-function For the second question, the loop only runs once. But one of the main things the loop does is to add an onclick handler to each image, using this code: newImage.onclick = function(e) { var imgSrc = e.target.getAttribute('src'); displayImage(imgSrc); } because that handler is added to each image, it is run every time an image is clicked.
rdf:predicate
schema:articleBody
rdf:subject
n2:00e308ed60033e7705dd39a06371dd0d71fa4a48
Subject Item
n2:00e308ed60033e7705dd39a06371dd0d71fa4a48
rdf:type
schema:DiscussionForumPosting
schema:datePublished
n10:25Z n11:09Z
schema:publisher
n2:a439a40f76abb0743be66578b73891a13f811734
pwdr:describedby
n4:24687 n5:24687
schema:mainEntityOfPage
n9:24687
schema:author
n2:2339c2bbfb9e73cc5e66c8fa933fd13c9d8c4edc n2:de2fd9f9d0620935f106dcf8188108d5b1a9d825
schema:position
#17 #16
schema:dateModified
2018-07-23T10:13:09Z
schema:articleBody
AvidLearner: Here, my function sourceAlter only has the parameter e and therefore, I did not pass any parameters when I called the function, hence image[i].addEventListener('click', sourceAlter) without any parentheses and parameters. However, what if my function requires two parameters, e.g. sourceAlter(a, b) , how do I pass on the parameters to said function? I don’t quite understand how looping works in JavaScript. It somehow does not make sense to me how for (...) in my code above worked. I do know that it loops five times (as expressed in the conditional statement i < image.length ) and that whenever an image with the order i is clicked, we run a function. But, when we click picture 1, 2,3 and then 1 again, it somehow worked? There is not decrement in the for loop, so how did it happen? Is the loop run over again after each action (in this case, click (but doesn’t have to be necessarily a click))? So to answer the first question, this isn’t the simplest, but it is possible. This stack overflow answer is useful, and contains multiple ways of doing it: https://stackoverflow.com/questions/256754/how-to-pass-arguments-to-addeventlistener-listener-function For the second question, the loop only runs once. But one of the main things the loop does is to add an onclick handler to each image, using this code: newImage.onclick = function(e) { var imgSrc = e.target.getAttribute('src'); displayImage(imgSrc); } because that handler is added to each image, it is run every time an image is clicked. @chrisdavidmills I have some questions, though, if you don’t mind me asking. Here, my function sourceAlter only has the parameter e and therefore, I did not pass any parameters when I called the function, hence image[i].addEventListener('click', sourceAlter) without any parentheses and parameters. However, what if my function requires two parameters, e.g. sourceAlter(a, b), how do I pass on the parameters to said function? I don’t quite understand how looping works in JavaScript. It somehow does not make sense to me how for (...) in my code above worked. I do know that it loops five times (as expressed in the conditional statement i < image.length) and that whenever an image with the order i is clicked, we run a function. But, when we click picture 1, 2,3 and then 1 again, it somehow worked? There is not decrement in the for loop, so how did it happen? Is the loop run over again after each action (in this case, click (but doesn’t have to be necessarily a click))? AvidLearner: Here, my function sourceAlter only has the parameter e and therefore, I did not pass any parameters when I called the function, hence image[i].addEventListener('click', sourceAlter) without any parentheses and parameters. However, what if my function requires two parameters, e.g. sourceAlter(a, b) , how do I pass on the parameters to said function? I don’t quite understand how looping works in JavaScript. It somehow does not make sense to me how for (...) in my code above worked. I do know that it loops five times (as expressed in the conditional statement i < image.length ) and that whenever an image with the order i is clicked, we run a function. But, when we click picture 1, 2,3 and then 1 again, it somehow worked? There is not decrement in the for loop, so how did it happen? Is the loop run over again after each action (in this case, click (but doesn’t have to be necessarily a click))? So to answer the first question, this isn’t the simplest, but it is possible. This stack overflow answer is useful, and contains multiple ways of doing it: https://stackoverflow.com/questions/256754/how-to-pass-arguments-to-addeventlistener-listener-function For the second question, the loop only runs once. But one of the main things the loop does is to add an onclick handler to each image, using this code: newImage.onclick = function(e) { var imgSrc = e.target.getAttribute('src'); displayImage(imgSrc); } because that handler is added to each image, it is run every time an image is clicked.
schema:headline
"Image gallery" assessment
n8:interactionStatistic
n2:8f522bccbcfce596fbee8b2897bd0465f1742e5a n2:49353a77632fd9e52aecc215b5837e5d39453b50
Subject Item
n2:04d6acdf90b05b5487ef3f55f5eda655c9c8d8bc
rdf:type
rdf:Statement
rdfs:label
Embedded HTML5 Microdata Statement 25
pwdr:describedby
n4:24687 n5:24687
rdf:object
@chrisdavidmills I have some questions, though, if you don’t mind me asking. Here, my function sourceAlter only has the parameter e and therefore, I did not pass any parameters when I called the function, hence image[i].addEventListener('click', sourceAlter) without any parentheses and parameters. However, what if my function requires two parameters, e.g. sourceAlter(a, b), how do I pass on the parameters to said function? I don’t quite understand how looping works in JavaScript. It somehow does not make sense to me how for (...) in my code above worked. I do know that it loops five times (as expressed in the conditional statement i < image.length) and that whenever an image with the order i is clicked, we run a function. But, when we click picture 1, 2,3 and then 1 again, it somehow worked? There is not decrement in the for loop, so how did it happen? Is the loop run over again after each action (in this case, click (but doesn’t have to be necessarily a click))?
rdf:predicate
schema:articleBody
rdf:subject
n2:00e308ed60033e7705dd39a06371dd0d71fa4a48
Subject Item
n2:ac185f750df1b1399ea297b414536fe0bf2382dd
rdf:type
rdf:Statement
rdfs:label
Embedded HTML5 Microdata Statement 26
pwdr:describedby
n4:24687 n5:24687
rdf:object
n2:2339c2bbfb9e73cc5e66c8fa933fd13c9d8c4edc
rdf:predicate
schema:author
rdf:subject
n2:00e308ed60033e7705dd39a06371dd0d71fa4a48
Subject Item
n2:4a61c5418d756e983d36cb00f335b6502c63221e
rdf:type
rdf:Statement
rdfs:label
Embedded HTML5 Microdata Statement 27
pwdr:describedby
n4:24687 n5:24687
rdf:object
n10:25Z
rdf:predicate
schema:datePublished
rdf:subject
n2:00e308ed60033e7705dd39a06371dd0d71fa4a48
Subject Item
n2:7a0aefe1273b75e7ed6ec1064bc44887d4b3e74c
rdf:type
rdf:Statement
rdfs:label
Embedded HTML5 Microdata Statement 28 Embedded HTML5 Microdata Statement 31
pwdr:describedby
n4:24687 n5:24687
rdf:object
"Image gallery" assessment
rdf:predicate
schema:headline
rdf:subject
n2:00e308ed60033e7705dd39a06371dd0d71fa4a48
Subject Item
n2:686c74567c67efc6e64ba93f916b1fcd8e224dbe
rdf:type
rdf:Statement
rdfs:label
Embedded HTML5 Microdata Statement 29
pwdr:describedby
n4:24687 n5:24687
rdf:object
#16
rdf:predicate
schema:position
rdf:subject
n2:00e308ed60033e7705dd39a06371dd0d71fa4a48
Subject Item
n2:ea8ceddadec714330f08861b99ef51e8d035c88a
rdf:type
rdf:Statement
rdfs:label
Embedded HTML5 Microdata Statement 30 Embedded HTML5 Microdata Statement 35
pwdr:describedby
n4:24687 n5:24687
rdf:object
schema:DiscussionForumPosting
rdf:predicate
rdf:type
rdf:subject
n2:00e308ed60033e7705dd39a06371dd0d71fa4a48
Subject Item
n2:6b3f1372be34905e7d5006383137afb9883cf86f
rdf:type
rdf:Statement
rdfs:label
Embedded HTML5 Microdata Statement 31 Embedded HTML5 Microdata Statement 36
pwdr:describedby
n4:24687 n5:24687
rdf:object
n2:49353a77632fd9e52aecc215b5837e5d39453b50
rdf:predicate
n8:interactionStatistic
rdf:subject
n2:00e308ed60033e7705dd39a06371dd0d71fa4a48
Subject Item
n2:d1bb179c0aed54fcc9e573c370b8344f8a78fe88
rdf:type
rdf:Statement
rdfs:label
Embedded HTML5 Microdata Statement 32 Embedded HTML5 Microdata Statement 37
pwdr:describedby
n4:24687 n5:24687
rdf:object
n2:8f522bccbcfce596fbee8b2897bd0465f1742e5a
rdf:predicate
n8:interactionStatistic
rdf:subject
n2:00e308ed60033e7705dd39a06371dd0d71fa4a48
Subject Item
n2:745a45d879a207c95926a5fb528ae5ede763b754
rdf:type
rdf:Statement
rdfs:label
Embedded HTML5 Microdata Statement 27
pwdr:describedby
n4:24687 n5:24687
rdf:object
AvidLearner: Here, my function sourceAlter only has the parameter e and therefore, I did not pass any parameters when I called the function, hence image[i].addEventListener('click', sourceAlter) without any parentheses and parameters. However, what if my function requires two parameters, e.g. sourceAlter(a, b) , how do I pass on the parameters to said function? I don’t quite understand how looping works in JavaScript. It somehow does not make sense to me how for (...) in my code above worked. I do know that it loops five times (as expressed in the conditional statement i < image.length ) and that whenever an image with the order i is clicked, we run a function. But, when we click picture 1, 2,3 and then 1 again, it somehow worked? There is not decrement in the for loop, so how did it happen? Is the loop run over again after each action (in this case, click (but doesn’t have to be necessarily a click))? So to answer the first question, this isn’t the simplest, but it is possible. This stack overflow answer is useful, and contains multiple ways of doing it: https://stackoverflow.com/questions/256754/how-to-pass-arguments-to-addeventlistener-listener-function For the second question, the loop only runs once. But one of the main things the loop does is to add an onclick handler to each image, using this code: newImage.onclick = function(e) { var imgSrc = e.target.getAttribute('src'); displayImage(imgSrc); } because that handler is added to each image, it is run every time an image is clicked.
rdf:predicate
schema:articleBody
rdf:subject
n2:00e308ed60033e7705dd39a06371dd0d71fa4a48
Subject Item
n2:34eca7ef95bba1b04e5c905f0a6dbe8d80e52a17
rdf:type
rdf:Statement
rdfs:label
Embedded HTML5 Microdata Statement 28
pwdr:describedby
n4:24687 n5:24687
rdf:object
n2:de2fd9f9d0620935f106dcf8188108d5b1a9d825
rdf:predicate
schema:author
rdf:subject
n2:00e308ed60033e7705dd39a06371dd0d71fa4a48
Subject Item
n2:e5f48ed7c03a08d668e61dd87211be347862e793
rdf:type
rdf:Statement
rdfs:label
Embedded HTML5 Microdata Statement 29
pwdr:describedby
n4:24687 n5:24687
rdf:object
2018-07-23T10:13:09Z
rdf:predicate
schema:dateModified
rdf:subject
n2:00e308ed60033e7705dd39a06371dd0d71fa4a48
Subject Item
n2:f2326e159161f4271e6d40faa02d0a88dc6068c6
rdf:type
rdf:Statement
rdfs:label
Embedded HTML5 Microdata Statement 30
pwdr:describedby
n4:24687 n5:24687
rdf:object
n11:09Z
rdf:predicate
schema:datePublished
rdf:subject
n2:00e308ed60033e7705dd39a06371dd0d71fa4a48
Subject Item
n2:a6a172df9bd0781b604939af835325757c2d4919
rdf:type
rdf:Statement
rdfs:label
Embedded HTML5 Microdata Statement 32
pwdr:describedby
n4:24687 n5:24687
rdf:object
n9:24687
rdf:predicate
schema:mainEntityOfPage
rdf:subject
n2:00e308ed60033e7705dd39a06371dd0d71fa4a48
Subject Item
n2:29b995389b0b69ebdca4f52ac293fa649a4d04a4
rdf:type
rdf:Statement
rdfs:label
Embedded HTML5 Microdata Statement 33
pwdr:describedby
n4:24687 n5:24687
rdf:object
#17
rdf:predicate
schema:position
rdf:subject
n2:00e308ed60033e7705dd39a06371dd0d71fa4a48
Subject Item
n2:7fe937d2ec8388839888be40dc1d1ca98ef1fd85
rdf:type
rdf:Statement
rdfs:label
Embedded HTML5 Microdata Statement 34
pwdr:describedby
n4:24687 n5:24687
rdf:object
n2:a439a40f76abb0743be66578b73891a13f811734
rdf:predicate
schema:publisher
rdf:subject
n2:00e308ed60033e7705dd39a06371dd0d71fa4a48