remove unused code
This commit is contained in:
parent
5774787945
commit
c5a290a6c7
|
|
@ -314,10 +314,6 @@ button {
|
|||
margin: 5px;
|
||||
height: 14px;
|
||||
}
|
||||
body {
|
||||
margin: 0px;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
/* Example CSS transition for smooth resizing */
|
||||
.window {
|
||||
|
|
|
|||
|
|
@ -53,7 +53,7 @@ function dragElement(elmnt) {
|
|||
|
||||
function moveButtonToCenter(duration = 300) {
|
||||
const widget = document.getElementById('chart-button-container')
|
||||
const size = localStorage.getItem('chart-size') ?? 'small'
|
||||
const size = localStorage.getItem('chart-size') ?? 'medium'
|
||||
const sizes = getSizes()
|
||||
const sizeStyles = sizes[size]
|
||||
const buttonHeight = +sizeStyles.height + 25
|
||||
|
|
@ -169,7 +169,7 @@ function checkForUpdates(key, value) {
|
|||
}
|
||||
|
||||
function isWindowOutsideWorkingArea() {
|
||||
const size = localStorage.getItem('chart-size') ?? 'small'
|
||||
const size = localStorage.getItem('chart-size') ?? 'medium'
|
||||
const sizes = getSizes()
|
||||
const sizeStyles = sizes[size]
|
||||
const buttonHeight = +sizeStyles.height + 25
|
||||
|
|
@ -373,7 +373,7 @@ function getDisplayAndWindowBounds() {
|
|||
}
|
||||
|
||||
function getPositions() {
|
||||
const size = localStorage.getItem('chart-size') ?? 'small'
|
||||
const size = localStorage.getItem('chart-size') ?? 'medium'
|
||||
const sizes = getSizes()
|
||||
const sizeStyles = sizes[size]
|
||||
const buttonHeight = +sizeStyles.height + 25
|
||||
|
|
@ -437,7 +437,7 @@ function getPositions() {
|
|||
}
|
||||
|
||||
function getCoordinates(isOutside) {
|
||||
var position = localStorage.getItem('perf-monitor-position')
|
||||
var position = localStorage.getItem('perf-monitor-position') ?? 'bottom-right'
|
||||
|
||||
if (isOutside) {
|
||||
var outsidePosition = getNearestPosition()
|
||||
|
|
@ -450,7 +450,7 @@ function getCoordinates(isOutside) {
|
|||
}
|
||||
|
||||
function getNearestPosition() {
|
||||
const size = localStorage.getItem('chart-size') ?? 'small'
|
||||
const size = localStorage.getItem('chart-size') ?? 'medium'
|
||||
const sizes = getSizes()
|
||||
const sizeStyles = sizes[size]
|
||||
const buttonHeight = +sizeStyles.height + 25
|
||||
|
|
@ -547,7 +547,7 @@ async function updateChartSize() {
|
|||
row.classList.add('drag')
|
||||
})
|
||||
|
||||
const size = localStorage.getItem('chart-size') ?? 'small'
|
||||
const size = localStorage.getItem('chart-size') ?? 'medium'
|
||||
const chartContainer = document.getElementById('chart-container')
|
||||
const savedChart = localStorage.getItem('active-chart') ?? 'bar'
|
||||
|
||||
|
|
@ -664,12 +664,6 @@ async function updateChartSize() {
|
|||
const pos = getCoordinates(false)
|
||||
goToPosition(pos)
|
||||
|
||||
setTimeout(() => {
|
||||
const chartButton = document.getElementById('chart-button')
|
||||
chartButton.classList.add('bottom-left')
|
||||
showPerfMonitor()
|
||||
}, 1000)
|
||||
|
||||
var shouldShowPerfMonitor = false
|
||||
var appIsLoaded = false
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue