{"id":1083,"date":"2024-11-06T05:01:09","date_gmt":"2024-11-06T05:01:09","guid":{"rendered":"https:\/\/solutions-hr.com\/?page_id=1083"},"modified":"2025-12-13T09:01:24","modified_gmt":"2025-12-13T09:01:24","slug":"java","status":"publish","type":"page","link":"https:\/\/smarted.smartonlineedu.com\/index.php\/java\/","title":{"rendered":"java"},"content":{"rendered":"\n<div style=\"max-width:600px;border:1px solid #ccc;padding:15px;border-radius:10px\">\n  <h3>\ud83c\udf3f Turisztikai asszisztens \u2013 Hargita megye<\/h3>\n\n  <div id=\"chat\" style=\"min-height:120px;margin-bottom:10px\"><\/div>\n\n  <input id=\"q\" style=\"width:80%;padding:6px\"\n         placeholder=\"K\u00e9rdezz Borsz\u00e9kr\u0151l, programokr\u00f3l\u2026\" \/>\n  <button onclick=\"ask()\">K\u00fcld<\/button>\n<\/div>\n\n<script>\nasync function ask() {\n  const input = document.getElementById(\"q\");\n  const text = input.value;\n  input.value = \"\";\n\n  document.getElementById(\"chat\").innerHTML +=\n    \"<p><b>Te:<\/b> \" + text + \"<\/p>\";\n\n  const res = await fetch(\"\/agent-handler.php\", {\n    method: \"POST\",\n    headers: { \"Content-Type\": \"application\/json\" },\n    body: JSON.stringify({ message: text })\n  });\n\n  const data = await res.json();\n\n  document.getElementById(\"chat\").innerHTML +=\n    \"<p><b>Asszisztens:<\/b> \" + data.answer + \"<\/p>\";\n}\n<\/script>\n\n\n<script>\nasync function send() {\n  const input = document.getElementById(\"msg\");\n  const text = input.value;\n  input.value = \"\";\n\n  document.getElementById(\"messages\").innerHTML +=\n    \"<p><b>Te:<\/b> \" + text + \"<\/p>\";\n\n  const res = await fetch(\"\/agent-handler.php\", {\n    method: \"POST\",\n    headers: { \"Content-Type\": \"application\/json\" },\n    body: JSON.stringify({ message: text })\n  });\n\n  const data = await res.json();\n\n  document.getElementById(\"messages\").innerHTML +=\n    \"<pre>\" + JSON.stringify(data, null, 2) + \"<\/pre>\";\n}\n<\/script>\n\n\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\ud83c\udf3f Turisztikai asszisztens \u2013 Hargita megye K\u00fcld<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_coblocks_attr":"","_coblocks_dimensions":"","_coblocks_responsive_height":"","_coblocks_accordion_ie_support":"","_eb_attr":"","_uag_custom_page_level_css":"","advgb_blocks_editor_width":"","advgb_blocks_columns_visual_guide":"","neve_meta_sidebar":"","neve_meta_container":"","neve_meta_enable_content_width":"","neve_meta_content_width":0,"neve_meta_title_alignment":"","neve_meta_author_avatar":"","neve_post_elements_order":"","neve_meta_disable_header":"","neve_meta_disable_footer":"","neve_meta_disable_title":"","_themeisle_gutenberg_block_has_review":false,"footnotes":""},"class_list":["post-1083","page","type-page","status-publish","hentry"],"uagb_featured_image_src":{"full":false,"thumbnail":false,"medium":false,"medium_large":false,"large":false,"1536x1536":false,"2048x2048":false,"neve-blog":false},"uagb_author_info":{"display_name":"admin","author_link":"https:\/\/smarted.smartonlineedu.com\/index.php\/author\/admin_8iq54gse\/"},"uagb_comment_info":0,"uagb_excerpt":"\ud83c\udf3f Turisztikai asszisztens \u2013 Hargita megye K\u00fcld","coauthors":[],"author_meta":{"author_link":"https:\/\/smarted.smartonlineedu.com\/index.php\/author\/admin_8iq54gse\/","display_name":"admin"},"relative_dates":{"created":"Posted 1 \u00e9v ago","modified":"Updated 4 h\u00f3nap ago"},"absolute_dates":{"created":"Posted on november 6, 2024","modified":"Updated on december 13, 2025"},"absolute_dates_time":{"created":"Posted on november 6, 2024 5:01 de.","modified":"Updated on december 13, 2025 9:01 de."},"featured_img_caption":"","featured_img":false,"series_order":"","_links":{"self":[{"href":"https:\/\/smarted.smartonlineedu.com\/index.php\/wp-json\/wp\/v2\/pages\/1083","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/smarted.smartonlineedu.com\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/smarted.smartonlineedu.com\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/smarted.smartonlineedu.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/smarted.smartonlineedu.com\/index.php\/wp-json\/wp\/v2\/comments?post=1083"}],"version-history":[{"count":16,"href":"https:\/\/smarted.smartonlineedu.com\/index.php\/wp-json\/wp\/v2\/pages\/1083\/revisions"}],"predecessor-version":[{"id":1125,"href":"https:\/\/smarted.smartonlineedu.com\/index.php\/wp-json\/wp\/v2\/pages\/1083\/revisions\/1125"}],"wp:attachment":[{"href":"https:\/\/smarted.smartonlineedu.com\/index.php\/wp-json\/wp\/v2\/media?parent=1083"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}