{"id":3440,"date":"2021-08-04T14:35:50","date_gmt":"2021-08-04T05:35:50","guid":{"rendered":"https:\/\/taitan916.info\/blog\/?p=3440"},"modified":"2021-08-04T14:35:50","modified_gmt":"2021-08-04T05:35:50","slug":"post-3440","status":"publish","type":"post","link":"https:\/\/taitan916.info\/blog\/archives\/3440","title":{"rendered":"jQuery UI\u3092\u4f7f\u3063\u3066\u7c21\u5358\u306b\u30c0\u30a4\u30a2\u30ed\u30b0\u3092\u8868\u793a\u3055\u305b\u308b\u65b9\u6cd5"},"content":{"rendered":"<p>\u30d6\u30e9\u30a6\u30b6\u4e0a\u3067\u30e6\u30fc\u30b6\u30fc\u306b\u5bfe\u3057\u3066\u3061\u3087\u3063\u3068\u3057\u305f\u78ba\u8a8d\u3092\u884c\u3044\u305f\u3044\u5834\u5408\u306fJavaScript\u306econfirm\u3092\u7528\u3044\u3066\u300c\u306f\u3044\u300d\u300c\u3044\u3044\u3048\u300d\u3092\u9078\u629e\u3057\u3066\u3082\u3089\u3063\u3066\u3044\u305f\u304c\u3001\u305d\u308c\u4ee5\u5916\u306e\u9078\u629e\u80a2\u306e\u8ffd\u52a0\u3067\u3042\u3063\u305f\u308a\u3001\u30e1\u30c3\u30bb\u30fc\u30b8\u5185\u306b\u30ea\u30f3\u30af\u3092\u8a2d\u7f6e\u3057\u305f\u3044\u6848\u4ef6\u304c\u3042\u3063\u305f\u3002\u30c0\u30a4\u30a2\u30ed\u30b0\u3092\u8a2d\u7f6e\u3059\u308b\u306e\u304c\u826f\u3055\u305d\u3046\u306a\u3082\u306e\u306e\u3001\u81ea\u8eab\u3067\u8a2d\u7f6e\u3057\u305f\u3053\u3068\u304c\u7121\u304b\u3063\u305f\u3002\u8272\u3005\u8abf\u3079\u3066\u307f\u305f\u3068\u3053\u308djQuery UI\u304c\u7c21\u5358\u306b\u8a2d\u7f6e\u3067\u304d\u305f\u306e\u3067\u4ee5\u4e0b\u306b\u65b9\u6cd5\u3092\u30e1\u30e2\u3002<\/p>\n<p>&nbsp;<\/p>\n<h2>\u30b5\u30f3\u30d7\u30eb<\/h2>\n<p><a href=\"https:\/\/taitan916.info\/sample\/dialog\/\" target=\"_blank\" rel=\"noopener\">https:\/\/taitan916.info\/sample\/dialog\/<\/a><\/p>\n<p>\u300c\u30c0\u30a4\u30a2\u30ed\u30b0\u8868\u793a\u300d\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\u3068\u30c0\u30a4\u30a2\u30ed\u30b0\u304c\u8868\u793a\u3055\u308c\u308b\u3002\u305d\u306e\u5f8c\u306b\u300c\u306f\u3044\u300d\u300c\u30ad\u30e3\u30f3\u30bb\u30eb\u300d\u300c\u305d\u306e\u4ed6\u300d\u300c\u30ea\u30f3\u30af\u300d\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\u3068\u3001\u30c0\u30a4\u30a2\u30ed\u30b0\u304c\u975e\u8868\u793a\u3068\u306a\u308a\u300c\u25cf\u25cf\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3057\u305f\u300d\u3068\u6587\u8a00\u304c\u8868\u793a\u3055\u308c\u308b\u3002<\/p>\n<p>&nbsp;<\/p>\n<h2>\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9<\/h2>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"default\" data-enlighter-title=\"\">&lt;html lang=&quot;ja&quot;&gt;\r\n&lt;head&gt;\r\n&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text\/html; charset=UTF-8&quot;&gt;\r\n&lt;title&gt;jQuery UI\u306e\u30c0\u30a4\u30a2\u30ed\u30b0\u30b5\u30f3\u30d7\u30eb&lt;\/title&gt;\r\n&lt;link href=&quot;\/\/stackpath.bootstrapcdn.com\/bootstrap\/4.3.1\/css\/bootstrap.min.css&quot; rel=&quot;stylesheet&quot;&gt;\r\n&lt;script src=&quot;\/\/netdna.bootstrapcdn.com\/twitter-bootstrap\/2.3.2\/js\/bootstrap.min.js&quot;&gt;&lt;\/script&gt;\r\n&lt;script src=&quot;\/\/code.jquery.com\/jquery-3.3.1.slim.min.js&quot;&gt;&lt;\/script&gt;\r\n&lt;script src=&quot;\/\/cdnjs.cloudflare.com\/ajax\/libs\/popper.js\/1.14.7\/umd\/popper.min.js&quot;&gt;&lt;\/script&gt;\r\n&lt;script src=&quot;\/\/stackpath.bootstrapcdn.com\/bootstrap\/4.3.1\/js\/bootstrap.min.js&quot;&gt;&lt;\/script&gt;\r\n&lt;\/head&gt;\r\n&lt;body&gt;\r\n\r\n\t&lt;a href=&quot;javascript:void(0);&quot; class=&quot;btn btn-primary&quot; id=&quot;dialog_btn&quot;&gt;\r\n\t\t\u30c0\u30a4\u30a2\u30ed\u30b0\u8868\u793a\r\n\t&lt;\/a&gt;\r\n\r\n\t&lt;div id=&quot;dialog_area&quot; style=&quot;display:none;&quot;&gt;\r\n\t\t&lt;p&gt;\r\n\t\t\t\u30c0\u30a4\u30a2\u30ed\u30b0\u30c6\u30b9\u30c8\u3067\u3059\u3002&lt;br&gt;\r\n\t\t\t&lt;a href=&quot;javascript:void(0);&quot; id=&quot;dialog_link&quot; style=&quot;font-weight: bold; color: #f00;&quot;&gt;\u30ea\u30f3\u30af&lt;\/a&gt;\u3082\u8a2d\u7f6e\u3067\u304d\u307e\u3059\u3002&lt;br&gt;\r\n\t\t&lt;\/p&gt;\r\n\t&lt;\/div&gt;\r\n\r\n\t&lt;div id=&quot;dialog_result&quot;&gt;\r\n\r\n\t&lt;\/div&gt;\r\n\r\n\t&lt;script type=&quot;text\/javascript&quot; src=&quot;\/\/code.jquery.com\/jquery-3.5.1.js&quot;&gt;&lt;\/script&gt;\r\n\t&lt;script src=&quot;https:\/\/ajax.googleapis.com\/ajax\/libs\/jqueryui\/1.12.1\/jquery-ui.min.js&quot;&gt;&lt;\/script&gt;\r\n\t&lt;link rel=&quot;stylesheet&quot; href=&quot;https:\/\/ajax.googleapis.com\/ajax\/libs\/jqueryui\/1.12.1\/themes\/smoothness\/jquery-ui.css&quot;&gt;\r\n\t&lt;script&gt;\r\n\t$(function(){\r\n\r\n\t\t\/\/\u30c0\u30a4\u30a2\u30ed\u30b0\u8868\u793a\u30dc\u30bf\u30f3\u30af\u30ea\u30c3\u30af\u6642\r\n\t\t$(&#039;#dialog_btn&#039;).click(function(){\r\n\t\t\t$(&quot;#dialog_area&quot;).dialog({\r\n\t\t\t\tmodal:true,\r\n\t\t\t\ttitle:&quot;\u767b\u9332\u78ba\u8a8d&quot;,\r\n\t\t\t\tbuttons: {\r\n\t\t\t\t\t&quot;\u306f\u3044&quot;: function() {\r\n\t\t\t\t\t\t$(&#039;#dialog_result&#039;).html(&#039;\u306f\u3044\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3057\u305f\u3002&#039;);\r\n\t\t\t\t\t\t$(&#039;#dialog_area&#039;).dialog(&#039;close&#039;);\r\n\t\t\t\t\t},\r\n\t\t\t\t\t&quot;\u30ad\u30e3\u30f3\u30bb\u30eb&quot;: function() {\r\n\t\t\t\t\t\t$(&#039;#dialog_result&#039;).html(&#039;\u30ad\u30e3\u30f3\u30bb\u30eb\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3057\u305f\u3002&#039;);\r\n\t\t\t\t\t\t$(&#039;#dialog_area&#039;).dialog(&#039;close&#039;);\r\n\t\t\t\t\t},\r\n\t\t\t\t\t&quot;\u305d\u306e\u4ed6&quot;:  function() {\r\n\t\t\t\t\t\t$(&#039;#dialog_result&#039;).html(&#039;\u305d\u306e\u4ed6\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3057\u305f\u3002&#039;);\r\n\t\t\t\t\t\t$(&#039;#dialog_area&#039;).dialog(&#039;close&#039;);\r\n\t\t\t\t\t},\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t});\r\n\r\n\t\t\/\/\u30c0\u30a4\u30a2\u30ed\u30b0\u5185\u30ea\u30f3\u30af\u30af\u30ea\u30c3\u30af\u6642\r\n\t\t$(&#039;#dialog_link&#039;).click(function(){\r\n\t\t\t$(&#039;#dialog_result&#039;).html(&#039;\u30ea\u30f3\u30af\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3057\u305f\u3002&#039;);\r\n\t\t\t$(&#039;#dialog_area&#039;).dialog(&#039;close&#039;);\r\n\t\t});\r\n\t});\r\n\t&lt;\/script&gt;\r\n&lt;\/body&gt;\r\n&lt;\/html&gt;<\/pre>\n<p>3\u3064\u76ee\u306e\u30dc\u30bf\u30f3\u304c\u8a2d\u7f6e\u53ca\u3073\u30e1\u30c3\u30bb\u30fc\u30b8\u5185\u306b\u30ea\u30f3\u30af\u3092\u8a2d\u7f6e\u3057\u3001\u305d\u308c\u305e\u308c\u306e\u30af\u30ea\u30c3\u30af\u6642\u306b\u7570\u306a\u308b\u51e6\u7406\u3092\u884c\u3048\u308b\u3002<\/p>\n<p>&nbsp;<\/p>\n<h2>\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9<\/h2>\n<p><a href=\"https:\/\/js.studio-kingdom.com\/jqueryui\/widgets\/dialog\" target=\"_blank\" rel=\"noopener\">https:\/\/js.studio-kingdom.com\/jqueryui\/widgets\/dialog<\/a><\/p>\n<p>&nbsp;<\/p>\n<h2>\u6240\u611f<\/h2>\n<p>jQuery UI\u306f<a href=\"https:\/\/taitan916.info\/blog\/archives\/3380\" target=\"_blank\" rel=\"noopener\">\u30ab\u30ec\u30f3\u30c0\u30fc\u30d4\u30c3\u30ab\u30fc<\/a>\u3092\u4f7f\u3046\u307e\u3067\u4f55\u3068\u306a\u304f\u98df\u308f\u305a\u5acc\u3044\u3057\u3066\u3044\u305f\u3051\u3069\u3059\u3054\u304f\u4fbf\u5229\u304b\u3082\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u30d6\u30e9\u30a6\u30b6\u4e0a\u3067\u30e6\u30fc\u30b6\u30fc\u306b\u5bfe\u3057\u3066\u3061\u3087\u3063\u3068\u3057\u305f\u78ba\u8a8d\u3092\u884c\u3044\u305f\u3044\u5834\u5408\u306fJavaScript ... <\/p>\n","protected":false},"author":1,"featured_media":1071,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[3,4],"tags":[],"class_list":["post-3440","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-jquery","category-javascript"],"acf":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/taitan916.info\/blog\/wp-json\/wp\/v2\/posts\/3440","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/taitan916.info\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/taitan916.info\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/taitan916.info\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/taitan916.info\/blog\/wp-json\/wp\/v2\/comments?post=3440"}],"version-history":[{"count":0,"href":"https:\/\/taitan916.info\/blog\/wp-json\/wp\/v2\/posts\/3440\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/taitan916.info\/blog\/wp-json\/wp\/v2\/media\/1071"}],"wp:attachment":[{"href":"https:\/\/taitan916.info\/blog\/wp-json\/wp\/v2\/media?parent=3440"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/taitan916.info\/blog\/wp-json\/wp\/v2\/categories?post=3440"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/taitan916.info\/blog\/wp-json\/wp\/v2\/tags?post=3440"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}