Compare commits
24 Commits
142d783b97
...
131b2c5c1c
| Author | SHA1 | Date | |
|---|---|---|---|
| 131b2c5c1c | |||
| 22aa47d73f | |||
| 7de7991bf4 | |||
| 97e747fc61 | |||
| a6806d22da | |||
| 937a516657 | |||
| ad55f52e1e | |||
| 78ab5b8ed6 | |||
| 57f952116d | |||
| fbe3d35c5d | |||
| 0f4da6e594 | |||
| c13d83270b | |||
| 28f8c85a3c | |||
| 7a42bdfbcc | |||
| 5a30d7e50f | |||
| 658868d568 | |||
| 25993bb08c | |||
| 4dcad0843a | |||
| 4f39795e87 | |||
| 7e706ab0fc | |||
| a09c4968c9 | |||
| 0f969b5adb | |||
| c7c2c59dd0 | |||
| 5a6e29dba6 |
2
.gitattributes
vendored
2
.gitattributes
vendored
@@ -1,3 +1,5 @@
|
|||||||
*.sav filter=lfs diff=lfs merge=lfs -text
|
*.sav filter=lfs diff=lfs merge=lfs -text
|
||||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||||
*.png filter=lfs diff=lfs merge=lfs -text
|
*.png filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.woff2 filter=lfs diff=lfs merge=lfs -text
|
||||||
209
render/base.css
209
render/base.css
@@ -1,3 +1,17 @@
|
|||||||
|
@font-face {
|
||||||
|
font-family: "Noto Color Emoji";
|
||||||
|
src: url("./fonts/NotoColorEmoji/Noto-COLRv1-noflags.ttf");
|
||||||
|
}
|
||||||
|
@font-face {
|
||||||
|
font-family: "OpenMojiDemoFont";
|
||||||
|
src: url("./fonts/OpenMoji/OpenMoji-color-colr1_svg.woff2") format("woff2");
|
||||||
|
}
|
||||||
|
@font-face {
|
||||||
|
font-family: "Twemoji Mozilla Built";
|
||||||
|
src: url("./fonts/Mozilla/Twemoji.Mozilla.ttf");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
html, body {
|
html, body {
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
@@ -10,14 +24,53 @@ html, body {
|
|||||||
*, *:before, *:after {
|
*, *:before, *:after {
|
||||||
box-sizing: inherit;
|
box-sizing: inherit;
|
||||||
}
|
}
|
||||||
h1,h2,h3,h4,h5 {
|
|
||||||
|
h1:first-child,h2:first-child,h3:first-child,h4:first-child,h5:first-child {
|
||||||
margin-top: 0;
|
margin-top: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.emoji {
|
||||||
|
font-family: "Noto Color Emoji", sans-serif;
|
||||||
|
font-family: "OpenMojiDemoFont", sans-serif;
|
||||||
|
font-family: "Twemoji Mozilla Built", sans-serif;
|
||||||
|
font-size: 16px;
|
||||||
|
font-weight: 400;
|
||||||
|
font-style: normal;
|
||||||
|
position: relative;
|
||||||
|
/*top: 1px; /* Twemoji */
|
||||||
|
}
|
||||||
.emoji:after {
|
.emoji:after {
|
||||||
font-variant-emoji: emoji; /* experimental and only in firefox :( */
|
font-variant-emoji: emoji; /* experimental feature and only in firefox :( */
|
||||||
content: '\FE0F'; /* fuck off, give me emoji // https://codepoints.net/U+FE0F */
|
content: '\FE0F'; /* fuck off, give me emoji // https://codepoints.net/U+FE0F */
|
||||||
}
|
}
|
||||||
|
.emoji.Twemoji {
|
||||||
|
font-family: "Twemoji Mozilla Built", sans-serif;
|
||||||
|
font-size: 16px;
|
||||||
|
top: 2px;
|
||||||
|
}
|
||||||
|
.emoji.Noto {
|
||||||
|
font-family: "Noto Color Emoji", sans-serif;
|
||||||
|
font-size: 14px;
|
||||||
|
/*left: -1px;*/
|
||||||
|
top: 0px;
|
||||||
|
}
|
||||||
|
.emoji.OpenMoji {
|
||||||
|
font-family: "OpenMojiDemoFont", sans-serif;
|
||||||
|
font-size: 17px;
|
||||||
|
left: -2px;
|
||||||
|
top: 0px;
|
||||||
|
color: #888; /* fix outline */
|
||||||
|
}
|
||||||
|
.emoji.OpenMoji + .text-left-margin {
|
||||||
|
margin-left: 0;
|
||||||
|
}
|
||||||
|
.emoji.Noto + .text-left-margin {
|
||||||
|
margin-left: 5px;
|
||||||
|
}
|
||||||
|
.sidebar .emoji.Noto + .emoji.Noto {
|
||||||
|
margin-left: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
footer {
|
footer {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
@@ -108,17 +161,27 @@ table, tr, td, th {
|
|||||||
display: grid;
|
display: grid;
|
||||||
grid-gap: 2px;
|
grid-gap: 2px;
|
||||||
align-items: stretch;
|
align-items: stretch;
|
||||||
|
align-content: baseline;
|
||||||
|
}
|
||||||
|
.sidebar h2 {
|
||||||
|
font-size: 17px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#options {
|
#options {
|
||||||
height: var(--options-height);
|
height: var(--options-height);
|
||||||
}
|
}
|
||||||
#table { }
|
#table { }
|
||||||
|
|
||||||
#fail_images {
|
#fail_images {
|
||||||
display: grid;
|
display: grid;
|
||||||
|
justify-content: left;
|
||||||
|
}
|
||||||
|
#fail_images.center,
|
||||||
|
.grid-container.reversed #fail_images.center{
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
}
|
}
|
||||||
|
.grid-container.reversed #fail_images {
|
||||||
|
justify-content: right;
|
||||||
|
}
|
||||||
|
|
||||||
.panel {
|
.panel {
|
||||||
display: block;
|
display: block;
|
||||||
@@ -136,23 +199,27 @@ table, tr, td, th {
|
|||||||
.content {
|
.content {
|
||||||
grid-area: content;
|
grid-area: content;
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
justify-content: center;
|
padding: 0px 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
body.min { /* split feature */
|
|
||||||
|
|
||||||
|
body.mini { /* split feature */
|
||||||
width: 75%; margin: 0 auto; /* FIXME */
|
width: 75%; margin: 0 auto; /* FIXME */
|
||||||
}
|
}
|
||||||
.min .sidebar {
|
.mini .sidebar {
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
|
/*font-weight: bold;*/
|
||||||
}
|
}
|
||||||
.min .sidebar .panel > div {
|
.mini .sidebar .panel > div {
|
||||||
line-height: 20px;
|
line-height: 20px;
|
||||||
}
|
}
|
||||||
.min .sidebar #options.panel {
|
.mini .sidebar #options.panel {
|
||||||
height: var(--options-height-min);
|
height: var(--options-height-min);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@keyframes flash {
|
@keyframes flash {
|
||||||
0% {
|
0% {
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
@@ -219,6 +286,43 @@ body.min { /* split feature */
|
|||||||
position: absolute;
|
position: absolute;
|
||||||
animation: flash var(--animation-duration) infinite;
|
animation: flash var(--animation-duration) infinite;
|
||||||
}
|
}
|
||||||
|
.block-gold.anim_off,
|
||||||
|
.block-gold.anim_force_off,
|
||||||
|
.all_diff .block-gold,
|
||||||
|
.split_compare .block-gold{
|
||||||
|
animation: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
.split_compare .image-container {
|
||||||
|
cursor: col-resize;
|
||||||
|
}
|
||||||
|
.split_compare .block-gold {
|
||||||
|
overflow: hidden;
|
||||||
|
width: 50%;
|
||||||
|
position: absolute;
|
||||||
|
z-index: 10;
|
||||||
|
}
|
||||||
|
|
||||||
|
.split_compare .separator {
|
||||||
|
width: 1px;
|
||||||
|
height: 100%;
|
||||||
|
cursor: col-resize;
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
left: 50%;
|
||||||
|
z-index: 10;
|
||||||
|
backdrop-filter: invert(1);
|
||||||
|
}
|
||||||
|
.split_compare .block-test:after {
|
||||||
|
left: auto;
|
||||||
|
right: 25px;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
:root {
|
:root {
|
||||||
@@ -231,23 +335,30 @@ body.min { /* split feature */
|
|||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
||||||
.meta-block h2 {
|
.meta-block h3 {
|
||||||
/*display: none;*/
|
/*display: none;*/
|
||||||
font-family: monospace;
|
font-family: monospace;
|
||||||
/*font-family: "Gill Sans", sans-serif;*/
|
/*font-family: "Gill Sans", sans-serif;*/
|
||||||
padding-top: 10px;
|
padding-top: 10px;
|
||||||
margin-top: revert;
|
margin-top: revert;
|
||||||
|
/*font-size: 150%;*/
|
||||||
|
font-size: 1.5em;
|
||||||
}
|
}
|
||||||
.meta-block h2:before {
|
.meta-block h3:before {
|
||||||
content: "🎯\FE0F"; /* for hedging her bets; see .emoji for details */
|
content: "🎯\FE0F"; /* for hedging her bets; see .emoji for details */
|
||||||
}
|
}
|
||||||
#fail_images.padding .meta-block {
|
|
||||||
|
.text-link {
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
#fail_images.vpadding .meta-block {
|
||||||
/*margin-block: 100vh;*/
|
/*margin-block: 100vh;*/
|
||||||
padding-top: calc(var(--height-image));
|
padding-top: calc(var(--height-image));
|
||||||
padding-bottom: 2px;
|
padding-bottom: 2px;
|
||||||
/*padding-bottom: calc(50% - var(--height-image) );*/
|
/*padding-bottom: calc(50% - var(--height-image) );*/
|
||||||
}
|
}
|
||||||
#fail_images.padding .meta-block h2, .meta-block:first-child h2 {
|
#fail_images.vpadding .meta-block h3, .meta-block:first-child h3 {
|
||||||
border-top: none;
|
border-top: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -259,14 +370,27 @@ body.min { /* split feature */
|
|||||||
/*z-index: 10;*/
|
/*z-index: 10;*/
|
||||||
}
|
}
|
||||||
|
|
||||||
.block-diff.show_diff {
|
.block-diff.show_diff,
|
||||||
|
.all_diff .block-diff {
|
||||||
display: block;
|
display: block;
|
||||||
z-index: 2;
|
z-index: 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.diff_separate .block-diff {
|
||||||
|
display: block;
|
||||||
|
position: relative;
|
||||||
|
top: auto;
|
||||||
|
}
|
||||||
|
|
||||||
.image-container, img, .block {
|
.image-container, img, .block {
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
|
user-select: none;
|
||||||
|
}
|
||||||
|
/* TODO: исправить конфликт с image split compare */
|
||||||
|
.split_compare .image-container,
|
||||||
|
.split_compare img,
|
||||||
|
.split_compare .block {
|
||||||
|
max-width: unset;
|
||||||
}
|
}
|
||||||
|
|
||||||
table {
|
table {
|
||||||
@@ -294,14 +418,46 @@ th {
|
|||||||
}
|
}
|
||||||
th.table-sticky {
|
th.table-sticky {
|
||||||
position: sticky;
|
position: sticky;
|
||||||
top: 0;
|
top: 2.7em; /* FIXME */
|
||||||
|
}
|
||||||
|
.mini th.table-sticky {
|
||||||
|
position: sticky;
|
||||||
|
top: 3.53em; /* FIXME */
|
||||||
}
|
}
|
||||||
#options.sticky + #table th.table-sticky {
|
#options.sticky + #table th.table-sticky {
|
||||||
top: calc(var(--options-height) + 0.07em); /* FIXME */
|
top: calc(var(--options-height) + 2.74em); /* FIXME */
|
||||||
}
|
}
|
||||||
.min .sidebar #options.sticky + #table th.table-sticky {
|
.mini .sidebar #options.sticky + #table th.table-sticky {
|
||||||
top: calc(var(--options-height-min) + 0.07em); /* FIXME */
|
top: calc(var(--options-height-min) + 3.50em); /* FIXME */
|
||||||
}
|
}
|
||||||
|
.filter {
|
||||||
|
display: block;
|
||||||
|
padding: 10px 4px;
|
||||||
|
font-size: 16px;
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
.filter * {
|
||||||
|
font-weight: normal;
|
||||||
|
}
|
||||||
|
.mini .filter {
|
||||||
|
font-size: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#options.sticky + #table .filter.sticky {
|
||||||
|
top: calc(var(--options-height) + 0.0em); /* FIXME */
|
||||||
|
}
|
||||||
|
.mini .sidebar #options.sticky + #table .filter.sticky {
|
||||||
|
top: calc(var(--options-height-min) + 0.0em); /* FIXME */
|
||||||
|
}
|
||||||
|
.filter input {
|
||||||
|
margin-left: 10px;
|
||||||
|
}
|
||||||
|
#options .filter.sticky {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
input[type=range] { vertical-align: middle; }
|
input[type=range] { vertical-align: middle; }
|
||||||
|
|
||||||
@@ -310,6 +466,10 @@ a, a:visited {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.text-left-margin {
|
||||||
|
margin-left: 6px;
|
||||||
|
}
|
||||||
|
|
||||||
ul.list {
|
ul.list {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
@@ -340,4 +500,15 @@ details[open] summary:before {
|
|||||||
.green {
|
.green {
|
||||||
color: #6b9a00;
|
color: #6b9a00;
|
||||||
color: oklch(62.8% 0.25768330773615683 128.19);
|
color: oklch(62.8% 0.25768330773615683 128.19);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
table th:nth-child(3) {
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
table td:nth-child(3) { /* Δ, % // TODO: add class */
|
||||||
|
text-align: right;
|
||||||
|
font-family: Consolas, monospace;
|
||||||
|
}
|
||||||
|
table td:nth-child(4) { /* Passed // TODO: add class */
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|||||||
50
render/fonts/Mozilla/LICENSE.md
Normal file
50
render/fonts/Mozilla/LICENSE.md
Normal file
@@ -0,0 +1,50 @@
|
|||||||
|
## License for the Code
|
||||||
|
|
||||||
|
Copyright 2016-2018, Mozilla Foundation
|
||||||
|
|
||||||
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
you may not use this file except in compliance with the License.
|
||||||
|
You may obtain a copy of the License at
|
||||||
|
|
||||||
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
|
Unless required by applicable law or agreed to in writing, software
|
||||||
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
See the License for the specific language governing permissions and
|
||||||
|
limitations under the License.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
## License for the Visual Design
|
||||||
|
|
||||||
|
The Emoji art in the twe-svg.zip archive comes from [Twemoji](https://twitter.github.io/twemoji),
|
||||||
|
and is used and redistributed under the CC-BY-4.0 [license terms](https://github.com/twitter/twemoji#license)
|
||||||
|
offered by the Twemoji project.
|
||||||
|
|
||||||
|
### Creative Commons Attribution 4.0 International (CC BY 4.0)
|
||||||
|
https://creativecommons.org/licenses/by/4.0/legalcode
|
||||||
|
or for the human readable summary: https://creativecommons.org/licenses/by/4.0/
|
||||||
|
|
||||||
|
|
||||||
|
#### You are free to:
|
||||||
|
**Share** — copy and redistribute the material in any medium or format
|
||||||
|
|
||||||
|
**Adapt** — remix, transform, and build upon the material for any purpose, even commercially.
|
||||||
|
|
||||||
|
The licensor cannot revoke these freedoms as long as you follow the license terms.
|
||||||
|
|
||||||
|
|
||||||
|
#### Under the following terms:
|
||||||
|
**Attribution** — You must give appropriate credit, provide a link to the license,
|
||||||
|
and indicate if changes were made.
|
||||||
|
You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
|
||||||
|
|
||||||
|
**No additional restrictions** — You may not apply legal terms or **technological measures**
|
||||||
|
that legally restrict others from doing anything the license permits.
|
||||||
|
|
||||||
|
#### Notices:
|
||||||
|
You do not have to comply with the license for elements of the material in the public domain
|
||||||
|
or where your use is permitted by an applicable exception or limitation. No warranties are given.
|
||||||
|
The license may not give you all of the permissions necessary for your intended use.
|
||||||
|
For example, other rights such as publicity, privacy, or moral rights may limit how you use the material.
|
||||||
BIN
render/fonts/Mozilla/Twemoji.Mozilla.ttf
LFS
Normal file
BIN
render/fonts/Mozilla/Twemoji.Mozilla.ttf
LFS
Normal file
Binary file not shown.
BIN
render/fonts/NotoColorEmoji/Noto-COLRv1-noflags.ttf
LFS
Normal file
BIN
render/fonts/NotoColorEmoji/Noto-COLRv1-noflags.ttf
LFS
Normal file
Binary file not shown.
93
render/fonts/NotoColorEmoji/OFL.txt
Normal file
93
render/fonts/NotoColorEmoji/OFL.txt
Normal file
@@ -0,0 +1,93 @@
|
|||||||
|
Copyright 2021 Google Inc. All Rights Reserved.
|
||||||
|
|
||||||
|
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
||||||
|
This license is copied below, and is also available with a FAQ at:
|
||||||
|
https://openfontlicense.org
|
||||||
|
|
||||||
|
|
||||||
|
-----------------------------------------------------------
|
||||||
|
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
||||||
|
-----------------------------------------------------------
|
||||||
|
|
||||||
|
PREAMBLE
|
||||||
|
The goals of the Open Font License (OFL) are to stimulate worldwide
|
||||||
|
development of collaborative font projects, to support the font creation
|
||||||
|
efforts of academic and linguistic communities, and to provide a free and
|
||||||
|
open framework in which fonts may be shared and improved in partnership
|
||||||
|
with others.
|
||||||
|
|
||||||
|
The OFL allows the licensed fonts to be used, studied, modified and
|
||||||
|
redistributed freely as long as they are not sold by themselves. The
|
||||||
|
fonts, including any derivative works, can be bundled, embedded,
|
||||||
|
redistributed and/or sold with any software provided that any reserved
|
||||||
|
names are not used by derivative works. The fonts and derivatives,
|
||||||
|
however, cannot be released under any other type of license. The
|
||||||
|
requirement for fonts to remain under this license does not apply
|
||||||
|
to any document created using the fonts or their derivatives.
|
||||||
|
|
||||||
|
DEFINITIONS
|
||||||
|
"Font Software" refers to the set of files released by the Copyright
|
||||||
|
Holder(s) under this license and clearly marked as such. This may
|
||||||
|
include source files, build scripts and documentation.
|
||||||
|
|
||||||
|
"Reserved Font Name" refers to any names specified as such after the
|
||||||
|
copyright statement(s).
|
||||||
|
|
||||||
|
"Original Version" refers to the collection of Font Software components as
|
||||||
|
distributed by the Copyright Holder(s).
|
||||||
|
|
||||||
|
"Modified Version" refers to any derivative made by adding to, deleting,
|
||||||
|
or substituting -- in part or in whole -- any of the components of the
|
||||||
|
Original Version, by changing formats or by porting the Font Software to a
|
||||||
|
new environment.
|
||||||
|
|
||||||
|
"Author" refers to any designer, engineer, programmer, technical
|
||||||
|
writer or other person who contributed to the Font Software.
|
||||||
|
|
||||||
|
PERMISSION & CONDITIONS
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining
|
||||||
|
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
||||||
|
redistribute, and sell modified and unmodified copies of the Font
|
||||||
|
Software, subject to the following conditions:
|
||||||
|
|
||||||
|
1) Neither the Font Software nor any of its individual components,
|
||||||
|
in Original or Modified Versions, may be sold by itself.
|
||||||
|
|
||||||
|
2) Original or Modified Versions of the Font Software may be bundled,
|
||||||
|
redistributed and/or sold with any software, provided that each copy
|
||||||
|
contains the above copyright notice and this license. These can be
|
||||||
|
included either as stand-alone text files, human-readable headers or
|
||||||
|
in the appropriate machine-readable metadata fields within text or
|
||||||
|
binary files as long as those fields can be easily viewed by the user.
|
||||||
|
|
||||||
|
3) No Modified Version of the Font Software may use the Reserved Font
|
||||||
|
Name(s) unless explicit written permission is granted by the corresponding
|
||||||
|
Copyright Holder. This restriction only applies to the primary font name as
|
||||||
|
presented to the users.
|
||||||
|
|
||||||
|
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
||||||
|
Software shall not be used to promote, endorse or advertise any
|
||||||
|
Modified Version, except to acknowledge the contribution(s) of the
|
||||||
|
Copyright Holder(s) and the Author(s) or with their explicit written
|
||||||
|
permission.
|
||||||
|
|
||||||
|
5) The Font Software, modified or unmodified, in part or in whole,
|
||||||
|
must be distributed entirely under this license, and must not be
|
||||||
|
distributed under any other license. The requirement for fonts to
|
||||||
|
remain under this license does not apply to any document created
|
||||||
|
using the Font Software.
|
||||||
|
|
||||||
|
TERMINATION
|
||||||
|
This license becomes null and void if any of the above conditions are
|
||||||
|
not met.
|
||||||
|
|
||||||
|
DISCLAIMER
|
||||||
|
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||||
|
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
||||||
|
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
||||||
|
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
||||||
|
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
||||||
|
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
||||||
|
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||||
|
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
||||||
|
OTHER DEALINGS IN THE FONT SOFTWARE.
|
||||||
427
render/fonts/OpenMoji/LICENSE.txt
Normal file
427
render/fonts/OpenMoji/LICENSE.txt
Normal file
@@ -0,0 +1,427 @@
|
|||||||
|
Attribution-ShareAlike 4.0 International
|
||||||
|
|
||||||
|
=======================================================================
|
||||||
|
|
||||||
|
Creative Commons Corporation ("Creative Commons") is not a law firm and
|
||||||
|
does not provide legal services or legal advice. Distribution of
|
||||||
|
Creative Commons public licenses does not create a lawyer-client or
|
||||||
|
other relationship. Creative Commons makes its licenses and related
|
||||||
|
information available on an "as-is" basis. Creative Commons gives no
|
||||||
|
warranties regarding its licenses, any material licensed under their
|
||||||
|
terms and conditions, or any related information. Creative Commons
|
||||||
|
disclaims all liability for damages resulting from their use to the
|
||||||
|
fullest extent possible.
|
||||||
|
|
||||||
|
Using Creative Commons Public Licenses
|
||||||
|
|
||||||
|
Creative Commons public licenses provide a standard set of terms and
|
||||||
|
conditions that creators and other rights holders may use to share
|
||||||
|
original works of authorship and other material subject to copyright
|
||||||
|
and certain other rights specified in the public license below. The
|
||||||
|
following considerations are for informational purposes only, are not
|
||||||
|
exhaustive, and do not form part of our licenses.
|
||||||
|
|
||||||
|
Considerations for licensors: Our public licenses are
|
||||||
|
intended for use by those authorized to give the public
|
||||||
|
permission to use material in ways otherwise restricted by
|
||||||
|
copyright and certain other rights. Our licenses are
|
||||||
|
irrevocable. Licensors should read and understand the terms
|
||||||
|
and conditions of the license they choose before applying it.
|
||||||
|
Licensors should also secure all rights necessary before
|
||||||
|
applying our licenses so that the public can reuse the
|
||||||
|
material as expected. Licensors should clearly mark any
|
||||||
|
material not subject to the license. This includes other CC-
|
||||||
|
licensed material, or material used under an exception or
|
||||||
|
limitation to copyright. More considerations for licensors:
|
||||||
|
wiki.creativecommons.org/Considerations_for_licensors
|
||||||
|
|
||||||
|
Considerations for the public: By using one of our public
|
||||||
|
licenses, a licensor grants the public permission to use the
|
||||||
|
licensed material under specified terms and conditions. If
|
||||||
|
the licensor's permission is not necessary for any reason--for
|
||||||
|
example, because of any applicable exception or limitation to
|
||||||
|
copyright--then that use is not regulated by the license. Our
|
||||||
|
licenses grant only permissions under copyright and certain
|
||||||
|
other rights that a licensor has authority to grant. Use of
|
||||||
|
the licensed material may still be restricted for other
|
||||||
|
reasons, including because others have copyright or other
|
||||||
|
rights in the material. A licensor may make special requests,
|
||||||
|
such as asking that all changes be marked or described.
|
||||||
|
Although not required by our licenses, you are encouraged to
|
||||||
|
respect those requests where reasonable. More considerations
|
||||||
|
for the public:
|
||||||
|
wiki.creativecommons.org/Considerations_for_licensees
|
||||||
|
|
||||||
|
=======================================================================
|
||||||
|
|
||||||
|
Creative Commons Attribution-ShareAlike 4.0 International Public
|
||||||
|
License
|
||||||
|
|
||||||
|
By exercising the Licensed Rights (defined below), You accept and agree
|
||||||
|
to be bound by the terms and conditions of this Creative Commons
|
||||||
|
Attribution-ShareAlike 4.0 International Public License ("Public
|
||||||
|
License"). To the extent this Public License may be interpreted as a
|
||||||
|
contract, You are granted the Licensed Rights in consideration of Your
|
||||||
|
acceptance of these terms and conditions, and the Licensor grants You
|
||||||
|
such rights in consideration of benefits the Licensor receives from
|
||||||
|
making the Licensed Material available under these terms and
|
||||||
|
conditions.
|
||||||
|
|
||||||
|
|
||||||
|
Section 1 -- Definitions.
|
||||||
|
|
||||||
|
a. Adapted Material means material subject to Copyright and Similar
|
||||||
|
Rights that is derived from or based upon the Licensed Material
|
||||||
|
and in which the Licensed Material is translated, altered,
|
||||||
|
arranged, transformed, or otherwise modified in a manner requiring
|
||||||
|
permission under the Copyright and Similar Rights held by the
|
||||||
|
Licensor. For purposes of this Public License, where the Licensed
|
||||||
|
Material is a musical work, performance, or sound recording,
|
||||||
|
Adapted Material is always produced where the Licensed Material is
|
||||||
|
synched in timed relation with a moving image.
|
||||||
|
|
||||||
|
b. Adapter's License means the license You apply to Your Copyright
|
||||||
|
and Similar Rights in Your contributions to Adapted Material in
|
||||||
|
accordance with the terms and conditions of this Public License.
|
||||||
|
|
||||||
|
c. BY-SA Compatible License means a license listed at
|
||||||
|
creativecommons.org/compatiblelicenses, approved by Creative
|
||||||
|
Commons as essentially the equivalent of this Public License.
|
||||||
|
|
||||||
|
d. Copyright and Similar Rights means copyright and/or similar rights
|
||||||
|
closely related to copyright including, without limitation,
|
||||||
|
performance, broadcast, sound recording, and Sui Generis Database
|
||||||
|
Rights, without regard to how the rights are labeled or
|
||||||
|
categorized. For purposes of this Public License, the rights
|
||||||
|
specified in Section 2(b)(1)-(2) are not Copyright and Similar
|
||||||
|
Rights.
|
||||||
|
|
||||||
|
e. Effective Technological Measures means those measures that, in the
|
||||||
|
absence of proper authority, may not be circumvented under laws
|
||||||
|
fulfilling obligations under Article 11 of the WIPO Copyright
|
||||||
|
Treaty adopted on December 20, 1996, and/or similar international
|
||||||
|
agreements.
|
||||||
|
|
||||||
|
f. Exceptions and Limitations means fair use, fair dealing, and/or
|
||||||
|
any other exception or limitation to Copyright and Similar Rights
|
||||||
|
that applies to Your use of the Licensed Material.
|
||||||
|
|
||||||
|
g. License Elements means the license attributes listed in the name
|
||||||
|
of a Creative Commons Public License. The License Elements of this
|
||||||
|
Public License are Attribution and ShareAlike.
|
||||||
|
|
||||||
|
h. Licensed Material means the artistic or literary work, database,
|
||||||
|
or other material to which the Licensor applied this Public
|
||||||
|
License.
|
||||||
|
|
||||||
|
i. Licensed Rights means the rights granted to You subject to the
|
||||||
|
terms and conditions of this Public License, which are limited to
|
||||||
|
all Copyright and Similar Rights that apply to Your use of the
|
||||||
|
Licensed Material and that the Licensor has authority to license.
|
||||||
|
|
||||||
|
j. Licensor means the individual(s) or entity(ies) granting rights
|
||||||
|
under this Public License.
|
||||||
|
|
||||||
|
k. Share means to provide material to the public by any means or
|
||||||
|
process that requires permission under the Licensed Rights, such
|
||||||
|
as reproduction, public display, public performance, distribution,
|
||||||
|
dissemination, communication, or importation, and to make material
|
||||||
|
available to the public including in ways that members of the
|
||||||
|
public may access the material from a place and at a time
|
||||||
|
individually chosen by them.
|
||||||
|
|
||||||
|
l. Sui Generis Database Rights means rights other than copyright
|
||||||
|
resulting from Directive 96/9/EC of the European Parliament and of
|
||||||
|
the Council of 11 March 1996 on the legal protection of databases,
|
||||||
|
as amended and/or succeeded, as well as other essentially
|
||||||
|
equivalent rights anywhere in the world.
|
||||||
|
|
||||||
|
m. You means the individual or entity exercising the Licensed Rights
|
||||||
|
under this Public License. Your has a corresponding meaning.
|
||||||
|
|
||||||
|
|
||||||
|
Section 2 -- Scope.
|
||||||
|
|
||||||
|
a. License grant.
|
||||||
|
|
||||||
|
1. Subject to the terms and conditions of this Public License,
|
||||||
|
the Licensor hereby grants You a worldwide, royalty-free,
|
||||||
|
non-sublicensable, non-exclusive, irrevocable license to
|
||||||
|
exercise the Licensed Rights in the Licensed Material to:
|
||||||
|
|
||||||
|
a. reproduce and Share the Licensed Material, in whole or
|
||||||
|
in part; and
|
||||||
|
|
||||||
|
b. produce, reproduce, and Share Adapted Material.
|
||||||
|
|
||||||
|
2. Exceptions and Limitations. For the avoidance of doubt, where
|
||||||
|
Exceptions and Limitations apply to Your use, this Public
|
||||||
|
License does not apply, and You do not need to comply with
|
||||||
|
its terms and conditions.
|
||||||
|
|
||||||
|
3. Term. The term of this Public License is specified in Section
|
||||||
|
6(a).
|
||||||
|
|
||||||
|
4. Media and formats; technical modifications allowed. The
|
||||||
|
Licensor authorizes You to exercise the Licensed Rights in
|
||||||
|
all media and formats whether now known or hereafter created,
|
||||||
|
and to make technical modifications necessary to do so. The
|
||||||
|
Licensor waives and/or agrees not to assert any right or
|
||||||
|
authority to forbid You from making technical modifications
|
||||||
|
necessary to exercise the Licensed Rights, including
|
||||||
|
technical modifications necessary to circumvent Effective
|
||||||
|
Technological Measures. For purposes of this Public License,
|
||||||
|
simply making modifications authorized by this Section 2(a)
|
||||||
|
(4) never produces Adapted Material.
|
||||||
|
|
||||||
|
5. Downstream recipients.
|
||||||
|
|
||||||
|
a. Offer from the Licensor -- Licensed Material. Every
|
||||||
|
recipient of the Licensed Material automatically
|
||||||
|
receives an offer from the Licensor to exercise the
|
||||||
|
Licensed Rights under the terms and conditions of this
|
||||||
|
Public License.
|
||||||
|
|
||||||
|
b. Additional offer from the Licensor -- Adapted Material.
|
||||||
|
Every recipient of Adapted Material from You
|
||||||
|
automatically receives an offer from the Licensor to
|
||||||
|
exercise the Licensed Rights in the Adapted Material
|
||||||
|
under the conditions of the Adapter's License You apply.
|
||||||
|
|
||||||
|
c. No downstream restrictions. You may not offer or impose
|
||||||
|
any additional or different terms or conditions on, or
|
||||||
|
apply any Effective Technological Measures to, the
|
||||||
|
Licensed Material if doing so restricts exercise of the
|
||||||
|
Licensed Rights by any recipient of the Licensed
|
||||||
|
Material.
|
||||||
|
|
||||||
|
6. No endorsement. Nothing in this Public License constitutes or
|
||||||
|
may be construed as permission to assert or imply that You
|
||||||
|
are, or that Your use of the Licensed Material is, connected
|
||||||
|
with, or sponsored, endorsed, or granted official status by,
|
||||||
|
the Licensor or others designated to receive attribution as
|
||||||
|
provided in Section 3(a)(1)(A)(i).
|
||||||
|
|
||||||
|
b. Other rights.
|
||||||
|
|
||||||
|
1. Moral rights, such as the right of integrity, are not
|
||||||
|
licensed under this Public License, nor are publicity,
|
||||||
|
privacy, and/or other similar personality rights; however, to
|
||||||
|
the extent possible, the Licensor waives and/or agrees not to
|
||||||
|
assert any such rights held by the Licensor to the limited
|
||||||
|
extent necessary to allow You to exercise the Licensed
|
||||||
|
Rights, but not otherwise.
|
||||||
|
|
||||||
|
2. Patent and trademark rights are not licensed under this
|
||||||
|
Public License.
|
||||||
|
|
||||||
|
3. To the extent possible, the Licensor waives any right to
|
||||||
|
collect royalties from You for the exercise of the Licensed
|
||||||
|
Rights, whether directly or through a collecting society
|
||||||
|
under any voluntary or waivable statutory or compulsory
|
||||||
|
licensing scheme. In all other cases the Licensor expressly
|
||||||
|
reserves any right to collect such royalties.
|
||||||
|
|
||||||
|
|
||||||
|
Section 3 -- License Conditions.
|
||||||
|
|
||||||
|
Your exercise of the Licensed Rights is expressly made subject to the
|
||||||
|
following conditions.
|
||||||
|
|
||||||
|
a. Attribution.
|
||||||
|
|
||||||
|
1. If You Share the Licensed Material (including in modified
|
||||||
|
form), You must:
|
||||||
|
|
||||||
|
a. retain the following if it is supplied by the Licensor
|
||||||
|
with the Licensed Material:
|
||||||
|
|
||||||
|
i. identification of the creator(s) of the Licensed
|
||||||
|
Material and any others designated to receive
|
||||||
|
attribution, in any reasonable manner requested by
|
||||||
|
the Licensor (including by pseudonym if
|
||||||
|
designated);
|
||||||
|
|
||||||
|
ii. a copyright notice;
|
||||||
|
|
||||||
|
iii. a notice that refers to this Public License;
|
||||||
|
|
||||||
|
iv. a notice that refers to the disclaimer of
|
||||||
|
warranties;
|
||||||
|
|
||||||
|
v. a URI or hyperlink to the Licensed Material to the
|
||||||
|
extent reasonably practicable;
|
||||||
|
|
||||||
|
b. indicate if You modified the Licensed Material and
|
||||||
|
retain an indication of any previous modifications; and
|
||||||
|
|
||||||
|
c. indicate the Licensed Material is licensed under this
|
||||||
|
Public License, and include the text of, or the URI or
|
||||||
|
hyperlink to, this Public License.
|
||||||
|
|
||||||
|
2. You may satisfy the conditions in Section 3(a)(1) in any
|
||||||
|
reasonable manner based on the medium, means, and context in
|
||||||
|
which You Share the Licensed Material. For example, it may be
|
||||||
|
reasonable to satisfy the conditions by providing a URI or
|
||||||
|
hyperlink to a resource that includes the required
|
||||||
|
information.
|
||||||
|
|
||||||
|
3. If requested by the Licensor, You must remove any of the
|
||||||
|
information required by Section 3(a)(1)(A) to the extent
|
||||||
|
reasonably practicable.
|
||||||
|
|
||||||
|
b. ShareAlike.
|
||||||
|
|
||||||
|
In addition to the conditions in Section 3(a), if You Share
|
||||||
|
Adapted Material You produce, the following conditions also apply.
|
||||||
|
|
||||||
|
1. The Adapter's License You apply must be a Creative Commons
|
||||||
|
license with the same License Elements, this version or
|
||||||
|
later, or a BY-SA Compatible License.
|
||||||
|
|
||||||
|
2. You must include the text of, or the URI or hyperlink to, the
|
||||||
|
Adapter's License You apply. You may satisfy this condition
|
||||||
|
in any reasonable manner based on the medium, means, and
|
||||||
|
context in which You Share Adapted Material.
|
||||||
|
|
||||||
|
3. You may not offer or impose any additional or different terms
|
||||||
|
or conditions on, or apply any Effective Technological
|
||||||
|
Measures to, Adapted Material that restrict exercise of the
|
||||||
|
rights granted under the Adapter's License You apply.
|
||||||
|
|
||||||
|
|
||||||
|
Section 4 -- Sui Generis Database Rights.
|
||||||
|
|
||||||
|
Where the Licensed Rights include Sui Generis Database Rights that
|
||||||
|
apply to Your use of the Licensed Material:
|
||||||
|
|
||||||
|
a. for the avoidance of doubt, Section 2(a)(1) grants You the right
|
||||||
|
to extract, reuse, reproduce, and Share all or a substantial
|
||||||
|
portion of the contents of the database;
|
||||||
|
|
||||||
|
b. if You include all or a substantial portion of the database
|
||||||
|
contents in a database in which You have Sui Generis Database
|
||||||
|
Rights, then the database in which You have Sui Generis Database
|
||||||
|
Rights (but not its individual contents) is Adapted Material,
|
||||||
|
|
||||||
|
including for purposes of Section 3(b); and
|
||||||
|
c. You must comply with the conditions in Section 3(a) if You Share
|
||||||
|
all or a substantial portion of the contents of the database.
|
||||||
|
|
||||||
|
For the avoidance of doubt, this Section 4 supplements and does not
|
||||||
|
replace Your obligations under this Public License where the Licensed
|
||||||
|
Rights include other Copyright and Similar Rights.
|
||||||
|
|
||||||
|
|
||||||
|
Section 5 -- Disclaimer of Warranties and Limitation of Liability.
|
||||||
|
|
||||||
|
a. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE
|
||||||
|
EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS
|
||||||
|
AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF
|
||||||
|
ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS,
|
||||||
|
IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION,
|
||||||
|
WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR
|
||||||
|
PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS,
|
||||||
|
ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT
|
||||||
|
KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT
|
||||||
|
ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU.
|
||||||
|
|
||||||
|
b. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE
|
||||||
|
TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION,
|
||||||
|
NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT,
|
||||||
|
INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES,
|
||||||
|
COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR
|
||||||
|
USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN
|
||||||
|
ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR
|
||||||
|
DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR
|
||||||
|
IN PART, THIS LIMITATION MAY NOT APPLY TO YOU.
|
||||||
|
|
||||||
|
c. The disclaimer of warranties and limitation of liability provided
|
||||||
|
above shall be interpreted in a manner that, to the extent
|
||||||
|
possible, most closely approximates an absolute disclaimer and
|
||||||
|
waiver of all liability.
|
||||||
|
|
||||||
|
|
||||||
|
Section 6 -- Term and Termination.
|
||||||
|
|
||||||
|
a. This Public License applies for the term of the Copyright and
|
||||||
|
Similar Rights licensed here. However, if You fail to comply with
|
||||||
|
this Public License, then Your rights under this Public License
|
||||||
|
terminate automatically.
|
||||||
|
|
||||||
|
b. Where Your right to use the Licensed Material has terminated under
|
||||||
|
Section 6(a), it reinstates:
|
||||||
|
|
||||||
|
1. automatically as of the date the violation is cured, provided
|
||||||
|
it is cured within 30 days of Your discovery of the
|
||||||
|
violation; or
|
||||||
|
|
||||||
|
2. upon express reinstatement by the Licensor.
|
||||||
|
|
||||||
|
For the avoidance of doubt, this Section 6(b) does not affect any
|
||||||
|
right the Licensor may have to seek remedies for Your violations
|
||||||
|
of this Public License.
|
||||||
|
|
||||||
|
c. For the avoidance of doubt, the Licensor may also offer the
|
||||||
|
Licensed Material under separate terms or conditions or stop
|
||||||
|
distributing the Licensed Material at any time; however, doing so
|
||||||
|
will not terminate this Public License.
|
||||||
|
|
||||||
|
d. Sections 1, 5, 6, 7, and 8 survive termination of this Public
|
||||||
|
License.
|
||||||
|
|
||||||
|
|
||||||
|
Section 7 -- Other Terms and Conditions.
|
||||||
|
|
||||||
|
a. The Licensor shall not be bound by any additional or different
|
||||||
|
terms or conditions communicated by You unless expressly agreed.
|
||||||
|
|
||||||
|
b. Any arrangements, understandings, or agreements regarding the
|
||||||
|
Licensed Material not stated herein are separate from and
|
||||||
|
independent of the terms and conditions of this Public License.
|
||||||
|
|
||||||
|
|
||||||
|
Section 8 -- Interpretation.
|
||||||
|
|
||||||
|
a. For the avoidance of doubt, this Public License does not, and
|
||||||
|
shall not be interpreted to, reduce, limit, restrict, or impose
|
||||||
|
conditions on any use of the Licensed Material that could lawfully
|
||||||
|
be made without permission under this Public License.
|
||||||
|
|
||||||
|
b. To the extent possible, if any provision of this Public License is
|
||||||
|
deemed unenforceable, it shall be automatically reformed to the
|
||||||
|
minimum extent necessary to make it enforceable. If the provision
|
||||||
|
cannot be reformed, it shall be severed from this Public License
|
||||||
|
without affecting the enforceability of the remaining terms and
|
||||||
|
conditions.
|
||||||
|
|
||||||
|
c. No term or condition of this Public License will be waived and no
|
||||||
|
failure to comply consented to unless expressly agreed to by the
|
||||||
|
Licensor.
|
||||||
|
|
||||||
|
d. Nothing in this Public License constitutes or may be interpreted
|
||||||
|
as a limitation upon, or waiver of, any privileges and immunities
|
||||||
|
that apply to the Licensor or You, including from the legal
|
||||||
|
processes of any jurisdiction or authority.
|
||||||
|
|
||||||
|
|
||||||
|
=======================================================================
|
||||||
|
|
||||||
|
Creative Commons is not a party to its public
|
||||||
|
licenses. Notwithstanding, Creative Commons may elect to apply one of
|
||||||
|
its public licenses to material it publishes and in those instances
|
||||||
|
will be considered the “Licensor.” The text of the Creative Commons
|
||||||
|
public licenses is dedicated to the public domain under the CC0 Public
|
||||||
|
Domain Dedication. Except for the limited purpose of indicating that
|
||||||
|
material is shared under a Creative Commons public license or as
|
||||||
|
otherwise permitted by the Creative Commons policies published at
|
||||||
|
creativecommons.org/policies, Creative Commons does not authorize the
|
||||||
|
use of the trademark "Creative Commons" or any other trademark or logo
|
||||||
|
of Creative Commons without its prior written consent including,
|
||||||
|
without limitation, in connection with any unauthorized modifications
|
||||||
|
to any of its public licenses or any other arrangements,
|
||||||
|
understandings, or agreements concerning use of licensed material. For
|
||||||
|
the avoidance of doubt, this paragraph does not form part of the
|
||||||
|
public licenses.
|
||||||
|
|
||||||
|
Creative Commons may be contacted at creativecommons.org.
|
||||||
BIN
render/fonts/OpenMoji/OpenMoji-color-colr1_svg.woff2
LFS
Normal file
BIN
render/fonts/OpenMoji/OpenMoji-color-colr1_svg.woff2
LFS
Normal file
Binary file not shown.
344
render/index.js
344
render/index.js
@@ -19,32 +19,81 @@ function sectionLink(value, d) {
|
|||||||
return [a];
|
return [a];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// fonts: Twemoji, Noto, OpenMoji
|
||||||
|
const emojiFontReplacementTable = {
|
||||||
|
"🌑":"Twemoji",
|
||||||
|
"☀":"Noto",
|
||||||
|
"🧲":"Noto",
|
||||||
|
"☢":"Noto",
|
||||||
|
"🔦":"OpenMoji",
|
||||||
|
"🎆":"Noto",
|
||||||
|
"💎":"Noto",
|
||||||
|
"🏀":"Noto",
|
||||||
|
"🖌":"Noto",
|
||||||
|
//"❌":"Noto",
|
||||||
|
"🏁":"Noto",
|
||||||
|
"🛑":"Noto",
|
||||||
|
"⛔":"Noto",
|
||||||
|
}
|
||||||
|
function emojiFont(emoji) {
|
||||||
|
let emojiFontReplacement = emojiFontReplacementTable[emoji];
|
||||||
|
emojiFontReplacement = emojiFontReplacement ? " " + emojiFontReplacement : "";
|
||||||
|
return emojiFontReplacement;
|
||||||
|
}
|
||||||
|
|
||||||
|
function emojiDetect(string) {
|
||||||
|
const regex_emoji = /\p{Extended_Pictographic}/gu; // it's not complete but it's enough for case
|
||||||
|
const matches = [...string.matchAll(regex_emoji)];
|
||||||
|
return matches;
|
||||||
|
}
|
||||||
|
function emojiToTag(string) {
|
||||||
|
const results = emojiDetect(string);
|
||||||
|
let lastIndex = 0;
|
||||||
|
const tagArray = [];
|
||||||
|
for (let result of results) {
|
||||||
|
let emoji = result[0];
|
||||||
|
if (result.index > lastIndex) {
|
||||||
|
tagArray.push(Text(string.slice(lastIndex, result.index)));
|
||||||
|
}
|
||||||
|
tagArray.push(Tag('span', {"class": "emoji" + emojiFont(emoji)}, emoji));
|
||||||
|
lastIndex = result.index + emoji.length;
|
||||||
|
}
|
||||||
|
if (lastIndex < string.length) {
|
||||||
|
tagArray.push(Text(string.slice(lastIndex)));
|
||||||
|
}
|
||||||
|
return tagArray;
|
||||||
|
}
|
||||||
function channelWithEmoji(value) {
|
function channelWithEmoji(value) {
|
||||||
const replacements = {
|
const replacements = {
|
||||||
"full": "🖼",
|
"full": "🖼",
|
||||||
"basecolor": "🎨",
|
"basecolor": "🎨",
|
||||||
"emissive": "☢",
|
"emissive": "☢",
|
||||||
"nshade": "🥬", //🏔
|
"nshade": "🥬", //🏔🌄
|
||||||
"ngeom": "🥒", //⛰
|
"ngeom": "🥒", //⛰
|
||||||
"lighting": "☀",//🗿
|
"lighting": "☀",//🗿
|
||||||
"direct": "🎇",
|
"direct": "🔦",//🔦🎇☄
|
||||||
"direct_diffuse": "🎇🎆",
|
"direct_diffuse": "🔦🎆",
|
||||||
"direct_specular": "🎇💎",
|
"direct_specular": "🔦💎",
|
||||||
"diffuse": "🎆",
|
"diffuse": "🎆",
|
||||||
"specular": "💎",
|
"specular": "💎",
|
||||||
"material": "🖌",
|
"material": "🖌",
|
||||||
"indirect": "🥏",//🏀🏓🥏
|
"indirect": "🏀",//🏀🏓🥏
|
||||||
"indirect_specular": "🥏💎",
|
"indirect_specular": "🏀💎",
|
||||||
"indirect_diffuse": "🥏🎆"
|
"indirect_diffuse": "🏀🎆"
|
||||||
}
|
}
|
||||||
const emoji = replacements[value];
|
const emoji = replacements[value];
|
||||||
if (emoji) {
|
if (emoji) {
|
||||||
return [Tag('span', {}, `${emoji}\uFE0F ${value}`)];
|
return [
|
||||||
|
...emojiToTag(emoji),
|
||||||
|
Tag("span", {"class": "text-left-margin"}, value)
|
||||||
|
];
|
||||||
} else {
|
} else {
|
||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
function colorPct(value) {
|
function colorPct(value) {
|
||||||
|
let fixedPercent = value.toFixed(3);
|
||||||
|
//fixedPercent = (fixedPercent < 10 ? '0' : '') + fixedPercent;
|
||||||
let css_class = "";
|
let css_class = "";
|
||||||
if (value < 1) {
|
if (value < 1) {
|
||||||
css_class = "green";
|
css_class = "green";
|
||||||
@@ -54,11 +103,15 @@ function colorPct(value) {
|
|||||||
} else {
|
} else {
|
||||||
css_class = "red";
|
css_class = "red";
|
||||||
}
|
}
|
||||||
return [Tag("span", {"class": css_class}, value.toFixed(3))];
|
return [Tag("span", {"class": css_class}, fixedPercent)];
|
||||||
}
|
}
|
||||||
|
|
||||||
function isPassed(value) {
|
function isPassed(value) {
|
||||||
return [Tag("span", {"class": "emoji"}, value ? "❌" : "✅")];
|
const font = value ? emojiFont("❌") : emojiFont("✔");
|
||||||
|
return [
|
||||||
|
Tag("span", {"class": "emoji" + font},
|
||||||
|
value ? "❌" : "✅" // ✔✅
|
||||||
|
)
|
||||||
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
function makeTable(fields, data, attrs_func) {
|
function makeTable(fields, data, attrs_func) {
|
||||||
@@ -79,7 +132,7 @@ function makeTable(fields, data, attrs_func) {
|
|||||||
table.appendChild(Tag('tr', attrs, null, (() => {
|
table.appendChild(Tag('tr', attrs, null, (() => {
|
||||||
let ret = [];
|
let ret = [];
|
||||||
for (const f of fields) {
|
for (const f of fields) {
|
||||||
let value = d[f.field];
|
const value = d[f.field];
|
||||||
if (value === undefined) {
|
if (value === undefined) {
|
||||||
ret.push(Tag('td'));
|
ret.push(Tag('td'));
|
||||||
continue;
|
continue;
|
||||||
@@ -130,7 +183,7 @@ function buildSummary(data) {
|
|||||||
const total = data.length;
|
const total = data.length;
|
||||||
const fails = data.filter((d) => { return !!d.fail; }).length;
|
const fails = data.filter((d) => { return !!d.fail; }).length;
|
||||||
const fails_pct = fails * 100.0 / total;
|
const fails_pct = fails * 100.0 / total;
|
||||||
return [Text(`Tests failed: ${fails} / ${total} (${fails_pct.toFixed(3)}%)`)];
|
return emojiToTag(`🧪 Tests 💥: ${fails}/${total}🏁 (⚠${fails_pct.toFixed(3)}%)`);
|
||||||
}
|
}
|
||||||
|
|
||||||
function buildTestResultImages(data) {
|
function buildTestResultImages(data) {
|
||||||
@@ -138,11 +191,14 @@ function buildTestResultImages(data) {
|
|||||||
//return Tag('details', {id: makeId(d)}, null, [
|
//return Tag('details', {id: makeId(d)}, null, [
|
||||||
return Tag('div', {id: makeId(d), "class": "meta-block"}, null, [
|
return Tag('div', {id: makeId(d), "class": "meta-block"}, null, [
|
||||||
//Tag('summary', null, `${d.test}/${d.channel} δ=${d.diff_pct}`),
|
//Tag('summary', null, `${d.test}/${d.channel} δ=${d.diff_pct}`),
|
||||||
Tag('h2', null, `${d.test}/${d.channel} δ=${d.diff_pct}`),
|
Tag("a", {"class": "text-link", "href": `#${d.test}/${d.channel}`}, null, [
|
||||||
|
Tag('h3', null, `${d.test}/${d.channel} δ=${d.diff_pct}`)
|
||||||
|
]),
|
||||||
Tag('div', {"class": "image-container"}, null, [
|
Tag('div', {"class": "image-container"}, null, [
|
||||||
Tag('div', {"class": "block block-gold"}, null, [Tag('img', {src: d.image_gold, loading: "lazy", "class": "gold"})]),
|
Tag('div', {"class": "block block-gold"}, null, [Tag('img', {src: d.image_gold, loading: "lazy", "class": "gold"})]),
|
||||||
Tag('div', {"class": "block block-test"}, null, [Tag('img', {src: d.image_test, loading: "lazy", "class": "test"})]),
|
Tag('div', {"class": "block block-test"}, null, [Tag('img', {src: d.image_test, loading: "lazy", "class": "test"})]),
|
||||||
Tag('div', {"class": "block block-diff"}, null, [Tag('img', {src: d.image_diff, loading: "lazy", "class": "diff"})]),
|
Tag('div', {"class": "block block-diff"}, null, [Tag('img', {src: d.image_diff, loading: "lazy", "class": "diff"})]),
|
||||||
|
Tag('div', {"class": "separator"}, null, null),
|
||||||
])
|
])
|
||||||
//Tag('img', {src: d.image_flip}),
|
//Tag('img', {src: d.image_flip}),
|
||||||
]);
|
]);
|
||||||
@@ -151,17 +207,35 @@ function buildTestResultImages(data) {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
function buildData(table, images, data, sort) {
|
function buildData(table, images, data, sort, filter, exact_match) {
|
||||||
if (sort) {
|
if (sort) {
|
||||||
data = filterData(data);
|
data = filterData(data);
|
||||||
}
|
}
|
||||||
|
if (filter) {
|
||||||
|
if (exact_match) {
|
||||||
|
data = data.filter((d) => {
|
||||||
|
const test = d.test === filter;
|
||||||
|
const channel = d.channel === filter;
|
||||||
|
return test || channel;
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
data = data.filter((d) => {
|
||||||
|
const test = d.test.includes(filter);
|
||||||
|
const channel = d.channel.includes(filter);
|
||||||
|
return test || channel;
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
table.replaceChildren(...buildTestResultsTable(data));
|
table.replaceChildren(...buildTestResultsTable(data));
|
||||||
images.replaceChildren(...buildTestResultImages(data));
|
images.replaceChildren(...buildTestResultImages(data));
|
||||||
|
|
||||||
for (let block of images.querySelectorAll(".image-container")) {
|
for (let block of images.querySelectorAll(".image-container")) {
|
||||||
block.addEventListener("click", function() {
|
block.addEventListener("click", function() {
|
||||||
let diffElement = this.querySelector(".block-diff");
|
let diffElement = this.querySelector(".block-diff");
|
||||||
|
let goldElement = this.querySelector(".block-gold");
|
||||||
diffElement.classList.toggle("show_diff");
|
diffElement.classList.toggle("show_diff");
|
||||||
|
goldElement.classList.toggle("anim_force_off");
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -173,11 +247,15 @@ function buildData(table, images, data, sort) {
|
|||||||
|
|
||||||
saveToLocalStorage("rendertest_tablesort", sort);
|
saveToLocalStorage("rendertest_tablesort", sort);
|
||||||
}
|
}
|
||||||
|
const buildDataSlowMode = debounce((table, images, data, sort, filter, exact_match) => {
|
||||||
|
buildData(table, images, data, sort, filter, exact_match);
|
||||||
|
}, ()=>{}, 250);
|
||||||
|
|
||||||
|
|
||||||
const saveToLocalStorage = debounce((key, value) => {
|
const saveToLocalStorage = debounce((key, value) => {
|
||||||
localStorage.setItem(key, value);
|
localStorage.setItem(key, value);
|
||||||
});
|
}, ()=>{}, 250);
|
||||||
const loadFromLocalStorage = (key) => {
|
const loadFromLocalStorage = (key, default_option) => {
|
||||||
const value = localStorage.getItem(key);
|
const value = localStorage.getItem(key);
|
||||||
if (isNaN(value)) {
|
if (isNaN(value)) {
|
||||||
switch(value) { // ugly textual localStorage
|
switch(value) { // ugly textual localStorage
|
||||||
@@ -186,16 +264,29 @@ const loadFromLocalStorage = (key) => {
|
|||||||
case "false":
|
case "false":
|
||||||
return false;
|
return false;
|
||||||
case "null":
|
case "null":
|
||||||
return null;
|
return (default_option === "" || default_option) ? default_option : null;
|
||||||
default:
|
default:
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
} else
|
||||||
|
if (value === null) {
|
||||||
|
return (default_option === "" || default_option) ? default_option : null;
|
||||||
|
} else
|
||||||
|
if (value === "") {
|
||||||
|
return value;
|
||||||
}
|
}
|
||||||
return parseFloat(value); // fix !!"0" = true
|
return parseFloat(value); // fix !!"0" = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
function uglyChecked(value) { // fast hack
|
||||||
|
return value ? {"checked": "checked"} : {};
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
window.onload = () => {
|
window.onload = () => {
|
||||||
|
const theme = loadFromLocalStorage("rendertest_theme", "");
|
||||||
|
|
||||||
const linkElements = document.querySelectorAll('link[rel^="stylesheet"][data-theme]');
|
const linkElements = document.querySelectorAll('link[rel^="stylesheet"][data-theme]');
|
||||||
function updateLinkRel(linkElements, id) {
|
function updateLinkRel(linkElements, id) {
|
||||||
for (const link of linkElements) {
|
for (const link of linkElements) {
|
||||||
@@ -209,20 +300,23 @@ window.onload = () => {
|
|||||||
let themes = [];
|
let themes = [];
|
||||||
for (const linkElement of linkElements) {
|
for (const linkElement of linkElements) {
|
||||||
const themeName = linkElement.getAttribute("data-theme");
|
const themeName = linkElement.getAttribute("data-theme");
|
||||||
const checked = !linkElement.rel.includes("alternate") ? {"checked": "checked"} : {};
|
const emojiTags = emojiToTag(linkElement.title);
|
||||||
|
let checked = uglyChecked(!linkElement.rel.includes("alternate"));
|
||||||
|
if (theme) {
|
||||||
|
checked = uglyChecked(theme === themeName);
|
||||||
|
}
|
||||||
themes.push(
|
themes.push(
|
||||||
Tag("label", null, null, [
|
Tag("label", null, null, [
|
||||||
Tag("input", {"type": "radio", "class": "theme-button", "id": themeName, "name": "theme", ...checked}, null, null,
|
Tag("input", {"type": "radio", "class": "theme-button", "id": themeName, "name": "theme", ...checked}, null, null,
|
||||||
"click", (e) => {
|
"click", (e) => {
|
||||||
updateLinkRel(linkElements, e.target.id);
|
updateLinkRel(linkElements, e.target.id);
|
||||||
|
saveToLocalStorage("rendertest_theme", e.target.id);
|
||||||
}),
|
}),
|
||||||
Text(linkElement.title)
|
...emojiTags
|
||||||
])
|
])
|
||||||
)
|
)
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
function changeAnimationDuration(newDuration) {
|
function changeAnimationDuration(newDuration) {
|
||||||
document.documentElement.style.setProperty('--animation-duration', newDuration + 'ms');
|
document.documentElement.style.setProperty('--animation-duration', newDuration + 'ms');
|
||||||
}
|
}
|
||||||
@@ -235,14 +329,24 @@ window.onload = () => {
|
|||||||
saveToLocalStorage("rendertest_switchfrequency", value);
|
saveToLocalStorage("rendertest_switchfrequency", value);
|
||||||
}
|
}
|
||||||
|
|
||||||
let isPaused = false;
|
let gridContainer, sidebarOptions, numberInput, rangeInput, table, images, vpaddin_input, filter, exactmatch_input;
|
||||||
let gridContainer, sidebarOptions, numberInput, rangeInput, table, images;
|
|
||||||
|
|
||||||
const tableSort = !!loadFromLocalStorage("rendertest_tablesort");
|
const switchFrequency = loadFromLocalStorage("rendertest_switchfrequency", 700);
|
||||||
const sidebarPos = loadFromLocalStorage("rendertest_sidebarpos");
|
let tableSort = loadFromLocalStorage("rendertest_tablesort", false);
|
||||||
|
const sidebarPos = loadFromLocalStorage("rendertest_sidebarpos", "left");
|
||||||
|
const sidebarMode = loadFromLocalStorage("rendertest_sidebarmode", "minimize");
|
||||||
|
const sidebarSize = loadFromLocalStorage("rendertest_sidebarsize", "default");
|
||||||
|
const vpadding = loadFromLocalStorage("rendertest_vpadding", true);
|
||||||
|
const all_diff = loadFromLocalStorage("rendertest_all_diff", false);
|
||||||
|
const diffMode = loadFromLocalStorage("rendertest_diffmode", "click");
|
||||||
|
const imageCompareMode = loadFromLocalStorage("rendertest_imagecomparemode", "switch");
|
||||||
|
const imagePosition = loadFromLocalStorage("rendertest_imageposition", "center");
|
||||||
|
const filter_value = loadFromLocalStorage("rendertest_filter", "");
|
||||||
|
const exactMatch = loadFromLocalStorage("rendertest_exactmatch", false);
|
||||||
|
let isPaused = loadFromLocalStorage("rendertest_paused", false);
|
||||||
|
|
||||||
function uglyChecked(value) { // fast hack
|
if (theme) {
|
||||||
return value ? {"checked": "checked"} : {};
|
updateLinkRel(linkElements, theme);
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: simplification and bindings
|
// TODO: simplification and bindings
|
||||||
@@ -262,12 +366,18 @@ window.onload = () => {
|
|||||||
Text(" Show diff mode on")
|
Text(" Show diff mode on")
|
||||||
]),
|
]),
|
||||||
Tag("label", null, null, [
|
Tag("label", null, null, [
|
||||||
Tag("input", {"type": "radio", "name": "diff_mode", "value": "click", "checked": "checked"}),
|
Tag("input", {"type": "radio", "name": "diff_mode", "value": "click", ...uglyChecked(diffMode === "click")}, null, null, "input", (e) => {
|
||||||
|
images.classList.toggle("diff_separate");
|
||||||
|
saveToLocalStorage("rendertest_diffmode", e.target.value);
|
||||||
|
}),
|
||||||
Tag("span", {"class": "emoji"}, "🖱"),
|
Tag("span", {"class": "emoji"}, "🖱"),
|
||||||
Text(" Click (LMB)")
|
Text(" Click (LMB)")
|
||||||
]),
|
]),
|
||||||
Tag("label", null, null, [
|
Tag("label", null, null, [
|
||||||
Tag("input", {"type": "radio", "name": "diff_mode", "value": "separate", "disabled": "disabled"}),
|
Tag("input", {"type": "radio", "name": "diff_mode", "value": "separate", ...uglyChecked(diffMode === "separate")}, null, null, "input", (e) => {
|
||||||
|
images.classList.toggle("diff_separate");
|
||||||
|
saveToLocalStorage("rendertest_diffmode", e.target.value);
|
||||||
|
}),
|
||||||
Tag("span", {"class": "emoji"}, "🎏"),
|
Tag("span", {"class": "emoji"}, "🎏"),
|
||||||
Text(" Separate")
|
Text(" Separate")
|
||||||
])
|
])
|
||||||
@@ -275,15 +385,27 @@ window.onload = () => {
|
|||||||
Tag("div", null, null, [
|
Tag("div", null, null, [
|
||||||
Tag("b", null, null, [
|
Tag("b", null, null, [
|
||||||
Tag("span", {"class": "emoji"}, "🤼"),
|
Tag("span", {"class": "emoji"}, "🤼"),
|
||||||
Text(" Image compare mode")
|
Text(" Image compare mode")
|
||||||
]),
|
]),
|
||||||
Tag("label", null, null, [
|
Tag("label", null, null, [
|
||||||
Tag("input", {"type": "radio", "name": "compare_mode", "value": "switch", "checked": "checked"}),
|
Tag("input", {"type": "radio", "name": "compare_mode", "value": "switch", ...uglyChecked(imageCompareMode === "switch")}, null, null, "input", (e) => {
|
||||||
|
images.classList.toggle("split_compare");
|
||||||
|
saveToLocalStorage("rendertest_imagecomparemode", e.target.value);
|
||||||
|
for (let blocks of images.querySelectorAll(".block-gold")) {
|
||||||
|
blocks.removeAttribute("style"); // FIXME
|
||||||
|
}
|
||||||
|
for (let seps of images.querySelectorAll(".separator")) {
|
||||||
|
seps.removeAttribute("style"); // FIXME
|
||||||
|
}
|
||||||
|
}),
|
||||||
Tag("span", {"class": "emoji"}, "🎞"),
|
Tag("span", {"class": "emoji"}, "🎞"),
|
||||||
Text(" Switch images")
|
Text(" Switch images")
|
||||||
]),
|
]),
|
||||||
Tag("label", {"title": "under construction"}, null, [
|
Tag("label", {"title": "under construction"}, null, [
|
||||||
Tag("input", {"type": "radio", "name": "compare_mode", "value": "split", "disabled": "disabled"}),
|
Tag("input", {"type": "radio", "name": "compare_mode", "value": "split", ...uglyChecked(imageCompareMode === "split")}, null, null, "input", (e) => {
|
||||||
|
images.classList.toggle("split_compare");
|
||||||
|
saveToLocalStorage("rendertest_imagecomparemode", e.target.value);
|
||||||
|
}),
|
||||||
Tag("span", {"class": "emoji"}, "🪓"),
|
Tag("span", {"class": "emoji"}, "🪓"),
|
||||||
Text(" Split images")
|
Text(" Split images")
|
||||||
])
|
])
|
||||||
@@ -293,14 +415,15 @@ window.onload = () => {
|
|||||||
Tag("span", {"class": "emoji"}, "🎢"),
|
Tag("span", {"class": "emoji"}, "🎢"),
|
||||||
Text(" Speed switch image")
|
Text(" Speed switch image")
|
||||||
]),
|
]),
|
||||||
rangeInput = Tag("input", {"type": "range", "style": "width: 140px;", "min": "10", "max": "1000", "value": "700"}, null, null, "input", syncSliderValues),
|
rangeInput = Tag("input", {"type": "range", "style": "width: 140px;", "min": "10", "max": "1000", "value": switchFrequency}, null, null, "input", syncSliderValues),
|
||||||
numberInput = Tag("input", {"type": "number", "size": "5", "min": "10", "max": "1000", "value": "700"}, null, null, "input", syncSliderValues),
|
numberInput = Tag("input", {"type": "number", "size": "5", "min": "10", "max": "1000", "value": switchFrequency}, null, null, "input", syncSliderValues),
|
||||||
Text(" ms "),
|
Text(" ms "),
|
||||||
Tag("button", null, "pause", null, "click", (e) => {
|
Tag("button", null, isPaused ? "resume" : "pause", null, "click", (e) => {
|
||||||
//e.target.textContent = isPaused ? "❄ pause" : "🔥 resume";
|
//e.target.textContent = isPaused ? "❄ pause" : "🔥 resume";
|
||||||
e.target.textContent = isPaused ? "pause" : "resume";
|
e.target.textContent = isPaused ? "pause" : "resume";
|
||||||
changeAnimationDuration(isPaused ? numberInput.value : 0);
|
changeAnimationDuration(isPaused ? numberInput.value : 0);
|
||||||
isPaused = !isPaused;
|
isPaused = !isPaused;
|
||||||
|
saveToLocalStorage("rendertest_paused", isPaused);
|
||||||
})
|
})
|
||||||
]),
|
]),
|
||||||
/* future
|
/* future
|
||||||
@@ -315,20 +438,23 @@ window.onload = () => {
|
|||||||
Text(" Sidebar")
|
Text(" Sidebar")
|
||||||
]),
|
]),
|
||||||
Tag("label", null, null, [
|
Tag("label", null, null, [
|
||||||
Tag("input", {"type": "radio", "name": "sidebar-mode", "value": "minimize", "checked": "checked"}, null, null, "input", (e) => {
|
Tag("input", {"type": "radio", "name": "sidebar-mode", "value": "minimize", ...uglyChecked(sidebarMode === "minimize")}, null, null, "input", (e) => {
|
||||||
sidebarOptions.classList.toggle("sticky")
|
sidebarOptions.classList.toggle("sticky");
|
||||||
|
saveToLocalStorage("rendertest_sidebarmode", e.target.value);
|
||||||
|
|
||||||
}),
|
}),
|
||||||
Text(" auto minimize")
|
Text(" auto minimize")
|
||||||
]),
|
]),
|
||||||
Tag("label", null, null, [
|
Tag("label", null, null, [
|
||||||
Tag("input", {"type": "radio", "name": "sidebar-mode", "value": "always"}, null, null, "input", (e) => {
|
Tag("input", {"type": "radio", "name": "sidebar-mode", "value": "always", ...uglyChecked(sidebarMode === "always")}, null, null, "input", (e) => {
|
||||||
sidebarOptions.classList.toggle("sticky")
|
sidebarOptions.classList.toggle("sticky");
|
||||||
|
saveToLocalStorage("rendertest_sidebarmode", e.target.value);
|
||||||
}),
|
}),
|
||||||
Text(" show always")
|
Text(" show always")
|
||||||
]),
|
]),
|
||||||
Tag("ul", {"class": "list"}, null, [
|
Tag("ul", {"class": "list"}, null, [
|
||||||
Tag("li", null, null, [
|
Tag("li", null, null, [
|
||||||
Tag("span", {"class": "emoji"}, "🧲"),
|
Tag("span", {"class": "emoji Noto"}, "🧲"),
|
||||||
Text(" position"),
|
Text(" position"),
|
||||||
Tag("label", null, null, [
|
Tag("label", null, null, [
|
||||||
Tag("input", {"type": "radio", "name": "sidebar_pos", "value": "left", ...uglyChecked(sidebarPos == "left")}, null, null, "input", (e) => {
|
Tag("input", {"type": "radio", "name": "sidebar_pos", "value": "left", ...uglyChecked(sidebarPos == "left")}, null, null, "input", (e) => {
|
||||||
@@ -349,14 +475,16 @@ window.onload = () => {
|
|||||||
Tag("span", {"class": "emoji"}, "📏"),
|
Tag("span", {"class": "emoji"}, "📏"),
|
||||||
Text(" size"),
|
Text(" size"),
|
||||||
Tag("label", null, null, [
|
Tag("label", null, null, [
|
||||||
Tag("input", {"type": "radio", "name": "sidebar-size", "value": "always", "checked": "checked"}, null, null, "input", (e) => {
|
Tag("input", {"type": "radio", "name": "sidebar-size", "value": "default", ...uglyChecked(sidebarSize == "default")}, null, null, "input", (e) => {
|
||||||
document.body.classList.toggle("min");
|
document.body.classList.toggle("mini");
|
||||||
|
saveToLocalStorage("rendertest_sidebarsize", e.target.value);
|
||||||
}),
|
}),
|
||||||
Text(" default")
|
Text(" default")
|
||||||
]),
|
]),
|
||||||
Tag("label", null, null, [
|
Tag("label", null, null, [
|
||||||
Tag("input", {"type": "radio", "name": "sidebar-size", "value": "minimize"}, null, null, "input", (e) => {
|
Tag("input", {"type": "radio", "name": "sidebar-size", "value": "mini", ...uglyChecked(sidebarSize == "mini")}, null, null, "input", (e) => {
|
||||||
document.body.classList.toggle("min");
|
document.body.classList.toggle("mini");
|
||||||
|
saveToLocalStorage("rendertest_sidebarsize", e.target.value);
|
||||||
}),
|
}),
|
||||||
Text(" mini")
|
Text(" mini")
|
||||||
])
|
])
|
||||||
@@ -369,19 +497,26 @@ window.onload = () => {
|
|||||||
Text(" Image position")
|
Text(" Image position")
|
||||||
]),
|
]),
|
||||||
Tag("label", null, null, [
|
Tag("label", null, null, [
|
||||||
Tag("input", {"type": "radio", "name": "image_position", "value": "relative", "disabled": "disabled"}),
|
Tag("input", {"type": "radio", "name": "image_position", "value": "relative", ...uglyChecked(imagePosition === "relative")}, null, null, "input", (e) => {
|
||||||
|
images.classList.toggle("center");
|
||||||
|
saveToLocalStorage("rendertest_imageposition", e.target.value);
|
||||||
|
}),
|
||||||
Text(" relative")
|
Text(" relative")
|
||||||
]),
|
]),
|
||||||
Tag("label", null, null, [
|
Tag("label", null, null, [
|
||||||
Tag("input", {"type": "radio", "name": "image_position", "value": "center", "checked": "checked"}),
|
Tag("input", {"type": "radio", "name": "image_position", "value": "center", ...uglyChecked(imagePosition === "center")}, null, null, "input", (e) => {
|
||||||
|
images.classList.toggle("center");
|
||||||
|
saveToLocalStorage("rendertest_imageposition", e.target.value);
|
||||||
|
}),
|
||||||
Text(" center ")
|
Text(" center ")
|
||||||
]),
|
]),
|
||||||
Tag("b", null, null, [
|
Tag("b", null, null, [
|
||||||
Tag("span", {"class": "emoji"}, "🖼"),
|
Tag("span", {"class": "emoji Noto"}, "🖼"),
|
||||||
Tag("label", null, null, [
|
Tag("label", null, null, [
|
||||||
Text(" vertical padding"),
|
Text(" vertical padding"),
|
||||||
Tag("input", {"type": "checkbox", "name": "all_diff", "checked": "checked"}, null, null, "input", (e) => {
|
vpaddin_input = Tag("input", {"type": "checkbox", "name": "vpadding", ...uglyChecked(vpadding)}, null, null, "change", (e) => {
|
||||||
images.classList.toggle("padding");
|
images.classList.toggle("vpadding");
|
||||||
|
saveToLocalStorage("rendertest_vpadding", e.target.checked);
|
||||||
})
|
})
|
||||||
])
|
])
|
||||||
])
|
])
|
||||||
@@ -391,7 +526,12 @@ window.onload = () => {
|
|||||||
Tag("span", {"class": "emoji"}, "📷"),
|
Tag("span", {"class": "emoji"}, "📷"),
|
||||||
Tag("label", null, null, [
|
Tag("label", null, null, [
|
||||||
Text(" Toggle diff for all"),
|
Text(" Toggle diff for all"),
|
||||||
Tag("input", {"type": "checkbox", "name": "all_diff", "disabled": "disabled"})
|
Tag("input", {"type": "checkbox", "name": "all_diff", ...uglyChecked(all_diff)}, null, null, "change", (e) => {
|
||||||
|
images.classList.toggle("all_diff");
|
||||||
|
//vpaddin_input.disabled = !vpaddin_input.disabled;
|
||||||
|
//images.classList.toggle("vpadding");
|
||||||
|
saveToLocalStorage("rendertest_all_diff", e.target.checked);
|
||||||
|
})
|
||||||
])
|
])
|
||||||
])
|
])
|
||||||
]),
|
]),
|
||||||
@@ -402,13 +542,16 @@ window.onload = () => {
|
|||||||
]),
|
]),
|
||||||
Tag("label", null, null, [
|
Tag("label", null, null, [
|
||||||
Tag("input", {"type": "radio", "name": "sort_table", "value": "yes", ...uglyChecked(tableSort)}, null, null, "input", (e) => {
|
Tag("input", {"type": "radio", "name": "sort_table", "value": "yes", ...uglyChecked(tableSort)}, null, null, "input", (e) => {
|
||||||
buildData(table, images, data, true);
|
buildData(table, images, data, true, filter.value, exactmatch_input.checked);
|
||||||
|
// TODO: rewrite use reactive programming
|
||||||
|
tableSort = true;
|
||||||
}),
|
}),
|
||||||
Text(" yes")
|
Text(" yes")
|
||||||
]),
|
]),
|
||||||
Tag("label", null, null, [
|
Tag("label", null, null, [
|
||||||
Tag("input", {"type": "radio", "name": "sort_table", "value": "no", ...uglyChecked(!tableSort)}, null, null, "input", (e) => {
|
Tag("input", {"type": "radio", "name": "sort_table", "value": "no", ...uglyChecked(!tableSort)}, null, null, "input", (e) => {
|
||||||
buildData(table, images, data, false);
|
buildData(table, images, data, false, filter.value, exactmatch_input.checked);
|
||||||
|
tableSort = false;
|
||||||
}),
|
}),
|
||||||
Text(" no")
|
Text(" no")
|
||||||
])
|
])
|
||||||
@@ -416,6 +559,19 @@ window.onload = () => {
|
|||||||
]),
|
]),
|
||||||
Tag("div", {"class": "panel", "id": "table"}, null, [
|
Tag("div", {"class": "panel", "id": "table"}, null, [
|
||||||
Tag("h2", null, "List of things that are not perfect"),
|
Tag("h2", null, "List of things that are not perfect"),
|
||||||
|
Tag("label", {"class": "filter sticky"}, "Filter", [
|
||||||
|
filter = Tag("input", {"type": "input", "name": "filter", "value": filter_value}, null, null, "input", (e) => {
|
||||||
|
saveToLocalStorage("rendertest_filter", e.target.value);
|
||||||
|
buildDataSlowMode(table, images, data, tableSort, e.target.value, exactmatch_input.checked);
|
||||||
|
}),
|
||||||
|
Tag("label", null, null, [
|
||||||
|
exactmatch_input = Tag("input", {"type": "checkbox", "name": "exactmatch", ...uglyChecked(exactMatch)}, null, null, "change", (e) => {
|
||||||
|
saveToLocalStorage("rendertest_exactmatch", e.target.checked);
|
||||||
|
buildDataSlowMode(table, images, data, tableSort, filter.value, exactmatch_input.checked);
|
||||||
|
}),
|
||||||
|
Text("exact match")
|
||||||
|
])
|
||||||
|
]),
|
||||||
table = Tag("div", {"id": "fail_table"})
|
table = Tag("div", {"id": "fail_table"})
|
||||||
])
|
])
|
||||||
]),
|
]),
|
||||||
@@ -423,19 +579,93 @@ window.onload = () => {
|
|||||||
Tag("h1", null, "Rendertest report"),
|
Tag("h1", null, "Rendertest report"),
|
||||||
Tag("h2", null, "Summary"),
|
Tag("h2", null, "Summary"),
|
||||||
Tag("div", {"id": "summary"}, null, [...buildSummary(data)]),
|
Tag("div", {"id": "summary"}, null, [...buildSummary(data)]),
|
||||||
Tag("h2", null, "Images of things that are not perfect"),
|
Tag("h2", null, "Images of things that are not perfect ", [
|
||||||
images = Tag("div", {"id": "fail_images", "class": "padding"})
|
Tag("span", {"class": "emoji"}, "⤵")
|
||||||
|
]),
|
||||||
|
images = Tag("div", {"id": "fail_images", "class": "vpadding"})
|
||||||
])
|
])
|
||||||
])
|
])
|
||||||
document.body.appendChild(gridContainer);
|
document.body.appendChild(gridContainer);
|
||||||
|
|
||||||
buildData(table, images, data, tableSort);
|
buildData(table, images, data, tableSort, filter_value, exactmatch_input.checked);
|
||||||
|
|
||||||
// TODO: remove this
|
// TODO: remove this
|
||||||
if (sidebarPos == "right") {
|
if (sidebarPos === "right") {
|
||||||
gridContainer.classList.toggle("reversed");
|
gridContainer.classList.toggle("reversed");
|
||||||
}
|
}
|
||||||
|
if (sidebarMode === "always") {
|
||||||
|
sidebarOptions.classList.toggle("sticky");
|
||||||
|
}
|
||||||
|
if (sidebarSize === "mini") {
|
||||||
|
document.body.classList.toggle("mini");
|
||||||
|
}
|
||||||
|
if (imagePosition === "center") {
|
||||||
|
images.classList.toggle("center");
|
||||||
|
}
|
||||||
|
if (!vpadding) {
|
||||||
|
images.classList.toggle("vpadding");
|
||||||
|
}
|
||||||
|
if (all_diff) { // TODO: better UX
|
||||||
|
images.classList.toggle("all_diff");
|
||||||
|
//vpaddin_input.disabled = !vpaddin_input.disabled;
|
||||||
|
//images.classList.toggle("vpadding");
|
||||||
|
}
|
||||||
|
if (diffMode === "separate") {
|
||||||
|
images.classList.toggle("diff_separate");
|
||||||
|
}
|
||||||
|
if (imageCompareMode === "split") {
|
||||||
|
images.classList.toggle("split_compare");
|
||||||
|
}
|
||||||
|
changeAnimationDuration(isPaused ? 0 : numberInput.value);
|
||||||
|
|
||||||
|
// stop animation when not in the viewport
|
||||||
|
function handleIntersection(entries, observer) {
|
||||||
|
for (let entry of entries) {
|
||||||
|
if (!entry.isIntersecting) {
|
||||||
|
entry.target.classList.add("anim_off");
|
||||||
|
} else {
|
||||||
|
entry.target.classList.remove("anim_off");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// TODO: auto subs&unsubs
|
||||||
|
|
||||||
|
const observer = new IntersectionObserver(handleIntersection, {
|
||||||
|
root: null,
|
||||||
|
threshold: 0.1
|
||||||
|
});
|
||||||
|
for (let element of document.querySelectorAll(".block-gold")) {
|
||||||
|
observer.observe(element);
|
||||||
|
}
|
||||||
|
|
||||||
|
function getPointerPositionPercentage(container, event) {
|
||||||
|
const rect = container.getBoundingClientRect();
|
||||||
|
let x;
|
||||||
|
switch (event.type) {
|
||||||
|
case "mousemove":
|
||||||
|
x = event.clientX - rect.left;
|
||||||
|
break;
|
||||||
|
case "touchmove": // TODO: testing
|
||||||
|
x = event.touches[0].clientX - rect.left;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
const percent = (x / rect.width) * 100;
|
||||||
|
return percent;
|
||||||
|
}
|
||||||
|
images.addEventListener("mousemove", (event) => {
|
||||||
|
if (images.classList.contains("split_compare")) {
|
||||||
|
const target = event.target.closest(".image-container");
|
||||||
|
if (target) {
|
||||||
|
event.preventDefault();
|
||||||
|
const percent = getPointerPositionPercentage(target, event);
|
||||||
|
const separator = target.querySelector(".separator");
|
||||||
|
const compare = target.querySelector(".block-gold");
|
||||||
|
compare.style.width = `${percent}%`;
|
||||||
|
separator.style.left = `${percent}%`;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
body {
|
body {
|
||||||
background: black;
|
background: black;
|
||||||
color: #EEE;
|
color: #EEE;
|
||||||
scrollbar-color: #67005c #222;
|
scrollbar-color: #992a8d #222; /*#5e0080? #67005C?*/
|
||||||
}
|
}
|
||||||
|
|
||||||
.panel {
|
.panel {
|
||||||
@@ -11,7 +11,7 @@ body {
|
|||||||
color: cornflowerblue;
|
color: cornflowerblue;
|
||||||
}
|
}
|
||||||
|
|
||||||
.meta-block h2 {
|
.meta-block h3 {
|
||||||
color: gold;
|
color: gold;
|
||||||
border-top: 3px gray solid;
|
border-top: 3px gray solid;
|
||||||
}
|
}
|
||||||
@@ -41,5 +41,9 @@ a, a:visited {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.content {
|
.content {
|
||||||
scrollbar-color: #e100ca #222;
|
scrollbar-color: gold #222; /* #e100ca */
|
||||||
|
}
|
||||||
|
|
||||||
|
.filter {
|
||||||
|
background: #222;
|
||||||
}
|
}
|
||||||
@@ -5,24 +5,24 @@ body {
|
|||||||
|
|
||||||
.panel {
|
.panel {
|
||||||
background: #FFF;
|
background: #FFF;
|
||||||
border: #EEE 1px solid;
|
border: #e5f0ff 1px solid;
|
||||||
border-radius: 10px;
|
border-radius: 10px;
|
||||||
color: cornflowerblue;
|
color: #2d6bdb;
|
||||||
}
|
}
|
||||||
|
|
||||||
.meta-block h2 {
|
.meta-block h3 {
|
||||||
color: goldenrod;
|
color: goldenrod;
|
||||||
border-top: 3px lightgray solid;
|
border-top: 3px lightgray solid;
|
||||||
}
|
}
|
||||||
|
|
||||||
table {
|
table {
|
||||||
color: #eb4300;
|
color: #eb4300;
|
||||||
border: #e100ca 1px solid;
|
border: #ffa6f6 1px solid;
|
||||||
border-radius: 6px;
|
border-radius: 6px;
|
||||||
}
|
}
|
||||||
th {
|
th {
|
||||||
background: oklch(62.5% 0.291 308.12);
|
background: oklch(62.5% 0.291 308.12);
|
||||||
background: linear-gradient(0deg,#b540ff,cornflowerblue);
|
background: linear-gradient(0deg,#d99dff,#c4d7f9);
|
||||||
/* box-shadow: 3px 3px 3px 3px rgba(0, 0, 0, 0.5);*/
|
/* box-shadow: 3px 3px 3px 3px rgba(0, 0, 0, 0.5);*/
|
||||||
}
|
}
|
||||||
a, a:visited {
|
a, a:visited {
|
||||||
@@ -33,3 +33,6 @@ a, a:visited {
|
|||||||
:root {
|
:root {
|
||||||
/*--font-gradient: linear-gradient(90deg,#7209d4,#2832d4 33%,#00a5b2);*/
|
/*--font-gradient: linear-gradient(90deg,#7209d4,#2832d4 33%,#00a5b2);*/
|
||||||
}
|
}
|
||||||
|
.filter {
|
||||||
|
background: #FFF;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user