Merge branch 'dev' of https://gitlab.com/Shinobi-Systems/Shinobi into dev
commit
4370959952
|
@ -18,12 +18,10 @@ $(document).ready(function(e){
|
||||||
var currentPlaylist = {}
|
var currentPlaylist = {}
|
||||||
var frameSelected = null
|
var frameSelected = null
|
||||||
var playIntervalTimer = null
|
var playIntervalTimer = null
|
||||||
var playInterval = 1000 / 30
|
|
||||||
var fieldHolderCssHeightModifier = 0
|
var fieldHolderCssHeightModifier = 0
|
||||||
var canPlay = false;
|
var canPlay = false;
|
||||||
var downloaderIsChecking = false
|
var downloaderIsChecking = false
|
||||||
var allowKeepChecking = true
|
var allowKeepChecking = true
|
||||||
var selectedFps = 15
|
|
||||||
var currentPlaylistArray = []
|
var currentPlaylistArray = []
|
||||||
|
|
||||||
var openTimelapseWindow = function(monitorId,startDate,endDate){
|
var openTimelapseWindow = function(monitorId,startDate,endDate){
|
||||||
|
@ -132,11 +130,13 @@ $(document).ready(function(e){
|
||||||
if(!newSelectedFrame)return
|
if(!newSelectedFrame)return
|
||||||
frameSelected = newSelectedFrame.filename
|
frameSelected = newSelectedFrame.filename
|
||||||
startPlayLoop()
|
startPlayLoop()
|
||||||
},playInterval)
|
},1000/parseInt(fpsSelector.val(),10))
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
var playTimelapse = function(){
|
var playTimelapse = function(){
|
||||||
|
var playPauseText = timelapseWindow.find('.playPauseText')
|
||||||
canPlay = true
|
canPlay = true
|
||||||
|
playPauseText.text(lang.Pause)
|
||||||
startPlayLoop()
|
startPlayLoop()
|
||||||
}
|
}
|
||||||
var destroyTimelapse = function(){
|
var destroyTimelapse = function(){
|
||||||
|
@ -148,20 +148,17 @@ $(document).ready(function(e){
|
||||||
allowKeepChecking = false
|
allowKeepChecking = false
|
||||||
}
|
}
|
||||||
var pauseTimelapse = function(){
|
var pauseTimelapse = function(){
|
||||||
|
var playPauseText = timelapseWindow.find('.playPauseText')
|
||||||
canPlay = false
|
canPlay = false
|
||||||
|
playPauseText.text(lang.Play)
|
||||||
clearTimeout(playIntervalTimer)
|
clearTimeout(playIntervalTimer)
|
||||||
playIntervalTimer = null
|
playIntervalTimer = null
|
||||||
}
|
}
|
||||||
var togglePlayPause = function(){
|
var togglePlayPause = function(){
|
||||||
var playPauseText = timelapseWindow.find('.playPauseText')
|
|
||||||
if(canPlay){
|
if(canPlay){
|
||||||
canPlay = false
|
|
||||||
pauseTimelapse()
|
pauseTimelapse()
|
||||||
playPauseText.text(lang.Play)
|
|
||||||
}else{
|
}else{
|
||||||
canPlay = true
|
|
||||||
playTimelapse()
|
playTimelapse()
|
||||||
playPauseText.text(lang.Pause)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
var iconHtml = function(iconClasses,withSpace){
|
var iconHtml = function(iconClasses,withSpace){
|
||||||
|
@ -271,10 +268,6 @@ $(document).ready(function(e){
|
||||||
runDownloader()
|
runDownloader()
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
fpsSelector.change(function(ev){
|
|
||||||
playInterval = 1000 / ev.value
|
|
||||||
selectedFps = ev.value + 0
|
|
||||||
})
|
|
||||||
function isElementVisible (el) {
|
function isElementVisible (el) {
|
||||||
const holder = frameIcons[0]
|
const holder = frameIcons[0]
|
||||||
const { top, bottom, height } = el.getBoundingClientRect()
|
const { top, bottom, height } = el.getBoundingClientRect()
|
||||||
|
|
Loading…
Reference in New Issue