-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathoffside.html
More file actions
91 lines (83 loc) · 3.44 KB
/
offside.html
File metadata and controls
91 lines (83 loc) · 3.44 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>VAR</title>
<link rel="stylesheet" href="css/style.css">
<link rel="icon" href="assets/var.png">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css">
</head>
<body>
<div id="container">
<div id="navbar"></div>
<div id="logo">OFFSIDE</div>
<div id="content">
<h2>Offside technology</h2>
<br>
<h3>Offside technology is a support tool for the video officials</h3>
<br>
<h3>and the on-field officials to help them make faster and</h3>
<br>
<h3>more reproducible ana more accurate offside descions.</h3>
</div>
<div id="icons">
<a href="https://www.facebook.com/"><i class="fab fa-facebook-f"></i></a>
<a href="https://www.instagram.com/"><i class="fab fa-instagram"></i></a>
<a href="https://www.youtube.com/"><i class="fab fa-youtube"></i></a>
<a href="https://twitter.com/?lang=en"><i class="fab fa-twitter"></i></a>
</div>
<div id="line1"></div>
<div id="line2"></div>
<div id="offside">
<video width="640" height="640" autoplay muted loop>
<source src="assets/videoplayback (1).webm" type="video/webm">
</video>
<form action="upload.php" method="post" enctype="multipart/form-data" style="position: absolute;bottom:1px;">
<br>Select Attack Team:<br><br>
<input type="radio" id="team1" name="teams" value="team1">
<label for="team1">TEAM 1</label><br>
<input type="radio" id="team2" name="teams" value="team2">
<label for="team2">TEAM 2</label><br>
<label>--------------------</label><br>
<br>Select image to upload:<br>
<input name="file" type="file" onclick="selectFile()">
<input type="submit" name="upload_submit">
</form>
<script>
function selectFile() {
// create an input element of type file
var input = document.createElement('input');
input.type = 'file';
input.accept = 'image/*';
// when a file is selected
input.onchange = function(event) {
var file = event.target.files[0];
var type = file.type.split('/')[0];
if (type === 'image') {
// if the file is an image
var reader = new FileReader();
// when the image is loaded
reader.onload = function(event) {
// set the image source to the data URL
var img = document.getElementById('image');
img.src = event.target.result;
// show the image
img.style.display = 'block';
};
// read the image file as a data URL
reader.readAsDataURL(file);
} else {
// if the file is not an image, do nothing
}
};
// click the input element to open the file dialog
input.click();
}
</script>
<br><br>
<img id="image" style="max-width: 100%; max-height: 300px; right: 110%; top: calc(70% - 100px);" >
</div>
</div>
</body>