From 1a9981bc7c370b7a5eab7662fd6fdc7259f17417 Mon Sep 17 00:00:00 2001 From: AiGptCode <146197697+AiGptCode@users.noreply.github.com> Date: Sun, 19 May 2024 23:03:24 +0330 Subject: [PATCH] Update index.html --- index.html | 43 +++++++++++++++++++++---------------------- 1 file changed, 21 insertions(+), 22 deletions(-) diff --git a/index.html b/index.html index b21cdde..14a499f 100644 --- a/index.html +++ b/index.html @@ -1,4 +1,3 @@ - @@ -102,32 +101,32 @@

Configuration Profile Generator

"PayloadDisplayName": "Cellular and Network Settings", "PayloadIdentifier": "com.example.cellular", "PayloadOrganization": "Example Inc.", -"PayloadRemovalDisallowed": false, -"PayloadType": "Configuration", -"PayloadUUID": generateUniqueUUID(), -"PayloadVersion": 1 -}; + "PayloadRemovalDisallowed": false, + "PayloadType": "Configuration", + "PayloadUUID": generateUniqueUUID(), + "PayloadVersion": 1 + }; -// Convert the configuration dictionary to a plist string -const configPlist = plist.build(configDict); + // Convert the configuration dictionary to a plist string + const configPlist = plist.build(configDict); -// Create a Blob object from the configuration plist string -const configBlob = new Blob([configPlist], { type: 'application/x-apple-configurator' }); + // Create a Blob object from the configuration plist string + const configBlob = new Blob([configPlist], { type: 'application/x-apple-configurator' }); -// Create a download link and click it to download the file -const downloadLink = document.createElement('a'); -downloadLink.href = URL.createObjectURL(configBlob); -downloadLink.download = 'config.mobileconfig'; -downloadLink.click(); + // Create a download link and click it to download the file + const downloadLink = document.createElement('a'); + downloadLink.href = URL.createObjectURL(configBlob); + downloadLink.download = 'config.mobileconfig'; + downloadLink.click(); -// Wait for the download to complete before revoking the object URL -setTimeout(() => { -URL.revokeObjectURL(downloadLink.href); -}, 1000); -} + // Wait for the download to complete before revoking the object URL + setTimeout(() => { + URL.revokeObjectURL(downloadLink.href); + }, 1000); + } -configForm.addEventListener('submit', handleFormSubmit); + configForm.addEventListener('submit', handleFormSubmit); - +