Show
Ignore:
Timestamp:
05/08/08 22:43:03 (7 months ago)
Author:
drry
Message:
  • ちょっとした変更です。
Location:
platform/tdiary/plugin
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • platform/tdiary/plugin/google_analytics.rb

    r8042 r11283  
    55# You can redistribute it and/or modify it under GPL2. 
    66# 
    7 if /^(latest|day|month|nyear)$/ =~ @mode then 
     7if /^(?:latest|day|month|nyear)$/ =~ @mode then 
    88        add_footer_proc do 
    99                google_analytics_insert_code 
     
    1414        return '' unless @conf['google_analytics.profile'] 
    1515        <<-HTML 
    16         <script type="text/javascript"> 
     16        <script type="text/javascript"><!-- 
    1717        var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.") ; 
    18         document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E")) ; 
    19         </script> 
    20         <script type="text/javascript"> 
     18        document.write(unescape('%3Cscript src="' + gaJsHost + 'google-analytics.com/ga.js" type="text/javascript"%3E%3C/script%3E')) ; 
     19        // --></script> 
     20        <script type="text/javascript"><!-- 
    2121        var pageTracker = _gat._getTracker("UA-#{h @conf['google_analytics.profile']}"); 
    2222        pageTracker._initData(); 
    2323        pageTracker._trackPageview(); 
    24         </script> 
     24        // --></script> 
    2525        HTML 
    2626end 
  • platform/tdiary/plugin/prettify.rb

    r8041 r11283  
    11# prettify.rb 
    22 
    3 if /^(latest|day|month|nyear)$/ =~ @mode then 
     3if /^(?:latest|day|month|nyear)$/ =~ @mode then 
    44        add_header_proc do 
    55                <<-HTML