The purpose of this script is to transform a URL into a type of string that our Drupal Add API Module can use.
-
ES5 Function using an event listener connected to a function to convert one URL string into something else based on user prompt input. The result is then written on to the page. (DONE - 7/19/21)
-
replace() in conjunction with regex statements are used to reformat and add an the api number to each string. (DONE - 7/19/21)
-
Prompts will be replaced with form interface.
-
Function will be converted to ES6 (as a comparison exercise).
-
Clean-up. Remove comments and make code prettier.
JavaScript by webprinc3ss (me).