@ -42,7 +42,7 @@
<div class="swiper-container">
<div class="swiper-wrapper">
<#list model['category_list'] as item>
<div class="swiper-slide">
<div id="${item['color_cd']?replace("#", "")}" onclick="fncShowCategory(this)" class="swiper-slide">
<a style="cursor:pointer;background-color: ${item['color_cd']}"><span>${item['title']!}</span></a>
</div>
</#list>
@ -75,7 +75,7 @@
</#if>
<#assign topP = item['hour'] + idx>
<#assign pre_hour = item['hour'] + ''>
<span title="${item.title}" style="top:${topP}%;height:${item['add_degree']!}px;background-color: ${item['color_cd']}"></span>
<span key="${item['color_cd']?replace("#", "")}" name="p_timeline_color" title="${item.title}" style="top:${topP}%;height:${item['add_degree']!}px;background-color: ${item['color_cd']}"></span>
</#if>
</#list>
</li>
@ -90,7 +90,7 @@
</#if>
<#assign topP = item['hour'] + idx>
<#assign pre_hour = item['hour'] + ''>
<span title="${item.title}" style="top:${topP}%;height:${item['add_degree']!}px;background-color: ${item['color_cd']}"></span>
<span key="${item['color_cd']?replace("#", "")}" name="p_timeline_color" title="${item.title}" style="top:${topP}%;height:${item['add_degree']!}px;background-color: ${item['color_cd']}"></span>
</#if>
</#list>
</li>
@ -105,7 +105,7 @@
</#if>
<#assign topP = item['hour'] + idx>
<#assign pre_hour = item['hour'] + ''>
<span title="${item.title}" style="top:${topP}%;height:${item['add_degree']!}px;background-color: ${item['color_cd']}"></span>
<span key="${item['color_cd']?replace("#", "")}" name="p_timeline_color" title="${item.title}" style="top:${topP}%;height:${item['add_degree']!}px;background-color: ${item['color_cd']}"></span>
</#if>
</#list>
</li>
@ -120,7 +120,7 @@
</#if>
<#assign topP = item['hour'] + idx>
<#assign pre_hour = item['hour'] + ''>
<span title="${item.title}" style="top:${topP}%;height:${item['add_degree']!}px;background-color: ${item['color_cd']}"></span>
<span key="${item['color_cd']?replace("#", "")}" name="p_timeline_color" title="${item.title}" style="top:${topP}%;height:${item['add_degree']!}px;background-color: ${item['color_cd']}"></span>
</#if>
</#list>
</li>
@ -135,7 +135,7 @@
</#if>
<#assign topP = item['hour'] + idx>
<#assign pre_hour = item['hour'] + ''>
<span title="${item.title}" style="top:${topP}%;height:${item['add_degree']!}px;background-color: ${item['color_cd']}"></span>
<span key="${item['color_cd']?replace("#", "")}" name="p_timeline_color" title="${item.title}" style="top:${topP}%;height:${item['add_degree']!}px;background-color: ${item['color_cd']}"></span>
</#if>
</#list>
</li>
@ -150,7 +150,7 @@
</#if>
<#assign topP = item['hour'] + idx>
<#assign pre_hour = item['hour'] + ''>
<span title="${item.title}" style="top:${topP}%;height:${item['add_degree']!}px;background-color: ${item['color_cd']}"></span>
<span key="${item['color_cd']?replace("#", "")}" name="p_timeline_color" title="${item.title}" style="top:${topP}%;height:${item['add_degree']!}px;background-color: ${item['color_cd']}"></span>
</#if>
</#list>
</li>
@ -165,7 +165,7 @@
</#if>
<#assign topP = item['hour'] + idx>
<#assign pre_hour = item['hour'] + ''>
<span title="${item.title}" style="top:${topP}%;height:${item['add_degree']!}px;background-color: ${item['color_cd']}"></span>
<span key="${item['color_cd']?replace("#", "")}" name="p_timeline_color" title="${item.title}" style="top:${topP}%;height:${item['add_degree']!}px;background-color: ${item['color_cd']}"></span>
</#if>
</#list>
</li>
@ -222,7 +222,7 @@
<div class="fix_icon">
<#-- <button type="button"><img src="../img/ico_image_grey_24.png" alt=""></button>-->
<button id="share-list" type="button"><img src="../img/ico_share_grey_24.png" alt=""></button>
<button id="share-list" type="button"><img style="cursor:pointer" s rc="../img/ico_share_grey_24.png" alt=""></button>
</div>
</div>
<!-- //wrap -->
@ -241,6 +241,18 @@
<!-- 공유기능 -->
<#include "/m/memory/memory_common.ftl">
<script>
function fncShowCategory(e) {
var attr_id = $(e).attr("id");
$("span[name='p_timeline_color']").hide();
$("span[name=p_timeline_color]").each(function(index, item){
item_key = $(item).attr("key");
if(item_key == attr_id) {
$(item).show();
}
});
}
//공유 URL
var param = "member_id=${model['rm_mem']['member_id']!}&smc_no=${model['rm_child']['smc_no']}&dayFlag=${model['rm_mem']['dayFlag']!}&currDate=${model['rm_mem']['currDate']!}";
var shareURL = window.location.protocol + "//" + window.location.host + "${URL_ROOT}" + "/m/memory/memory_week_share?" + param;