# phpinfo-wp/7.2.5/js/scripts.js

phpinfo() WP – Site Health, PHP Compatibility &amp; Server Audit, version 7.2.5. 33 lines.

- Page: https://pluginprobe.com/plugins/phpinfo-wp/7.2.5/code/js/scripts.js
- Raw: https://pluginprobe.com/plugins/phpinfo-wp/7.2.5/raw/js/scripts.js
- Modified: 2026-08-11T15:45:24+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/phpinfo-wp/7.2.5/code/js/scripts.js#L10-L20`.

```javascript
"use strict";

function main() {

    var topButton = document.getElementById('topButton-phpinfo-WP');

    function showButton() {
        if (topButton !== null) {
            if (document.body.scrollTop > 400 || document.documentElement.scrollTop > 400) {
                topButton.style.display = "block";
            } else {
                topButton.style.display = "none";
            }
        }
    }

    window.onscroll = function () {
        showButton();
    };

    function goTop() {
        document.body.scrollTop = 0;
        document.documentElement.scrollTop = 0;
    }

    if (topButton !== null) {
        topButton.addEventListener('click', goTop);
    }

}

main();

```
