-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
executable file
·73 lines (63 loc) · 2.71 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
<!doctype html>
<html>
<head>
<title>Applitools - Demo App</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="https://fonts.googleapis.com/css?family=Gloria+Hallelujah" rel="stylesheet">
<link rel="stylesheet" href="css/reset.css">
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<div class="page">
<div class="section">
<div class="fancy title primary">
<span style="color:#ff0000;">H</span><span style="color:#ff4000;">e</span><span
style="color:#ff7f00;">l</span><span style="color:#ffbf00;">l</span><span
style="color:#ffff00;">o</span><span style="color:#00ff00;"> </span><span
style="color:#00ff80;">w</span><span style="color:#00ffff;">o</span><span
style="color:#0080ff;">r</span><span style="color:#0000ff;">l</span><span
style="color:#4600ff;">d</span><span style="color:#8b00ff;">!</span>
</div>
<div class="fancy title alternate">
<span style="color:#8b00ff;">H</span><span style="color:#4600ff;">e</span><span
style="color:#0000ff;">l</span><span style="color:#0080ff;">l</span><span
style="color:#00ffff;">o</span><span style="color:#00ff80;"> </span><span
style="color:#00ff00;">w</span><span style="color:#ffff00;">o</span><span
style="color:#ffbf00;">r</span><span style="color:#ff7f00;">l</span><span
style="color:#ff4000;">d</span><span style="color:#ff0000;">!</span>
</div>
</div>
<div class="section">
<p>Welcome to your first Applitools Eyes test!!!</p>
<p>Add <a href="?diff">?diff</a> to the end of the url to simulate a difference</p>
<p>
<span class="primary">123456</span>
<span class="alternate">9876543210</span>
is a random number
</p>
</div>
<div class="section button-section">
<button>Click me!</button>
</div>
<div class="section hidden-section image-section">
<p>You successfully clicked the button!</p>
<img class="primary" src="images/image_1.jpg"/>
<img class="alternate" src="images/image_2.jpg"/>
</div>
</div>
<script type="text/javascript">
var hiddenEl = document.querySelector(".hidden-section");
if (~window.location.href.indexOf("diff")) {
document.querySelector(".page").classList.add("alternate");
}
document.querySelector("button").addEventListener("click", function (e) {
if (hiddenEl.classList.contains("hidden-section")) {
hiddenEl.classList.remove("hidden-section");
}
else {
hiddenEl.classList.add("hidden-section");
}
});
</script>
</body>
</html>