forked from adobe/USD-Fileformat-plugins
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
63 lines (59 loc) · 1.77 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
---
---
<!DOCTYPE html>
<html>
<head>
<title>Test Results</title>
<style>
.image-container {
float: left;
width: 40%;
margin-bottom: 20px;
}
.image-container p {
margin-top: 4px;
}
.usd-checker-result {
font-weight: bold;
color: green;
}
.usd-checker-failed {
color: red;
}
.usd-checker-icon {
font-size: 24px;
}
</style>
</head>
<body>
<h1>Test Results</h1>
{% assign platforms = 'Windows,Darwin,Linux' | split: ',' %}
{% assign fileformats = 'fbx,gltf,obj,ply,sbsar,stl' | split: ',' %}
{% for platform in platforms %}
<h2>{{ platform }}</h2>
{% for fileformat in fileformats %}
<h3>{{ fileformat }}</h3>
<div>
{% for image in site.static_files %}
{% assign image_path = 'test/baseline/' | append: platform | append: '/' | append: fileformat %}
{% if image.path contains image_path %}
{% unless image.path contains 'usd_checker_results.json' %}
<div class="image-container">
<img src="{{ site.baseurl }}{{ image.path }}" alt="{{ image.name }}" width="200">
<p>{{ image.name }}</p>
<p class="usd-checker-result" id="result-{{ platform }}-{{ fileformat }}-{{ image.name }}">
<span class="usd-checker-icon" id="icon-{{ platform }}-{{ fileformat }}-{{ image.name }}"></span>
</p>
</div>
{% endunless %}
{% endif %}
{% endfor %}
<div style="clear: both;"></div> <!-- Clear the float -->
</div>
{% unless fileformat == 'sbsar' %}
<a href="{{ site.baseurl }}/test/baseline/{{ platform }}/{{ fileformat }}/usd_checker_results.json" target="_blank">USD Checker Results</a>
{% endunless %}
{% endfor %}
{% endfor %}
</body>
</html>