diff options
author | Ugnich Anton | 2014-07-03 17:10:29 +0700 |
---|---|---|
committer | Ugnich Anton | 2014-07-03 17:10:29 +0700 |
commit | 72b0f51fb006c8719219a58c3cab746cf766d2f7 (patch) | |
tree | 84f85684fd58c43d13f16c88d5aeae67c732f56d /src/java/com | |
parent | 548fc0a24bb4e7e2a72aa5130e47932f80c0ef97 (diff) |
* Yandex -> AdSense
Diffstat (limited to 'src/java/com')
-rw-r--r-- | src/java/com/juick/http/www/PageTemplates.java | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/java/com/juick/http/www/PageTemplates.java b/src/java/com/juick/http/www/PageTemplates.java index d168875c..cefd3cdd 100644 --- a/src/java/com/juick/http/www/PageTemplates.java +++ b/src/java/com/juick/http/www/PageTemplates.java @@ -51,7 +51,7 @@ public class PageTemplates { out.println("<!DOCTYPE html>"); out.print("<html>"); out.print("<head>"); - out.print("<link rel=\"stylesheet\" href=\"/style.2014062903.css\"/>"); + out.print("<link rel=\"stylesheet\" href=\"/style.2014070300.css\"/>"); out.print("<script type=\"text/javascript\" src=\"//ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js\"></script>"); out.print("<script type=\"text/javascript\" src=\"/scripts.2014062900.js\"></script>"); if (headers != null) { @@ -101,6 +101,7 @@ public class PageTemplates { } 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) {"); @@ -128,6 +129,12 @@ public class PageTemplates { 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' data-ad-client='ca-pub-2439005094311303' data-ad-slot='2131891641'></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) { |