Skip to content

Commit

Permalink
Update script.js
Browse files Browse the repository at this point in the history
  • Loading branch information
opiran-club authored Aug 17, 2024
1 parent b3b079f commit 62a3dc7
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions script.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
'use strict'; // Enforce strict modefunction convertToURL() {
'use strict';
function convertToURL() {
console.log('Function called'); // Debug lineconst config = document.getElementById('configInput').value;
console.log(config); // Log input valueconst lines = config.split('\n'); // Split the config into lineslet privateKey = '';
let publicKey = '';
Expand Down Expand Up @@ -28,5 +29,3 @@

document.getElementById('output').value = url; // Output the result in the designated area
}

// Ensure that the convertToURL function is called when the button is clickeddocument.querySelector('button').addEventListener('click', convertToURL);

0 comments on commit 62a3dc7

Please sign in to comment.