diff --git a/data/lists.json b/data/lists.json
index 22bbf2c..7a07c4e 100644
--- a/data/lists.json
+++ b/data/lists.json
@@ -244,7 +244,8 @@
]
},
"albums":{
- "type":"albums",
+ "type":"gallery",
+ "subtype":"album",
"title":"My Favorite Albums",
"description":"Albums I listen to in the car, albums I listen to when I'm going to sleep, albums I listen to while I work, and more. Since, I was a kid, I've had an unhealthy relationship with collecting things (bordering on hoarding), so I won't allow myself to get into collecting vinyls, but think of this as my digital \"vinyl\" collection. I've noticed that an unusally large fraction of these albums were released in 1977 and/or have covers that depict spaceships.",
"list":[
@@ -436,7 +437,7 @@
"sections":[
{
"title":"Breakfast",
- "list":[{"Cereal":["Reese's Puffs","Honeycombs","Frosted Mini Wheats","Eggo Cereal","Froot Loops","Frosted Flakes"]}, "Crepes", "Pancakes","Bacon","Hash browns","Smokey links","French fries"]
+ "list":[{"Cereal":["Reese's Puffs","Honeycombs","Frosted Mini Wheats","Eggo Cereal","Froot Loops","Frosted Flakes"]}, "Crepes", "Pancakes","Bacon","Hash browns","Smokey links","French toast","French fries"]
},
{
"title":"Snacks",
@@ -459,6 +460,205 @@
"list":[{"Blueberry":"Good blueberries can be really good, but bad blueberries can be really sour and nasty, and the worst thing is that since they're so small, it's always a mixed bag when you buy them. I've noticed that blueberries, like apples, tend to follow a bigger is better rule."},{"Raspberry":"Like blueberries, raspberries are a mixed bag. On average, I'd say the taste of plain raspberries is C-tier, but raspberry jelly is really good, so here they are."},{"Apricot":"They have a good flavor, but like peaches and pears, apricots have a small window where they are squishy but not overripe."}]
}
]
+ },
+ {
+ "title":"Sandwiches",
+ "list":[{"Peanut butter and...":["Jelly","Banana","M&M","Chocolate chip","Nutella"]},"Ham and Cheese","Hamburger"]
+ }
+ ]
+ },
+ "mtg":{
+ "title":"My Favorite Magic: the Gathering Cards",
+ "type":"gallery",
+ "subtype":"mtg-card",
+ "description":"",
+ "sections":[
+ {
+ "title":"Best of the Best",
+ "list":[
+ {
+ "name":"Battle of Wits",
+ "multiverseid":"83133"
+ },
+ {
+ "name":"Enter the Infinite",
+ "multiverseid":"366411"
+ },
+ {
+ "name":"Intrepid Hero",
+ "multiverseid":"280320"
+ },
+ {
+ "name":"Ral Zarek",
+ "multiverseid":"470744"
+ },
+ {
+ "name":"Tamiyo, the Moon Sage",
+ "multiverseid":"240070"
+ },
+ {
+ "name":"Zuran Spellcaster",
+ "multiverseid":"184683"
+ },
+ {
+ "name":"Sublime Epiphany",
+ "multiverseid":"485397"
+ }
+ ]
+ },
+ {
+ "title":"Best Art/Aesthetics",
+ "list":[
+ {
+ "name":"Divination",
+ "multiverseid":"447187"
+ },
+ {
+ "name":"Serra Angel",
+ "multiverseid":"370602"
+ },
+ {
+ "name":"Captain of the Watch",
+ "multiverseid":"394354"
+ },
+ {
+ "name":"Sunblade Elf",
+ "multiverseid":"383406"
+ },
+ {
+ "name":"Angelic Destiny",
+ "multiverseid":"220230"
+ },
+ {
+ "name":"Island",
+ "multiverseid":"289315"
+ },
+ {
+ "name":"Island",
+ "multiverseid":"473219"
+ },
+ {
+ "name":"Aether Storm",
+ "multiverseid":"184722"
+ },
+ {
+ "name":"Leviathan",
+ "multiverseid":"26619"
+ },
+ {
+ "name":"Time of Ice",
+ "multiverseid":"442958"
+ },
+ {
+ "name":"Auramancer",
+ "multiverseid":"441995"
+ }
+ ]
+ },
+ {
+ "title":"Best Mechanics",
+ "list":[
+ {
+ "name":"Cheatyface",
+ "multiverseid":"479416"
+ },
+ {
+ "name":"Underworld Connections",
+ "multiverseid":"545758"
+ },
+ {
+ "name":"Isochron Scepter",
+ "multiverseid":"292752"
+ },
+ {
+ "name":"Triton Fortune Hunter",
+ "multiverseid":"373531"
+ },
+ {
+ "name":"Cramped Bunker",
+ "multiverseid":"439518"
+ },
+ {
+ "name":"Skywise Teachings",
+ "multiverseid":"438639"
+ },
+ {
+ "name":"Serpent Generator",
+ "multiverseid":"159826"
+ },
+ {
+ "name":"Judge's Familiar",
+ "multiverseid":"460143"
+ },
+ {
+ "name":"Elite Arcanist",
+ "multiverseid":"370747"
+ },
+ {
+ "name":"Crackling Perimeter",
+ "multiverseid":"366255"
+ },
+ {
+ "name":"Aetherflux Reservoir",
+ "multiverseid":"417765"
+ }
+ ]
+ },
+ {
+ "title":"Best Flavor",
+ "list":[
+ {
+ "name":"Ornithopter of Paradise",
+ "multiverseid":"522308"
+ },
+ {
+ "name":"Mirror Gallery",
+ "multiverseid":"74555"
+ },
+ {
+ "name":"Darksteel Plate",
+ "multiverseid":"213749"
+ },
+ {
+ "name":"Oviya Pashiri, Sage Lifecrafter",
+ "multiverseid":"417738"
+ }
+ ]
+ },
+ {
+ "title":"Best Fake Cards",
+ "list":[
+ {
+ "name":"Slidshocking Krow",
+ "image":"https://i.imgur.com/57fkA9S.jpg",
+ "link":"https://www.reddit.com/r/MTGLardFetcher/comments/6la7e4/roborosewater_slidshocking_krow/"
+ },
+ {
+ "name":"Eight Fucking Bears",
+ "image":"https://i.imgur.com/QT4H77w.jpg",
+ "link":"https://www.reddit.com/r/magicTCG/comments/3x2qwu/eight_fucking_bears/"
+ },
+ {
+ "name":"Soulbond Giant",
+ "image":"http://cdn.themis-media.com/media/global/images/library/deriv/940/940220.jpg",
+ "link":"https://www.escapistmagazine.com/the-most-interesting-magic-the-gathering-cards-made-by-artificial-intelligence/"
+ },
+ {
+ "name":"Black Lotus But Bri'ish",
+ "image":"https://i.redd.it/zv7jw7bur6871.png",
+ "link":"https://www.reddit.com/r/magicthecirclejerking/comments/oa5yc8/black_lotus_but_briish/"
+ },
+ {
+ "name":"Countercounterspell",
+ "image":"https://i.imgur.com/wjm2Haw.png",
+ "link":"https://www.reddit.com/r/MTGLardFetcher/comments/ghi157/countercounterspell/"
+ },
+ {
+ "name":"Stroke",
+ "image":"https://i.redd.it/onnf1xqgk7d51.png",
+ "link":"https://www.reddit.com/r/MTGLardFetcher/comments/hy8vk7/stroke/"
+ }
+ ]
}
]
}
diff --git a/scripts/lists.js b/scripts/lists.js
index 26c24e8..47319d4 100644
--- a/scripts/lists.js
+++ b/scripts/lists.js
@@ -19,6 +19,10 @@ function gen_list_html(list){
list.type = "default";
}
+ if(!list.hasOwnProperty("subtype")){
+ list.subtype = "default";
+ }
+
var list_type = list.type;
if(list.hasOwnProperty("sections")){
@@ -49,11 +53,15 @@ function gen_list_html(list){
//Create an ordered list if list has the property "ordered".
break;
- case "albums":
+
+ case "gallery":
document.getElementById("lists").style.textAlign="center";
- //Center the rows of album covers on the page.
- for(album of list.list){
- html += gen_item_html(album,type="album");
+ //Center the rows of exhibits on the page.
+ if(!list.hasOwnProperty("subtype")){
+ list.subtype="default";
+ }
+ for(exhibit of list.list){
+ html += gen_item_html(exhibit,type="exhibit",subtype=list.subtype);
}
break;
@@ -72,8 +80,8 @@ function gen_list_html(list){
//Section-level defines the heading level of the section. Top level is 1.
}
if(!list.hasOwnProperty("dropdown")){
- list.dropdown = false;
- //By default, sections are not in details/summary tags.
+ list.dropdown = true;
+ //By default, sections ARE in details/summary tags.
}
for(section of list.sections){
var section_html = "";
@@ -84,6 +92,10 @@ function gen_list_html(list){
section.type = list.type;
//This branch transfers the list type down from higher levels. By default, the bottom-level lists will inherit the type of the top-level object unless otherwise specified.
}
+ if(!section.hasOwnProperty("subtype")){
+ section.subtype = list.subtype;
+ //Sections should also inherit subtypes.
+ }
if(!section.hasOwnProperty("dropdown")){
section.dropdown = list.dropdown;
//Inherit dropdown-ness unless otherwise specified.
@@ -101,7 +113,8 @@ function gen_list_html(list){
section_html = `${title}${description}${gen_list_html(section)}`;
}
//Sectioned
- html += `