OSDN Git Service

fixed many bugs.
authorelixirel <elixirel@users.sourceforge.jp>
Thu, 4 Jun 2009 18:27:07 +0000 (03:27 +0900)
committerelixirel <elixirel@users.sourceforge.jp>
Thu, 4 Jun 2009 18:27:07 +0000 (03:27 +0900)
generator.html
js/lunardial/feedblog_gen.js
js/lunardial/gen_stylesheet.css

index cc1b8de..4d43c95 100644 (file)
@@ -3,7 +3,7 @@
     <head>
         <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
         <title>日記設置サンプル</title>
-               <link rel="stylesheet" href="./js/lunardial/gen_stylesheet.css" type="text/css"/>
+        <link rel="stylesheet" href="./js/lunardial/gen_stylesheet.css" type="text/css"/>
         <link rel="alternate" type="application/atom+xml" title="Atom" href="./xml/diary.xml"/>
         <script type="text/javascript" src="./js/jquery/jquery-1.3.2.min.js">
         </script>
                 <tbody>
                     <tr>
                         <td class="default" colspan="2" style="padding: 5px; text-align: center; vertical-align: bottom;">
-                            <div id="entrySelect">
-                            </div>
-                                                       <div id="logSelecter"></div>
+                            <table>
+                                <tbody>
+                                    <tr>
+                                        <td class="formnavi" style="padding: 0px 20px 0px 20px;">
+                                            編集中のファイル
+                                        </td>
+                                        <td>
+                                            <div id="logSelecter">
+                                            </div>
+                                        </td>
+                                    </tr>
+                                    <tr>
+                                        <td class="formnavi" style="padding: 0px 20px 0px 20px;">
+                                            編集する記事名
+                                        </td>
+                                        <td>
+                                            <div id="entrySelect">
+                                            </div>
+                                        </td>
+                                    </tr>
+                                </tbody>
+                            </table>
                             <br>
-                            <input type="text" id="title" style="width: 100%">
+                            <table style="width: 100%">
+                                <tbody>
+                                    <tr>
+                                        <td class="formheader" style="text-align: center; width: 100px;">
+                                            タイトル
+                                        </td>
+                                        <td class="forminput" style="padding: 0px 5px 0px 3px;">
+                                            <input type="text" id="title" style="width: 100%">
+                                        </td>
+                                    </tr>
+                                    <tr>
+                                        <td class="formheader" style="text-align: center;">
+                                            本文
+                                        </td>
+                                        <td class="forminput" style="padding: 0px 5px 0px 3px;">
+                                            <textarea id="stdin" rows="10" style="width: 100%">
+                                            </textarea>
+                                        </td>
+                                    </tr>
+                                </tbody>
+                            </table>
+                            <br>
+                            <input type="button" value="追加/編集" onclick="javascript:applyChange();"> <input type="button" value="選択中の記事を削除" onclick="javascript:removeEntry()">  <input type="button" value="リセット" onclick="javascript:initLoad()"
                             <br>
-                            <textarea id="stdin" rows="10" style="width: 100%">
-                            </textarea>
                             <br>
-                            <input type="button" value="CONVERT" onclick="javascript:applyChange();"><input type="button" value="DELETE" onclick="javascript:removeEntry()"><input type="button" value="RESET" onclick="javascript:initLoad()"
                         </td>
                     </tr>
                     <tr>
-                        <td class="default" colspan="2" style="padding: 5px; text-align: center; vertical-align: bottom;">
+                        <td class="default" colspan="2" style="padding: 5px 8px 5px 5px; text-align: center; vertical-align: bottom;">
                             <textarea id="stdout" rows="20" style="width: 100%">
                             </textarea>
                         </td>
index f9b70d4..b7802ec 100644 (file)
@@ -53,6 +53,7 @@ function removeEntry(index){
     if (editIndex >= 0) {
         entryList.splice(index, 1);
         refleshEntrylistBox();
+        editIndex = -1;
         
         document.getElementById("stdout").value = ""
         document.getElementById("title").value = "";
@@ -94,8 +95,8 @@ function logXMLLoader(){
             // コンボボックス要素を生成
             document.getElementById("logSelecter").innerHTML = boxBuffer.join("");
             
-                       // 最新の日記をローディングする
-                       xmlLoader(initUrl);
+            // 最新の日記をローディングする
+            xmlLoader(initUrl);
         }
     });
 }
@@ -159,7 +160,6 @@ function refleshEntrylistBox(){
     }
     stringBuffer.push("</select></form>");
     // コンボボックス要素を生成
-    editIndex = -1;
     document.getElementById("entrySelect").innerHTML = stringBuffer.join("");
 }
 
index f0c3b11..cd8d560 100644 (file)
@@ -3,7 +3,6 @@ body {
     line-height: 13pt;
     font-family: sans-serif;
     color: #1E4080;
-    background-image: url('../img/background.jpg');
     background-color: white;
     background-repeat: no-repeat;
     background-attachment: fixed;