diff options
Diffstat (limited to 'src/main/java/com/juick/http/www/PageTemplates.java')
-rw-r--r-- | src/main/java/com/juick/http/www/PageTemplates.java | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/src/main/java/com/juick/http/www/PageTemplates.java b/src/main/java/com/juick/http/www/PageTemplates.java index 2f9c8976..ebbb4b16 100644 --- a/src/main/java/com/juick/http/www/PageTemplates.java +++ b/src/main/java/com/juick/http/www/PageTemplates.java @@ -105,43 +105,6 @@ public class PageTemplates { out.println("</header>"); } - public static void pageYandexAd728(PrintWriter out, int YandexID) { - /* - out.println("<div id=\"yandex_ad_728\"></div>"); - out.println("<script type=\"text/javascript\">"); - out.println("if($(window).width()>1000) {"); - out.println("(function(w, d, n, s, t) {"); - out.println("w[n] = w[n] || [];"); - out.println("w[n].push(function() {"); - out.println("Ya.Direct.insertInto(84715, \"yandex_ad_728\", {"); - out.println("stat_id: " + YandexID + ","); - out.println("site_charset: \"utf-8\","); - out.println("ad_format: \"direct\","); - out.println("type: \"728x90\","); - out.println("site_bg_color: \"FFFFFF\","); - out.println("title_color: \"006699\","); - out.println("url_color: \"000000\","); - out.println("text_color: \"000000\","); - out.println("hover_color: \"006699\""); - out.println("});"); - out.println("});"); - out.println("t = d.getElementsByTagName(\"script\")[0]"); - out.println("s = d.createElement(\"script\");"); - out.println("s.type = \"text/javascript\";"); - out.println("s.src = \"//an.yandex.ru/system/context.js\";"); - out.println("s.async = true"); - out.println("t.parentNode.insertBefore(s, t);"); - out.println("})(window, document, \"yandex_context_callbacks\");"); - out.println("} else { $('#yandex_ad_728').remove(); }"); - out.println("</script>"); - */ - out.println("<script async src='//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js'></script>"); - out.println("<ins class='adsbygoogle adslot1' data-ad-client='ca-pub-1706616473363517' data-ad-slot='4828054583' data-ad-format='auto' style='display:block'></ins>"); - out.println("<script>"); - out.println("(adsbygoogle = window.adsbygoogle || []).push({})"); - out.println("</script>"); - } - public static void pageHomeColumn(PrintWriter out, Connection sql, com.juick.User visitor) { pageHomeColumn(out, sql, visitor, false); } @@ -514,10 +477,6 @@ public class PageTemplates { for (int i = 0; i < msgs.size(); i++) { - if (i == 0 && YandexID > 0 && ad_mid == 0) { - pageYandexAd728(out, YandexID); - } - com.juick.Message msg = msgs.get(i); List<com.juick.Tag> tags = MessagesQueries.getMessageTags(sql, msg.getMID()); |