This project is a class assignment to create a simple web search site using a Bing Search API. The webpage is built using ASP.NET Core Web Application (Model-View-Controller) in C# and is published to Azure.
- Setup a GitHub repository for the project
- Create the project in Visual Studio as an ASP.NET Core Web Application (Model-View-Controller) [C#]
- Create a Bing Search v7 API resource in Azure
- Build the website and integrate the Bing Search API
- Publish the site to Azure
- All CSS and JS code must be contained within their respective files
- Include jQuery, jQueryUI, and a jQueryUI theme via CDN links
- Use an SRI hash for each of the CDN links
- A header with the name of your "search engine" (be creative)
- A title of the same name
- A text box with an ID of
query
- A button with a value of
Search
under your text box - A second button that will display the current time
- An empty div with an ID of
searchResults
- A second empty div with an ID of
time
- Set the background of the page to an image of your choice
- Set the visibility of the
searchResults
andtime
divs to hidden - Style the rest of the page however you see fit
- Replace
my-api-url
under the ajax call with the URL from your search API - Replace
my-api-key
next toOcp-Apim-Subscription-Key
with the API key from your search API - Write a function that calls the
apiSearch
function on a click of your search button - Write a function that changes the background image of your site on a click of your search engine name
- Write a function that gets the current time (formatted HH:MM), loads the result into your
time
div, and displays the div as a jQueryUI dialog window on a click of your time button
This project is licensed under the MIT License - see the LICENSE file for details.
- University: The University of Alabama
- Instructor: Maclane May
- Course: CS330 - Web Development
- Semester: Fall 2024
- Author: JP Crawford
For this assignment's preparation, the author has utilized Perplexity AI, a language model created by Perplexity AI Inc. Within this assignment, Perplexity AI was used for purposes such as researching technical aspects of HTML, CSS, and JavaScript, and explaining design functions and parameters. Specifically, Perplexity AI assisted in the development of a smaller scrollbar, styling dialogs, preloading and fading of background images, and the spinning logo.
All background images used were sourced from Unsplash.com.