├── 1.Resim Bulma Projesi └── 1.search-app │ ├── app.js │ ├── index.html │ └── style.css ├── 2.Döviz Kuru Projesi └── 2.currency-app │ ├── currency.js │ ├── index.html │ ├── main.js │ └── style.css ├── 3.Github Projesi └── 3.github-app │ ├── css │ ├── app.css │ ├── content.css │ ├── footer.css │ └── header.css │ ├── images │ ├── 81428286.png │ ├── company.png │ ├── githublogo.png │ ├── location.png │ └── mail.png │ ├── index.html │ └── js │ ├── github.js │ ├── main.js │ ├── storage.js │ └── ui.js ├── 4.Sinema Projesi └── 4.cinema-app │ ├── index.html │ ├── main.js │ ├── storage.js │ └── style.css ├── 5.Hava Durumu Projesi └── 5.weather-app │ ├── .vscode │ └── launch.json │ ├── api.js │ ├── index.html │ ├── main.js │ ├── style.css │ └── wp1.jpg ├── 6.Film Projesi └── 6.movie-app │ ├── api.js │ ├── index.html │ ├── main.js │ └── style.css ├── 7.Hesap Makinesi Projesi ├── .vscode │ └── settings.json ├── app.js ├── calculator.js ├── index.html └── style.css └── 8.Şifre Projesi ├── app.js ├── index.html └── style.css /1.Resim Bulma Projesi/1.search-app/app.js: -------------------------------------------------------------------------------- 1 | const formWrapper = document.querySelector(".form-wrapper"); 2 | const form = document.querySelector("#form"); 3 | const searchInput = document.querySelector("#searchInput"); 4 | const buttonWrapper= document.querySelector(".button-wrapper"); 5 | const searchButton = document.querySelector("#searchButton"); 6 | const clearButton = document.querySelector("#clearButton"); 7 | const imageListWrapper = document.querySelector(".imagelist-wrapper"); 8 | 9 | runEventListeners(); 10 | 11 | function runEventListeners(){ 12 | form.addEventListener("submit" , search); 13 | clearButton.addEventListener("click", clear); 14 | } 15 | 16 | function clear(){ 17 | searchInput.value=""; 18 | Array.from(imageListWrapper.children).forEach((child)=>child.remove()) 19 | // imageListWrapper.innerHTML=""; 20 | 21 | } 22 | 23 | function search(e){ 24 | const value = searchInput.value.trim(); 25 | // @RequestParam - Spring- Rest APİ 26 | fetch(`https://api.unsplash.com/search/photos?query=${value}`,{ 27 | method : "GET", 28 | headers : { 29 | Authorization : "Client-ID C-ZwMdVfZLUqf2EUV6lJeOB9k0_1CVGHsXaUfwJRamU" 30 | } 31 | }) 32 | .then((res)=> res.json()) 33 | .then((data)=>{ 34 | Array.from(data.results).forEach((image)=>{ 35 | // console.log(image.urls.small) 36 | addImageToUI(image.urls.small) 37 | }) 38 | }) 39 | .catch((err)=> console.log(err)); 40 | 41 | 42 | e.preventDefault(); 43 | } 44 | 45 | 46 | function addImageToUI(url){ 47 | /* 48 |
No | 97 |Proje İsmi | 98 |Oluşturma Tarihi | 99 |
---|
Some quick example text to build on the card title and make up the bulk of the card's content.
133 |0 adet bilet için ödenecek tutar 0 TL'dir
98 |