/
index.html
160 lines (154 loc) · 6.29 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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="application/xhtml+xml; charset=UTF-8" />
<link href="./img/fav-logo.ico" rel="shortcut icon" type="image/x-icon" />
<link href="./css/design.css" rel="stylesheet" type="text/css" />
<link href="./css/index.css" rel="stylesheet" type="text/css" />
<link href="./css/print.css" rel="stylesheet" type="text/css" media="print" />
<title>International Physics Olympiad</title>
</head>
<body>
<div id="header">
<div id="h1">
<h1><a href="./.">International Physics Olympiad</a></h1>
</div>
<div id="sub">
<span class="previous"><a href="https://international-physics-olympiad2023-tokyo.jp/" target="_blank">IPhO 2023</a></span>
<span class="img"><a href="./."><img src="./img/logo.png" alt="IPhO" width="30" height="22"/></a></span>
<span class="next"><a href="https://www.ipho2024.ir/" target="_blank">IPhO 2024</a></span>
</div>
<div id="menu">
<a href="./timeline/.">Timeline</a> •
<a href="./countries/.">Countries</a> •
<a href="./search/.">Search</a> •
<a href="./hall-of-fame/.">Hall of Fame</a> •
<a target="_blank" href="http://physprob.com/">Problems</a> •
<a target="_blank" href="https://en.wikipedia.org/wiki/International_Physics_Olympiad">About IPhO</a> •
<a target="_blank" href="https://ipho-new.org/">Official IPhO Website</a>
</div>
</div>
<div id="main">
<canvas id="canvas" width="400" height="300"></canvas>
<br />
<div class="intro">
The International Physics Olympiad (IPhO) is the World Championship Physics Competition for High School students and is held annually in a different country.
The first IPhO was held in 1967 in Poland. It has gradually expanded to over 80 countries from 5 continents. The IPhO International Board ensures that the competition takes place each year and that each host country observes the regulations and traditions of the IPhO.
</div>
<br />
<div class="intro">
<a href="http://ipho-unofficial.org/">ipho-unofficial.org</a> is an online resource for the past and upcoming Physics Olympiads.
It is unofficial and non-profit, and does not hold any rights over its contents. The data is taken from various websites including <a href="http://ipho-new.org/" target="_blank">ipho-new.org</a>, which is the official website of IPhO.
The theme and design of the website is based on <a href="http://www.imo-official.org/" target="_blank" style="white-space: nowrap;">imo-official.org</a>.
<br>
<br>
<a href="http://ipho-unofficial.org/">ipho-unofficial.org</a> is an open source project. <a href="https://github.com/abeakkas/ipho-unofficial.org" target="_blank">View on Github</a>.
</div>
<br />
</div>
<div id="footer">
<a href="http://ipho-new.org/" target="_blank">IPhO Official Website</a>
<a href="javascript:easteregg()" style="color: black;">•</a>
<b>Webmaster:</b>
<a href="mailto:iphounofficial@gmail.com">iphounofficial@gmail.com</a>
</div>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-68545700-1', 'auto');
ga('send', 'pageview');
function easteregg() {
var rightside = Math.random() < .5;
var heads = ["newton", "einstein", "bohr", "feynman", "boltzmann", "curie", "dirac",
"galileo", "maxwell", "planck", "schrodinger"];
var img = document.createElement("img");
img.src = "./img/easter/" + heads[Math.floor(Math.random() * heads.length)] + ".png";
img.style.width = "150px";
img.style.position = "absolute";
if (rightside) {
img.style.right = "-150px";
} else {
img.style.left = "-150px";
}
img.style.bottom = "-150px";
img.style.zIndex = "10";
document.body.appendChild(img);
var startTime = new Date().getTime();
var fn = function () {
var dt = new Date().getTime() - startTime;
if (dt > 1000) {
document.body.removeChild(img);
return;
}
var maxd = 180;
if (dt < 500) var dx = Math.floor(Math.sin(dt / 500 * Math.PI / 2) * maxd);
else if (dt < 700) var dx = maxd;
else var dx = Math.floor(Math.cos((dt - 700) / 300 * Math.PI / 2) * maxd);
if (rightside) {
img.style.transform = "rotate(-45deg) translateY(-" + dx + "px) scaleX(-1)";
} else {
img.style.transform = "rotate(45deg) translateY(-" + dx + "px)";
}
setTimeout(fn, 40);
};
fn();
ga('send', 'event', 'EasterEgg', 'click');
}
</script>
<script>
// Homepage animation
var canvas = document.getElementById("canvas");
var ctx = canvas.getContext("2d");
var bx = 230, by = 110, br = 20;
var a = 250;
function render() {
requestAnimationFrame(render);
var ba = new Date().getTime() * 0.002;
bx = 200 + 70 * Math.sin(ba);
by = 150 + 70 * Math.cos(ba);
ctx.save();
ctx.beginPath();
ctx.rect(200 - a / 2 + a * .4, 150 - a / 2 + a * .18, a * .6, a * .6);
ctx.fillStyle = "#ff9090";
ctx.fill();
ctx.strokeStyle = "#ff0000";
ctx.stroke();
ctx.clip();
ctx.fillStyle = "#ff0000";
ctx.beginPath();
ctx.arc(bx, by, br, 0, 7);
ctx.fill();
ctx.restore();
ctx.save();
ctx.beginPath();
ctx.rect(200 - a / 2 + a * .18, 150 - a / 2 + a * .4, a * .6, a * .6);
ctx.fillStyle = "#9090ff";
ctx.fill();
ctx.strokeStyle = "#0000ff";
ctx.stroke();
ctx.clip();
ctx.fillStyle = "#0000ff";
ctx.beginPath();
ctx.arc(bx, by, br, 0, 7);
ctx.fill();
ctx.restore();
ctx.save();
ctx.beginPath();
ctx.rect(200 - a / 2, 150 - a / 2, a * .6, a * .6);
ctx.fillStyle="#ffff90";
ctx.fill();
ctx.strokeStyle="#ffff00";
ctx.stroke();
ctx.clip();
ctx.fillStyle="#ffff00";
ctx.beginPath();
ctx.arc(bx, by, br, 0, 7);
ctx.fill();
ctx.restore();
}
render();
</script>
</body>
</html>