Commit d2014793 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 585e4c8d
...@@ -12,6 +12,8 @@ $ -> ...@@ -12,6 +12,8 @@ $ ->
window.onTouchBasedDevice = -> window.onTouchBasedDevice = ->
navigator.userAgent.match /iPhone|iPod|iPad/i navigator.userAgent.match /iPhone|iPod|iPad/i
$('body').addClass 'touch-based-device' if onTouchBasedDevice()
$("a[rel*=leanModal]").leanModal() $("a[rel*=leanModal]").leanModal()
$('#csrfmiddlewaretoken').attr 'value', $.cookie('csrftoken') $('#csrfmiddlewaretoken').attr 'value', $.cookie('csrftoken')
......
...@@ -123,7 +123,7 @@ nav.sequence-nav { ...@@ -123,7 +123,7 @@ nav.sequence-nav {
background-position: center; background-position: center;
} }
p { p {
background: #333; background: #333;
color: #fff; color: #fff;
display: none; display: none;
...@@ -231,6 +231,10 @@ nav.sequence-nav { ...@@ -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 { ...@@ -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