#183 a simple button added
This commit is contained in:
parent
c83100b4f9
commit
1687707f04
@ -54,6 +54,9 @@
|
||||
|
||||
|
||||
<script src="/lib/jquery/dist/jquery.min.js"></script>
|
||||
<script>
|
||||
var playerScrollLock = false;
|
||||
</script>
|
||||
<script src="/js/be.js"></script>
|
||||
<script src="/js/vaabd.js"></script>
|
||||
|
||||
@ -89,6 +92,24 @@
|
||||
</text>
|
||||
}
|
||||
|
||||
if (playerScrollLock) {
|
||||
$('#scroll-lock').text('🔒');
|
||||
}
|
||||
else {
|
||||
$('#scroll-lock').text('🔓');
|
||||
}
|
||||
|
||||
$('#scroll-lock').click(function () {
|
||||
playerScrollLock = !playerScrollLock;
|
||||
if (playerScrollLock) {
|
||||
|
||||
$('#scroll-lock').text('🔒');
|
||||
}
|
||||
else {
|
||||
$('#scroll-lock').text('🔓');
|
||||
}
|
||||
});
|
||||
|
||||
});
|
||||
//]]>
|
||||
</script>
|
||||
|
||||
@ -219,6 +219,7 @@
|
||||
<div class="jp-volume-bar">
|
||||
<div class="jp-volume-bar-value"></div>
|
||||
</div>
|
||||
<a id="scroll-lock" role="button" title="اسکرول خودکار در هنگام پخش خوانش" style="position: absolute; width: 18px; height: 15px; left: -10px; cursor: pointer; color:#666; " tabindex="0">🔒</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="jp-details">
|
||||
|
||||
@ -219,7 +219,7 @@ function prepaudio(xmlfilename, poemtitle, auartist, oggurl, mp3url){
|
||||
if(curTime > 0){
|
||||
for(i = 0; i<=vCount; i++){
|
||||
if(curTime >= verseStart[i] && curTime <= verseEnd[i]){
|
||||
hilightverse(verseIndex[i], "red", true, false);
|
||||
hilightverse(verseIndex[i], "red", true, playerScrollLock);
|
||||
|
||||
if(nLastHighlight != verseIndex[i] && nLastHighlight != -1)
|
||||
hilightverse(nLastHighlight, "black", false, false);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user