{"id":1494,"date":"2012-12-24T12:57:08","date_gmt":"2012-12-24T03:57:08","guid":{"rendered":"http:\/\/zairyo.susi.oita-u.ac.jp\/wordpress\/?p=1494"},"modified":"2016-10-17T09:46:44","modified_gmt":"2016-10-17T09:46:44","slug":"%e3%83%89%e3%83%a9%e3%83%83%e3%82%b0%e3%81%97%e3%81%a6%e4%b8%a6%e3%81%b9%e6%9b%bf%e3%81%88","status":"publish","type":"post","link":"http:\/\/zairyo.susi.oita-u.ac.jp\/wordpress\/?p=1494","title":{"rendered":"\u30c9\u30e9\u30c3\u30b0\u3057\u3066\u4e26\u3079\u66ff\u3048"},"content":{"rendered":"<p style=\"text-align: right;\">text by kondo<\/p>\n<p>\u30d6\u30e9\u30a6\u30b6\u4e0a\u3067\u306e\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u3068\u3057\u3066\uff0c\u4f55\u3089\u304b\u306e\u8981\u7d20\u3092\u4e26\u3079\u308b\u4ed5\u7d44\u307f\u304c\u5fc5\u8981\u306b\u306a\u308a\u307e\u3057\u305f\u3002\u9650\u3089\u308c\u305f\u8981\u7d20\u304b\u3089\uff0c\u4e00\u500b\u305a\u3064\u9078\u3093\u3067\u3044\u304f\u306e\u3067\uff0c\u6700\u521d\u306f\u30c9\u30ed\u30c3\u30d7\u30c0\u30a6\u30f3\u30ea\u30b9\u30c8\u3092\u4f7f\u304a\u3046\u304b\u3068\u8003\u3048\u305f\u306e\u3067\u3059\u304c\uff08\u5019\u88dc\u304c\u3060\u3093\u3060\u3093\u3068\u6e1b\u3063\u3066\u3044\u304f\u611f\u3058\u306e\u3082\u306e\uff09\uff0c\u3042\u3068\u3067\u4fee\u6b63\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u305f\u3044\u3068\u8003\u3048\u308b\u3068\uff0c\u30c9\u30ed\u30c3\u30d7\u30c0\u30a6\u30f3\u30ea\u30b9\u30c8\u3067\u306f\u5177\u5408\u304c\u60aa\u3044\u3067\u3059\u3002\u7d50\u5c40\uff0c\u4e00\u76f4\u7dda\u306b\u4e26\u3079\u3066\u304a\u3044\u3066\uff0c\u30c9\u30e9\u30c3\u30b0\u3057\u3066\u81ea\u7531\u306b\u9806\u756a\u3092\u5165\u308c\u66ff\u3048\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3088\u3046\u306a\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u3092\u76ee\u6a19\u3068\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u6700\u521d\u306f\uff0cjQuery\u306e<a href=\"http:\/\/touchpunch.furf.com\/\"><span style=\"color: #0000ff;\">touch-punch<\/span><\/a>\u3068\u3044\u3046\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u898b\u3064\u3051\u3066\uff0c\u305d\u306e\u6a5f\u80fd\u3092\u5229\u7528\u3057\u3088\u3046\u3068\u3057\u307e\u3057\u305f\u3002\u3053\u308c\u306esortable\u3068\u3044\u3046\u6a5f\u80fd\u304c\u826f\u3055\u305d\u3046\u3067\u3057\u305f\u3002\u4e0b\u8a18\u306f\u305d\u306e\u30a4\u30e1\u30fc\u30b8\u3002<\/p>\n<p style=\"text-align: center;\"><a href=\"http:\/\/zairyo.susi.oita-u.ac.jp\/wordpress\/wp-content\/uploads\/2012\/12\/sortable.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter  wp-image-1503\" title=\"sortable\" src=\"http:\/\/zairyo.susi.oita-u.ac.jp\/wordpress\/wp-content\/uploads\/2012\/12\/sortable.png\" alt=\"\" width=\"361\" height=\"297\" \/><\/a><\/p>\n<p>\u305f\u3060\u3057\uff0c\u3053\u308c\u306f\u7e26\u306e\u4e26\u3073\u3067\uff0c\u6a2a\u306b\u66f8\u304d\u63db\u3048\u305f\u3068\u304d\u306b\u306f\u4e0a\u624b\u304f\u50cd\u304d\u307e\u305b\u3093\u3002\u305d\u3053\u3067\uff0ctouch-punch\u306e\u6a5f\u80fd\u306e\u3046\u3061\uff0c\u30c9\u30e9\u30c3\u30b0\u3060\u3051\u5229\u7528\u3057\u3066\uff0c\u81ea\u5206\u3067\u66f8\u3044\u3066\u307f\u307e\u3057\u305f\u3002jQuery\u306e\u30d7\u30e9\u30b0\u30a4\u30f3\u3068\u3044\u3046\u8a33\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u4e0b\u8a18\u304c\u305d\u306e\u30a4\u30e1\u30fc\u30b8\u3068\u30c7\u30e2\u30b5\u30a4\u30c8\u3078\u306e\u30ea\u30f3\u30af\u3067\u3059\u3002<\/p>\n<p style=\"text-align: center;\"><a href=\"http:\/\/zairyo.susi.oita-u.ac.jp\/wordpress\/wp-content\/uploads\/2012\/12\/move1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter  wp-image-1501\" style=\"border: 1px solid black;\" title=\"move\" src=\"http:\/\/zairyo.susi.oita-u.ac.jp\/wordpress\/wp-content\/uploads\/2012\/12\/move1.png\" alt=\"\" width=\"479\" height=\"123\" \/><\/a> <a title=\"DOM\u306e\u79fb\u52d5\u3068\u4e26\u3079\u66ff\u3048\" href=\"http:\/\/zairyo.susi.oita-u.ac.jp\/wordpress_extra\/exsample\/move\/content.html\"><span style=\"color: #0000ff;\">\u30b5\u30f3\u30d7\u30eb\u3078\u306e\u30ea\u30f3\u30af<\/span><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>\uff08\u5927\u307e\u304b\u306a\u8a71\u3092\uff09\u3000\u30c9\u30e9\u30c3\u30b0\u306f\u4f4d\u7f6e\u6c7a\u3081\u3060\u3051\u306b\u5229\u7528\u3057\u307e\u3059\u30022\u679a\u306e\u30ec\u30a4\u30e4\u30fc\u3092\u5229\u7528\u3057\u307e\u3059\u3002\u3042\u308bItem\u4e0a\u306b\u30de\u30a6\u30b9\u304c\u6765\u305f\u3089\uff0c\u4e0a\u306e\u30ec\u30a4\u30e4\u30fc\u306b\u305d\u306eItem\u3092\u30b3\u30d4\u30fc\u3057\u3066\uff0c\u30c9\u30e9\u30c3\u30b0\u53ef\u80fd\u3068\u3057\u307e\u3059\u3002\u3053\u308c\u3092\u30c9\u30e9\u30c3\u30b0\u3057\u3066\u79fb\u52d5\u3055\u305b\u3066\uff0c\u9069\u5f53\u306a\u3068\u3053\u308d\u3067\u30de\u30a6\u30b9\u304b\u3089\u96e2\u3057\u305f\u3068\u304d\uff0c\u305d\u306e\u30de\u30a6\u30b9\u306e\u4f4d\u7f6e\u3092\u8aad\u307f\u53d6\u3063\u3066\uff0c\u5143\u306eItem\u3092\u8aad\u307f\u53d6\u3063\u305f\u4f4d\u7f6e\u306b\u79fb\u52d5\u3055\u305b\u308b\u3068\u3044\u3046\u65b9\u6cd5\u3067\u3059\u3002touch-punch\u3067\uff0c\u4e00\u7aef\u30c9\u30e9\u30c3\u30b0\u53ef\u80fd\u3068\u3059\u308b\u3068\uff0c\u3053\u306e\u30c9\u30e9\u30c3\u30b0\u6a5f\u80fd\u3092\u524a\u9664\u3067\u304d\u307e\u305b\u3093\u3067\u3057\u305f\u3002\u3053\u308c\u304c\u6b8b\u3063\u3066\u3044\u308b\u3068\uff0c\u914d\u7f6e\u304c\u76f8\u5bfe\u914d\u7f6e\u3068\u306a\u3063\u3066\uff0c\u81ea\u52d5\u7684\u306b\u5de6\u8a70\u3067\u6574\u5217\u3057\u3066\u304f\u308c\u307e\u305b\u3093\u3002\u305d\u3053\u3067\uff0c\u30b3\u30d4\u30fc\u3057\u305fDOM\u3092\u30c9\u30e9\u30c3\u30b0\u53ef\u80fd\u3068\u3057\u3066\u79fb\u52d5\u3055\u305b\u3066\uff0c\u4e0d\u8981\u306b\u306a\u3063\u305f\u3089\u524a\u9664\u3059\u308b\u3068\u3044\u3046\u624b\u9806\u3068\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u4ee5\u4e0b\uff0c\u9806\u3092\u8ffd\u3063\u3066\u66f8\u3044\u3066\u307f\u307e\u3059\u3002\u307e\u305a\uff0c\u5bfe\u8c61\u3068\u306a\u308bDOM\u3092\u7528\u610f\u3057\u307e\u3059\u3002\uff13\u3064\u306e div \u8981\u7d20\u3068\uff0c\u4e26\u3079\u66ff\u3048\u308b\u5bfe\u8c61\u3068\u306a\u308b 7\u500b\u306e \u5c0f\u3055\u306a div \u8981\u7d20\u3092\u6e96\u5099\u3057\u307e\u3059\u3002\u4e0b\u8a18\u306e\u3088\u3046\u306b\u6539\u884c\u3057\u3066\u30b3\u30fc\u30c9\u3092\u6574\u5217\u3055\u305b\u308b\u3068\uff0cDOM\u3068DOM\u306e\u9593\u306b\u9699\u9593\u304c\u751f\u3058\u307e\u3059\u3002\u305d\u3053\u3067\uff0c\u5b9f\u969b\u306e\u30bd\u30fc\u30b9\u3067\u306f\u6539\u884c\u3092\u5165\u308c\u305a\u306b\u7d9a\u3051\u3066\u66f8\u3044\u3066\u3044\u307e\u3059\u3002\u8a73\u3057\u304f\u306f\uff0c\u3053\u306e\u30b5\u30a4\u30c8\uff08<a href=\"http:\/\/www.webbibo.com\/blog\/htmlcss\/h_list_space.html\"><span style=\"color: #0000ff;\">\u6c34\u5e73\u578b\u30ea\u30b9\u30c8\u3067\u753b\u50cf\u3092\u4e26\u3079\u305f\u6642\u306e\u9699\u9593\u3092\u6d88\u30596\u3064\u306e\u65b9\u6cd5<\/span><\/a>\uff09\u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<pre><code style=\"color:midnightblue;\">&lt;div id=\"newbox\"&gt;&lt;\/div&gt;\r\n&lt;div id=\"partsbox\"&gt;\r\n&lt;div class=\"round part\" style=\"display: inline; z-index: 1;\"&gt;Item 1&lt;\/div&gt;\r\n&lt;div class=\"round part\" style=\"display: inline; z-index: 1;\"&gt;Item 2&lt;\/div&gt;\r\n&lt;div class=\"round part\" style=\"display: inline; z-index: 1;\"&gt;Item 3&lt;\/div&gt;\r\n&lt;div class=\"round part\" style=\"display: inline; z-index: 1;\"&gt;Item 4&lt;\/div&gt;\r\n&lt;div class=\"round part\" style=\"display: inline; z-index: 1;\"&gt;Item 5&lt;\/div&gt;\r\n&lt;div class=\"round part\" style=\"display: inline; z-index: 1;\"&gt;Item 6&lt;\/div&gt;\r\n&lt;div class=\"round part\" style=\"display: inline; z-index: 1;\"&gt;Item 7&lt;\/div&gt;\r\n&lt;\/div&gt;\r\n&lt;div id=\"enterbox\"&gt;&lt;\/div&gt;<\/code><\/pre>\n<p>\u4e26\u3079\u66ff\u3048\u308b\u5bfe\u8c61\u306e\u8981\u7d20\u306b\u306f\uff0cpart \u3068\u3044\u3046\u30af\u30e9\u30b9\u3092\u3064\u3051\u3066\u304a\u304d\u307e\u3059\u3002\u4e8c\u3064\u306ediv\u8981\u7d20 partsbox \u3068 enterbox \u306b\uff0c\u91cd\u306d\u3066 newbox \u3092\u914d\u7f6e\u3057\u3066\u3044\u307e\u3059\u3002\u4e0b\u8a18\u306e\u30b9\u30bf\u30a4\u30eb\u306e\u30bd\u30fc\u30b9\u3092\u3054\u89a7\u304f\u3060\u3055\u3044\u3002\u6700\u521d\u306e\u914d\u7f6e\u3067\u306f newbox \u304c\u4e0b\u306b\u3042\u308a\u307e\u3059\uff08z-index \u304c 1\uff09\u3002<\/p>\n<p>&nbsp;<\/p>\n<pre><code style=\"color:midnightblue;\">div#newbox {\r\nposition: absolute;\r\nleft: 0px;\r\ntop: 0px;\r\nwidth: 630px;\r\nheight: 72px;\r\nmargin: 0px;\r\npadding: 10px;\r\nz-index: 1;\r\nbackground-color: #ffffff;\r\nborder-width: 1px;\r\nborder-color: #ff0000;\r\nborder-style: solid;\r\n\r\nopacity:0.8;\r\n}\r\n\r\ndiv#partsbox {\r\nposition: absolute;\r\nleft: 0px;\r\ntop: 0px;\r\nwidth: 630px;\r\nheight: 22px;\r\nmargin: 0px;\r\npadding: 10px;\r\nz-index: 2;\r\nbackground-color: #ffffff;\r\nborder-width: 1px;\r\nborder-color: #0000ff;\r\nborder-style: solid;\r\n}\r\n\r\ndiv#enterbox {\r\nposition: absolute;\r\nleft: 0px;\r\ntop: 50px;\r\nwidth: 630px;\r\nheight: 22px;\r\nmargin: 0px;\r\npadding: 10px;\r\nz-index: 2;\r\nbackground-color: #ffffff;\r\nborder-width: 1px;\r\nborder-color: #00ff00;\r\nborder-style: solid;\r\n}<\/code><\/pre>\n<p>\u4e26\u3079\u66ff\u3048\u306e\u5bfe\u8c61\u3068\u306a\u308b part \u3068\u3044\u3046\u30af\u30e9\u30b9\u304c\u3064\u3051\u3089\u308c\u305fDOM\u306e\u30a4\u30d9\u30f3\u30c8(mouseenter)\u306b\uff0c\u30cf\u30f3\u30c9\u30e9\u30fc\u3092\u30d0\u30a4\u30f3\u30c9\u3057\u307e\u3059\u3002<\/p>\n<pre><code style=\"color:midnightblue;\">$(function() {\r\n$( '.part' ).each(function(){\r\n\r\n$(this).bind(\"mouseenter\",add_method);\r\n\r\n});\r\n});<\/code><\/pre>\n<p>&nbsp;<\/p>\n<p>\u4e0b\u8a18\u306f\uff0c\u95a2\u6570 add_method \u306e\u672c\u4f53\u3067\u3059\uff08\u30ed\u30b0\u51fa\u529b\u306e\u30b3\u30fc\u30c9\u306f\u7701\u304d\u307e\u3057\u305f\uff09\u3002\u5bfe\u8c61\u3068\u306a\u308bDOM\u306e\u4e0a\u306b\u30de\u30a6\u30b9\u304c\u6765\u305f\u3089\uff0c\u4e0b\u8a18\u306e\u30b3\u30fc\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<br \/>\n\u307e\u305a\u306f\u30a4\u30d9\u30f3\u30c8\u306e\u5bfe\u8c61\u3068\u306a\u3063\u305fDOM\u8981\u7d20\u3092\u8a18\u9332\u3057\u3066\u304a\u3044\u3066\uff0c\u305d\u306e\u5ea7\u6a19\u5024\u3092\u8aad\u307f\u53d6\u308a\u307e\u3059\uff08\u5b9f\u969b\u306f\u591a\u5c11\u5ea7\u6a19\u5024\u3092\u4fee\u6b63\uff09\u3002\u6b21\u306b\u5bfe\u8c61DOM\u8981\u7d20\u306e\u30af\u30ed\u30fc\u30f3\u3092\u4f5c\u6210\u3057\u3066\uff0cnewbox\u3078\u30b3\u30d4\u30fc\u3057\uff0cnewbox\u306ez-index\u30923\u3068\u3057\u3066\u6700\u4e0a\u4f4d\u306b\u3057\u307e\u3059\u3002\u30b3\u30d4\u30fc\u3057\u305f\u8981\u7d20\u306b\u306fdraggable()\u3067\u30c9\u30e9\u30c3\u30b0\u53ef\u80fd\u3068\u3057\u3066\u304a\u304d\u307e\u3059\u3002<br \/>\n\u30b3\u30d4\u30fc\u3055\u308c\u3066\uff0c\u65b0\u3057\u304fnewbox\u306b\u52a0\u3048\u3089\u308c\u305fDOM\u8981\u7d20\u306e\u30a4\u30d9\u30f3\u30c8\u306b\u306f\uff0c\u3055\u3089\u306b\u5225\u306e\u30cf\u30f3\u30c9\u30e9\u30fc\u3092\u4ed8\u3051\u52a0\u3048\u307e\u3059\u3002<br \/>\n\u3072\u3068\u3064\u306f\uff0cmouseup\u3067\u3059\u3002\u307e\u305a\uff0c\u73fe\u5728\u306e\u30de\u30a6\u30b9\u4f4d\u7f6e\u3092\u8aad\u307f\u53d6\u3063\u3066\uff0cpartsbox \u4e0a\u306b\u3042\u308b\u304b\uff0centerbox\u4e0a\u306b\u3042\u308b\u304b\u3092\u5224\u65ad\u3057\u307e\u3059\u3002\u305d\u306e\u542b\u307e\u308c\u3066\u3044\u308b\u65b9\u306ediv\u306b\uff0c\u5bfe\u8c61\u3068\u306a\u3063\u305f\u3082\u3068\u3082\u3068\u306eDOM\u8981\u7d20\u3092\u30b3\u30d4\u30fc\u3057\u307e\u3059\u3002\u30b3\u30d4\u30fc\u3059\u308b\u969b\u306b\u306f\uff0cmouseup\u306e\u4f4d\u7f6e\u304b\u3089\u5224\u65ad\u3057\u3066\uff0c\u9069\u5f53\u306aDOM\u8981\u7d20\u306e\u9593\u306b\u633f\u5165\u3059\u308b\u3088\u3046\u306b\u3057\u307e\u3059\u3002<br \/>\n\u3082\u3046\u3072\u3068\u3064\u306f\uff0cmouseleave\u3067\u3059\u3002\u3053\u308c\u306fnewbox\u306b\u30b3\u30d4\u30fc\u3057\u305fDOM\u3092\u6d88\u53bb\u3057\u3066\uff0cnewbox\u306ez-index\u3092\u5143\u306e1\u306b\u623b\u3057\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<pre><code style=\"color:midnightblue;\">function add_method(event){\r\n\r\ndragged_item = $(event.target);\r\n\r\nvar x_position = dragged_item.offset().left - $('#container').offset().left -2;\r\nvar y_position = dragged_item.offset().top - $('#container').offset().top -2;\r\n\r\nvar an_element = dragged_item.clone().css({position:'absolute',left:x_position,top:y_position});\r\n\r\nan_element.appendTo($('#newbox')).draggable();\r\n\r\nan_element.mouseup(function(e){\r\n\r\n$('#newbox').css('z-index','1');\r\nflag_drop = 0;\r\nvar boxname = flag_enter(e.pageX,e.pageY);\r\n\r\nif (boxname != 'out') {\r\n\r\nvar tmp_clone = dragged_item.clone();\r\nvar tmpid = document.getElementById(boxname);\r\n\r\n$(tmpid).children().each(function() {\r\nif (e.pageX &lt; $(this).offset().left) {\r\n$(this).before(tmp_clone);\r\ntmp_clone.bind(\"mouseenter\",add_method);\r\ndragged_item.remove();\r\nflag_drop = 1;\r\nreturn false;\r\n};\r\n});\r\n\r\n$(this).remove();\r\n\r\nif (flag_drop == 0) {\r\ntmp_clone.appendTo($(tmpid));\r\ntmp_clone.bind(\"mouseenter\",add_method);\r\ndragged_item.remove();\r\n}\r\n\r\n} else if (boxname == 'out'){\r\n$(this).remove();\r\n};\r\n});\r\n\r\nan_element.mouseleave(function(event){\r\n$(event.target).remove();\r\n$('#newbox').css('z-index','1');\r\n});\r\n\r\n$('#newbox').css('z-index','3');\r\n\r\nreturn false;\r\n};<\/code><\/pre>\n<p>&nbsp;<\/p>\n<p>\u4e0a\u8a18\u3067\uff0c\u4f7f\u7528\u3055\u308c\u3066\u3044\u307e\u3059\u304c\uff0c\u30de\u30a6\u30b9\u304c\uff0c\u73fe\u5728partsbox\u3068enterbox\u306e\u3046\u3061\uff0c\u3069\u3061\u3089\u306e\u4e0a\u7a7a\u306b\u3042\u308b\u304b\u3092\u5224\u65ad\u3059\u308b\u95a2\u6570\u306f\uff0c\u4e0b\u8a18\u306eflag-enter\u3067\u3059\u3002\u305d\u308c\u305e\u308c\u306ediv\u3054\u3068\u306b\uff0c\u3086\u3063\u304f\u308a\u5224\u65ad\u3057\u3066\u3044\u307e\u3059\u3002mouseenter\u306a\u3069\u306e\u30a4\u30d9\u30f3\u30c8\u304b\u3089\u5224\u65ad\u305b\u305a\uff0c\u5ea7\u6a19\u5024\u304b\u3089\u5224\u65ad\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<pre><code style=\"color:midnightblue;\">function flag_enter(x,y) {\r\n\r\nvar targetbox;\r\nvar rectangle_top;\r\nvar rectangle_left;\r\nvar rectangle_right;\r\nvar rectangle_bottom;\r\nvar flag = 0;\r\n\r\nvar which_box = 'out';\r\n\r\ntargetbox = $('#partsbox');\r\n\r\nrectangle_top = targetbox.offset().top;\r\nrectangle_bottom = Number(rectangle_top) + Number(targetbox.outerHeight());\r\nrectangle_left = targetbox.offset().left;\r\nrectangle_right = Number(rectangle_left) + Number(targetbox.outerWidth(true));\r\n\r\nif ((rectangle_left &lt; x) &amp;&amp; (x &lt; rectangle_right) &amp;&amp; (rectangle_top &lt; y) &amp;&amp; (y &lt; rectangle_bottom)) {\r\nflag = 1;\r\nwhich_box = 'partsbox';\r\n} else {\r\nflag = 0;\r\n}\r\n\r\ntargetbox = $('#enterbox');\r\n\r\nrectangle_top = targetbox.offset().top;\r\nrectangle_bottom = Number(rectangle_top) + Number(targetbox.outerHeight());\r\nrectangle_left = targetbox.offset().left;\r\nrectangle_right = Number(rectangle_left) + Number(targetbox.outerWidth(true));\r\n\r\nif ((rectangle_left &lt; x) &amp;&amp; (x &lt; rectangle_right) &amp;&amp; (rectangle_top &lt; y) &amp;&amp; (y &lt; rectangle_bottom)) {\r\nflag = 1;\r\nwhich_box = 'enterbox';\r\n} else {\r\nflag = 0;\r\n}\r\n\r\nreturn which_box;\r\n}<\/code><\/pre>\n<p>&nbsp;<\/p>\n<p>\u4e00\u5fdc\uff0ciOS\u3067\u3082\u30a2\u30f3\u30c9\u30ed\u30a4\u30c9\u3067\u3082\u52d5\u3044\u3066\u3044\u307e\u3059\u3002\u7279\u306b\uff0c\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u30bf\u30c3\u30c1\u6a5f\u80fd\u3092\u59a8\u3052\u308b\u3053\u3068\u3082\u7121\u3044\u3088\u3046\u3067\u3059\u30022\u672c\u6307\u3067\u306e\u62e1\u5927\u7e2e\u5c0f\u3082\u6a5f\u80fd\u3057\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>text by kondo \u30d6\u30e9\u30a6\u30b6\u4e0a\u3067\u306e\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u3068\u3057\u3066\uff0c\u4f55\u3089\u304b\u306e\u8981\u7d20\u3092 &#8230; <a class=\"more-link\" href=\"http:\/\/zairyo.susi.oita-u.ac.jp\/wordpress\/?p=1494\">Read More &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-1494","post","type-post","status-publish","format-standard","hentry","category-column"],"_links":{"self":[{"href":"http:\/\/zairyo.susi.oita-u.ac.jp\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1494","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/zairyo.susi.oita-u.ac.jp\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/zairyo.susi.oita-u.ac.jp\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/zairyo.susi.oita-u.ac.jp\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/zairyo.susi.oita-u.ac.jp\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1494"}],"version-history":[{"count":3,"href":"http:\/\/zairyo.susi.oita-u.ac.jp\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1494\/revisions"}],"predecessor-version":[{"id":5468,"href":"http:\/\/zairyo.susi.oita-u.ac.jp\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1494\/revisions\/5468"}],"wp:attachment":[{"href":"http:\/\/zairyo.susi.oita-u.ac.jp\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1494"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/zairyo.susi.oita-u.ac.jp\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1494"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/zairyo.susi.oita-u.ac.jp\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1494"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}