\n", HMML.metadata.project, HMML.metadata.title);
CopyStringToBuffer(&Player,
"
\n"
"
\n"
-"
\n", HMML.metadata.id);
+"
\n", HMML.metadata.id, HMML.metadata.project);
for(int AnnotationIndex = 0; AnnotationIndex < HMML.annotation_count; ++AnnotationIndex)
{
@@ -683,8 +672,9 @@ ReferencesArray[i].Identifier[j].Identifier,
ReferencesArray[i].Identifier[j].Timecode);
}
- CopyStringToBuffer(&ReferenceMenu,
-"\n
\n"
+ CopyStringToBuffer(&ReferenceMenu, "\n"
+"
\n"
+
" \n");
}
@@ -713,9 +703,10 @@ ReferencesArray[i].Identifier[j].Timecode);
" \n"
" \n"
"
\n"
+"
\n"
"
\n"
" \n"
-" \n");
+" \n", HMML.metadata.project);
//NOTE(matt): Here is where we do all our CopyBuffer() calls
CopyBuffer(&Master, &Title);
diff --git a/hmml_to_html/obbg.css b/hmml_to_html/obbg.css
new file mode 100644
index 0000000..762425a
--- /dev/null
+++ b/hmml_to_html/obbg.css
@@ -0,0 +1,172 @@
+/*
+ * Colours:
+ * Main Purple: #372F46 or rgba(55, 47, 70, 1);
+ * Highlight Green: #3A4A3F or rbga(58, 74, 63, 1);
+ */
+.title.obbg {
+ background-color: #FFFFFF;
+ color: #000000;
+ border-bottom: 1px solid #372F46;
+}
+
+.title.obbg .refs_container {
+ transition: box-shadow 800ms cubic-bezier(0.175, 0.885, 0.32, 1.275);
+ box-shadow: inset 0 0 0 #372F46;
+}
+
+.title.obbg .refs_container:hover {
+ background-color: #FFF8E7;
+}
+
+.title.obbg > .refs_container.current {
+ box-shadow: inset 0px 0px 30px #372F46;
+}
+
+.title.obbg .refs_container .refs {
+ background-color: #FFFFFF;
+ border: 2px solid #372F46;
+ border-top: none;
+}
+
+.title.obbg .refs_container > .refs .ref {
+ border-bottom: 1px solid #372F46;
+ color: #000000;
+}
+
+.title.obbg .refs_container > .refs .ref.current {
+ background-color: #372F46;
+ color: #FFFFFF;
+}
+
+.title.obbg .refs_container > .refs .ref:hover {
+ background-color: #FFF8E7;
+}
+
+.title.obbg .refs_container > .refs .ref.current:hover {
+ background-color: rgba(55, 46, 65, 0.7);
+}
+
+.title.obbg .refs_container > .refs .ref .source {
+ color: #888;
+}
+
+.title.obbg .refs_container > .refs .ref.current .source {
+ color: #FFF8E7;
+}
+
+/* Regular */
+.markers_container.obbg {
+ background-color: #FFFFFF;
+}
+
+.markers_container.obbg > .marker {
+ border-bottom: 1px solid #2A3172;
+}
+
+.markers_container.obbg > .marker:hover > .content {
+ background-color: #FFF8E7;
+}
+
+.markers_container.obbg > .marker:hover > .faded .content {
+ background-color: rgba(42, 49, 114, 0.7);
+ color: #FFFFFF;
+}
+
+.markers_container.obbg > .marker > .content {
+ background-color: #FFFFFF;
+ color: #000000;
+}
+
+.markers_container.obbg > .marker.current > .content {
+ color: #2A3172;
+}
+
+.markers_container.obbg > .marker > .progress .content {
+ background-color: #2A3172;
+ color: #FFFFFF;
+}
+
+/* Blackboard */
+.markers_container.obbg > .marker:hover.blackboard > .content {
+ background-color: #FFF8E7;
+ background-size: 12px 12px;
+ background-image: linear-gradient(to right , rgba(51, 153, 255, .16) 1px, transparent 1px),
+ linear-gradient(to bottom, rgba(51, 153, 255, .16) 1px, transparent 1px);
+ background-position: center;
+}
+
+.markers_container.obbg > .marker:hover.blackboard > .faded .content {
+ background-color: rgba(42, 49, 114, 0.7);
+ background-size: 12px 12px;
+ background-image: linear-gradient(to right , rgba(0, 0, 0, .16) 1px, transparent 1px),
+ linear-gradient(to bottom, rgba(0, 0, 0, .16) 1px, transparent 1px);
+ background-position: center;
+ color: #FFFFFF;
+}
+
+.markers_container.obbg > .marker.blackboard > .content {
+ background-color: #FFFFFF;
+ background-size: 12px 12px;
+ background-image: linear-gradient(to right , rgba(51, 153, 255, .16) 1px, transparent 1px),
+ linear-gradient(to bottom, rgba(51, 153, 255, .16) 1px, transparent 1px);
+ background-position: center;
+ color: #000000;
+}
+
+.markers_container.obbg > .marker.blackboard.current > .content {
+ color: #2A3172;
+}
+
+.markers_container.obbg > .marker.blackboard > .progress .content {
+ background-color: #2A3172;
+ background-size: 12px 12px;
+ background-image: linear-gradient(to right , rgba(255, 255, 255, .16) 1px, transparent 1px),
+ linear-gradient(to bottom, rgba(255, 255, 255, .16) 1px, transparent 1px);
+ background-position: center;
+ color: #FFFFFF;
+}
+
+/* TODO(matt):
+ *
+ * .markers_container.obbg > marker.run
+ */
+
+/* Run */
+.markers_container.obbg > .marker.run > .content {
+ background: rgb(114,171,206); /* Old browsers */
+ background: -moz-linear-gradient(top, rgba(114,171,206,.5) 0%, rgba(82,178,82,.5) 18%, rgba(82,178,82,.5) 22%, rgba(198,194,110,.5) 38%, rgba(198,194,110,.5) 100%); /* FF3.6-15 */
+ background: -webkit-linear-gradient(top, rgba(114,171,206,.5) 0%,rgba(82,178,82,.5) 18%,rgba(82,178,82,.5) 22%,rgba(198,194,110,.5) 38%,rgba(198,194,110,.5) 100%); /* Chrome10-25,Safari5.1-6 */
+ background: linear-gradient(to bottom, rgba(114,171,206,.5) 0%,rgba(82,178,82,.5) 18%,rgba(82,178,82,.5) 22%,rgba(198,194,110,.5) 38%,rgba(198,194,110,.5) 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
+ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#72abce', endColorstr='#c6c26e',GradientType=0 ); /* IE6-9 */
+ color: #000000;
+}
+
+.markers_container.obbg > .marker:hover.run > .content {
+ background: rgb(114,171,206); /* Old browsers */
+ background: -moz-linear-gradient(top, rgba(114,171,206,.5) 0%, rgba(82,178,82,.5) 18%, rgba(82,178,82,.5) 22%, rgba(198,194,110,.5) 38%, rgba(198,194,110,.5) 100%); /* FF3.6-15 */
+ background: -webkit-linear-gradient(top, rgba(114,171,206,.5) 0%,rgba(82,178,82,.5) 18%,rgba(82,178,82,.5) 22%,rgba(198,194,110,.5) 38%,rgba(198,194,110,.5) 100%); /* Chrome10-25,Safari5.1-6 */
+ background: linear-gradient(to bottom, rgba(114,171,206,.6) 0%,rgba(82,178,82,.6) 18%,rgba(82,178,82,.6) 22%,rgba(198,194,110,.6) 38%,rgba(198,194,110,.6) 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
+ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#72abce', endColorstr='#c6c26e',GradientType=0 ); /* IE6-9 */
+}
+
+.markers_container.obbg > .marker:hover.run > .faded .content {
+ background-color: rgba(42, 49, 114, 0.7);
+ background-size: 12px 12px;
+ background-image: linear-gradient(to right , rgba(0, 0, 0, .16) 1px, transparent 1px),
+ linear-gradient(to bottom, rgba(0, 0, 0, .16) 1px, transparent 1px);
+ background-position: center;
+ color: #FFFFFF;
+}
+
+.markers_container.obbg > .marker.run.current > .content {
+ color: #2A3172;
+}
+
+.markers_container.obbg > .marker.run > .progress .content {
+ background-color: #2A3172;
+ background-size: 12px 12px;
+ background-image: linear-gradient(to right , rgba(255, 255, 255, .16) 1px, transparent 1px),
+ linear-gradient(to bottom, rgba(255, 255, 255, .16) 1px, transparent 1px);
+ background-position: center;
+ color: #FFFFFF;
+}
diff --git a/hmml_to_html/riscy.css b/hmml_to_html/riscy.css
new file mode 100644
index 0000000..eec9924
--- /dev/null
+++ b/hmml_to_html/riscy.css
@@ -0,0 +1,127 @@
+.title.riscy {
+ background-color: #FFFFFF;
+ color: #000000;
+ border-bottom: 1px solid rgba(246, 178, 26, 0.8);
+}
+
+.title.riscy .refs_container {
+ transition: box-shadow 800ms cubic-bezier(0.175, 0.885, 0.32, 1.275);
+ box-shadow: inset 0 0 0 #2A3172;
+}
+
+.title.riscy .refs_container:hover {
+ background-color: #FFF8E7;
+}
+
+.title.riscy > .refs_container.current {
+ box-shadow: inset 0px 0px 30px #2A3172;
+}
+
+.title.riscy .refs_container .refs {
+ background-color: #FFFFFF;
+ border: 2px solid rgba(246, 178, 26, 0.8);
+ border-top: none;
+}
+
+.title.riscy .refs_container > .refs .ref {
+ border-bottom: 1px solid rgba(246, 178, 26, 0.8);
+ color: #000000;
+}
+
+.title.riscy .refs_container > .refs .ref.current {
+ background-color: #2A3172;
+ color: #FFFFFF;
+}
+
+.title.riscy .refs_container > .refs .ref:hover {
+ background-color: #FFF8E7;
+}
+
+.title.riscy .refs_container > .refs .ref.current:hover {
+ background-color: rgba(42, 49, 114, 0.7);
+}
+
+.title.riscy .refs_container > .refs .ref .source {
+ color: #888;
+}
+
+.title.riscy .refs_container > .refs .ref.current .source {
+ color: #FFF8E7;
+}
+
+/* Regular */
+.markers_container.riscy {
+ background-color: #FFFFFF;
+}
+
+.markers_container.riscy > .marker {
+ border-bottom: 1px solid rgba(246, 178, 26, 0.8);
+}
+
+.markers_container.riscy > .marker:hover > .content {
+ background-color: #FFF8E7;
+}
+
+.markers_container.riscy > .marker:hover > .faded .content {
+ background-color: rgba(42, 49, 114, 0.7);
+ color: #FFFFFF;
+}
+
+.markers_container.riscy > .marker > .content {
+ background-color: #FFFFFF;
+ color: #000000;
+}
+
+.markers_container.riscy > .marker.current > .content {
+ color: #2A3172;
+}
+
+.markers_container.riscy > .marker > .progress .content {
+ background-color: #2A3172;
+ color: #FFFFFF;
+}
+
+/* Blackboard */
+.markers_container.riscy > .marker:hover.blackboard > .content {
+ background-color: #FFF8E7;
+ background-size: 12px 12px;
+ background-image: linear-gradient(to right , rgba(51, 153, 255, .16) 1px, transparent 1px),
+ linear-gradient(to bottom, rgba(51, 153, 255, .16) 1px, transparent 1px);
+ background-position: center;
+}
+
+.markers_container.riscy > .marker:hover.blackboard > .faded .content {
+ background-color: rgba(42, 49, 114, 0.7);
+ background-size: 12px 12px;
+ background-image: linear-gradient(to right , rgba(0, 0, 0, .16) 1px, transparent 1px),
+ linear-gradient(to bottom, rgba(0, 0, 0, .16) 1px, transparent 1px);
+ background-position: center;
+ color: #FFFFFF;
+}
+
+.markers_container.riscy > .marker.blackboard > .content {
+ background-color: #FFFFFF;
+ background-size: 12px 12px;
+ background-image: linear-gradient(to right , rgba(51, 153, 255, .16) 1px, transparent 1px),
+ linear-gradient(to bottom, rgba(51, 153, 255, .16) 1px, transparent 1px);
+ background-position: center;
+ color: #000000;
+}
+
+.markers_container.riscy > .marker.blackboard.current > .content {
+ color: #2A3172;
+}
+
+.markers_container.riscy > .marker.blackboard > .progress .content {
+ background-color: #2A3172;
+ background-size: 12px 12px;
+ background-image: linear-gradient(to right , rgba(255, 255, 255, .16) 1px, transparent 1px),
+ linear-gradient(to bottom, rgba(255, 255, 255, .16) 1px, transparent 1px);
+ background-position: center;
+ color: #FFFFFF;
+}
+
+/* TODO(matt):
+ *
+ * .markers_container.riscy > marker.run
+ */
diff --git a/hmml_to_html/style.css b/hmml_to_html/style.css
index 0d35e38..e096093 100644
--- a/hmml_to_html/style.css
+++ b/hmml_to_html/style.css
@@ -1,105 +1,100 @@
-/* USER-DEFINED */
+/* Structure */
-.marker .content {
- width: 320px;
- padding: 5px;
- font-size: 14px;
+.title {
+ display: flex;
+ flex-direction: row;
}
-.timecode {
- font-size: 9px;
- font-style: normal;
- padding-right: 8px;
+.title > * {
+ padding: 10px;
+}
+
+.title .episode_name {
+ flex: 1 1;
+}
+
+.title .refs_container {
position: relative;
- top: -2px;
}
-.marker {
- border-bottom: 1px solid rgba(255, 255, 255, 0.05);
+.title .refs_container .mouse_catcher {
+ position: absolute;
+ height: 100%;
+ width: 100%;
+ top: 0;
+ right: 0;
}
-.marker:hover > .content {
- background-color: #222;
+.title .refs_container .refs {
+ position: absolute;
+ top: 100%;
+ right: 0;
+ width: 350px;
+ z-index: 1;
+ display: none;
}
-.marker:hover .faded .content {
- background-color: rgba(139, 61, 35, 0.7);
- color: black;
+.title .refs_container:hover .refs {
+ display: block;
}
-.marker > .content {
- background-color: #161616;
- color: #8A877D;
+.title .refs_container > .refs .ref {
+ padding: 10px;
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ text-decoration: none;
}
-.marker.current > .content {
- color: #B57714;
+.title .refs_container > .refs .ref:last-child {
+ border: none;
}
-.marker .progress .content {
- background-color: #8B3D23;
- color: black;
+.title .refs_container > .refs .ref .timecode {
+ display: inline-block;
+ font-size: 12px;
+ padding: 0;
}
-/* Blackboard */
-.marker:hover.blackboard > .content {
- background-color: #FFF8E7;
- background-size: 12px 12px;
- background-image: linear-gradient(to right , rgba(51, 153, 255, .16) 1px, transparent 1px),
- linear-gradient(to bottom, rgba(51, 153, 255, .16) 1px, transparent 1px);
+.title .refs_container > .refs .ref .ref_indices {
+ text-align: center;
}
-.marker:hover.blackboard .faded .content {
- background-color: rgba(42, 49, 114, 0.7);
- background-size: 12px 12px;
- background-image: linear-gradient(to right , rgba(0, 0, 0, .16) 1px, transparent 1px),
- linear-gradient(to bottom, rgba(0, 0, 0, .16) 1px, transparent 1px)
- color: #FFFFFF;
+.title .refs_container > .refs .ref .ref_indices .timecode {
+ display: inline-block;
+ font-size: 12px;
}
-.marker.blackboard > .content {
- background-color: #FFFFFF;
- background-size: 12px 12px;
- background-image: linear-gradient(to right , rgba(51, 153, 255, .16) 1px, transparent 1px),
- linear-gradient(to bottom, rgba(51, 153, 255, .16) 1px, transparent 1px);
- color: black;
+.title .refs_container > .refs .ref .ref_indices .timecode:first-child::before {
+ content: "";
}
-.marker.blackboard.current > .content {
- color: #2A3172;
+.title .refs_container > .refs .ref .ref_indices .timecode::before {
+ content: "•";
+ margin: 0 4px;
}
-.marker.blackboard .progress .content {
- background-color: #2A3172;
- background-size: 12px 12px;
- background-image: linear-gradient(to right , rgba(255, 255, 255, .16) 1px, transparent 1px),
- linear-gradient(to bottom, rgba(255, 255, 255, .16) 1px, transparent 1px);
- color: #FFFFFF;
+.title .refs_container > .refs .ref .timecode:hover .time {
+ text-decoration: underline;
}
-.marker.authored .content .author {
- font-style: normal;
+.title .refs_container > .refs .ref .ref_content {
+ width: 100%;
}
-.marker.authored {
+.title .refs_container > .refs .ref .source {
+ font-size: 10px;
+ line-height: 8px;
+}
+
+.title .refs_container > .refs .ref .ref_title {
font-style: oblique;
}
-.marker .content .categories {
- display: inline-flex;
- margin: 4px;
+.title .refs_container > .refs .ref .timecode .ref_index {
+ margin-right: 4px;
}
-.marker .content .categories .category {
- border: 1px solid;
- border-radius: 50%;
- height: 8px;
- margin-left: 2px;
- width: 8px;
-}
-
-/* MANDATORY */
-
.player_container {
display: flex;
flex-direction: row;
@@ -115,18 +110,38 @@
position: relative;
}
-.marker {
+.markers_container > .marker {
position: relative;
cursor: pointer;
}
-.marker .content {
- display: block;
+.markers_container > .marker .content {
box-sizing: border-box;
+ display: block;
+ font-size: 14px;
+ padding: 5px;
+ width: 320px;
word-wrap: break-word;
}
-.marker .progress {
+.markers_container > .marker.authored .content .author {
+ font-style: normal;
+}
+
+.markers_container > .marker.authored {
+ font-style: oblique;
+}
+
+.markers_container > .marker .content sup {
+ font-style: normal;
+ font-variant: normal;
+}
+
+.markers_container > .marker.rant .content {
+ font-variant: small-caps;
+}
+
+.markers_container > .marker .progress {
position: absolute;
top: 0;
left: 0;
@@ -135,150 +150,33 @@
overflow: hidden;
}
+.markers_container > .marker .timecode {
+ font-size: 9px;
+ font-style: normal;
+ padding-right: 8px;
+ position: relative;
+ top: -2px;
+}
+
+.markers_container > .marker .content .categories {
+ display: inline-flex;
+ margin: 4px;
+}
+
+.markers_container > .marker .content .categories .category {
+ border: 1px solid;
+ border-radius: 50%;
+ height: 5px;
+ margin-left: 2px;
+ width: 5px;
+}
+
/* CUSTOM PAGE STYLE */
body {
- background-color: #222;
+ background-color: #000;
font-family: sans-serif;
color: white;
margin: 0;
padding: 0;
}
-
-.title {
- display: flex;
- flex-direction: row;
- background-color: #444;
-}
-
-.title > * {
- padding: 10px;
-}
-
-.title .episode_name {
- flex: 1 1;
-}
-
-.title > a {
- color: rgba(38, 139, 210, 1);
- text-decoration: none;
-}
-
-.title > a:visited {
- color: rgba(38, 139, 210, 1);
-}
-
-.title > a:hover {
- text-decoration: underline;
-}
-
-.title .refs_container {
- position: relative;
- transition: box-shadow 800ms cubic-bezier(0.175, 0.885, 0.32, 1.275);
- box-shadow: inset 0 0 0 #B57714;
-}
-
-.title .refs_container:hover {
- background-color: #666;
-}
-
-.title .refs_container.current {
- box-shadow: inset 0px 0px 30px #B57714;
-}
-
-.title .refs_container .mouse_catcher {
- position: absolute;
- width: 100%;
- height: 100%;
- top: 0;
- right: 0;
-}
-
-.title .refs_container .refs {
- position: absolute;
- top: 100%;
- right: 0;
- width: 350px;
- background-color: black;
- border: 3px solid #444;
- border-top: none;
- z-index: 1;
- display: none;
-}
-
-.title .refs_container:hover .refs {
- display: block;
-}
-
-.refs .ref {
- padding: 10px;
- border-bottom: 1px solid rgb(51, 51, 51);
- display: flex;
- flex-direction: column;
- align-items: center;
- text-decoration: none;
- color: white;
-}
-
-.refs .ref.current {
- background-color: #8B3D23;
- color: black;
-}
-
-.refs .ref:hover {
- background-color: #222;
-}
-
-.refs .ref.current:hover {
- background-color: rgba(139, 61, 35, 0.7);
-}
-
-.refs .ref:last-child {
- border: none;
-}
-
-.refs .ref .timecode {
- display: inline-block;
- font-size: 12px;
- padding: 0;
-}
-
-.refs .ref .ref_indices {
- text-align: center;
-}
-
-.refs .ref .ref_indices .timecode {
- display: inline-block;
- font-size: 12px;
-}
-
-.refs .ref .ref_indices .timecode:first-child::before {
- content: "";
-}
-
-.refs .ref .ref_indices .timecode::before {
- content: "•";
- margin: 0 4px;
-}
-
-.refs .ref .timecode:hover .time {
- text-decoration: underline;
-}
-
-.refs .ref .ref_content {
- width: 100%;
-}
-
-.refs .ref .source {
- font-size: 10px;
- color: #888;
- line-height: 8px;
-}
-
-.refs .ref .ref_title {
- font-style: oblique;
-}
-
-.refs .ref .timecode .ref_index {
- margin-right: 4px;
-}
diff --git a/hmml_to_html/topics.css b/hmml_to_html/topics.css
index afb1158..f61dbc1 100644
--- a/hmml_to_html/topics.css
+++ b/hmml_to_html/topics.css
@@ -1,15 +1,17 @@
.marker .content .categories .category.rendering { border-color: #60B60A; background: #60B60A; }
-.marker .content .categories .category.mesh-building { border-color: #609FA2; background: #609FA2; }
-.marker .content .categories .category.physics { border-color: #869535; background: #869535; }
-.marker .content .categories .category.threading { border-color: #579BDF; background: #579BDF; }
-.marker .content .categories .category.procedural-generation { border-color: #67B347; background: #67B347; }
-.marker .content .categories .category.optimisation { border-color: #7E4B17; background: #7E4B17; }
-.marker .content .categories .category.experience { border-color: #604188; background: #604188; }
-.marker .content .categories .category.language { border-color: #4CCCCC; background: #4CCCCC; }
-.marker .content .categories .category.memory { border-color: #8DA740; background: #8DA740; }
-.marker .content .categories .category.demo { border-color: #547AE0; background: #547AE0; }
-.marker .content .categories .category.networking { border-color: #810623; background: #810623; }
-.marker .content .categories .category.simulation { border-color: #7DF3B5; background: #7DF3B5; }
-.marker .content .categories .category.profiling { border-color: #6E5D4B; background: #6E5D4B; }
-.marker .content .categories .category.trivia { border-color: #7C962E; background: #7C962E; }
.marker .content .categories .category.mathematics { border-color: #5E0595; background: #5E0595; }
+.marker .content .categories .category.simulation { border-color: #7DF3B5; background: #7DF3B5; }
+.marker .content .categories .category.animation { border-color: #62FC95; background: #62FC95; }
+.marker .content .categories .category.sorting { border-color: #8AF8AE; background: #8AF8AE; }
+.marker .content .categories .category.parsing { border-color: #70A3D6; background: #70A3D6; }
+.marker .content .categories .category.language { border-color: #4CCCCC; background: #4CCCCC; }
+.marker .content .categories .category.ai { border-color: #28F5C2; background: #28F5C2; }
+.marker .content .categories .category.demo { border-color: #547AE0; background: #547AE0; }
+.marker .content .categories .category.debug-visualisation { border-color: #6DC3FE; background: #6DC3FE; }
+.marker .content .categories .category.physics { border-color: #869535; background: #869535; }
+.marker .content .categories .category.experience { border-color: #604188; background: #604188; }
+.marker .content .categories .category.trivia { border-color: #7C962E; background: #7C962E; }
+.marker .content .categories .category.pathfinding { border-color: #5A4C54; background: #5A4C54; }
+.marker .content .categories .category.optimisation { border-color: #7E4B17; background: #7E4B17; }
+.marker .content .categories .category.memory { border-color: #8DA740; background: #8DA740; }
+.marker .content .categories .category.maths { border-color: #72B020; background: #72B020; }