Commit 97b83f26 by Prem Sichanugrist

Fix problem with sequence navigation on iOS

* Add `touch-based-device` class to the <body> when running on iOS.
* Do not show the tooltip if we're on the iOS.
parent df12c586
......@@ -12,6 +12,8 @@ $ ->
window.onTouchBasedDevice = ->
navigator.userAgent.match /iPhone|iPod|iPad/i
$('body').addClass 'touch-based-device' if onTouchBasedDevice()
$("a[rel*=leanModal]").leanModal()
$('#csrfmiddlewaretoken').attr 'value', $.cookie('csrftoken')
......
......@@ -123,7 +123,7 @@ nav.sequence-nav {
background-position: center;
}
p {
p {
background: #333;
color: #fff;
display: none;
......@@ -231,6 +231,10 @@ nav.sequence-nav {
}
}
}
body.touch-based-device & ol li a:hover p {
display: none;
}
}
......@@ -304,3 +308,4 @@ section.course-content {
}
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment