mirror of
https://github.com/stagehacks/Cue-View.git
synced 2026-08-08 23:33:39 +00:00
autoscroll now lives in view.js instead of in the plugin itself
This commit is contained in:
@@ -41,7 +41,7 @@
|
||||
<% } %>
|
||||
|
||||
<% if(cues[j]==data.activeCue+""){ %>
|
||||
<tr class="active-cue">
|
||||
<tr class="active-cue scroll-position">
|
||||
<% }else{ %>
|
||||
<tr>
|
||||
<% } %>
|
||||
@@ -97,12 +97,6 @@
|
||||
|
||||
<% } %>
|
||||
|
||||
<script>
|
||||
var $scrollTo = document.getElementsByClassName("active-cue");
|
||||
if($scrollTo.length==1){
|
||||
window.scroll({top: $scrollTo[0].offsetTop-200, behavior: 'smooth'});
|
||||
}
|
||||
</script>
|
||||
|
||||
<%
|
||||
function prettyDuration(milliseconds, box){
|
||||
|
||||
Reference in New Issue
Block a user