Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Removing 'search' unused query selector

オープン 初心者向け
#8,822 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
1/5
見積もり時間
1〜3時間
初心者へのやさしさ
85/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
javascript, jekyll
領域
frontend, search

調査の方向性

assets/js/current-projects.jsで、issueに記載されている2つの#searchセレクターを見つけ、セレクターリストから削除します。その後、ProjectsページとProjects-Checkページのデスクトップ表示とモバイル表示で検索をテストします。必要であれば、モバイル表示にはChrome DevToolsのデバイスモードを使用してください。両方のページの両方の表示で検索が引き続き機能すれば完了です。

索引モデルが issue の本文から書いたものです。

説明

Complexity: Small non-PR contribution P-Feature: Projects page ready for merge team role: back end/devOps size: 0.25pt
Prerequisite
  1. 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.
  2. 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
主要言語
JavaScript
スター
364
フォーク
871
平均マージ
4日 7時間
マージ済み PR(30日)
13

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

hackforla/website のほかの issue

hackforla/website の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。