From 0f1cc9b2bc1a5b24a6d64c783519558395af74ce Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Thu, 28 Jul 2022 17:13:54 +0300 Subject: [PATCH] feat(predlozhnik): monetize might as well! if it manages to pay for a beer over the lifetime of the site, it will have been worth it. Change-Id: I31ba92ffd4d6e55687f5ee624c44d14d366d0e91 Reviewed-on: https://cl.tvl.fyi/c/depot/+/5990 Tested-by: BuildkiteCI Reviewed-by: tazjin --- users/tazjin/predlozhnik/index.html | 4 ++++ users/tazjin/predlozhnik/src/main.rs | 22 ++++++++++++++++++---- 2 files changed, 22 insertions(+), 4 deletions(-) diff --git a/users/tazjin/predlozhnik/index.html b/users/tazjin/predlozhnik/index.html index 631cf4f6d..0252cca0d 100644 --- a/users/tazjin/predlozhnik/index.html +++ b/users/tazjin/predlozhnik/index.html @@ -7,5 +7,9 @@ href="https://unpkg.com/terminal.css@0.7.2/dist/terminal.min.css" /> Предложник + + + + diff --git a/users/tazjin/predlozhnik/src/main.rs b/users/tazjin/predlozhnik/src/main.rs index 1d864a37b..4f3d7fc60 100644 --- a/users/tazjin/predlozhnik/src/main.rs +++ b/users/tazjin/predlozhnik/src/main.rs @@ -248,10 +248,7 @@ impl Component for Модель { .map(|п| покажи_падеж(link, self, &вв, *п)) .collect::(); - let объяснение = вв - .объяснение - .map(|exp| exp) - .unwrap_or_else(|| html! {}); + let объяснение = вв.объяснение.map(|exp| exp).unwrap_or_else(|| html! {}); let footer = html! {
@@ -264,6 +261,22 @@ impl Component for Модель {
}; + let код_рекламы = r#" +window.yaContextCb.push(()=>{ + Ya.Context.AdvManager.render({ + renderTo: 'yandex_rtb_R-A-1773485-1', + blockId: 'R-A-1773485-1' + }) +}) +"#; + + let реклама = html! { + + }; + html! { <>