teletext.ch Ads.txt file
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>TELETEXT</title>
<!-- include the favicon which is in the public-folder -->
<link rel="icon" type="image/png" href="/icons/favicon-96x96.png" sizes="96x96" />
<link rel="icon" type="image/svg+xml" href="/icons/favicon.svg" />
<link rel="shortcut icon" href="/icons/favicon.ico" />
<link rel="apple-touch-icon" sizes="180x180" href="/icons/apple-touch-icon.png" />
<link rel="manifest" href="/icons/site.webmanifest" />
<meta name="apple-mobile-web-app-title" content="TELETEXT" />
<!-- OneTrust Cookies Consent Notice start -->
<script type="text/javascript">
// Dynamische OneTrust Konfiguration basierend auf Domain
const getOneTrustScriptId = () => {
const hostname = window.location.hostname;
// Konfiguration für verschiedene Domains
const oneTrustConfigs = {
'teletext.ch': '87386ace-05ce-4117-8e9b-a86f8466adad',
'www.teletext.ch': '87386ace-05ce-4117-8e9b-a86f8466adad',
'dev.teletext.ch': '0197121b-1ec8-78cd-8c05-8d9125baf336-test',
'int.teletext.ch': '87386ace-05ce-4117-8e9b-a86f8466adad',
// Hier fügen Sie Ihre zweite Domain hinzu:
'txt.ch': '01980da2-00f0-7da7-a54e-a5cb7f2f1eb1',
'www.txt.ch': '01980da2-00f0-7da7-a54e-a5cb7f2f1eb1'
};
return oneTrustConfigs[hostname] || '87386ace-05ce-4117-8e9b-a86f8466adad'; // Fallback
};
const scriptId = getOneTrustScriptId();
// OneTrust AutoBlock Script laden
const autoBlockScript = document.createElement('script');
autoBlockScript.type = 'text/javascript';
autoBlockScript.src = `https://cdn.cookielaw.org/consent/${scriptId}/OtAutoBlock.js`;
document.head.appendChild(autoBlockScript);
// OneTrust SDK Stub laden
const sdkScript = document.createElement('script');
sdkScript.src = 'https://cdn.cookielaw.org/scripttemplates/otSDKStub.js';
sdkScript.type = 'text/javascript';
sdkScript.charset = 'UTF-8';
sdkScript.setAttribute('data-domain-script', scriptId);
document.head.appendChild(sdkScript);
</script>
<script type="text/javascript">
function OptanonWrapper() { }
</script>
<!-- OneTrust Cookies Consent Notice end -->
<!-- include cache control headers, max-age: 1min -->
<meta http-equiv="Cache-Control" content="max-age=60, must-revalidate" />
<script type='text/javascript'>
// if url starts with dev.teletext.ch or int.teletextch, adConfig is 'staging' else, it is 'prod'
const url = window.location.href;
const isStaging = url.startsWith('https://dev.teletext.ch') || url.startsWith('https://int.teletext.ch');
const adConfig = isStaging ? 'staging' : 'prod';
/* if the path starts with /fr, /RTSUn, /RTSDeux -> language = 'fr'
if the path starts with /it, /RSILA1, /RSILA2 -> language = 'it'
else -> language = 'de' */
const path = window.location.pathname;
let language = 'de';
if (path.startsWith('/fr') || path.startsWith('/RTSUn') || path.startsWith('/RTSDeux')) {
language = 'fr';
} else if (path.startsWith('/it') || path.startsWith('/RSILA1') || path.startsWith('/RSILA2')) {
language = 'it';
}
(function (r, i, a, d, s) {
r.admTagMan = r.admTagMan || {}; r.admTagMan.q = r.admTagMan.q || [];
r.admTagMan.cq = r.admTagMan.cq || [];
const e = r.document.createElement('script');
e.src = 'https://cdn.ringier-advertising.ch/' + (s || 'prod') + '/tagmanager/' + i.toLowerCase() + '_' + a.toLowerCase() + '/' + d + '/atm.js';
r.document.head.appendChild(e);
})(window, 'teletext.ch', language, 'latest', adConfig);
</script>
<!-- Google Tag Manager -->
<script>
// if (OneTrust.IsAlertBoxClosed() && OneTrust.getConsentValue("C0002")) {
(function (w, d, s, l, i) {
w[l] = w[l] || []; w[l].push({
'gtm.start':
new Date().getTime(), event: 'gtm.js'
}); var f = d.getElementsByTagName(s)[0],
j = d.createElement(s), dl = l != 'dataLayer' ? '&l=' + l : ''; j.async = true; j.src =
'https://www.googletagmanager.com/gtm.js?id=' + i + dl; f.parentNode.insertBefore(j, f);
})(window, document, 'script', 'dataLayer', 'GTM-TRPQMXZC');
// }
</script>
<!-- End Google Tag Manager -->
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-XW1QNRP086"></script>
<script>
// if (OneTrust.IsAlertBoxClosed() && OneTrust.getConsentValue("C0002")) {
window.dataLayer = window.dataLayer || [];
function gtag() { dataLayer.push(arguments); }
gtag('js', new Date());
gtag('config', 'G-XW1QNRP086');
// }
</script>
<script type="module" crossorigin src="/assets/index.Cqt40_2F.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index.BicVYrVA.css">
</head>
<body>
<!-- Google Tag Manager (noscript) -->
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-TRPQMXZC" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<!-- End Google Tag Manager (noscript) -->
<div id="root"></div>
</body>
</html>