{"id":15156,"date":"2026-02-17T16:56:15","date_gmt":"2026-02-17T15:56:15","guid":{"rendered":"https:\/\/bxswiss-website-test.bxs-dev.ch\/?page_id=15156"},"modified":"2026-05-21T11:13:04","modified_gmt":"2026-05-21T09:13:04","slug":"instrument-details-en","status":"publish","type":"page","link":"https:\/\/bxswiss-website-test.bxs-dev.ch\/en\/instrument-details-en\/","title":{"rendered":"Instrument-Details EN (dynamic)"},"content":{"rendered":"<div class=\"fusion-fullwidth fullwidth-box fusion-builder-row-1 fusion-flex-container has-pattern-background has-mask-background nonhundred-percent-fullwidth non-hundred-percent-height-scrolling\" style=\"--awb-border-radius-top-left:0px;--awb-border-radius-top-right:0px;--awb-border-radius-bottom-right:0px;--awb-border-radius-bottom-left:0px;--awb-padding-top:20px;--awb-margin-top:0px;--awb-margin-bottom:0px;--awb-background-color:#f4f4f4;--awb-flex-wrap:wrap;\" ><div class=\"fusion-builder-row fusion-row fusion-flex-align-items-flex-start fusion-flex-content-wrap\" style=\"max-width:calc( 1320px + 30px );margin-left: calc(-30px \/ 2 );margin-right: calc(-30px \/ 2 );\"><div class=\"fusion-layout-column fusion_builder_column fusion-builder-column-0 fusion_builder_column_1_1 1_1 fusion-flex-column\" style=\"--awb-bg-size:cover;--awb-width-large:100%;--awb-margin-top-large:0px;--awb-spacing-right-large:15px;--awb-margin-bottom-large:20px;--awb-spacing-left-large:15px;--awb-width-medium:100%;--awb-order-medium:0;--awb-spacing-right-medium:15px;--awb-spacing-left-medium:15px;--awb-width-small:100%;--awb-order-small:0;--awb-spacing-right-small:15px;--awb-spacing-left-small:15px;\"><div class=\"fusion-column-wrapper fusion-column-has-shadow fusion-flex-justify-content-flex-start fusion-content-layout-column\"><script type=\"text\/javascript\">\nfunction Werteliste (querystring) {\n  if (querystring == '') return;\n  var wertestring = querystring.slice(1);\n  var paare = wertestring.split(\"&\");\n  var paar, name, wert;\n  for (var i = 0; i < paare.length; i++) {\n    paar = paare[i].split(\"=\");\n    name = paar[0];\n    wert = paar[1];\n    name = unescape(name).replace(\"+\", \" \");\n    wert = unescape(wert).replace(\"+\", \" \");\n    this[name] = wert;\n  }\n}\nvar liste = new Werteliste(location.search);\n<\/script>\n\n<script type=\"text\/javascript\">\ndocument.write(\"<wfg-factsheet \" );\n\tfor (var eigenschaft in liste) {\n      document.write( eigenschaft +\"=\" + liste[eigenschaft] +\" \");\n    }\ndocument.write(\"><\/wfg-factsheet>\");\n<\/script><script type=\"text\/javascript\">\n\tconst heute = new Date()\n\tvar TagHeute = heute.getDate()\n\tif (TagHeute < 10) {\n\t\tTagHeute = \"0\" +TagHeute;\n\t}\n\tvar MonatHeute = (heute.getMonth() +1)\n\tif (MonatHeute < 10) {\n\t\tMonatHeute = \"0\" +MonatHeute;\n\t}\n\tvar JahrHeute = heute.getFullYear()\n\n\tconst gestern = new Date(heute)\n\tgestern.setDate(gestern.getDate() - 1)\n\tvar TagGestern = gestern.getDate()\n\tif (TagGestern < 10) {\n\t\tTagGestern = \"0\" +TagGestern;\n\t}\n\tvar MonatGestern = (gestern.getMonth() +1)\n\tif (MonatGestern < 10) {\n\t\tMonatGestern = \"0\" +MonatGestern;\n\t}\n\tvar JahrGestern = gestern.getFullYear()\n\n\tfunction getUrlParam(name) {\n\t\tvar url_string = window.location;\n\t\tvar url = new URL(url_string);\n\t\tvar c = url.searchParams.get(name);\n\t\treturn c;\n\t}\n<\/script>\n\n<script>\n\/\/ Mit diesem Script werden die von ViCo bereitgestellten Latest Trades \n\/\/ (Off-Exchange) per iframe in die Seite gerendert.\n\/\/ Dies soll aber nur in dem Tab \"Historische Daten\" geschehen, sonst nicht\n    const searchTextDE = \"Nur Trades anzeigen\";\n    const searchTextEN = \"Show only Trades\";\n    const localeSetting = String(getUrlParam(\"locale\"));\n\/\/\tconsole.log(\"localeSetting=\" + localeSetting);\n\nif (localeSetting == \"de-CH\") {\n\/\/ newContentHTML=\"<div class='fusion-row' id='dynamic-info'><div class='flex-col-12 flex-col-xl-12'><p><div class='afds-card'><iframe src='https:\/\/www.bxswiss.com\/instrumente\/\" +getUrlParam(\"instrumentid\").substring(0, 12) +\"' title='Latest Trades' frameborder='0' width='100%' height='100%' style='height: 470px'<\/iframe><p>\";\n   newContentHTML=\"<div class='fusion-row' id='dynamic-info'><p><div class='afds-card'><h3 class ='afds-card__title'>Latest Trades<\/h3><p>Hier k\u00f6nnen Sie die <a href='https:\/\/www.bxswiss.com\/instrumente\/\" +getUrlParam(\"instrumentid\").substring(0, 12) +\"\/tradehistory\/\" +TagGestern +\"-\" +MonatGestern +\"-\" +JahrGestern +\"\/\" +TagHeute +\"-\" +MonatHeute +\"-\" +JahrHeute +\"'>Latest Trades<\/a> herunterladen.\";  \n} \nif (localeSetting == \"en-EN\") {  \n\/\/  console.log (\"Schreibe englische URL\");  \n\/\/ newContentHTML=\"<div class='fusion-row' id='dynamic-info'><div class='flex-col-12 flex-col-xl-12'><p><div class='afds-card'><iframe src='https:\/\/www.bxswiss.com\/instrumente\/\" +getUrlParam(\"instrumentid\").substring(0, 12) +\"' title='Latest Trades' frameborder='0' width='100%' height='100%' style='height: 470px'<\/iframe><p>\";\n   newContentHTML=\"<div class='fusion-row' id='dynamic-info'><p><div class='afds-card'><h3 class ='afds-card__title'>Latest Trades<\/h3><p>Here you can download the <a href='https:\/\/www.bxswiss.com\/instruments\/\" +getUrlParam(\"instrumentid\").substring(0, 12) +\"\/tradehistory\/\" +TagGestern +\"-\" +MonatGestern +\"-\" +JahrGestern +\"\/\" +TagHeute +\"-\" +MonatHeute +\"-\" +JahrHeute +\"'>Latest Trades<\/a>.\";\n}\n\n    function checkAndUpdateContent() {\n      const contentElement = document.getElementById(\"main\");\n      if (!contentElement) return;\n\/\/console.log (\"Suche Text...\");\n      const textFound = contentElement.innerText.includes(searchTextDE) || contentElement.innerText.includes(searchTextEN);\n\n      let infoElement = document.getElementById(\"dynamic-info\");\n\n      if (textFound && !infoElement) {\n        \/\/ hinzuf\u00fcgen\n\/\/console.log (\"Habe \" + textFound +\" Text gefunden, verlinke \" +newContentHTML);\n        contentElement.insertAdjacentHTML(\"beforeend\", newContentHTML);\n      } else if ((!textFound) && infoElement) {\n        \/\/ entfernen (mit weicher Animation)\n        infoElement.classList.add(\"hidden\");\n        setTimeout(() => infoElement.remove(), 300);\n      }\n    }\n\n    const observer = new MutationObserver(() => checkAndUpdateContent());\n\n    observer.observe(document.getElementById(\"main\"), {\n      childList: true,\n      subtree: true,\n      characterData: true\n    });\n\n    \/\/ Initialer Check\n    checkAndUpdateContent();\n\n  <\/script>\n<\/div>\n<\/div>\n<\/div><!-- PapaParse laden -->\n<script src=\"https:\/\/cdn.jsdelivr.net\/npm\/papaparse@5.4.1\/papaparse.min.js\"><\/script>\n\n<script type=\"text\/javascript\">\n\/\/ blendet bei SME-Titeln am Seitenende einen Link die Issuer Information Page ein\n\/\/ Dies soll aber nur in dem Tab \"\u00dcbersicht\" geschehen, sonst nicht\n\n(async () => {\n  try {\n    \/\/ 1. InstrumentID aus URL holen\n    const urlParams = new URLSearchParams(window.location.search);\n    const instrumentid = urlParams.get(\"instrumentid\")?.substring(0, 12);\n    const localeSetting = urlParams.get(\"locale\");\n\tconsole.log(\"LocalSettings->\"+localeSetting);\n    if (!instrumentid) return;\n\n    \/\/ 2. CSV laden\n    const response = await fetch(\"https:\/\/bxswiss-website-test.bxs-dev.ch\/wp-content\/uploads\/csvdata\/sme_issuer_details.csv\");\n    const csvText = await response.text();\n\n    \/\/ 3. CSV parsen\n    const parsed = Papa.parse(csvText, { header: true, skipEmptyLines: true });\n    if (parsed.errors.length) {\n      console.error(\"CSV-Parsing-Fehler:\", parsed.errors);\n      return;\n    }\n    const data = parsed.data;\n\n    \/\/ 4. Suche nach Zeile, wo ISIN = instrumentid\n    const match = data.find(row => row.ISIN === instrumentid);\n    if (!match || !match.IssuerInformationPage) return;\n\n    const url = match.IssuerInformationPage.trim();\n\n    \/\/ 5. Link-Element erstellen (einmalig)\n    const linkDiv = document.createElement(\"div\");\n    linkDiv.className = 'fusion-row afds-dynamic-link';\n\tif (localeSetting == \"de-CH\") {\n\t    linkDiv.innerHTML = `\n      \t<div afds-modules alf-modules>\n      \t<mat-tab-group class='mat-mdc-tab-group tab-material mat-primary' mat-align-tabs='start' mat-stretch-tabs='false\" style='--mat-tab-animation-duration: 500ms;\">\n      \t<div class='mat-mdc-tab-body-wrapper'>\n      \t<mat-tab-body role='tabpanel' class='mat-mdc-tab-body mat-mdc-tab-body-active' id='mat-tab-group-0-content-0> \n      \t<div cdkscrollable class='mat-mdc-tab-body-content mat-tab-body-content-can-animate'>\n      \t<div class='flex-row'>\n        \t<div class='flex-col-12 flex-col-xl-12'>\n            \t<div class='afds-card'>\n              \t\t<h3 class='afds-card__title'>Emittenten Informationen<\/h3>\n      \t\t\t\t\t<p>\n    \t\t\t\t\t\t<a href='${url}' target='_blank'>Emittenten Informationen<\/a>\n              \t\t\t<\/p>\n            \t<\/div>\n        \t<\/div>\n \t     <\/div>\n      \t<\/div>\n      \t<\/mat-tab-body>\n      \t<\/div>\n      \t<\/mat-tab-group>\n      \t<\/div>\n    \t`;\n\t} \n\tif (localeSetting == \"en-EN\") {\n\t    linkDiv.innerHTML = `\n      \t<div afds-modules alf-modules>\n      \t<mat-tab-group class='mat-mdc-tab-group tab-material mat-primary' mat-align-tabs='start' mat-stretch-tabs='false\" style='--mat-tab-animation-duration: 500ms;\">\n      \t<div class='mat-mdc-tab-body-wrapper'>\n      \t<mat-tab-body role='tabpanel' class='mat-mdc-tab-body mat-mdc-tab-body-active' id='mat-tab-group-0-content-0> \n      \t<div cdkscrollable class='mat-mdc-tab-body-content mat-tab-body-content-can-animate'>\n      \t<div class='flex-row'>\n        \t<div class='flex-col-12 flex-col-xl-12'>\n            \t<div class='afds-card'>\n              \t\t<h3 class='afds-card__title'>Issuer information<\/h3>\n      \t\t\t\t\t<p>\n    \t\t\t\t\t\t<a href='${url}' target='_blank'>Issuer information page<\/a>\n              \t\t\t<\/p>\n            \t<\/div>\n        \t<\/div>\n \t     <\/div>\n      \t<\/div>\n      \t<\/mat-tab-body>\n      \t<\/div>\n      \t<\/mat-tab-group>\n      \t<\/div>\n    \t`;\n\t} \n\n    \/\/ 6. Ziel-Container (vor Footer)\n    const contentElement = document.getElementById(\"main\");\n    if (!contentElement) return;\n\n    \/\/ 7. Suchbegriff definieren\n    const searchTextDE = \"Schl\u00fcsseldaten\";\n    const searchTextEN = \"Key Data\";\n\/\/\tconsole.log(\"localeSetting=\" + localeSetting);\n    \n    \n    \/\/ 8. Funktion, die pr\u00fcft ob Suchbegriff vorhanden ist\n    const checkAndToggleLink = () => {\n      const bodyText = document.body.innerText || \"\";\n      const exists = bodyText.includes(searchTextDE) || bodyText.includes(searchTextEN);\n\n      if (exists) {\n        \/\/ Link nur anh\u00e4ngen, wenn noch nicht vorhanden\n        if (!document.body.contains(linkDiv)) {\n          contentElement.appendChild(linkDiv);\n        }\n      } else {\n        \/\/ Link entfernen, wenn vorhanden\n        if (document.body.contains(linkDiv)) {\n          linkDiv.remove();\n        }\n      }\n    };\n\n    \/\/ 9. Initial pr\u00fcfen\n    checkAndToggleLink();\n\n    \/\/ 10. Observer einrichten, falls Seite dynamisch ge\u00e4ndert wird\n    const observer = new MutationObserver(checkAndToggleLink);\n    observer.observe(document.body, { childList: true, subtree: true, characterData: true });\n\n  } catch (error) {\n    console.error(\"Fehler:\", error);\n  }\n})();\n<\/script>\n<\/div><\/div><\/div><\/div>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":2,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"100-width.php","meta":{"inline_featured_image":false,"footnotes":""},"class_list":["post-15156","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/bxswiss-website-test.bxs-dev.ch\/en\/wp-json\/wp\/v2\/pages\/15156","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bxswiss-website-test.bxs-dev.ch\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/bxswiss-website-test.bxs-dev.ch\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/bxswiss-website-test.bxs-dev.ch\/en\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/bxswiss-website-test.bxs-dev.ch\/en\/wp-json\/wp\/v2\/comments?post=15156"}],"version-history":[{"count":8,"href":"https:\/\/bxswiss-website-test.bxs-dev.ch\/en\/wp-json\/wp\/v2\/pages\/15156\/revisions"}],"predecessor-version":[{"id":16150,"href":"https:\/\/bxswiss-website-test.bxs-dev.ch\/en\/wp-json\/wp\/v2\/pages\/15156\/revisions\/16150"}],"wp:attachment":[{"href":"https:\/\/bxswiss-website-test.bxs-dev.ch\/en\/wp-json\/wp\/v2\/media?parent=15156"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}