Compare commits
2 commits
Author | SHA1 | Date | |
---|---|---|---|
e1e6499752 | |||
c7d2d481c8 |
1 changed files with 10 additions and 8 deletions
|
@ -136,8 +136,8 @@ namespace Tablegen
|
||||||
pugi::xml_node comment = table.append_child(pugi::node_comment);
|
pugi::xml_node comment = table.append_child(pugi::node_comment);
|
||||||
comment.set_value(" Autogenerated by Tablegen, please avoid editing manually. ");
|
comment.set_value(" Autogenerated by Tablegen, please avoid editing manually. ");
|
||||||
|
|
||||||
pugi::xml_node prefetch = table.append_child("div");
|
pugi::xml_node preload = table.append_child("div");
|
||||||
prefetch.append_attribute("hidden");
|
preload.append_attribute("hidden") = "hidden";
|
||||||
|
|
||||||
pugi::xml_node script = table.append_child("script");
|
pugi::xml_node script = table.append_child("script");
|
||||||
pugi::xml_node styles = table.append_child("style");
|
pugi::xml_node styles = table.append_child("style");
|
||||||
|
@ -165,13 +165,15 @@ namespace Tablegen
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
// HTML
|
// HTML
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
pugi::xml_node prefetchImage = prefetch.append_child("link");
|
pugi::xml_node preloadImage = preload.append_child("link");
|
||||||
prefetchImage.append_attribute("rel") = "prefetch";
|
preloadImage.append_attribute("rel") = "preload";
|
||||||
prefetchImage.append_attribute("href") = imagePath;
|
preloadImage.append_attribute("href") = imagePath;
|
||||||
|
preloadImage.append_attribute("as") = "image";
|
||||||
|
|
||||||
pugi::xml_node prefetchAnimation = prefetch.append_child("link");
|
pugi::xml_node preloadAnimation = preload.append_child("link");
|
||||||
prefetchAnimation.append_attribute("rel") = "prefetch";
|
preloadAnimation.append_attribute("rel") = "preload";
|
||||||
prefetchAnimation.append_attribute("href") = animationPath;
|
preloadAnimation.append_attribute("href") = animationPath;
|
||||||
|
preloadAnimation.append_attribute("as") = "image";
|
||||||
|
|
||||||
if (i % settings.CharactersPerRow == 0) {
|
if (i % settings.CharactersPerRow == 0) {
|
||||||
row = tableBody.append_child("tr");
|
row = tableBody.append_child("tr");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue