-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrobots.html
More file actions
122 lines (112 loc) · 4.17 KB
/
robots.html
File metadata and controls
122 lines (112 loc) · 4.17 KB
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
---
layout: pages-fixed-footer
title: Our Robots
permalink: /robots/
---
<style>
div.tab-content {
overflow: scroll;
}
div.col-md-4 {
padding-bottom: 400px
}
</style>
<link rel="stylesheet" type="text/css" href="/assets/css/robots.stylesheet.css">
<div class="container">
<div class = "col-md-12">
<h2 class="robots-title">Our Robots</h2>
<hr class="top-hr"/>
</div>
</div>
<div class="container">
<div class="col-md-2">
<ul class="nav nav-pills nav-stacked">
<!-- <li><a class="menu" target="_blank" href="https://workbench.grabcad.com/workbench/projects/gckFeW7Ut3LCbbNpmqIshOdmhttRpTgMhd59ERBNmHdYgO#/space/gcCtYPA5YAzNjKz3z[…]AKnqbWIOMsQzbnkn1qi1P3nPF">2022</a></li> -->
<li class="active"><a class="menu" data-toggle="tab" href="#2023">2023</a></li>
<li><a class="menu" data-toggle="tab" href="#2022">2022</a></li>
<li><a class="menu" data-toggle="tab" href="#2020">2020</a></li>
<li><a class="menu" data-toggle="tab" href="#2019">2019</a></li>
<li><a class="menu" data-toggle="tab" href="#2018">2018</a></li>
<li><a class="menu" data-toggle="tab" href="#2017">2017</a></li>
<li><a class="menu" data-toggle="tab" href="#2016">2016</a></li>
</ul>
</div>
<!-- loops through each robot -->
<div class="tab-content">
{% for item in site.data.robots %}
<div class="tab-pane fade in {{item.active}}" id="{{item.year}}">
<div class="col-md-4">
<h3>{{item.title}}</h3>
{% if item.title == "Forseti" %}
<img style="display:inline;" class="img-responsive forseti-down" src="{{item.image}}">
<img style="display:none;" class="img-responsive forseti-up" src="{{item.image2}}">
<button type="button" class="btn btn-primary forseti" onclick="switchImageForseti()">Toggle Elevator</button>
{% elsif item.title == "Vali" %}
<div style="display:none;" class="sketchfab-embed-wrapper vali-cad"><iframe style="position: relative; width: 100%;" height="284" src="https://sketchfab.com/models/f20cfe650e484c748ef532f702fd8d0b/embed" frameborder="0" allowvr allowfullscreen mozallowfullscreen="true" webkitallowfullscreen="true" onmousewheel=""></iframe></div>
<div class="vali-img"><img class="img-responsive" src="{{item.image}}"></div>
<button id="cad" type="button" class="btn btn-primary vali" onclick="switchCadVali(this.id)">View CAD</button>
{% else %}
<div><img class="img-responsive" src="{{item.image}}"></div>
{% endif %}
</div>
<div class="col-md-6">
<div class="row">
<div class="col-md-6 inner">
<h4>Specifications</h4>
<ul class="unstyled">
<!-- loops through robot specifications -->
{% for spec in item.Specifications %}
<li class="specifications"><span class="label">{{spec.specname}}</span> {{spec.spec}}</li>
{% endfor %}
</ul>
</div>
<div class="col-md-6 inner">
<h4>Competition History</h4>
<ul class="unstyled">
<!-- loops through each competition -->
{% for comp in item.CompHistory %}
<li class="specifications"><span class="label">{{comp.competition}}</span> {{comp.achievement}}</li>
{% endfor %}
</ul>
</div>
</div>
<div class="row">
<div class="col-md-12 inner">
<h4>Robot Abilities</h4>
<ul>
{% for abilities in item.RobotAbilities %}
<li class="abilities">{{abilities.ability}}
{% endfor %}
</ul>
</div>
</div>
</div>
</div>
{% endfor %}
</div>
</div>
<script>
var status= "down";
function switchImageForseti(){
if (status == "down") {
$("img.forseti-down").css("display", "none");
$("img.forseti-up").css("display", "inline");
status = "up";
} else if (status == "up") {
$("img.forseti-up").css("display", "none");
$("img.forseti-down").css("display", "inline");
status = "down";
}
}
function switchCadVali(type){
if (type == "cad") {
$('div.vali-img').css('display', 'none');
$('div.vali-cad').css('display', 'inline');
$('button.vali').attr('id', "image").html("View Image");
} else if (type == "image") {
$('div.vali-cad').css('display', 'none');
$('div.vali-img').css('display', 'inline');
$('button.vali').attr('id', "cad").html("View CAD");
}
}
</script>