Commit graph

6 commits

Author SHA1 Message Date
6b8895fa60
style: fix indentation in HTML for better readability
Corrected the indentation of <li> elements and added newline spacing
in the HTML structure. These changes enhance code readability and
maintain consistency in the project's code style.
2024-09-18 10:01:46 +02:00
9c1c148da0
fix: removed extra quotation mark in HTML class attribute
Corrected an HTML syntax error by removing a redundant quotation mark from a class attribute. This fixes the display issue for the IP card component, ensuring proper rendering of the IPv4 address section.
2024-09-18 10:01:28 +02:00
dc49da70d3
feat: migrate index.html to PHP for dynamic IP endpoints
Migrated index.html to index.php to enable dynamic generation of IPv4 and IPv6 endpoints based on the server's domain. This change facilitates the embedding of IP address information via iframe elements, enhancing flexibility and ensuring that the correct IP endpoints are utilized.
2024-09-18 10:00:03 +02:00
14b7d088a0
feat: dynamic IP service domain resolution
Replaced static IP service URLs with dynamic hostname-based URLs in `getMyIP` function to ensure the IP service domain matches the current website's domain, excluding the 'www' prefix. This change enhances flexibility and adaptability, allowing the IP fetching functionality to work seamlessly across different deployments without needing manual URL updates for each domain.

- Removes hard-coded IP service domain.
- Utilizes `window.location.hostname` for dynamic domain resolution.
- Improves service compatibility across varying deployments.

This adjustment addresses potential issues with cross-origin requests and simplifies the deployment process for websites with multiple or changing domains.
2024-04-24 08:08:57 +02:00
b485ef06d0
feat(readme): add donation badge and clarify hosting
Added a badge to the README to encourage support through private.coffee donations, making it easier for users to contribute to the project's development. Also, clarified that our web hosting solution includes both Apache and PHP to provide clearer setup guidance for users looking to implement the service in their own environments.

This enhancement aims to foster community support and ensure users have a clear understanding of the technical requirements for using MyIP.Coffee.
2024-04-24 08:05:33 +02:00
81ac90c68e
feat: Launch MyIP.Coffee web service
Introduced a new web service, MyIP.Coffee, for displaying client IP addresses. This update includes:
- MIT License addition for open-source usage.
- README for setup instructions and project overview.
- PHP script and nginx configs to support IP address retrieval.
- Basic website structure with HTML, CSS, and JavaScript to display IPv4 and IPv6 addresses on load.

This service aims to provide a user-friendly platform for clients to easily find their public IP addresses, supporting both IPv4 and IPv6 with a focus on simplicity and efficiency. Future improvements may include enhanced IP detection and custom user settings.
2024-04-12 19:52:23 +02:00