elifgazioglu / doyouwannagooutwithme

http://doyouwannagooutwithme.com
558 stars 189 forks source link

Add dynamic name customization #13

Closed moshejs closed 7 months ago

moshejs commented 7 months ago

This pull request introduces a client-side JavaScript enhancement that dynamically personalizes the webpage based on a user's name passed through the URL query parameters. The feature capitalizes the first letter of the name and inserts it into the specified location within the HTML content, providing a more personalized and engaging user experience.

Key Changes:

  1. Dynamic Name Retrieval: The script extracts the 'name' query parameter from the current page's URL.
  2. Capitalization Functionality: It capitalizes the first letter of the retrieved name to ensure proper formatting.
  3. Dynamic Content Insertion: The personalized name is then inserted into the HTML content at the designated placeholder.

Enhancements:

Usage Notes:

This update aims to make the webpage feel more engaging and tailored to individual users by dynamically inserting their names into the text.