Created
August 6, 2016 18:40
-
-
Save cappert/9ba82fbecc1482b1b994b677b90b281d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
document.getElementById(autoriser le collage | |
SyntaxError: missing ) after argument list | |
var select = document.getElementById("product-select-option-0") | |
undefined | |
var select = document.getElementById("#product-select-option-0") | |
undefined | |
document.getElementById("#product-select-option-0") | |
null | |
document.activeElement | |
<body class="templateProduct"> | |
document.getElementById("product-title") | |
<h1 id="product-title"> | |
document.getElementById("product-select-option-0") | |
<select class="single-option-selector" data-option="option1" id="product-select-option-0"> | |
document.getElementById("product-select-option-0").each | |
undefined | |
document.getElementById("product-select-option-0").filter | |
undefined | |
select = document.getElementById("product-select-option-0") | |
<select class="single-option-selector" data-option="option1" id="product-select-option-0"> | |
for(var option of select){ | |
console.log(option) } | |
<option value="#162 Angular Momentum (10"x7")"> | |
<option value="#627 Tech Support Cheat Sheet (8.375"x8.875")"> | |
<option value="#688 Self-Description (4.3125"x12")"> | |
<option value="#556 Alternative Energy Revolution (12"x9.5")"> | |
<option value="#273 Electromagnetic Spectrum (11"x8.67")"> | |
<option value="#231 Cat Proximity (8"x8.15")"> | |
<option value="#505 A Bunch of Rocks (7.06"x14")"> | |
<option value="#442 xkcd Loves the Discovery Channel (7.39"x10")"> | |
<option value="#435 Purity (8"x4.265")"> | |
<option value="#327 Exploits of a Mom (9"x3.81")"> | |
<option value="#242 The Difference (6"x10")"> | |
<option value="#150 Grownups (5.3"x12")"> | |
<option value="#123 Centrifugal Force (7.25"x10")"> | |
<option value="#420 Jealousy (8"x8.53")"> | |
<option value="#386 Duty Calls (8"x8.59")"> | |
<option value="#377 Journal #2 (12"x6.17")"> | |
<option value="#303 Compiling (8"x7.2")"> | |
<option value="#285 Wikipedian Protester (8"x5")"> | |
<option value="#149 Sudo Make Me a Sandwich (8"x9.25")"> | |
undefined | |
for(var option of select){ | |
console.log(option["value"]) } | |
#162 Angular Momentum (10"x7") | |
#627 Tech Support Cheat Sheet (8.375"x8.875") | |
#688 Self-Description (4.3125"x12") | |
#556 Alternative Energy Revolution (12"x9.5") | |
#273 Electromagnetic Spectrum (11"x8.67") | |
#231 Cat Proximity (8"x8.15") | |
#505 A Bunch of Rocks (7.06"x14") | |
#442 xkcd Loves the Discovery Channel (7.39"x10") | |
#435 Purity (8"x4.265") | |
#327 Exploits of a Mom (9"x3.81") | |
#242 The Difference (6"x10") | |
#150 Grownups (5.3"x12") | |
#123 Centrifugal Force (7.25"x10") | |
#420 Jealousy (8"x8.53") | |
#386 Duty Calls (8"x8.59") | |
#377 Journal #2 (12"x6.17") | |
#303 Compiling (8"x7.2") | |
#285 Wikipedian Protester (8"x5") | |
#149 Sudo Make Me a Sandwich (8"x9.25") | |
undefined | |
for(var option of select){ | |
console.log(result]) } | |
SyntaxError: missing ) after argument list | |
for(var option of select){ | |
console.log(result]) } | |
SyntaxError: missing ) after argument list | |
for(var option of select) { | |
console.log(result]) } | |
SyntaxError: missing ) after argument list | |
for(var option of select) { | |
console.log(result]) | |
SyntaxError: missing ) after argument list | |
for(var option of select) { | |
var value = option.value | |
value.split(" ") | |
console.log(value) | |
} | |
#162 Angular Momentum (10"x7") | |
#627 Tech Support Cheat Sheet (8.375"x8.875") | |
#688 Self-Description (4.3125"x12") | |
#556 Alternative Energy Revolution (12"x9.5") | |
#273 Electromagnetic Spectrum (11"x8.67") | |
#231 Cat Proximity (8"x8.15") | |
#505 A Bunch of Rocks (7.06"x14") | |
#442 xkcd Loves the Discovery Channel (7.39"x10") | |
#435 Purity (8"x4.265") | |
#327 Exploits of a Mom (9"x3.81") | |
#242 The Difference (6"x10") | |
#150 Grownups (5.3"x12") | |
#123 Centrifugal Force (7.25"x10") | |
#420 Jealousy (8"x8.53") | |
#386 Duty Calls (8"x8.59") | |
#377 Journal #2 (12"x6.17") | |
#303 Compiling (8"x7.2") | |
#285 Wikipedian Protester (8"x5") | |
#149 Sudo Make Me a Sandwich (8"x9.25") | |
undefined | |
for(var option of select) { | |
var value = option.value | |
value = value.split(" ") | |
console.log(value) | |
} | |
Array [ "#162", "Angular", "Momentum", "(10"x7")" ] | |
Array [ "#627", "Tech", "Support", "Cheat", "Sheet", "(8.375"x8.875")" ] | |
Array [ "#688", "Self-Description", "", "(4.3125"x12")" ] | |
Array [ "#556", "Alternative", "Energy", "Revolution", "(12"x9.5")" ] | |
Array [ "#273", "Electromagnetic", "Spectrum", "(11"x8.67")" ] | |
Array [ "#231", "Cat", "Proximity", "(8"x8.15")" ] | |
Array [ "#505", "A", "Bunch", "of", "Rocks", "(7.06"x14")" ] | |
Array [ "#442", "xkcd", "Loves", "the", "Discovery", "Channel", "(7.39"x10")" ] | |
Array [ "#435", "Purity", "(8"x4.265")" ] | |
Array [ "#327", "Exploits", "of", "a", "Mom", "(9"x3.81")" ] | |
Array [ "#242", "The", "Difference", "(6"x10")" ] | |
Array [ "#150", "Grownups", "(5.3"x12")" ] | |
Array [ "#123", "Centrifugal", "Force", "(7.25"x10")" ] | |
Array [ "#420", "Jealousy", "(8"x8.53")" ] | |
Array [ "#386", "Duty", "Calls", "(8"x8.59")" ] | |
Array [ "#377", "Journal", "#2", "(12"x6.17")" ] | |
Array [ "#303", "Compiling", "(8"x7.2")" ] | |
Array [ "#285", "Wikipedian", "Protester", "(8"x5")" ] | |
Array [ "#149", "Sudo", "Make", "Me", "a", "Sandwich", "(8"x9.25")" ] | |
undefined | |
for(var option of select) { | |
var value = option.value | |
value = value.split(" ").slice(1) | |
console.log(value) | |
} | |
Array [ "Angular", "Momentum", "(10"x7")" ] | |
Array [ "Tech", "Support", "Cheat", "Sheet", "(8.375"x8.875")" ] | |
Array [ "Self-Description", "", "(4.3125"x12")" ] | |
Array [ "Alternative", "Energy", "Revolution", "(12"x9.5")" ] | |
Array [ "Electromagnetic", "Spectrum", "(11"x8.67")" ] | |
Array [ "Cat", "Proximity", "(8"x8.15")" ] | |
Array [ "A", "Bunch", "of", "Rocks", "(7.06"x14")" ] | |
Array [ "xkcd", "Loves", "the", "Discovery", "Channel", "(7.39"x10")" ] | |
Array [ "Purity", "(8"x4.265")" ] | |
Array [ "Exploits", "of", "a", "Mom", "(9"x3.81")" ] | |
Array [ "The", "Difference", "(6"x10")" ] | |
Array [ "Grownups", "(5.3"x12")" ] | |
Array [ "Centrifugal", "Force", "(7.25"x10")" ] | |
Array [ "Jealousy", "(8"x8.53")" ] | |
Array [ "Duty", "Calls", "(8"x8.59")" ] | |
Array [ "Journal", "#2", "(12"x6.17")" ] | |
Array [ "Compiling", "(8"x7.2")" ] | |
Array [ "Wikipedian", "Protester", "(8"x5")" ] | |
Array [ "Sudo", "Make", "Me", "a", "Sandwich", "(8"x9.25")" ] | |
undefined | |
for(var option of select) { | |
var value = option.value | |
value = value.split(" ").[0].slice(1) | |
console.log(value) | |
} | |
SyntaxError: missing name after . operator | |
for(var option of select) { | |
var value = option.value | |
value = value.split(" ")[0].slice(1) | |
console.log(value) | |
} | |
162 | |
627 | |
688 | |
556 | |
273 | |
231 | |
505 | |
442 | |
435 | |
327 | |
242 | |
150 | |
123 | |
420 | |
386 | |
377 | |
303 | |
285 | |
149 | |
undefined | |
for(var option of select) { | |
var value = option.value | |
value = value.split(" ")[0].slice(1) | |
console.log("http://xkcd.com/" + value) | |
} | |
"http://xkcd.com/162" | |
"http://xkcd.com/627" | |
"http://xkcd.com/688" | |
"http://xkcd.com/556" | |
"http://xkcd.com/273" | |
"http://xkcd.com/231" | |
"http://xkcd.com/505" | |
"http://xkcd.com/442" | |
"http://xkcd.com/435" | |
"http://xkcd.com/327" | |
"http://xkcd.com/242" | |
"http://xkcd.com/150" | |
"http://xkcd.com/123" | |
"http://xkcd.com/420" | |
"http://xkcd.com/386" | |
"http://xkcd.com/377" | |
"http://xkcd.com/303" | |
"http://xkcd.com/285" | |
"http://xkcd.com/149" | |
undefined |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment