{"id":6887,"date":"2022-03-04T08:50:36","date_gmt":"2022-03-04T08:50:36","guid":{"rendered":"http:\/\/gbacna.org\/?page_id=6887"},"modified":"2022-03-28T10:12:52","modified_gmt":"2022-03-28T10:12:52","slug":"__trashed","status":"publish","type":"page","link":"https:\/\/gbacna.org\/?page_id=6887","title":{"rendered":"\u78b3\u4e2d\u548c\u65b0\u805e"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"6887\" class=\"elementor elementor-6887\" data-elementor-settings=\"[]\">\n\t\t\t\t\t\t\t<div class=\"elementor-section-wrap\">\n\t\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-ca58a96 elementor-section-stretched elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"ca58a96\" data-element_type=\"section\" data-settings=\"{&quot;stretch_section&quot;:&quot;section-stretched&quot;}\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-wider\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-6b0e162\" data-id=\"6b0e162\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-element elementor-element-171d294 elementor-widget__width-inherit elementor-widget elementor-widget-html\" data-id=\"171d294\" data-element_type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<div class=\"tablinks\"  id=\"newsTab\">\n  <button class=\"tablinks hktab\" onclick=\"tabClick(event,2)\">\u4e2d\u570b\u9999\u6e2f\u5e02\u57f8<\/button>\n  <button class=\"tablinks mltab\" onclick=\"tabClick(event,3)\">\u4e2d\u570b\u5167\u5730\u5e02\u57f8<\/button>\n  <button class=\"tablinks ostab\" onclick=\"tabClick(event,4)\">\u6d77\u5916\u5e02\u57f8<\/button>\n<\/div>\n<table class=\"table\">\n    <tbody><\/tbody>\n<\/table>\n<div style='text-align: center;'>\n    \n\t\n    <button type=\"button\" class=\"btn btn-success\" id=\"prev\" onclick=\"prevClick()\">\u4e0a\u4e00\u9801<\/button>\n    <button type=\"button\" class=\"btn btn-success\" id=\"next\" onclick=\"nextClick()\">\u4e0b\u4e00\u9801<\/button>\n<\/div>\n<br>\n<p style='text-align: center; font-size: 14px; color: #A7A8A9'>\n    Power by\n    <a href=\"http:\/\/farseerai.com\/home\/member\/login\/check\/1.html\"><img loading=\"lazy\" decoding=\"async\" src=\"wp-content\/uploads\/2022\/03\/farseer-logo-orange2-1.png\" width=\"63\" height=\"15\"><\/a>\n<\/p>\n\n\n\n<style>\n\n\/* Style the buttons inside the tab *\/\n.tablinks button {\n  background-color: inherit;\n  float: left;\n  border: none;\n  outline: none;\n  cursor: pointer;\n  padding: 14px 16px;\n  transition: 0.3s;\n  color: black !important;\n  border-radius: 10px 10px 0 0;\n  font-weight: bold;\n  \n}\n\n\/* Change background color of buttons on hover *\/\n.tablinks button:hover {\n  background-color: #ddd;\n\n}\n\n\/* Create an active\/current tablink class *\/\n.hktab.tabActive {\n  background-color: #8cc63f; !important;\n  color: white !important;\n}\n\n.mltab.tabActive {\n  background-color: MediumSeaGreen; !important;\n  color: white !important;\n}\n\n.ostab.tabActive {\n  background-color: #0053a0; !important;\n  color: white !important;\n}\n\n\/* Style the tab content *\/\n.tabcontent {\n  display: none;\n  padding: 6px 12px;\n  border: 1px solid #ccc;\n  border-top: none;\n}\n\n\n\n.table .titleText,.table .metaText {\n    background-color: #A7A8A9 !important;\n    color: white !important;\n}\n\n.table .metaText {\n    text-align: right;\n}\n\n.table .titleText>a:link {\n    color: white !important;\n    text-decoration: underline;\n}\n\n\n.table .titleText>a:hover {\n    color: black !important;\n}\n\n.table .titleText>a>span {\n    color: white !important;\n}\n\n.table .titleText>a:hover>span {\n    color: black !important;\n}\n\n.abstractText {\n    background-color: white;\n}\n\n\n\n@media only screen and (min-width: 1025px){\n  .table .metaText {\n    width: 600px;\n    \/*color: yellow;*\/\n  }\n  \n}\n\n@media only screen and (max-width: 1024px){\n  .table .metaText {\n    width: 50%;\n    \/*color: red;*\/\n  }\n  .table .metaText>span {\n      white-space:nowrap;\n      displat: inline;\n      \n  }\n  .tablinks button {\n      padding: 4px 9px;\n  }\n\n}\n\n<\/style>\n\n<script>\n    var page = 1;\n    var itRegion = '';\n\n\n    async function postData(url = '', table) {\n      const tableBody = table.querySelector('tbody')\n      \/\/ Default options are marked with *\n      console.log(url)\n      const response = await fetch(url, {\n        method: 'POST', \/\/ *GET, POST, PUT, DELETE, etc.\n        mode: 'cors', \/\/ no-cors, *cors, same-origin\n        cache: 'default', \/\/ *default, no-cache, reload, force-cache, only-if-cached\n        credentials: 'same-origin', \/\/ include, *same-origin, omit\n        headers: new Headers({'content-type': 'text\/plain'}),\n        \/\/{\n          \/\/'Content-Type': 'application\/json'\n          \/\/ 'Content-Type': 'application\/x-www-form-urlencoded',\n        \/\/},\n        redirect: 'follow', \/\/ manual, *follow, error\n        referrerPolicy: 'no-referrer', \/\/ no-referrer, *no-referrer-when-downgrade, origin, origin-when-cross-origin, same-origin, strict-origin, strict-origin-when-cross-origin, unsafe-url\n      });\n      \/\/console.log('response:',response.json())\n      const {data, messages, success} = await response.json();\n      const {total, rows} = await data\n      \/\/console.log('rows:',rows)\n      \/\/console.log(rows[0])\n      \/\/console.log('messages:',messages.iInfluence)\n      \/\/console.log(rows.length())\n      \n      \n      tableBody.innerHTML = \"\";\n      let counter = 0;\n      for(const row in rows){\n          \/\/console.log('row:',rows[counter].id)\n          const headerElement = document.createElement(\"tr\")\n          headerElement.className = 'headerText'\n          \/\/headerElement.style.width = \"100%\"\n          \n          const titleElement = document.createElement(\"td\")\n          titleElement.innerHTML = '<a href=\"'+rows[counter].sLink+'\" data-modal=\"modal-one\">'+rows[counter].sTitle+'<\/a>'\n          \/\/titleElement.style.width = \"70%\"\n          titleElement.className = 'titleText'\n          headerElement.appendChild(titleElement)\n          \/\/tableBody.appendChild(headerElement)\n          \n          \n          \n          \/\/const metaElement = document.createElement(\"tr\")\n          \n          const metaTextElement = document.createElement(\"td\")\n          \n          metaTextElement.innerHTML = 'Source: '+rows[counter].sSiteTraName\n          metaTextElement.innerHTML += '\u3000\u2758\u3000<span>'+new Date(rows[counter].iPublishTime*1000).toLocaleString()+'<\/span>'\n          \n          \/\/metaTextElement.textContent += '\u3000\u2758\u3000Emoton: '+rows[counter].iInfluence\n          metaTextElement.className = 'metaText'\n          metaTextElement.style.fontSize = '14px'\n          \/\/metaTextElement.style.width = \"324px\"\n          headerElement.appendChild(metaTextElement)\n          \n          tableBody.appendChild(headerElement)\n          \n          \n          const abstractElement = document.createElement(\"tr\")\n          abstractElement.id = rows[counter].id\n          const abstractTextElement = document.createElement(\"td\")\n          \n          abstractTextElement.innerHTML = rows[counter].sAbstract;\n          abstractTextElement.colSpan = 2\n          abstractTextElement.className = 'abstractText'\n          abstractElement.appendChild(abstractTextElement)\n          \/*\n          abstractTextElement.onclick = function () {\n                console.log('id:',abstractElement.id);\n            };*\/\n          tableBody.appendChild(abstractElement)\n          \n          \n\n          \n          counter++\n      }\n      \n      const prevButton = document.getElementById('prev');\n      if (page<=1){\n          prevButton.disabled = true\n      }\n      else{\n          prevButton.disabled = false\n      }\n      \n    }\n    \n    function nextClick() {\n        console.log(\"page: \",page)\n        page++\n        postData('http:\/\/restapi2.farseerbi.com\/bds\/alert\/list?accessToken=RuRPUI2Q6TdG5E9QF14p045n5CEXXinT&itRegion='+itRegion+'&page='+page, document.querySelector('table'))\n        elePosition = document.getElementById(\"newsTab\").getBoundingClientRect().top;\n            scrollPosition = elePosition + window.pageYOffset - 120\n            window.scrollTo({\n             top: scrollPosition,\n             behavior: \"smooth\"\n            });\n        \n        \n    }\n    \n    function prevClick() {\n        console.log(\"page: \",page)\n        if(page>1){\n            page--\n            postData('http:\/\/restapi2.farseerbi.com\/bds\/alert\/list?accessToken=RuRPUI2Q6TdG5E9QF14p045n5CEXXinT&itRegion='+itRegion+'&page='+page, document.querySelector('table'))\n            elePosition = document.getElementById(\"newsTab\").getBoundingClientRect().top;\n            scrollPosition = elePosition + window.pageYOffset - 120\n            window.scrollTo({\n             top: scrollPosition,\n             behavior: \"smooth\"\n            });\n        }\n        \n    }\n    \n    function tabClick(evt, region){\n        \n        itRegion = region\n        page = 1\n        postData('http:\/\/restapi2.farseerbi.com\/bds\/alert\/list?accessToken=RuRPUI2Q6TdG5E9QF14p045n5CEXXinT&itRegion='+itRegion+'&page='+page, document.querySelector('table'))\n        tablinks = document.getElementsByClassName(\"tablinks\");\n      for (i = 0; i < tablinks.length; i++) {\n        tablinks[i].className = tablinks[i].className.replace(\" tabActive\", \"\");\n      }\n        evt.currentTarget.className += \" tabActive\";\n    } \n    \n    \/\/console.log(document.querySelector('table'))\n    postData('http:\/\/restapi2.farseerbi.com\/bds\/alert\/list?accessToken=RuRPUI2Q6TdG5E9QF14p045n5CEXXinT&page='+page, document.querySelector('table'))\n      \/\/.then(data => {\n    \/\/    console.log(data); \/\/ JSON data parsed by `data.json()` call\n     \/\/ });\n\n<\/script>\n\n\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>\u4e2d\u570b\u9999\u6e2f\u5e02\u57f8 \u4e2d\u570b\u5167\u5730\u5e02\u57f8 \u6d77\u5916\u5e02\u57f8 \u4e0a\u4e00\u9801 \u4e0b\u4e00\u9801 Power by<\/p>\n","protected":false},"author":7,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":{"0":"post-6887","1":"page","2":"type-page","3":"status-publish","4":"hentry","5":"nt-post-class","6":"","7":"masonry-item","8":"col-lg-6","10":"thumb-none","12":"excerpt-none"},"acf":[],"_links":{"self":[{"href":"https:\/\/gbacna.org\/index.php?rest_route=\/wp\/v2\/pages\/6887","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gbacna.org\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/gbacna.org\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/gbacna.org\/index.php?rest_route=\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/gbacna.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=6887"}],"version-history":[{"count":467,"href":"https:\/\/gbacna.org\/index.php?rest_route=\/wp\/v2\/pages\/6887\/revisions"}],"predecessor-version":[{"id":7504,"href":"https:\/\/gbacna.org\/index.php?rest_route=\/wp\/v2\/pages\/6887\/revisions\/7504"}],"wp:attachment":[{"href":"https:\/\/gbacna.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=6887"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}