-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
131 lines (114 loc) · 6.31 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
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
122
123
124
125
126
127
128
129
130
131
<html><head>
<title>RoboCon Images</title>
<link rel="stylesheet" type="text/css" href="style.css"/>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
</head>
<body contenteditable="false">
<!-- Header -->
<div class="backgroundContainer">
<div class="header">
<h1 class="home"><a href="http://hr-robocon.org/">Home</a></h1>
<a href="images.zip" download><button class="some-btn"><i class="fa fa-download"></i> Download in full res</button></a>
<a href="RoboticsImages.zip" download><button class="all-btn"><i class="fa fa-download"></i> Download all in full res (+4GB)</button></a>
</div>
</div>
<!-- Photo Grid -->
<div class="gallery">
<div class="row">
<div class="column">
<img class='myImg' data-src='selected images/013-C3140COMPRSD.jpg'/>
<img class='myImg' data-src='selected images/003-C3140-768x512COMPRSD.jpg'/>
<img class='myImg' data-src='selected images/004-C3140-768x512COMPRSD.jpg'/>
<img class='myImg' data-src='selected images/007-C3140-768x512COMPRSD.jpg'/>
<img class='myImg' data-src='selected images/010-C3140COMPRSD.jpg'/>
<img class='myImg' data-src='selected images/056-C3140-768x512COMPRSD.jpg'/>
<img class='myImg' data-src='selected images/058-C3140COMPRSD.jpg'/>
<img class='myImg' data-src='selected images/063-C3140COMPRSD.jpg'/>
<img class='myImg' data-src='selected images/069-C3140COMPRSD.jpg'/>
<img class='myImg' data-src='selected images/076-C3140-768x512COMPRSD.jpg'/>
<img class='myImg' data-src='selected images/081-C3140COMPRSD.jpg'/>
<img class='myImg' data-src='selected images/098-C3140COMPRSD.jpg'/>
<img class='myImg' data-src='selected images/101-C3140COMPRSD.jpg'/>
<img class='myImg' data-src='selected images/106-C3140-768x512COMPRSD.jpg'/>
<img class='myImg' data-src='selected images/IMG_2956-768x512COMPRSD.jpg'/>
<img class='myImg' data-src='selected images/IMG_2963-768x512COMPRSD.jpg'/>
</div>
<div class="column">
<img class='myImg' data-src='selected images/IMG_3167COMPRSD.jpg'/>
<img class='myImg' data-src='selected images/IMG_3192-768x512COMPRSD.jpg'/>
<img class='myImg' data-src='selected images/IMG_3197COMPRSD.jpg'/>
<img class='myImg' data-src='selected images/IMG_3223COMPRSD.jpg'/>
<img class='myImg' data-src='selected images/IMG_3239COMPRSD.jpg'/>
<img class='myImg' data-src='selected images/IMG_3316COMPRSD.jpg'/>
<img class='myImg' data-src='selected images/IMG_3390COMPRSD.jpg'/>
<img class='myImg' data-src='selected images/RoboCon 2018 055COMPRSD.jpg'/>
<img class='myImg' data-src='selected images/RoboCon 2018 062COMPRSD.jpg'/>
<img class='myImg' data-src='selected images/RoboCon 2018 096COMPRSD.jpg'/>
<img class='myImg' data-src='selected images/RoboCon-2018-027-768x512COMPRSD.jpg'/>
<img class='myImg' data-src='selected images/RoboCon-2018-036-768x363COMPRSD.jpg'/>
<img class='myImg' data-src='selected images/RoboCon-2018-039-768x617COMPRSD.jpg'/>
<img class='myImg' data-src='selected images/109-C3140-768x512COMPRSD.jpg'/>
<img class='myImg' data-src='selected images/112-C3140-768x512COMPRSD.jpg'/>
<img class='myImg' data-src='selected images/018-C3140COMPRSD.jpg'/>
<img class='myImg' data-src='selected images/024-C3140COMPRSD.jpg'/>
</div>
<div class="column">
<img class='myImg' data-src='selected images/RoboCon-2018-050-768x768COMPRSD.jpg'/>
<img class='myImg' data-src='selected images/IMG_2980-768x512COMPRSD.jpg'/>
<img class='myImg' data-src='selected images/044-C3140COMPRSD.jpg'/>
<img class='myImg' data-src='selected images/IMG_3001-768x512COMPRSD.jpg'/>
<img class='myImg' data-src='selected images/IMG_3013COMPRSD.jpg'/>
<img class='myImg' data-src='selected images/IMG_3060-768x512COMPRSD.jpg'/>
<img class='myImg' data-src='selected images/IMG_3065-768x512COMPRSD.jpg'/>
<img class='myImg' data-src='selected images/IMG_3068-768x512COMPRSD.jpg'/>
<img class='myImg' data-src='selected images/IMG_3075COMPRSD.jpg'/>
<img class='myImg' data-src='selected images/IMG_3080COMPRSD.jpg'/>
<img class='myImg' data-src='selected images/IMG_3085COMPRSD.jpg'/>
<img class='myImg' data-src='selected images/IMG_3089COMPRSD.jpg'/>
<img class='myImg' data-src='selected images/IMG_3111-768x512COMPRSD.jpg'/>
<img class='myImg' data-src='selected images/IMG_3113-768x512COMPRSD.jpg'/>
<img class='myImg' data-src='selected images/IMG_3123COMPRSD.jpg'/>
<img class='myImg' data-src='selected images/IMG_3124COMPRSD.jpg'/>
<img class='myImg' data-src='selected images/IMG_3129COMPRSD.jpg'/>
<img class='myImg' data-src='selected images/030-C3140COMPRSD.jpg'/>
</div>
</div>
</div>
<!-- The Modal -->
<div id="myModal" class="modal">
<!-- The Close Button -->
<span class="close" onclick="document.getElementById('myModal').style.display='none'">×</span>
<!-- Modal Content (The Image) -->
<img class="modal-content" id="img01">
<!-- Modal Caption (Image Text) -->
<div id="caption"></div>
</div>
<script>
// Get the modal
var modal = document.getElementById('myModal');
// Get the image and insert it inside the modal - use its "alt" text as a caption
var img = $('.myImg');
var modalImg = $("#img01");
var captionText = document.getElementById("caption");
$('.myImg').click(function(){
modal.style.display = "block";
var newSrc = this.src;
modalImg.attr('src', newSrc);
captionText.innerHTML = this.alt;
});
// Get the <span> element that closes the modal
var span = document.getElementsByClassName("close")[0];
// When the user clicks on <span> (x), close the modal
span.onclick = function() {
modal.style.display = "none";
};
[].forEach.call(document.querySelectorAll('img[data-src]'), function(img) {
img.setAttribute('src', img.getAttribute('data-src'));
img.onload = function() {
img.removeAttribute('data-src');
};
});
</script>
</body>
</html>