/usr/share/phoronix-test-suite/pts-core/results-viewer/pts.js is in phoronix-test-suite 4.8.3-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 | function switchShow(i)
{
if(document.getElementById(i).style.display == "none")
showObject(i);
else
hideObject(i);
}
function hideObject(i)
{
document.getElementById(i).style.display = "none";
}
function showObject(i)
{
document.getElementById(i).style.display = "block";
}
function setImagesFromURL()
{
var html = "";
var pf = location.href;
pf = pf.substring(pf.search(/#/) + 1);
var imgarray = pf.split(",");
for(i = 0; i < imgarray.length; i++)
{
var exsplit = imgarray[i].split(".");
if(exsplit[1] == "svg")
html += "<p align=\"center\"><object type=\"image/svg+xml\" data=\"" + imgarray[i] + "\" /></p>";
else
html += "<p align=\"center\"><img src=\"" + imgarray[i] + "\" /></p>";
}
document.getElementById("pts_monitor").innerHTML = html;
}
function boldBodyComponents()
{
var el = document.getElementsByName('pts_column_body');
for(var i = 0; i < el.length; i++)
{
el[i].innerHTML = el[i].innerHTML.replace(/:/, ":</strong>");
el[i].innerHTML = el[i].innerHTML.replace(/,/, ", <strong>");
el[i].innerHTML = "<strong>" + el[i].innerHTML;
}
}
|