if (typeof itsmo == 'undefined') { var itsmo = {}; } if (typeof itsmo.special === 'undefined') { itsmo.special = {}; } itsmo.special.dam = {}; itsmo.special.dam.fbShareSP = function (title, url) { title = encodeURIComponent(title); url = encodeURI(url); var baseURL = itsmo.lib.getBaseURL(); var app_id = 'app_id=' + '268920203204669' + '&'; var redirect_uri = 'redirect_uri=' + baseURL + '/c/close_popup.php&'; var display = 'display=touch&'; var _link = 'link=' + url + '&'; var name = 'name=' + title + '&'; var description = 'description=' + url + '&'; var picture = '&picture=https://www.its-mo.com/design/img/smart/bookmark.png&'; var sdk = 'sdk=joey'; var https = 'https://m.facebook.com/dialog/feed?' + app_id + redirect_uri + picture + name + description + _link + display + sdk; wind = window.open(https, "_blank", "width=450, height=450"); wind.onBeforeUnload = function () { window.close(); }; }; itsmo.special.dam.makeLinkShareFB = function (title, url) { title = encodeURIComponent(title); url = encodeURI(url); var app_id = 'app_id=' + '268920203204669' + '&'; var redirect_uri = 'redirect_uri=https://facebook.com&'; var display = 'display=page&'; var _link = 'link=' + url + '&'; var name = 'name=' + title + '&'; var description = 'description=' + url + '&'; var picture = '&picture=https://www.its-mo.com/design/img/smart/bookmark.png&'; var sdk = 'sdk=joey'; var https = 'https://facebook.com/dialog/feed?' + app_id + redirect_uri + picture + name + description + _link + display + sdk; return https; }; itsmo.special.dam.makeLinkShareTwitter = function (title, url) { var href = 'http://twitter.com/share?text='; title = encodeURIComponent(title); url = encodeURI(url); href += title + '%0a' +'&url=' +url; return href; }; itsmo.special.dam.makeLinkShareLine = function (title, url) { var href = 'http://line.naver.jp/R/msg/text/?'; title = encodeURIComponent(title); url = encodeURI(url); href += title + '%0a' + url; return href; }; itsmo.special.dam.widgets = []; itsmo.special.dam.arrayLatLon = []; itsmo.special.dam.g_map_obj = null; itsmo.special.dam.initMapDetail = function(url) { if (typeof ZDC === 'undefined' || typeof ZDC.Map === 'undefined') { return; } var lvl = 13; var e = $('#list_hiden_data li:first-child').find('input:hidden').val().split(','); var lat = parseInt(e[2], 10) / (60 * 60 * 1000); var lon = parseInt(e[3], 10) / (60 * 60 * 1000); var latlon = new ZDC.LatLon(lat, lon); ZDC._TILE_PATHS["4"] = ZDC._TILE_PATHS["24"]; itsmo.special.dam.g_map_obj = new ZDC.Map( $('#idMap').get(0), { mapType: ZDC.MAPTYPE_COLOR, latlon: latlon, zoom: lvl } ); itsmo.special.dam.g_map_obj.dragOn(); itsmo.special.dam.g_map_obj.zoomOn(); // クリック地点を地図の中心点として移動 ZDC.addListener(itsmo.special.dam.g_map_obj, ZDC.MAP_CLICK, function(){ var latlon = itsmo.special.dam.g_map_obj.getClickLatLon(); itsmo.special.dam.g_map_obj.moveLatLon(latlon); }); var latlons = []; $('#list_hiden_data li').each(function() { var e = $(this); var s = e.find('input:hidden').val().split(','); var id = s[0]; var name = s[1]; var lat = parseInt(s[2], 10) / (60 * 60 * 1000); var lon = parseInt(s[3], 10) / (60 * 60 * 1000); var index = parseInt(s[4],10); var latlon = new ZDC.LatLon(lat, lon); var url = e.find('a').attr('href'); var mark = new ZDC.UserWidget(latlon, { size: new ZDC.WH(22, 34), html: '', offset: new ZDC.Pixel(-10, -29) }); itsmo.special.dam.g_map_obj.addWidget(mark); mark.open(); var html = '