PHP Classes

File: htdocs/class/libraries/vendor/kint-php/kint/resources/compiled/rich_microtime.js

Recommend this page to a friend!
  Classes of Michael Beck   Xoops 2.5   htdocs/class/libraries/vendor/kint-php/kint/resources/compiled/rich_microtime.js   Download  
File: htdocs/class/libraries/vendor/kint-php/kint/resources/compiled/rich_microtime.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Xoops 2.5
Modular content management publication system
Author: By
Last change:
Date: 6 years ago
Size: 1,100 bytes
 

Contents

Class file image Download
void 0===window.kintRichMicrotimeInitialized&&(window.kintRichMicrotimeInitialized=1,window.addEventListener("load",function(){"use strict";var i={},t=Array.prototype.slice.call(document.querySelectorAll("[data-kint-microtime-group]"),0);t.forEach(function(t){if(t.querySelector(".kint-microtime-lap")){var e=t.getAttribute("data-kint-microtime-group"),r=parseFloat(t.querySelector(".kint-microtime-lap").innerHTML),o=parseFloat(t.querySelector(".kint-microtime-avg").innerHTML);void 0===i[e]&&(i[e]={}),(void 0===i[e].min||i[e].min>r)&&(i[e].min=r),(void 0===i[e].max||i[e].max<r)&&(i[e].max=r),i[e].avg=o}}),t=Array.prototype.slice.call(document.querySelectorAll("[data-kint-microtime-group]>.kint-microtime-lap"),0),t.forEach(function(t){var e,r=t.parentNode.getAttribute("data-kint-microtime-group"),o=parseFloat(t.innerHTML),a=i[r].avg,n=i[r].max,c=i[r].min;t.parentNode.querySelector(".kint-microtime-avg").innerHTML=a,o===a&&o===c&&o===n||(o>a?(e=(o-a)/(n-a),t.style.background="hsl("+(40-40*e)+", 100%, 65%)"):(e=a===c?0:(a-o)/(a-c),t.style.background="hsl("+(40+80*e)+", 100%, 65%)"))})}));