If you just modified load.js
then you don't need to minify anything.
thank you for your feedback, i don't know why the new background does not show, i share with you my release.html and load.js
any help would be greatly appreciated.
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<title>Traccar</title>
<link rel="stylesheet" href="app.css">
</head>
<body background="/opt/traccar/web/localisermoi.png">
<div id="spinner"></div>
<div id="attribution">Powered by <a href="https://www.traccar.org/">Traccar GPS Tracking System</a></div>
<script id="loadScript" src="load.js"></script>
</body>
</html>
script.async = false;
document.head.appendChild(script);
}
function addSvgFile(file, id) {
var svg = document.createElement('object');
svg.setAttribute('id', id);
svg.setAttribute('data', file);
svg.setAttribute('type', 'image/svg+xml');
svg.setAttribute('style', 'visibility:hidden');
document.body.appendChild(svg);
}
function addBackgroundImage() {
document.body.style.backgroundImage = "url('localisermoi.png')";
}
debugMode = document.getElementById('loadScript').getAttribute('mode') === 'debug';
touchMode = 'ontouchstart' in window || navigator.maxTouchPoints;
locale = {};
window.Locale = locale;
hello tananaev,
i did some modifications on release.html in order to add a background for traccar web page i have modified also load.js by adding a function to call this backround, now i think i need to run minified script so my question is : could the execution of this script possibly cause a traccar crash? what precautions to take into account before doing this action ?