add no answer and checkbox and x
This commit is contained in:
parent
9d6353be79
commit
7ea5d4d46b
5
.vscode/settings.json
vendored
5
.vscode/settings.json
vendored
|
@ -9,8 +9,5 @@
|
|||
},
|
||||
"editor.formatOnSave": true,
|
||||
"editor.formatOnPaste": true,
|
||||
"editor.defaultFormatter": "esbenp.prettier-vscode",
|
||||
"[python]": {
|
||||
"editor.defaultFormatter": "ms-python.python"
|
||||
}
|
||||
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
||||
}
|
||||
|
|
|
@ -316,6 +316,7 @@ function setUpNewGame() {
|
|||
currName.innerHTML = namesList[nameIndex - 1]
|
||||
nameBank.appendChild(currName)
|
||||
}
|
||||
document.querySelectorAll('.temporary-name-holder').forEach((x) => x.remove())
|
||||
}
|
||||
|
||||
function removeSymbol(name) {
|
||||
|
@ -341,7 +342,6 @@ function checkAnswers() {
|
|||
// decide if their guess was correct
|
||||
// window.console.log(ans, guess, incorrect)
|
||||
correctAns = String.fromCodePoint(0x2705) + ' ' + ansWithSymbol
|
||||
incorrectAns = String.fromCodePoint(0x274c) + ' ' + guessWithSymbol
|
||||
if (incorrect) {
|
||||
window.console.log(
|
||||
document.getElementById(currCard.dataset.name),
|
||||
|
@ -349,14 +349,28 @@ function checkAnswers() {
|
|||
ans
|
||||
)
|
||||
document.getElementById(currCard.dataset.name).innerHTML =
|
||||
incorrectAns +
|
||||
'<br/><span style="opacity:0;">' +
|
||||
String.fromCodePoint(0x274c) +
|
||||
' <i style="opacity:.6"><strike>' +
|
||||
guessWithSymbol +
|
||||
'</strike></i><br/><span style="opacity:0;">' +
|
||||
String.fromCodePoint(0x274c) +
|
||||
'</span> ' +
|
||||
ansWithSymbol
|
||||
} else {
|
||||
document.getElementById(currCard.dataset.name).innerHTML = correctAns
|
||||
}
|
||||
} else {
|
||||
answerCorrectionHolder = document.createElement('div')
|
||||
answerCorrectionHolder.classList.add('name')
|
||||
answerCorrectionHolder.classList.add('temporary-name-holder')
|
||||
|
||||
answerCorrectionHolder.innerHTML =
|
||||
String.fromCodePoint(0x274c) +
|
||||
' <i style="opacity:.6"><No Answer> </i><br/><span style="opacity:0;">' +
|
||||
String.fromCodePoint(0x274c) +
|
||||
'</span> ' +
|
||||
artDict[currCard.dataset.url][0]
|
||||
currCard.appendChild(answerCorrectionHolder)
|
||||
}
|
||||
if (incorrect) {
|
||||
currCard.classList.add('incorrect')
|
||||
|
|
|
@ -83,6 +83,10 @@
|
|||
width: 100%;
|
||||
}
|
||||
|
||||
.answer-page .card:not([data-name^='name'])::after {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.answer-page .card {
|
||||
height: 453px;
|
||||
/*padding-top: 310px;*/
|
||||
|
|
|
@ -360,13 +360,13 @@ def write_image_uris(card_image_uris):
|
|||
|
||||
|
||||
if __name__ == "__main__":
|
||||
# for category in allCategories:
|
||||
# print(category)
|
||||
# fetch_and_write_all(category, generate_initial_query(category))
|
||||
# for category in specialCategories:
|
||||
# print(category)
|
||||
# fetch_and_write_all_special(
|
||||
# category, generate_initial_special_query(category))
|
||||
for category in allCategories:
|
||||
print(category)
|
||||
fetch_and_write_all(category, generate_initial_query(category))
|
||||
for category in specialCategories:
|
||||
print(category)
|
||||
fetch_and_write_all_special(
|
||||
category, generate_initial_special_query(category))
|
||||
# uncomment this once in a while, but it's expensive to run
|
||||
# fetch_and_write_initial_artist_query()
|
||||
fetch_and_write_initial_artist_query()
|
||||
fetch_and_write_all_artist()
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"f21b412c-aef5-4d15-88be-4f40615acde3": ["Aaron J. Riley", 13],
|
||||
"f21b412c-aef5-4d15-88be-4f40615acde3": ["Aaron J. Riley", 14],
|
||||
"fc021f3d-773a-4706-bbe7-f602324f511f": ["Aaron Miller", 93],
|
||||
"89023dad-e6c0-41e0-83fb-eb2bfbbdc3f2": ["Adam Paquette", 225],
|
||||
"445bd2fb-4a70-4599-87a4-83cf5979fc56": ["Adam Rex", 40],
|
||||
|
@ -12,7 +12,7 @@
|
|||
"3a6a9d37-e62c-44bd-90f2-f5126324e3f0": ["Alexander Mokhov", 19],
|
||||
"ce381d25-868c-4f13-b1e9-e7cd2f67e994": ["Alex Brock", 10],
|
||||
"1631a2ad-bf03-4ab9-b86c-60da982d58a1": ["Alex Horley-Orlandelli", 44],
|
||||
"58b2a57c-50ca-4047-b4e7-efb28cb22851": ["Alex Konstad", 32],
|
||||
"58b2a57c-50ca-4047-b4e7-efb28cb22851": ["Alex Konstad", 34],
|
||||
"4f0a0e38-d74c-4e0b-ad91-fecccb1afa5d": ["Alix Branwyn", 16],
|
||||
"8a56d854-b424-45ec-9262-e993a382a961": ["Allen Williams", 39],
|
||||
"3605d81f-5c97-4958-9dcc-d44a85e10305": ["Anastasia Ovchinnikova", 72],
|
||||
|
@ -24,7 +24,7 @@
|
|||
"cb577db7-7f47-4f78-8682-6eaef8a77bd1": ["Andrew Robinson", 16],
|
||||
"c04ff0b2-67a1-4238-82f7-6c67de734b56": ["Andrey Kuzinskiy", 37],
|
||||
"1874cb2c-f690-475f-a217-c14f11166758": ["Anna Podedworna", 11],
|
||||
"3516496c-c279-4b56-8239-720683d03ae0": ["Anna Steinbauer", 81],
|
||||
"3516496c-c279-4b56-8239-720683d03ae0": ["Anna Steinbauer", 82],
|
||||
"6ac24c4b-70e9-4286-8f4b-b40c92ab5847": ["Anthony Francisco", 33],
|
||||
"afd2d541-4140-41ae-a28f-862436458fcb": ["Anthony Palumbo", 84],
|
||||
"f009de11-3c8d-4663-b996-ca0c3e997fad": ["Anthony S. Waters", 105],
|
||||
|
@ -36,7 +36,7 @@
|
|||
"b089963c-610a-4d50-9206-d64b7caedef1": ["Bayard Wu", 23],
|
||||
"7bc582c5-4733-4022-8cef-844b800be9f7": ["Ben Maier", 17],
|
||||
"31cdca96-ecde-4245-bfb6-653929d57d9c": ["Ben Wootten", 12],
|
||||
"10f26f94-64fc-4174-856e-701bea4f1521": ["Billy Christian", 26],
|
||||
"10f26f94-64fc-4174-856e-701bea4f1521": ["Billy Christian", 28],
|
||||
"a2e47e0e-68e6-4b7a-b91e-0ded197b94d1": ["Bob Petillo", 11],
|
||||
"24d81dfa-3745-4386-93f8-7e67dddb3c8a": ["Bradley Williams", 25],
|
||||
"f17194b9-10e9-44ea-9b65-6812ab398624": ["Brad Rigney", 27],
|
||||
|
@ -47,7 +47,7 @@
|
|||
"770b4e16-de76-49ed-949f-84e6d2e06d25": ["Brian Sn\u00f5ddy", 127],
|
||||
"bb2a9339-bbe4-445f-9736-3c43379ee076": ["Brian Valeza", 32],
|
||||
"bd79c951-2552-45dd-aae7-a333c2b7c1ef": ["Brom", 18],
|
||||
"e6879299-a28b-48bc-8db1-9cafcf36de09": ["Bryan Sola", 39],
|
||||
"e6879299-a28b-48bc-8db1-9cafcf36de09": ["Bryan Sola", 40],
|
||||
"4c3be2d4-73e6-4005-b897-8ac65b9c8660": ["Bud Cook", 18],
|
||||
"d5053eb6-af72-47a0-b6e8-023cc3b9aefb": ["Caio Monteiro", 39],
|
||||
"d281eab4-463a-4ba8-9039-8943737960a0": ["Campbell White", 64],
|
||||
|
@ -76,7 +76,7 @@
|
|||
"c09ede88-a1b5-4a18-9895-dc8a965d28a5": ["Cristi Balanescu", 73],
|
||||
"9dfbdd58-65e6-40cf-951a-80e141061939": ["Cynthia Sheppard", 57],
|
||||
"90edbd2e-9462-4394-b0b4-02885b4e56b3": ["Cyril Van Der Haegen", 16],
|
||||
"e607a0d4-fc12-4c01-9e3f-501f5269b9cb": ["Daarken", 234],
|
||||
"e607a0d4-fc12-4c01-9e3f-501f5269b9cb": ["Daarken", 235],
|
||||
"38433e15-f0f5-4223-a985-2d13c4aa0922": ["D. Alexander Gregory", 58],
|
||||
"606a37b0-9d2d-477b-b679-100bc30b46b3": ["Dameon Willich", 25],
|
||||
"4eac683c-8c96-4f57-b8a4-ad7f7b7c44c7": ["Dana Knutson", 15],
|
||||
|
@ -90,7 +90,7 @@
|
|||
"904ed2e7-9850-4472-802f-2657c53dd4d8": ["Darek Zabrocki", 34],
|
||||
"7da1a585-c875-45e4-b322-5da9e8e1f651": ["Daren Bader", 22],
|
||||
"262c8e55-4efc-467b-a042-6f734b9d2e01": ["Darrell Riche", 58],
|
||||
"14c7f83c-d0fb-43f0-90f3-703f910f8bb9": ["Darren Tan", 11],
|
||||
"14c7f83c-d0fb-43f0-90f3-703f910f8bb9": ["Darren Tan", 14],
|
||||
"99b8310a-4fd6-4ded-8ab7-3b5185821cbe": ["Dave Allsop", 55],
|
||||
"9235458b-ce92-45bd-a430-a72ecd8e6176": ["Dave Dorman", 16],
|
||||
"8a5540a8-18c9-4fa9-802c-59d6866114d5": ["Dave Kendall", 121],
|
||||
|
@ -117,15 +117,15 @@
|
|||
"2a9f3780-fcc8-4ec5-b403-ee1d1370d3b4": ["Ekaterina Burmak", 36],
|
||||
"7a9aaa63-73ae-492c-948e-7531415fdf31": ["E. M. Gist", 24],
|
||||
"fcc15b63-b280-49da-9fee-f862824a2fc8": ["Erica Yang", 40],
|
||||
"37970e22-9cee-44c1-af44-5ee27cf26b76": ["Eric Deschamps", 174],
|
||||
"37970e22-9cee-44c1-af44-5ee27cf26b76": ["Eric Deschamps", 173],
|
||||
"c5562592-3387-495a-96fb-618a6a424a45": ["Eric Fortune", 11],
|
||||
"0fc26d3b-4c0e-41d1-8eb3-286ab55a2328": ["Eric Peterson", 75],
|
||||
"9f85c6c1-5cf4-4092-bb65-006eaca188d4": ["Eric Velhagen", 11],
|
||||
"eea284ce-9377-49c1-9d96-f34b7d487cdf": ["Evan Shipard", 21],
|
||||
"eea284ce-9377-49c1-9d96-f34b7d487cdf": ["Evan Shipard", 22],
|
||||
"127faa6a-6c02-49a0-beba-ae76d06dd153": ["Even Amundsen", 23],
|
||||
"6777be9f-5724-4fdb-b6a0-a83f63efa4ca": ["Evyn Fong", 24],
|
||||
"0d8d6726-4051-445a-8374-a919aad98f38": ["Eytan Zana", 50],
|
||||
"0cc534e0-be18-4cb1-8521-50fabd0dac6f": ["Fajareka Setiawan", 10],
|
||||
"0cc534e0-be18-4cb1-8521-50fabd0dac6f": ["Fajareka Setiawan", 11],
|
||||
"66082c3b-a623-4d34-be51-2475214b85d3": ["Filip Burburan", 105],
|
||||
"f28c54ff-bbe3-485d-81a4-b2cb49430a52": ["Florian de Gesincourt", 38],
|
||||
"64fc383d-de34-4151-87d6-27b82e58086e": ["Forrest Imel", 11],
|
||||
|
@ -133,7 +133,7 @@
|
|||
"3a243c17-3baa-4b53-9599-645311cd7d3d": ["Franz Vohwinkel", 58],
|
||||
"9c77c81a-3b3f-4e94-a834-327d01cd6b35": ["Fred Fields", 11],
|
||||
"44c3877f-8771-43dc-9e40-f4c765f59d2e": ["Gabor Szikszai", 39],
|
||||
"9456da4e-410b-4932-8bf3-a69a2da3cdc9": ["Games Workshop", 26],
|
||||
"9456da4e-410b-4932-8bf3-a69a2da3cdc9": ["Games Workshop", 57],
|
||||
"0d253eb0-2579-4201-bde4-f0a9f0963827": ["Gao Yan", 10],
|
||||
"fb608209-fd37-435a-b2fb-a158aeb3f927": ["Gary Leach", 21],
|
||||
"086111c7-93f0-4bab-b339-6fe1c00d693c": ["Gary Ruddell", 35],
|
||||
|
@ -144,7 +144,8 @@
|
|||
"b864fecb-d491-4f8d-b915-f6c93d0885fa": ["Greg Opalinski", 34],
|
||||
"93d65564-bf00-447b-8406-e2031f03b6b1": ["Greg Staples", 123],
|
||||
"b5f49d0d-8056-48e3-b614-090e656b4f9c": ["Grzegorz Rutkowski", 80],
|
||||
"4441fe52-9e41-40c1-9b74-8510426279ab": ["Heather Hudson", 32],
|
||||
"4441fe52-9e41-40c1-9b74-8510426279ab": ["Heather Hudson", 31],
|
||||
"b12df60b-57df-47d9-8f3e-cfc5fa3b8519": ["Hector Ortiz", 12],
|
||||
"ce415f9e-8a20-4d64-bcba-2b1b7e94012e": ["Heonhwa Choe", 37],
|
||||
"49b6270b-1b28-4e03-b503-522f97dc3a78": ["Hideaki Takamura", 27],
|
||||
"6dd06426-59fe-4b9c-aad5-6da8446a5c3d": ["Howard Lyon", 130],
|
||||
|
@ -152,13 +153,13 @@
|
|||
"d2200e9f-c40d-45d4-8d87-3f1412c61770": ["Ian Miller", 28],
|
||||
"9c3e9d17-509f-485c-9360-46d897ce716b": ["Igor Kieryluk", 191],
|
||||
"12070c2e-4de6-46bc-b379-8a580dfb34c5": ["Ilse Gort", 43],
|
||||
"1e4cb52d-476e-4c68-ac87-2e620aede6d4": ["Irina Nordsol", 35],
|
||||
"1e4cb52d-476e-4c68-ac87-2e620aede6d4": ["Irina Nordsol", 36],
|
||||
"aa807c8c-d07f-4f09-90d3-b2cbf5b86dbf": ["Iris Compiet", 11],
|
||||
"d3a47c28-84e9-4b53-a236-5066ae1bb62f": ["Ittoku", 10],
|
||||
"2c3d2473-ff5d-4309-8194-e0b2def2ab65": ["Izzy", 162],
|
||||
"331942ac-401c-4af3-9d70-85f67717496c": ["Jack Wang", 37],
|
||||
"92f6c2c1-fa57-4b52-99c4-0fd866c13dc9": ["Jaime Jones", 113],
|
||||
"be53e4e1-ab31-494a-b154-e00ee97eb463": ["Jake Murray", 13],
|
||||
"be53e4e1-ab31-494a-b154-e00ee97eb463": ["Jake Murray", 16],
|
||||
"36901417-ce61-4636-8b77-6db14a9cb68a": ["Jakub Kasper", 61],
|
||||
"dd6ac36b-bdb4-48d5-9fae-1b017437669d": ["Jama Jurabaev", 12],
|
||||
"1a7be0a2-d8ac-45c7-b0a0-eb0886f47b5f": ["James Paick", 128],
|
||||
|
@ -182,7 +183,7 @@
|
|||
"1431bdd4-c187-40ea-847a-e1dcd835598a": ["Jim Pavelec", 17],
|
||||
"b09e6cd1-0257-425a-9bbb-5cac3f803443": ["Jodie Muir", 10],
|
||||
"13b6c9ee-f7a8-46a4-934f-ea6b4a1b14b2": ["Joe Slucher", 53],
|
||||
"465e38b8-7eed-4d22-a6d2-d3603ee0c00b": ["Johan Grenier", 31],
|
||||
"465e38b8-7eed-4d22-a6d2-d3603ee0c00b": ["Johan Grenier", 32],
|
||||
"d92e2dd9-9ef6-43f6-81f8-df87f9066983": ["Johann Bodin", 111],
|
||||
"3593dd7e-c547-4a32-81cd-7da725f60118": ["Johannes Voss", 97],
|
||||
"798f3932-30e0-4420-aa3f-db4d613f89ca": ["John Avon", 94],
|
||||
|
@ -196,7 +197,7 @@
|
|||
"6befd6d5-7f8d-4b7c-87e3-5511391a3359": ["Joseph Meehan", 70],
|
||||
"8fa1fdf0-96d6-46f4-a7ff-b1c0257c3735": ["Josh Hass", 57],
|
||||
"553b2a73-780f-414b-b2d7-3b7888821082": ["Joshua Raphael", 29],
|
||||
"74246024-92b4-43d0-a5af-a3f9f2a35d5f": ["Josu Hernaiz", 79],
|
||||
"74246024-92b4-43d0-a5af-a3f9f2a35d5f": ["Josu Hernaiz", 78],
|
||||
"7f1868e3-325f-4df9-8f27-a381fed4f0fc": ["Julian Kok Joon Wen", 13],
|
||||
"bba720a4-46b3-493b-8653-8980e6a8c252": ["Julie Baroh", 13],
|
||||
"ce8605ad-6d5a-45a3-a7b6-84be4f5209cd": ["Julie Dillon", 10],
|
||||
|
@ -219,7 +220,7 @@
|
|||
"3677c64b-55e6-4a0d-a952-bdbb05531220": ["Lake Hurwitz", 57],
|
||||
"73932957-e76e-4ff0-8f0a-b3ad2d8dfae2": ["Larry MacDougall", 27],
|
||||
"21ed6499-c4d3-4965-ab02-6c7228275bec": ["Lars Grant-West", 124],
|
||||
"6f771d3f-310e-4aa4-841f-5ba4ba9f025a": ["Lie Setiawan", 69],
|
||||
"6f771d3f-310e-4aa4-841f-5ba4ba9f025a": ["Lie Setiawan", 70],
|
||||
"5a50ced2-b301-4195-8af4-f7e1bae07d28": ["Liiga Smilshkalne", 15],
|
||||
"95bc132d-37aa-4063-8ed8-04d489e826cd": ["Lindsey Look", 29],
|
||||
"0a0e9093-ce44-4a69-93a7-09b63e7c330d": ["Lius Lasahido", 91],
|
||||
|
@ -328,7 +329,7 @@
|
|||
"018799f5-76d7-4849-9375-f1b9030977e6": ["Stephan Martiniere", 20],
|
||||
"a267f9bb-072b-410a-a704-50f4d19020d8": ["Stephen Daniele", 25],
|
||||
"bb596c13-9c39-4b11-8a7b-c88944826e70": ["Stephen Tappin", 37],
|
||||
"a44ddda4-5331-4f83-aac9-3e00ed36bd7b": ["Steve Argyle", 56],
|
||||
"a44ddda4-5331-4f83-aac9-3e00ed36bd7b": ["Steve Argyle", 60],
|
||||
"39d8411c-2187-426c-8ad3-d4f688b22db1": ["Steve Ellis", 13],
|
||||
"e2b0133e-a28d-45d1-8843-26285b41d61d": ["Steve Luke", 21],
|
||||
"f07d73b9-52a0-4fe5-858b-61f7b42174a5": ["Steven Belledin", 148],
|
||||
|
@ -374,7 +375,7 @@
|
|||
"b98c9d94-8bdb-49af-871d-7bac92274535": ["Wesley Burt", 65],
|
||||
"5a553c8e-e3b9-40e0-bde5-1db621c53939": ["Willian Murai", 52],
|
||||
"e45fe8d3-75d6-42c9-a2df-e945ad81ea27": ["Winona Nelson", 117],
|
||||
"f2d36cdd-a4e9-43ba-b2ad-9d514f6706d4": ["Wisnu Tan", 42],
|
||||
"f2d36cdd-a4e9-43ba-b2ad-9d514f6706d4": ["Wisnu Tan", 43],
|
||||
"074daf3d-0849-4c4a-b5a5-c276384e81e5": ["Wylie Beckert", 12],
|
||||
"f8e7f8d6-6dde-4059-973c-30f1fd1bbe4e": ["Yeong-Hao Han", 154],
|
||||
"a24479f8-6d9e-40f9-bede-f29899922b97": ["Yigit Koroglu", 21],
|
||||
|
@ -383,6 +384,6 @@
|
|||
"63b2909b-7102-49c5-8f9d-6116a1913308": ["YW Tang", 27],
|
||||
"17bc7f55-958b-43f4-bb40-09746d05b3f9": ["Zack Stella", 95],
|
||||
"329a7971-c37e-47f7-9143-58dc929420a7": ["Zara Alfonso", 11],
|
||||
"810677e5-a502-4c03-b726-78cd808a75d4": ["Zezhou Chen", 63],
|
||||
"810677e5-a502-4c03-b726-78cd808a75d4": ["Zezhou Chen", 65],
|
||||
"1885e6cb-c827-4896-994e-3d0a027d602f": ["Zoltan Boros", 181]
|
||||
}
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user