Skip to content

sang myPage.html calender 추가하기#2

Open
zmo112 wants to merge 1 commit into
DEVdongbaek:homeworkfrom
zmo112:homework
Open

sang myPage.html calender 추가하기#2
zmo112 wants to merge 1 commit into
DEVdongbaek:homeworkfrom
zmo112:homework

Conversation

@zmo112
Copy link
Copy Markdown

@zmo112 zmo112 commented Oct 5, 2024

마이페이지에 캘린더와 누르면 하트를 추가하는 기능을 구현하였습니다!
스크린샷 2024-10-05 223618

<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/js/bootstrap.bundle.min.js"></script>
<!-- Responsive navbar-->
<script src="https://code.jquery.com/jquery-3.4.1.js"></script>
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

현재 Commit 된 코드들 중 주석을 제거한 부분이 많이 보이는데, 주석을 제한 이유가 있을까요?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

주석 안보고 이해해보려고 잠시 지워놓았다가 복구하는걸 까먹은거 같습니다! ’-‘

<th>Sat</th>
</tr>
</thead>
<tbody id="calendarBody"></tbody>
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

해당 tbody 내의 요소를 클릭하였을 때 해당 날짜에 해당 하는 3감사 3회개 Data는 어떻게 가져올 수 있을지 추가적으로 생각해보면 좋을 것 같아요!

</body>

<!-- Bootstrap core JS-->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/js/bootstrap.bundle.min.js"></script>
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

추가적으로 현재 저희는 CDN을 통해서 라이브러리들을 의존하고 있어요. 이 때 발생할 수 있는 문제점은 무엇이고, 이를 해결하기 위해서는 어떻게 해야 할지 생각해보면 좋을 것 같아요!

});

// Heart toggle on date click
$("#calendarBody").on("click", "td", function () {
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

현재 올려준 Commit 내용은 모두 온전히 Client Side에 대한 내용입니다. Server Side에 대한 경험도 해볼 겸 해당 유저가 Daily를 작성한 날짜에만 Heart를 activate 속성을 주는 기능을 구현해보는건 어떨까요?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants