Removing 'search' unused query selector
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 1/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 85/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- javascript, jekyll
Hướng nghiên cứu
Trong assets/js/current-projects.js, hãy tìm hai bộ chọn #search được nêu trong issue và xóa chúng khỏi các danh sách bộ chọn. Sau đó, kiểm tra tìm kiếm ở chế độ xem desktop và mobile trên các trang Projects và Projects-Check; nếu hữu ích, hãy dùng chế độ thiết bị của Chrome DevTools cho chế độ xem mobile. Công việc được xem là hoàn tất khi tìm kiếm vẫn hoạt động ở cả hai chế độ xem trên cả hai trang.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Prerequisite
- Be a member of Hack for LA. (There are no fees to join.) If you have not joined yet, please follow the steps on our Getting Started page and attend an onboarding session.
- Before you claim or start working on an issue, please make sure you have read our How to Contribute to Hack for LA Guide.
Overview
We need to remove query selectors for 'search' since there is no existing id for 'search' in '_includes/current-projects.html'
Action Items
-
Locate the 2 instances of 'document.querySelector('#search')' in 'assets/js/current-projects.js'
-
Make the following revisions to 'assets/js/current-projects.js'
Before:const allInputEl = Array.from(document.querySelectorAll('#search-desktop, #search-mobile, #search'));After removing
#search:const allInputEl = Array.from(document.querySelectorAll('#search-desktop, #search-mobile'));Before:
function searchCloseEventHandler(e){ e.preventDefault(); const input = document.querySelector('#search-desktop') || document.querySelector('#search-mobile') || document.querySelector('#search'); if (input) input.value=""; }After removing
document.querySelector('#search'):function searchCloseEventHandler(e){ e.preventDefault(); const input = document.querySelector('#search-desktop') || document.querySelector('#search-mobile'); if (input) input.value=""; } -
Test and verify that the changes still work by performing a search in both mobile and desktop views on the Projects and Projects-Check pages
Resources/Instructions
-
Tutorial on Chrome's Dev Tools to test for mobile views: https://developer.chrome.com/docs/devtools/device-mode
-
Hack for LA Projects Page: https://www.hackforla.org/projects/
-
Hack for LA Projects Check Page: https://www.hackforla.org/projects-check/
- Ngôn ngữ chính
- JavaScript
- Star
- 364
- Fork
- 871
- Merge trung bình
- 4 ngày 7 giờ
- Pull request đã merge (30 ngày)
- 13
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của hackforla/website
-
good first issue P-Feature: Project Info and Page Ready for Prioritization role: back end/devOps role: front end size: 0.25pt time sensitive
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 90/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Feature: Code Alerts good first issue P-Feature: Project Info and Page role: back end/devOps role: front end size: 0.25pt
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
hackforla/website#8825 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Feature: Code Alerts good first issue P-Feature: Project Info and Page role: back end/devOps role: front end size: 0.25pt
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 88/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Feature: Code Alerts good first issue P-Feature: Project Info and Page role: back end/devOps role: front end size: 0.25pt
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100
Maintainer thường phản hồi trong vòng 1 ngày
-
good first issue P-Feature: Project Info and Page P-Feature: Projects page Ready for Prioritization role: back end/devOps role: front end size: 0.25pt time sensitive
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 86/100
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của hackforla/website
Issue tương tự
-
Bug pulumi/pulumi
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
andromarces/agent-loops#571 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Code Cleanup Dev Environment
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
ProjectSidewalk/SidewalkWebpage#5699 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
automated issue report
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 64/100
lirantal/discoprint#38 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
zenstackhq/zenstack#2873 ·
Maintainer thường phản hồi trong vòng 1 ngày