https://github.com/pythoninthegrass/search
cs50w search submodule
https://github.com/pythoninthegrass/search
Last synced: 3 months ago
JSON representation
cs50w search submodule
- Host: GitHub
- URL: https://github.com/pythoninthegrass/search
- Owner: pythoninthegrass
- Created: 2023-02-19T20:02:58.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-02-19T21:25:29.000Z (almost 3 years ago)
- Last Synced: 2025-01-11T16:50:24.893Z (about 1 year ago)
- Language: HTML
- Size: 7.81 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# CS50 Web Programming with Python and JavaScript
## Project 0
### Spec
Your website must meet the following requirements:
* Your website should have at least three pages: one for regular Google Search (which must be called index.html), one for Google Image Search, and one for Google Advanced Search.
* On the Google Search page, there should be links in the upper-right of the page to go to Image Search or Advanced Search. On each of the other two pages, there should be a link in the upper-right to go back to Google Search.
* On the Google Search page, the user should be able to type in a query, click “Google Search”, and be taken to the Google search results for that page.
* Like Google’s own, your search bar should be centered with rounded corners. The search button should also be centered, and should be beneath the search bar.
* On the Google Image Search page, the user should be able to type in a query, click a search button, and be taken to the Google Image search results for that page.
* On the Google Advanced Search page, the user should be able to provide input for the following four fields (taken from Google’s own advanced search options)
* Find pages with… “all these words:”
* Find pages with… “this exact word or phrase:”
* Find pages with… “any of these words:”
* Find pages with… “none of these words:”
* Like Google’s own Advanced Search page, the four options should be stacked vertically, and all of the text fields should be left aligned.
* Consistent with Google’s own CSS, the “Advanced Search” button should be blue with white text.
* When the “Advanced Search” button is clicked, the user should be taken to the search results page for their given query.
* Add an “I’m Feeling Lucky” button to the main Google Search page. Consistent with Google’s own behavior, clicking this link should take users directly to the first Google search result for the query, bypassing the normal results page.
* You may encounter a redirect notice when using the “I’m Feeling Lucky” button. Not to worry! This is an expected consequence of a security feature implemented by Google.
* The CSS you write should resemble Google’s own aesthetics.
### Hints
* To determine what the parameter names should be, you’re welcome to experiment with making Google searches, and looking at the resulting URL. It may also be helpful to open the “Network” inspector (accessible in Google Chrome by choosing View -> Developer -> Developer Tools) to view details about requests your browser makes to Google.
* Any `` element (whether its type is text, submit, number, or something else entirely) can have name and value attributes that will become GET parameters when a form is submitted.
* You may also find it helpful to look at Google’s own HTML to answer these questions. In most browsers, you can control-click or right-click on a page and choose “View Page Source” to view the page’s underlying HTML.
* To include an input field in a form that users cannot see or modify, you can use a “hidden” input field.
### How to Submit
* Using Git, push your work to https://github.com/me50/USERNAME.git, where USERNAME is your GitHub username, on a branch called `web50/projects/2020/x/search`.
* Record a screencast not to exceed 5 minutes in length, in which you demonstrate your project’s functionality. Your URL bar must remain visible throughout your demonstration of the project. Be certain that every element of the specification, above, is demonstrated in your video. There’s no need to show your code in this video, just your application in action; we’ll review your code on GitHub. Upload that video to YouTube (as unlisted or public, but not private) or somewhere else. In your video’s description, you must timestamp where your video demonstrates each of the seven (7) elements of the specification. This is not optional, videos without timestamps in their description will be automatically rejected.
* Submit this form.
You can then go to https://cs50.me/cs50w to view your current progress!