Introduction:
This project is a clone of the Google search page. It allows users to search the internet using Google's search algorithm, get their current location, and translate the page into a different language using Google's Translate API.
Technologies Used:
HTML
CSS
JavaScript
Google Custom Search API
Google Geolocation API
Google Translate API
File Structure:
index.html: This file contains the HTML structure of the project, including the header, search bar, buttons, and Google Translate element.
style.css: This file contains the CSS styling for the project.
index.js: This file contains the JavaScript code for the project, including getting the user's location and displaying it on the page.
Functionality:
Search Bar: Users can type in their search query in the search bar and hit enter to search the internet using Google's search algorithm.
Buttons: There is a "Get Location" button that allows users to get their current location using the Google Geolocation API. Clicking the button displays the user's city, state/province, and zip/postal code.
Google Translate: The page can be translated into a different language using the Google Translate API. The Google Translate element is displayed on the page, and users can select their desired language from the dropdown menu.