﻿{"id":1758,"date":"2023-04-25T17:39:00","date_gmt":"2023-04-25T09:39:00","guid":{"rendered":"http:\/\/www.xkzlk.com\/?page_id=1758"},"modified":"2023-06-25T15:12:45","modified_gmt":"2023-06-25T07:12:45","slug":"ai%e5%8a%a9%e6%89%8b","status":"publish","type":"page","link":"http:\/\/www.xkzlk.com\/?page_id=1758","title":{"rendered":"AI\u52a9\u624b"},"content":{"rendered":"\n<link href=\"bootstrap.min.css\" rel=\"stylesheet\">\n    <link href=\"aptd.css\" rel=\"stylesheet\">\n    <script src=\"jquery-3.6.0.min.js\"><\/script>\n    <script src=\"bootstrap.bundle.min.js\"><\/script>\n    <script src=\"aptd.js\"><\/script>   \n    <link href=\"\/wp-content\/themes\/modown-child\/bootstrap.min.css\" rel=\"stylesheet\">\n    <link href=\"\/wp-content\/themes\/modown-child\/aptd.css\" rel=\"stylesheet\">\n    <script src=\"\/wp-content\/themes\/modown-child\/jquery-3.6.0.min.js\"><\/script>\n    <script src=\"\/wp-content\/themes\/modown-child\/bootstrap.bundle.min.js\"><\/script>\n    <script src=\"\/wp-content\/themes\/modown-child\/aptd.js\"><\/script> \n    <div class=\"text-center\">\n<div class=\"my-4 form-group\"><span>AI\u7ed8\u753b\u63d0\u793a\u8bcd\u751f\u6210\u5de5\u5177<\/span><\/div>\n       <div class=\"my-4\">        \t\n        \t<textarea class=\"form-control\" rows=\"3\" id=\"p_keyword\" placeholder=\"\u8fd9\u91cc\u8f93\u5165\u4f60\u7684\u60f3\u6cd5\uff0c\u591a\u4e2a\u5173\u952e\u5b57\u4ee5\u82f1\u6587\u9017\u53f7\u9694\u5f00\"><\/textarea>\n        <\/div>\n        \n        <div class=\"my-4 form-group\"><span>\u5e38\u7528\u5173\u952e\u5b57<\/span><\/div>\n        <div class=\"my-4\">\n        <div id=\"kw-layer\">\n        <\/div>\n         <\/div>\n         \n         <div class=\"my-4 form-group\"><span>\u98ce\u683c\u6837\u5f0f<\/span><\/div>\n        <!-- part2 -->\n        <div class=\"my-4\">\n\t\t\t\t\t<div class=\"style-container\">\n\t\t\t\t\t\t<img decoding=\"async\" loading=\"lazy\" src=\"\\mjimg2\\5-5-8.png\" id=\"show-layer_5\" class=\"image-btn\" width=\"250\" height=\"200\">\n\t\t\t\t\t\t<div class=\"text-overlay\">\u827a\u672f\u5bb6(44)<\/div>\n\t\t\t\t\t<\/div>\t\n\t\t\t\t\t<div class=\"style-container\">\n\t\t\t\t\t\t<img decoding=\"async\" loading=\"lazy\" src=\"\\mjimg2\\5-7-8.png\" id=\"show-layer_7\" class=\"image-btn\" width=\"250\" height=\"200\">\n\t\t\t\t\t\t<div class=\"text-overlay\">\u70ed\u95e8\u98ce\u683c(32)<\/div>\n\t\t\t\t\t<\/div>\t\n\t\t\t\t\t<div class=\"style-container\">\n\t\t\t\t\t\t<img decoding=\"async\" loading=\"lazy\" src=\"\\mjimg2\\5-8-8.png\" id=\"show-layer_8\" class=\"image-btn\" width=\"250\" height=\"200\">\n\t\t\t\t\t\t<div class=\"text-overlay\">\u63d2\u753b\u7ed8\u56fe(197)<\/div>\n\t\t\t\t\t<\/div>\t\n\t\t\t\t\t<div class=\"style-container\">\n\t\t\t\t\t\t<img decoding=\"async\" loading=\"lazy\" src=\"\\mjimg2\\5-9-8.png\" id=\"show-layer_9\" class=\"image-btn\" width=\"250\" height=\"200\">\n\t\t\t\t\t\t<div class=\"text-overlay\">\u5370\u5237\u6750\u6599(37)<\/div>\n\t\t\t\t\t<\/div>\t\n\t\t\t\t\t<div class=\"style-container\">\n\t\t\t\t\t\t<img decoding=\"async\" loading=\"lazy\" src=\"\\mjimg2\\5-10-8.png\" id=\"show-layer_10\" class=\"image-btn\" width=\"250\" height=\"200\">\n\t\t\t\t\t\t<div class=\"text-overlay\">\u7269\u7406\u5a92\u4ecb(99)<\/div>\n\t\t\t\t\t<\/div>\t\n\t\t\t\t\t<div class=\"style-container\">\n\t\t\t\t\t\t<img decoding=\"async\" loading=\"lazy\" src=\"\\mjimg2\\5-11-8.png\" id=\"show-layer_11\" class=\"image-btn\" width=\"250\" height=\"200\">\n\t\t\t\t\t\t<div class=\"text-overlay\">\u6e32\u67d3\u5668(8)<\/div>\n\t\t\t\t\t<\/div>\t\n\t\t\t\t\t<div class=\"style-container\">\n\t\t\t\t\t\t<img decoding=\"async\" loading=\"lazy\" src=\"\\mjimg2\\5-12-8.png\" id=\"show-layer_12\" class=\"image-btn\" width=\"250\" height=\"200\">\n\t\t\t\t\t\t<div class=\"text-overlay\">\u753b\u8d28\u5f3a\u5316(9)<\/div>\n\t\t\t\t\t<\/div>\t\n\t\t\t\t\t<div class=\"style-container\">\n\t\t\t\t\t\t<img decoding=\"async\" loading=\"lazy\" src=\"\\mjimg2\\5-15-8.png\" id=\"show-layer_15\" class=\"image-btn\" width=\"250\" height=\"200\">\n\t\t\t\t\t\t<div class=\"text-overlay\">\u5efa\u7b51\u5ba4\u5185(76)<\/div>\n\t\t\t\t\t<\/div>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n        <\/div>\n        <div id=\"image-layer_5\" class=\"image-container\" style=\"display: none;\">\n        <\/div>\n        <div id=\"image-layer_7\" class=\"image-container\" style=\"display: none;\">\n        <\/div>\n        <div id=\"image-layer_8\" class=\"image-container\" style=\"display: none;\">\n        <\/div>\n        <div id=\"image-layer_9\" class=\"image-container\" style=\"display: none;\">\n        <\/div>\n        <div id=\"image-layer_10\" class=\"image-container\" style=\"display: none;\">\n        <\/div>\n        <div id=\"image-layer_11\" class=\"image-container\" style=\"display: none;\">\n        <\/div>\n        <div id=\"image-layer_12\" class=\"image-container\" style=\"display: none;\">\n        <\/div>\n        <div id=\"image-layer_15\" class=\"image-container\" style=\"display: none;\">\n        <\/div>\n\t\t\t\t<!--end part2 -->\n\n\n        <div class=\"my-4 form-group\">\n\t\t\t\t      <select id=\"pts_1\" class=\"col-md-2 form-select-lg\">\n\t\t\t\t        <option value=\"\">\u76f8\u673a\u955c\u5934<\/option>\n\t\t\t\t      <\/select>\n\t\t\t\t      \n\t\t\t\t      <select id=\"pts_2\" class=\"col-md-2 form-select-lg\">\n\t\t\t\t        <option value=\"\">\u7167\u660e<\/option>\n\t\t\t\t     <\/select>\n\t\t\t\t     \n\t\t\t\t      <select id=\"pts_3\" class=\"col-md-2 form-select-lg\">\n\t\t\t\t        <option value=\"\">\u4eba\u7269\u955c\u5934<\/option>\n\t\t\t\t      <\/select>\n\t\t\t\t      \n\t\t\t\t      <select id=\"pts_4\" class=\"col-md-2 form-select-lg\">\n\t\t\t\t        <option value=\"\">\u89c6\u89d2<\/option>\n\t\t\t\t      <\/select>\n       \t\n        <\/div>\n\n\n\n\n\t\t\t\t<div class=\"my-4 form-group\"><span>Midjourney\u53c2\u6570\u4e13\u7528\u53c2\u6570<\/span><\/div>\n\t\t\n\t\t\n\t\t    <div class=\"my-4 form-group\">\n\t\t      <select id=\"pts_5\" class=\"col-md-4 form-select-lg\">\n\t\t        <option value=\"\">\u957f\u5bbd\u6bd4<\/option>\n\t\t      <\/select>\n\t\t      <select id=\"pts_6\" class=\"col-md-4 form-select-lg\">\n\t\t      \t<option value=\"\">\u51fa\u56fe\u6a21\u5f0f<\/option>\n\t\t      <\/select>\n\t\t    <\/div>\n\n<!--\n        <div class=\"my-4\">\n        \t<textarea class=\"form-control\" rows=\"3\" id=\"p_seed\"  placeholder=\"\u57ab\u56fe\u94fe\u63a5\uff0c\u591a\u94fe\u63a5\u7a7a\u683c\u9694\u5f00\"><\/textarea>\n        <\/div>\n-->\n\t\t\t\t<div id=\"selected-images\" class=\"selected-info\"><\/div>\n\n\n        <div class=\"my-4\">\n            <button id=\"clear-selection\" class=\"btn btn-danger\">\u6e05\u7a7a\u9009\u62e9<\/button>\n\n            <button id=\"show-selected\" class=\"btn btn-success\">\u751f\u6210\u63cf\u8ff0<\/button>\n\n       <\/div>\n        \n        <div class=\"my-4\">\n        \t<textarea class=\"form-control\" rows=\"3\" id=\"p_promot\" readonly=\"\"><\/textarea>\n        <\/div>\n    <\/div>\n\n    <script>\n        $(document).ready(function() {\n\n\t\t\t\t\tfor(let i = 0; i< pts_d.length; i++) {\n\t\t\t\t\t    pts_d[i].forEach(function(pt) {\n\t\t\t\t\t\t      $('#'+pts_l[i]).append(`<option value=\"${pt}\">${pt}<\/option>`);\n\t\t\t\t\t\t  });\n\t\t\t\t\t}\t\t\t\n\t\t\t\t\t\t      \n\t\t\t\t\tfor(let i = 0; i< pictures.length; i++) {\n\t\t\t\t\t    initlayer(pictures_d[i],pictures[i],pictures_s[i]);\t\n\t\t\t\t\t}\t\n\t\t\t\t\t\n\t\t\t\t\tkeywords.forEach(function(kw) {\n\t\t\t\t\t    $('#kw-layer').append(`<button type=\"button\" class=\"btn btn-secondary\"  data-image=\"${kw}\">${kw}<\/button>  `);\n\t\t\t\t\t});\n\t\t\t\t\t  \/\/ \u5173\u952e\u5b57\u6309\u94ae\u70b9\u51fb\u4e8b\u4ef6\n\t\t\t\t\t  $('#kw-layer').on('click', '.btn-secondary', function() {\n\t\t\t\t\t      const $this = $(this);\n\t\t\t\t\t      const image = $this.data('image');\n\t\t\t\t\t      if ($this.hasClass('active')) {\n\t\t\t\t\t          $this.removeClass('active');\n\t\t\t\t\t          $(`#selected-images [data-image=\"${image}\"]`).remove();\n\t\t\t\t\t      } else {\n\t\t\t\t\t          $this.addClass('active');\n\t\t\t\t\t          const selectedItem = `<div class=\"selected-item\" data-image=\"${image}\">\n\t\t\t\t\t              <span>${image}<\/span>\n\t\t\t\t\t             \n\t\t\t\t\t\t\t\t<button class=\"btn btn-sm btn-danger remove-image\">x<\/button>\n\t\t\t\t\t\t\t\t<\/div>`;\n\t\t\t\t\t\t\t\t$('#selected-images').append(selectedItem);\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\t\t\t\n        $('#selected-images').on('click', '.remove-image', function() {\n            const $this = $(this);\n            const $parent = $this.parent('.selected-item');\n            const image = $parent.data('image');\n            $(`#kw-layer [data-image=\"${image}\"]`).removeClass('active');\n            pictures.forEach(function(pt) {\n\t\t\t\t\t      $('#'+pt+' [data-image=\"${image}\"]').removeClass('selected');\n\t\t\t\t\t  });\n\t\t\t\t\t  \n            $parent.remove();\n        });\n        $('#clear-selection').on('click', function() {\n            $('#selected-images .selected-item').remove();\n            $('#kw-layer .active').removeClass('active');\n            pictures.forEach(function(pt) {\n\t\t\t\t\t      $('#'+pt+' .image-btn.selected').removeClass('selected');\n\t\t\t\t\t  });\n         });\n        $('#show-selected').on('click', function() {\n            let selected = [];\n            $('#selected-images .selected-item').each(function() {\n                selected.push(\"'\"+$(this).data('image')+\"'\");\n            });\n            \n            pts_l.forEach(function(ptsl) {\n            \t if($(\"#\"+ptsl).val()!=''){\n\t\t\t\t\t     \tselected.push(\"'\"+$(\"#\"+ptsl).val()+\"'\");\n\t\t\t\t\t     }\n\t\t\t\t\t  });   \t\t\t\t\t  \n\t\t\t\t\t  var sel = selected.length > 0 ? selected.join(', ') : ''  ;   \n            $(\"#p_promot\").val(sel);          \n             getword( $(\"#p_keyword\").val(),sel);           \n        }); \n    });\n<\/script>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>AI\u7ed8\u753b\u63d0\u793a\u8bcd\u751f\u6210\u5de5\u5177 \u5e38\u7528\u5173\u952e\u5b57 \u98ce\u683c\u6837\u5f0f \u827a\u672f\u5bb6(44) \u70ed\u95e8\u98ce\u683c(32) \u63d2\u753b\u7ed8\u56fe(197) \u5370\u5237\u6750\u6599( [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"template\/page.php","meta":[],"acf":[],"_links":{"self":[{"href":"http:\/\/www.xkzlk.com\/index.php?rest_route=\/wp\/v2\/pages\/1758"}],"collection":[{"href":"http:\/\/www.xkzlk.com\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"http:\/\/www.xkzlk.com\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"http:\/\/www.xkzlk.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.xkzlk.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1758"}],"version-history":[{"count":19,"href":"http:\/\/www.xkzlk.com\/index.php?rest_route=\/wp\/v2\/pages\/1758\/revisions"}],"predecessor-version":[{"id":1811,"href":"http:\/\/www.xkzlk.com\/index.php?rest_route=\/wp\/v2\/pages\/1758\/revisions\/1811"}],"wp:attachment":[{"href":"http:\/\/www.xkzlk.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1758"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}