/* カスタマイズ用のJavaScriptコードをここに記述してください */ function setCondGps(fm){ var tmpflt = ""; for (i = 1; i <= 11; i++) { var chk = document.getElementById("check_"+i); if (chk && chk.checked) { tmpflt += "&cond" + i + "=" + chk.value; } } if(fm.gpsfilter)fm.gpsfilter.value = tmpflt; } function setCond(chkbox, no) { if (chkbox.checked) { document.formCond["cond"+no].checked = true; } else { document.formCond["cond"+no].checked = false; } } function setShopCnt(cnt) { var result_yes = document.getElementById('result_yes'); var shop_cnt = document.getElementById('shop_cnt'); if (shop_cnt) shop_cnt.innerHTML = cnt; if (cnt) { if (result_yes) result_yes.setAttribute("style", "display: block;"); } else { if (result_yes) result_yes.setAttribute("style", "visibility: hidden;"); } } function openMsg(kid) { var elm = document.getElementById('ZdcEmapShopMsgPop'); if (elm) ZdcEmapShopMsgPop(elm, kid, function () { // /asp/docomoid/common/js/sp/script.jsから移植 function do_resize_modal() { if(!$("#shop-detail__content").is(":visible")) return; $("#shop-detail__content").css({ "height": $("#shop-detail__container").height() - $("#close-modal").innerHeight() - 10 + "px" }); } $modal = $("#shop-detail__overlay"), $detail = $modal.find("#shop-detail__container"); $modal.fadeIn("fast", function(){ $detail.fadeIn("fast"); do_resize_modal(); $("html, body").css({"overflow": "hidden", "height": "100%"}); }); }); } function closeMsg() { // /asp/docomoid/common/js/sp/script.jsから移植 $modal = $("#shop-detail__overlay"), $detail.fadeOut("fast", function(){ $modal.fadeOut("fast"); $("html, body").css({"overflow": "auto", "height": "auto"}); }); } function shopMsgByKid(kid) { if (kid) { ZdcEmapResultAfterFunc = function() { openMsg(kid); ZdcEmapResultAfterFunc = null; } } } ZdcEmapMrkClickFunc = function mrkClickShopMsg(id) { var mrk = ZdcEmapListMarkers[id]; if (mrk) { openMsg(mrk.data1); } } ZdcEmapMrkClstClickFunc = function mrkClickShopMsg(mCluster) { var markers = mCluster.getMarkers(); var kids = new Array(); for (var i=0; i