jsp 코드의 html 부분이야. 해석하고 기억해놔. <%@ page language="java" contentType="text/html;…
- User
jsp 코드의 html 부분이야. 해석하고 기억해놔. <%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%> <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> <%@ taglib prefix="ui" uri="http://egovframework.gov/ctl/ui"%> <%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%> <%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<div id="wrap"> <!-- container 시작 --> <div id="main_container"> <!-- hospital 섹션 --> <section class="page-section hospital" id="hospital"> <div class="container"> <br> <div class="row justify-content-center"> <div class="col-md-6 col-lg-4 mb-5" style="position: relative; display: flex; justify-content: center; align-items: center; height: 100%; transform: translateY(-25px);"> <!-- 인체 모양--> <c:url value='/images/human.png' var="imgSrc" /> <img src="${imgSrc}" alt="Alternative Text" style="width: 90%; height: 90%;" /> <!-- 전면 버튼 시작--> <!-- 머리 버튼 --> <div id="head-btn" class="position-absolute translate-middle" style="top: 7%; left: 49.9%;"> <button class="btn btn-primary btn-opacity" style="width: 70px; height: 90px; border-radius: 50%;" data-bs-toggle="modal" data-bs-target="#hospitalModal1"></button> </div> </div> </div> </div> </section> <!-- 병원 위치 지도 섹션--> <section class="page-section hospital" style="height: 1000px;"> <div class="row justify-content-center" style="width: 99%;"> <div class="col-md-6 col-lg-4 mb-5" style="position: relative; display: flex; justify-content: center; align-items: center;"> <h1>지도가 나오는 부분</h1> </div> </div> <div style= "position: relative; display: flex; justify-content: center; align-items: center;" > <div style="width:1000px; height:500px;" id="map"></div> </div> </section> <!-- 모달창 구간 --> <!-- 머리 --> <div class="hospital-modal modal fade" id="hospitalModal1" tabindex="-1" aria-labelledby="hospitalModal1" aria-hidden="true"> <div class="modal-dialog modal-xl"> <div class="modal-content"> <div style="position: relative;"> <button class="btn-close" type="button" data-bs-dismiss="modal" aria-label="Close" style="position: absolute; right: 0;"></button> </div> <div class="modal-body text-center pb-5"> <div class="container"> <div class="row justify-content-center"> <div class="col-lg-8"> <h2 class="hospital-modal-title text-secondary text-uppercase mb-0">머리</h2> <div class="divider-custom"> <div class="divider-custom-line"></div> <div class="divider-custom-icon"> <i class="fas fa-star"></i> </div> <div class="divider-custom-line"></div> </div> <button class="btn btn-primary" onclick="closeModalAndScrollToSection(); getUserLocation();"> <i class="fas fa-xmark fa-fw"></i> 완료 </button> </div> </div> </div> </div> </div> </div> </div> - Assistant
이 코드는 사용자에게 병원 정보를 제공하는 JSP 웹 페이지의 HTML 구성입니다. 코드는 다음과 같이 구성됩니다:
-
페이지 디렉티브와 태그 라이브러리 선언: JSP 페이지가 Java 언어로 작성되었음을 명시하고, 표준 태그 라이브러리인 JSTL과 e-Government Framework의 UI 컴포넌트, Spring 프레임워크 태그, 함수 태그 등을 사용하기 위한 설정입니다.
-
HTML 및 메타 태그: 문서 유형 선언과
html,head,body등의 기본 HTML 태그를 포함합니다.meta태그를 통해 콘텐츠 언어를 한국어로 설정하고 있습니다. -
자바스크립트 지원 경고: 브라우저가 자바스크립트를 지원하지 않으면 사용자에게 경고 메시지를 표시하는
noscript태그가 있습니다. -
병원 섹션: 인체 모양의 이미지와 머리 부분을 선택할 수 있는 버튼을 포함하여 사용자가 해당 부위에 대한 병원 정보를 조회할 수 있도록 구성된 섹션입니다.
-
병원 위치 지도 섹션: 지도를 표시할
div요소가 있으며, 실제 지도는 해당 섹션에 동적으로 삽입될 것으로 보입니다. -
모달창 구간: 사용자가 머리 부위 버튼을 클릭할 때 나타나는 모달 창으로, 자세한 정보를 동적으로 표시하고 사용자 상호작용을 가능하게 합니다. '완료' 버튼을 클릭하면 모달이 닫히며 사용자의 위치를 확인하는 함수가 호출됩니다.
각 섹션과 요소에는 여러 스타일과 스크립트가 적용되어 있어, 사용자에게 인터랙티브하고 직관적인 인터페이스를 제공합니다. JSP 코드 내에 스크립트와 데이터 동적 바인딩을 위한 추가 서버 사이드 코드가 존재할 것입니다.
-