PluginProbe
phpinfo() WP – Site Health, PHP Compatibility & Server Audit / trunk
phpinfo() WP – Site Health, PHP Compatibility & Server Audit vtrunk
7.2.7 7.2.6 7.2.5 7.2.4 7.2.3 7.2.0 7.2.1 7.2.2 7.1.0 7.0.3 7.0.4 7.0.5 trunk 6.0 7.0.0 7.0.1 7.0.2
phpinfo-wp / js / scripts.js

scripts.js in phpinfo() WP – Site Health, PHP Compatibility & Server Audit trunk, at js/scripts.js

33 lines 725 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 "use strict";
2
3 function main() {
4
5 var topButton = document.getElementById('topButton-phpinfo-WP');
6
7 function showButton() {
8 if (topButton !== null) {
9 if (document.body.scrollTop > 400 || document.documentElement.scrollTop > 400) {
10 topButton.style.display = "block";
11 } else {
12 topButton.style.display = "none";
13 }
14 }
15 }
16
17 window.onscroll = function () {
18 showButton();
19 };
20
21 function goTop() {
22 document.body.scrollTop = 0;
23 document.documentElement.scrollTop = 0;
24 }
25
26 if (topButton !== null) {
27 topButton.addEventListener('click', goTop);
28 }
29
30 }
31
32 main();
33