diff options
author | anekos | 2009-01-12 19:06:58 +0000 |
---|---|---|
committer | anekos | 2009-01-12 19:06:58 +0000 |
commit | a9149f1c545333e2bc387c31dfa003a23877b0c9 (patch) | |
tree | bfd29ecf9080813ba0d788354e5c26231db3c1e7 | |
parent | 0b9294a627787c18284bddc5ff1dbd7ce53e2d11 (diff) | |
download | vimperator-plugins-a9149f1c545333e2bc387c31dfa003a23877b0c9.tar.bz2 |
外部スタイルシートに変更
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@28352 d0d07461-0603-4401-acd4-de1884942a52
-rw-r--r-- | PMWriter.js | 52 |
1 files changed, 12 insertions, 40 deletions
diff --git a/PMWriter.js b/PMWriter.js index be5952e..f9e7ed9 100644 --- a/PMWriter.js +++ b/PMWriter.js @@ -52,7 +52,6 @@ let ioService = services.get("io"); let files = io.readDirectory(pluginDirPath); let i = 0; - let xml = <></>; let xml_index = <></>; files.forEach(function (file) { @@ -96,7 +95,16 @@ } } - xml = template.table(plugin.name, plugin); + let xml = <html> + <head> + <title>{detailFilename}</title> + <link rel="stylesheet" href="voqn.css" type="text/css" /> + </head> + <body> + {template.table(plugin.name, plugin)} + </body> + </html>; + liberator.log(xml) io.writeFile(io.getFile(outputDir + detailFilename), xml.toString()); let link = 'http://vimperator.kurinton.net/' + detailFilename; @@ -115,46 +123,10 @@ xml_index = <html> <head> <title>{title}</title> - <style><![CDATA[ - /* (c) VoQn */ - * { - margin: 0 !important; - padding: 0 !important; - } - h1 { - background: black !important; - color: white !important; - font-family: monospace !important; - padding: 0.5em 0 0.1em 0.75em !important; - } - table { - margin: 1em !important; - padding: 0.5em !important; - border: 1px solid lightgray !important; - } - th { - border-bottom: 1px solid magenta !important; - color: magenta !important; - text-align: left !important; - font-weight: bold !important; - font-size: 1.5em !important; - } - td { - padding: 0 3em 0.5em 0 !important; - } - td.name { - font-weight: bold !important; - font-size: 1.2em !important; - } - .hatena-star-comment-container { - display: none; - padding: 0; - margin: 0; - } - ]]></style> + <link rel="stylesheet" href="voqn.css" type="text/css" /> <script type="text/javascript" src="http://s.hatena.ne.jp/js/HatenaStar.js"></script> <script type="text/javascript"> - Hatena.Star.Token = '48e8f4c633307a76a4dd923111e22a25e80b6e8a'; + Hatena.Star.Token = '48e8f4c633307a76a4dd923111e22a25e80b6e8a'; </script> <script type="text/javascript"><![CDATA[ Hatena.Star.SiteConfig = { |