{"id":3747,"date":"2014-09-16T09:18:40","date_gmt":"2014-09-16T00:18:40","guid":{"rendered":"https:\/\/gunmagisgeek.com\/wordpress\/?p=3747"},"modified":"2017-02-03T01:19:54","modified_gmt":"2017-02-02T16:19:54","slug":"post-3747","status":"publish","type":"post","link":"https:\/\/gunmagisgeek.com\/blog\/javascript\/3747","title":{"rendered":"\u30b9\u30de\u30fc\u30c8\u30d5\u30a9\u30f3\u7528UI\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u300clungo.js\u300d\u3067\u5730\u56f3\u30a2\u30d7\u30ea\u3092\u4f5c\u3063\u3066\u307f\u308b"},"content":{"rendered":"<p><a href=\"http:\/\/shimz.me\/example\/lungo\/map\/index.html\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/gunmagisgeek.com\/blog\/wp-content\/uploads\/2014\/09\/lungomap170914.jpg\" alt=\"lungo.js maps\" width=\"590\" height=\"359\" class=\"aligncenter size-full wp-image-3748\" srcset=\"https:\/\/gunmagisgeek.com\/blog\/wp-content\/uploads\/2014\/09\/lungomap170914.jpg 590w, https:\/\/gunmagisgeek.com\/blog\/wp-content\/uploads\/2014\/09\/lungomap170914-247x150.jpg 247w\" sizes=\"auto, (max-width: 590px) 100vw, 590px\" \/><\/a><\/p>\n<p>\u3068\u3042\u308b\u4e8b\u60c5\u306b\u3088\u308a\u3001\u30b9\u30de\u30db\u5411\u3051\u306b\u5730\u56f3\u3092\u4f7f\u3063\u305fWebApp\u7684\u306a\u3082\u306e\u3092\u4f5c\u308b\u5fc5\u8981\u304c\u3042\u3063\u3066\u3001\u30e2\u30d0\u30a4\u30eb\u5411\u3051\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3092\u3044\u308d\u3044\u308d\u8a66\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u500b\u4eba\u7684\u306b\u306f\u300c<span class=\"removed_link\" title=\"http:\/\/lungo.tapquo.com\/\">lungo.js<\/span>\u300d\u3068\u3044\u3046\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u304c\u624b\u6301\u3061\u306eiPhone4s\u3067\u898b\u3066\u3082\u30ad\u30d3\u30ad\u30d3\u52d5\u3044\u3066\u6c17\u306b\u5165\u3063\u305f\u306e\u3067\u3059\u304c\u3001IE\u306b\u306f\u307e\u3063\u305f\u304f\u5bfe\u5fdc\u3057\u3066\u3044\u306a\u3044\u3089\u3057\u3044\u306e\u3067\u4eca\u56de\u306f\u898b\u9001\u308a\u3002\uff08\u516c\u5f0f\u306eKitchenSink\u3082IE10\u3067\u52d5\u304b\u306a\u304b\u3063\u305f\u306e\u3067\u3001IE\u306f\u5b8c\u5168\u30b9\u30eb\u30fc\u3068\u3044\u3046\u65b9\u91dd\u3089\u3057\u3044\u3067\u3059\uff09<\/p>\n<p>\u304b\u306a\u308a\u6027\u80fd\u306e\u826f\u3044\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3060\u3068\u601d\u3046\u306e\u3067\u3059\u304c\u3001\u65e5\u672c\u8a9e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306f\u304a\u308d\u304b\u82f1\u8a9e\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3059\u3089\u516c\u5f0f\u4ee5\u5916\u306b\u306f\u307b\u3068\u3093\u3069\u898b\u5f53\u305f\u3089\u306a\u3044\u3068\u3044\u3046\u30cb\u30c3\u30c1\u3055\u3002<\/p>\n<p>\u8208\u5473\u304c\u3042\u308b\u65b9\u306f\u4f7f\u3063\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<h2>\u30b5\u30f3\u30d7\u30eb<\/h2>\n<p><iframe loading=\"lazy\" id=\"demo\" src=\"http:\/\/shimz.me\/example\/lungo\/map\/index.html\" width=\"320\" height=\"512\"><\/iframe><br \/>\n<a href=\"http:\/\/shimz.me\/example\/lungo\/map\/index.html\">example<\/a><\/p>\n<pre class=\"lang:xhtml decode:true \" >&lt;!doctype html&gt;\r\n&lt;html&gt;\r\n&lt;head&gt;\r\n&lt;meta charset=\"utf-8\"&gt;\r\n&lt;title&gt;lungo gmap&lt;\/title&gt;\r\n&lt;meta name=\"description\" content=\"\"&gt;\r\n&lt;meta name=\"HandheldFriendly\" content=\"True\"&gt;\r\n&lt;meta name=\"viewport\" content=\"initial-scale=1.0, maximum-scale=1.0, user-scalable=no\" \/&gt;\r\n&lt;meta name=\"apple-mobile-web-app-capable\" content=\"yes\"&gt;\r\n&lt;meta name=\"apple-mobile-web-app-status-bar-style\" content=\"black\"&gt;\r\n&lt;meta name=\"mobile-web-app-capable\" content=\"yes\"&gt;\r\n&lt;meta name=\"format-detection\" content=\"telephone=no\"&gt;\r\n&lt;meta http-equiv=\"cleartype\" content=\"on\"&gt;\r\n\r\n&lt;!-- Main Stylesheet --&gt;\r\n&lt;link rel=\"stylesheet\" href=\"..\/css\/lungo.css\"&gt;\r\n&lt;link rel=\"stylesheet\" href=\"..\/css\/lungo.theme.css\"&gt;\r\n&lt;link rel=\"stylesheet\" href=\"..\/css\/lungo.icon.css\"&gt;\r\n\t\t\r\n&lt;style&gt;\r\nhtml, body{\r\n    margin: 0px;\r\n    padding: 0px;\r\n}\r\nhtml, body, #map {\r\n\twidth: 100%;\r\n\theight: 100%;\r\n}\r\n&lt;\/style&gt;\t\t\r\n\t\t\r\n&lt;\/head&gt;\r\n\r\n&lt;body&gt;\r\n&lt;!-------------------------------------------------------------------------------------------------------\r\n\t\u30b5\u30a4\u30c9\u30e1\u30cb\u30e5\u30fc\r\n----------------------------------------------------------------------------------------------------------&gt;\r\n&lt;aside id=\"features\" &gt;\r\n\t&lt;header&gt;\r\n\t\t&lt;h1 class=\"title text big\"&gt;Menu&lt;\/h1&gt;\r\n\t&lt;\/header&gt;\r\n\r\n\t&lt;article id=\"sss\" class=\"list active\"&gt;\r\n\t\t&lt;ul&gt;\r\n\t\t\t&lt;li  class=\"active\"  data-view-article=\"map-art\" data-title=\"\u5730\u56f3\" data-icon=\"map-marker\"&gt;\r\n\t\t\t\t&lt;a href=\"#\"&gt;\r\n\t\t\t\t\t&lt;strong&gt;\u5730\u56f3&lt;\/strong&gt;\r\n\t\t\t\t&lt;\/a&gt;\r\n\t\t\t&lt;\/li&gt;\r\n\r\n\t\t\t&lt;li data-view-article=\"route-atr\" data-title=\"\u65bd\u8a2d\"  data-icon=\"align-justify\"&gt;\r\n\t\t\t\t&lt;div class=\"tag count on-right\"&gt;4&lt;\/div&gt;\r\n\t\t\t\t&lt;strong class=\"text big\"&gt;\u65bd\u8a2d&lt;\/strong&gt;\r\n\t\t\t\t&lt;small&gt;\u30bf\u30c3\u30d7\u3057\u305f\u5730\u70b9\u306b\u79fb\u52d5&lt;\/small&gt;\r\n\t\t\t&lt;\/li&gt;\r\n\t\t&lt;\/ul&gt;\r\n\t&lt;\/article&gt;\r\n&lt;\/aside&gt;\r\n\r\n\r\n&lt;!-------------------------------------------------------------------------------------------------------\r\n\t\u30e1\u30a4\u30f3\u30b3\u30f3\u30c6\u30f3\u30c4\r\n----------------------------------------------------------------------------------------------------------&gt;\r\n&lt;section id=\"layout\" data-transition=\"\" data-aside=\"features\"&gt;\r\n\t&lt;!-- \u30d8\u30c3\u30c0\u30fc --&gt;\r\n\t&lt;header data-tistle=\"Layout\"&gt;\r\n\t\t&lt;nav class=\"on-left\"&gt;\r\n\t\t\t&lt;a href=\"#\" data-view-aside=\"features\" data-icon=\"menu\"&gt;&lt;\/a&gt;\r\n\t\t&lt;\/nav&gt;\r\n\t\t&lt;h1 class=\"title centered\"&gt;\r\n\t\t\t\u30bf\u30a4\u30c8\u30eb\r\n\t\t&lt;\/h1&gt;\r\n\t&lt;\/header&gt;\r\n\r\n\t&lt;!-- \u5730\u56f3\u30fc --&gt;\r\n\t&lt;article id=\"map-art\" class=\"active\"&gt;\r\n\t   &lt;div id=\"map\"&gt;&lt;\/div&gt;\r\n\t&lt;\/article&gt;  \r\n\r\n\t&lt;!-- \u65bd\u8a2d\u4e00\u89a7 --&gt;\t\r\n\t&lt;article id=\"route-atr\" class=\"list scroll \"&gt;\r\n\t\t&lt;ul&gt;\r\n\t\t\t&lt;li class=\"anchor contrast\"&gt;\u9ad8\u5d0e&lt;\/li&gt;\r\n\t\t\t&lt;li&gt;\r\n\t\t\t\t&lt;a  href=\"#\"  data-view-article=\"map-art\" data-action=\"point_selected\" data-latlng=\"36.322356,139.013057\"&gt;\r\n\t\t\t\t\t&lt;strong&gt;\u9ad8\u5d0e\u99c5&lt;\/strong&gt;\r\n\t\t\t\t&lt;\/a&gt;\r\n\t\t\t&lt;\/li&gt;\r\n\t\t\t&lt;li&gt;\r\n\t\t\t\t&lt;a  href=\"#\" data-view-article=\"map-art\" data-action=\"point_selected\" data-latlng=\"36.3219477,139.00335240000004\"&gt;\r\n\t\t\t\t\t&lt;strong&gt;\u9ad8\u5d0e\u5e02\u5f79\u6240&lt;\/strong&gt;\r\n\t\t\t\t&lt;\/a&gt;\r\n\t\t\t&lt;\/li&gt;\r\n\r\n\t\t&lt;li class=\"anchor contrast\"&gt;\u5927\u5bae&lt;\/li&gt;\t\t\r\n\t\t\t&lt;li&gt;\r\n\t\t\t\t&lt;a  href=\"#\" data-view-article=\"map-art\" data-action=\"point_selected\" data-latlng=\"35.906295,139.62399900000003\"&gt;\r\n\t\t\t\t\t&lt;strong&gt;\u5927\u5bae\u99c5&lt;\/strong&gt;\r\n\t\t\t\t&lt;\/a&gt;\r\n\t\t\t&lt;\/li&gt;\r\n\t\t\t&lt;li&gt;\r\n\t\t\t\t&lt;a  href=\"#\" data-view-article=\"map-art\" data-action=\"point_selected\" data-latlng=\"35.923507,139.63239\"&gt;\r\n\t\t\t\t\t&lt;strong&gt;\u5927\u5bae\u516c\u5712&lt;\/strong&gt;\r\n\t\t\t\t&lt;\/a&gt;\r\n\t\t\t&lt;\/li&gt;\t\t\r\n\t\t&lt;\/ul&gt;\r\n\t&lt;\/article&gt;\r\n\t\r\n\t&lt;!--\r\n\t&lt;footer&gt;\r\n\t\t&lt;nav&gt;\r\n\t\t\t&lt;a href=\"#\" data-view-article=\"map-art\" data-icon=\"screenshot\" class=\"active\" &gt;&lt;\/a&gt;\r\n\t\t&lt;\/nav&gt;\r\n\t&lt;\/footer&gt;\r\n\t--&gt;\t\r\n&lt;\/section&gt;\r\n\r\n\r\n&lt;script src=\"..\/quo.js\"&gt;&lt;\/script&gt;\r\n&lt;script src=\"..\/lungo.js\"&gt;&lt;\/script&gt;\r\n\r\n&lt;script type=\"text\/javascript\" src=\"http:\/\/maps.googleapis.com\/maps\/api\/js?sensor=false\"&gt;&lt;\/script&gt;\r\n\r\n&lt;script&gt;\r\n\tLungo.init({\r\n\t\tname: 'Flexbox',\r\n\t\tversion: '2.2',\r\n\t\thistory: false\r\n\t});\r\n\r\n\tLungo.ready(function() {\r\n\t\t\/\/\u753b\u9762\u8868\u793a\u6642\u306b\u518d\u5ea6\u30e1\u30cb\u30e5\u30fc\u3092\u958b\u304f\r\n\t\tLungo.Aside.show(\"features\");\r\n\r\n\t\t\/\/Google Map \u521d\u671f\u5316\r\n\t\tvar map = new google.maps.Map(document.getElementById('map'), {\r\n\t\t\tzoom: 16,\r\n\t\t\tmapTypeId: google.maps.MapTypeId.ROADMAP,\r\n\t\t\tcenter: { lat: 35.906961392699998, lng: 139.622833797 },       \r\n\t\t});\r\n\t\t\r\n\t\t$$(\"[data-action=point_selected]\").tap(function(event) {\r\n\t\t\tvar latlng = this.dataset.latlng.split(\",\");\r\n\t\t\tmap.panTo(new google.maps.LatLng(latlng[0], latlng[1]));\r\n\t\t});\r\n\t\t\r\n\t});\r\n\r\n&lt;\/script&gt;\r\n&lt;\/body&gt;\r\n&lt;\/html&gt;\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u3068\u3042\u308b\u4e8b\u60c5\u306b\u3088\u308a\u3001\u30b9\u30de\u30db\u5411\u3051\u306b\u5730\u56f3\u3092\u4f7f\u3063\u305fWebA&hellip;<\/p>\n","protected":false},"author":1,"featured_media":3748,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-3747","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-javascript","has-post-thumbnail-archive"],"_links":{"self":[{"href":"https:\/\/gunmagisgeek.com\/blog\/wp-json\/wp\/v2\/posts\/3747","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gunmagisgeek.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/gunmagisgeek.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/gunmagisgeek.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/gunmagisgeek.com\/blog\/wp-json\/wp\/v2\/comments?post=3747"}],"version-history":[{"count":1,"href":"https:\/\/gunmagisgeek.com\/blog\/wp-json\/wp\/v2\/posts\/3747\/revisions"}],"predecessor-version":[{"id":3749,"href":"https:\/\/gunmagisgeek.com\/blog\/wp-json\/wp\/v2\/posts\/3747\/revisions\/3749"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/gunmagisgeek.com\/blog\/wp-json\/wp\/v2\/media\/3748"}],"wp:attachment":[{"href":"https:\/\/gunmagisgeek.com\/blog\/wp-json\/wp\/v2\/media?parent=3747"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gunmagisgeek.com\/blog\/wp-json\/wp\/v2\/categories?post=3747"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gunmagisgeek.com\/blog\/wp-json\/wp\/v2\/tags?post=3747"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}