-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhidhiehip.html
114 lines (94 loc) · 3.11 KB
/
hidhiehip.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
<!DOCTYPE HTML>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name=viewport content="width=device-width, initial-scale=1">
<title>Histidine Protonation States</title>
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-131436916-2"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-131436916-2');
</script>
<style>
.gallery_image {
width: 28%;
padding-left: 2%;
padding-right: 2%;
text-align: center;
display: inline-block;
padding-bottom: 1em;
border: 3px solid white;
}
.lightboxable {
max-height: 100%;
max-width: 100%;
cursor: pointer;
}
</style>
</head>
<body style="max-width: 46em; margin-left: 2em">
<h1>Histidine Protonation States</h1>
<p>It is up to the user to inspect the environment of each histidine and identify the type that is appropriate.</p>
<p>
<label for="check">Crazy mode: </label>
<input id="check" type="checkbox">
</p>
<div class="gallery_image">
<img class="lightboxable" src="media/hidhiehip/HID.png" id="hid" title="HID" onclick="play(this)" onmouseover="mouseon(this)" onmouseout="mouseout(this)">
</div>
<div class="gallery_image">
<img class="lightboxable" src="media/hidhiehip/HIE.png" id="hie" title="HIE" onclick="play(this)" onmouseover="mouseon(this)" onmouseout="mouseout(this)">
</div>
<div class="gallery_image">
<img class="lightboxable" src="media/hidhiehip/HIP.png" id="hip" title="HIP" onclick="play(this)" onmouseover="mouseon(this)" onmouseout="mouseout(this)">
</div>
<audio>
<p><span style="background-color: yellow">Your browser doesn't support HTML5 audio. Too bad...</span></p>
</audio>
<p><small><a href="http://ambermd.org/Questions/HIS.html">What is this?</a></small></p>
<script>
var hid = document.getElementById("hid")
var hie = document.getElementById("hie")
var hip = document.getElementById("hip")
var slider = document.getElementById("slider")
var freqSpan = document.getElementById("freq")
audios = {
hid : [
new Audio('media/hidhiehip/hid1.mp3'),
new Audio('media/hidhiehip/hid2.mp3'),
new Audio('media/hidhiehip/hid3.mp3')
],
hie : [
new Audio('media/hidhiehip/hie1.mp3'),
new Audio('media/hidhiehip/hie2.mp3'),
new Audio('media/hidhiehip/hie3.mp3')
],
hip : [
new Audio('media/hidhiehip/hip1.mp3'),
new Audio('media/hidhiehip/hip2.mp3'),
new Audio('media/hidhiehip/hip3.mp3')
]
}
var crazy = false;
function mouseon(x) {
x.style.border = '3px solid black'
}
function play(x) {
if (document.getElementById('check').checked) {
i = Math.floor(Math.random()*3)
} else {
i = 0
}
audios[x.id][i].currentTime = 0
audios[x.id][i].play()
}
function mouseout(x) {
x.style.border = '3px solid white'
}
</script>
<div style="text-align: right;"><i>Jan 25, 2023</i></div>
<!-- <hr> -->
<!-- <address><a href="https://jeffjar.me"><i>Jeffrey Chang</i></a></address> -->
</body>