changes adsense

This commit is contained in:
Torsten Schulz
2024-06-26 15:31:37 +02:00
parent 24111a7635
commit 701a5ff5f9

View File

@@ -132,10 +132,17 @@ Wt::WHBoxLayout *App::createActionLayout(Wt::WVBoxLayout *verticalContainer) {
void App::createHeadContainer(Wt::WVBoxLayout *layout) { void App::createHeadContainer(Wt::WVBoxLayout *layout) {
auto header = layout->addNew<Wt::WContainerWidget>(); auto header = layout->addNew<Wt::WContainerWidget>();
header->addNew<Wt::WText>("<h1>ypChat</h1>")->setInline(true); header->addNew<Wt::WText>("<h1>ypChat</h1>")->setInline(true);
header->addNew<Wt::WText>((std::string)"<script async src=\"https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=pub-1104166651501135\" crossorigin=\"anonymous\"></script>" header->addNew<Wt::WText>((std::string)"<script async src=""https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-1104166651501135"" "
+ "<ins class=\"adsbygoogle\" style=\"display:inline-block;width:728px;height:90px\" " " crossorigin="anonymous"></script>"
+ "data-ad-client=\"pub-1104166651501135\" data-ad-slot=\"8252321071\"></ins> " "<ins class=""adsbygoogle"" "
+ "<script>(adsbygoogle = window.adsbygoogle || []).push({});</script>", Wt::TextFormat::UnsafeXHTML) " style=""display:block"" "
" data-ad-client=""ca-pub-1104166651501135"" "
" data-ad-slot=""8252321071"" "
" data-ad-format=""auto"" "
" data-full-width-responsive=""true""></ins>"
"<script> "
"(adsbygoogle = window.adsbygoogle || []).push({}); "
"</script>", Wt::TextFormat::UnsafeXHTML)
->setInline(true); ->setInline(true);
header->setStyleClass("header"); header->setStyleClass("header");
} }