|
@@ -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])
|
|
|
}
|
|
|
|
|
|
}
|