I would like to add a few buttons (i.e. play, pause,etc) within an html webpage where I have got a camera streaming. My goal is to make these buttons visible on mouse hover. After googling I came across with this code which works great in Chrome, Mozilla, Safari but it doesn't work at all on my iPhone. Please see below the code:
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>JS Bin</title>
<style type="text/css">
.HeaderBarThreshold:hover input[type="submit"]
{
visibility:visible !important;
}
</style>
</head>
<body ontouchstart="">
<div class="HeaderBarThreshold" onclick=()>
Hover over here to make button visible
<input type="submit" value="Click me" style="visibility:hidden;"/>
</div>
<br/>
</body>
</html>
The odd think is that if I try this code itself in JSBin or jsfiddle on my iPhone it does works. But when I create an HTML page containing the above code (on a raspberry pi running apache) then it doesn't work on my iPhone.
Hopefully someone will shed some light on it as I can't get my head around it.
Many thanks.