소스 검색

add log test

ming 4 년 전
부모
커밋
a19fd71e9a
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 3
      index2.html

+ 3 - 3
index2.html

@@ -135,14 +135,14 @@
     function load_data(id){
       var title = document.getElementById("title")
       console.log(id)
-      title.innerHTML = loaded_data.find(item => item.id === id).name
+      title.innerHTML = loaded_data.find(item => item.id === 4).name
       var step;
       for (step = 1; step <= 10; step++) {
-        $(".txtsrc"+step).val(loaded_data.find(item => item.id === id).text_content[step-1]) 
+        $(".txtsrc"+step).val(loaded_data.find(item => item.id === 4).text_content[step-1]) 
       }
       var step2;
       for (step2 = 1; step2 <= 10; step2++) {
-        $(".imgsrc"+step2).val(loaded_data.find(item => item.id === id).image_urls[step-1]) 
+        $(".imgsrc"+step2).val(loaded_data.find(item => item.id === 4).image_urls[step-1]) 
       }
       
     }