This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { OMDB_API_KEY, MOVIEDB_API_KEY } from "../global-constants/secret.js"; | |
| import { | |
| NO_FOUND_MOVIE, | |
| DEFAULT_PHOTO_URL, | |
| } from "../global-constants/constants.js"; | |
| import { getData } from "../api/api-helper.js"; | |
| import { handleError } from "../errors/error.js"; | |
| export function getMoviesInfo(searchTerm) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8" /> | |
| <meta http-equiv="X-UA-Compatible" content="IE=edge" /> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
| <title>Full-stack-primer</title> | |
| <!-- Bootstrap CSS --> | |
| <link |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8" /> | |
| <meta http-equiv="X-UA-Compatible" content="IE=edge" /> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
| <title>Full-stack-primer</title> | |
| <!-- Bootstrap CSS --> | |
| <link |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const express = require("express"); | |
| const server = express(); // This server is deaf | |
| server.listen(3000); // Told the server to listen on port 3000 | |
| const destinationsDB = { | |
| 123456: { | |
| destination: "Eiffel Tower", | |
| location: "Paris", | |
| photo: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| export async function handleFormSubmit(evtObj) { | |
| // Prevents form from automatically submit our info and gives us time to process input our way | |
| evtObj.preventDefault(); | |
| // TODO - Grab user input on form submit | |
| let destName = document.getElementById("dest_name").value; | |
| let locName = document.getElementById("loc_name").value; | |
| // let photoUrl = document.getElementById("photo_url").value; | |
| // Get the photo from Unsplash API |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| export async function handleFormSubmit(evtObj) { | |
| // Prevents form from automatically submit our info and gives us time to process input our way | |
| evtObj.preventDefault(); | |
| // TODO - Grab user input on form submit | |
| let destName = document.getElementById("dest_name").value; | |
| let locName = document.getElementById("loc_name").value; | |
| // let photoUrl = document.getElementById("photo_url").value; | |
| // Get the photo from Unsplash API |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8" /> | |
| <meta http-equiv="X-UA-Compatible" content="IE=edge" /> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
| <title>GIF API</title> | |
| <!-- <link rel="stylesheet" href="./style.css" /> --> | |
| </head> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| export function handleFormSubmit(evtObj) { | |
| // Prevents form from automatically submit our info and gives us time to process input our way | |
| evtObj.preventDefault(); | |
| // TODO - Grab user input on form submit | |
| let destName = document.getElementById("dest_name").value; | |
| let locName = document.getElementById("loc_name").value; | |
| let photoUrl = document.getElementById("photo_url").value; | |
| let descr = document.getElementById("description").value; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8" /> | |
| <meta http-equiv="X-UA-Compatible" content="IE=edge" /> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
| <title>Rainbow colors</title> | |
| <!-- | |
| <link rel="stylesheet" href="./style.css" /> --> | |
| </head> |
NewerOlder