PluginProbe
WebTotem Security / 2.1.7
WebTotem Security v2.1.7
3.0.1 3.0.0 trunk 1.0 1.1 1.2 1.3 1.3.1 1.3.2 1.3.3 2.0 2.1 2.1.1 2.1.2 2.1.3 2.1.4 2.1.5 2.1.6 2.1.7 2.1.8 2.1.9 2.2.1 2.2.2 2.2.3 2.2.4 All 109 releases
wt-security / htdocs / js / line-progress.js

line-progress.js in WebTotem Security 2.1.7, at htdocs/js/line-progress.js

18 lines 654 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 // Progress bar horizontal in table
2 const stickProgress = document.querySelector(".wtotem_table__stick-progress");
3 const percentHorizontal = document.querySelector(".wtotem_table__percent");
4
5
6 const setProgressHorizontal = (percent) => {
7 percentHorizontal.textContent = `${percent}%`;
8 //1.67 * 100 = 167 это ширина этой горизонтальной линии
9 stickProgress.style.width = `${percent * 1.67}px`;
10 };
11
12 document.addEventListener('DOMContentLoaded', function () {
13 if(typeof availability_percent !== "undefined"){
14 setProgressHorizontal(availability_percent);
15 }
16 });
17 //-----------------------------------
18