<?xml version="1.0" encoding="utf-8" ?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>Tan's monologue</title>
<link>https://ameblo.jp/tanchan1910/</link>
<atom:link href="https://rssblog.ameba.jp/tanchan1910/rss20.xml" rel="self" type="application/rss+xml" />
<atom:link rel="hub" href="http://pubsubhubbub.appspot.com" />
<description>日常の出来事とか独り言をならべています。でも食事のことが多くなるのは表現力が不足してるからなのだろうなぁ。コメントをいただけると幸いです。</description>
<language>ja</language>
<item>
<title>とあるスクリプト</title>
<description>
<![CDATA[ <blockquote><p>&lt;html&gt;<br>&lt;head&gt;<br>&lt;title&gt;Unicode Decoder&lt;/title&gt;<br>&lt;script language="JScript"&gt;<br>////////////////////////////////////////////////////////////////<br>// Unicode Decoder<br>//<br>////////////////////////////////////////////////////////////////<br>//====================================<br>// 処理メイン<br>//====================================<br>function ScriptMain() {<br><br>&nbsp;&nbsp; &nbsp;var arrayLines = window.form1.targetList.value.split(/\n/);<br><br>&nbsp;&nbsp; &nbsp;// 結果リストボックス用領域を準備。<br>&nbsp;&nbsp; &nbsp;var resultList&nbsp;&nbsp; &nbsp;= "";<br><br>&nbsp;&nbsp; &nbsp;// 改行コードを削除する。<br>&nbsp;&nbsp; &nbsp;for (var i=0; i&lt;arrayLines.length; i++) {<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;strLine = arrayLines[i].replace(/[\n\r]/g, "");&nbsp;&nbsp; &nbsp;// 改行コードを削除する。<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;strWords &nbsp; &nbsp;= strLine.replace(/(\\u.{4})+/ig, '__%%%__');<br>&nbsp; &nbsp; &nbsp; &nbsp; arrayUcodes = strLine.match(/(\\u.{4})+/ig);<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;for (var j=0; j&lt;arrayUcodes.length; j++) {<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;strWords = strWords.replace(/__%%%__/, unicodeUnescape(arrayUcodes[j]));<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;}<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;resultList = resultList + strWords + "\n";<br>&nbsp;&nbsp; &nbsp;}<br><br>&nbsp;&nbsp; &nbsp;// 結果リストボックスの内容を更新する。<br>&nbsp;&nbsp; &nbsp;window.form1.resultList.value = resultList;<br><br>}<br><br>//==================================<br>// Unicode Unescape<br>//==================================<br>var unicodeUnescape = function(str) {<br>&nbsp; &nbsp; var result = '', strs = str.match(/\\u.{4}/ig);<br>&nbsp; &nbsp; if (!strs) return '';<br>&nbsp; &nbsp; for (var i = 0, len = strs.length; i &lt; len; i++) {<br>&nbsp; &nbsp; &nbsp; &nbsp; result += String.fromCharCode(strs[i].replace('\\u', '0x'));<br>&nbsp; &nbsp; }<br>&nbsp; &nbsp; return result;<br>};<br><br>//==================================<br>// Window OnLoad イベントプロシジャ<br>//==================================<br>window.onload = function() {<br><br>&nbsp;&nbsp; &nbsp;// Windowサイズを調整する。<br>&nbsp;&nbsp; &nbsp;window.resizeTo(790,460)<br><br>};<br><br><br>&lt;/script&gt;<br>&lt;/head&gt;<br>&nbsp; &lt;hta:application<br>&nbsp; &nbsp; &nbsp;id="HTA"<br>&nbsp; &nbsp; &nbsp;icon=""<br>&nbsp; &nbsp; &nbsp;applicationname=""<br>&nbsp; &nbsp; &nbsp;border="thick"<br>&nbsp; &nbsp; &nbsp;borderstyle="normal"&nbsp;<br>&nbsp; &nbsp; &nbsp;caption="yes"&nbsp;<br>&nbsp; &nbsp; &nbsp;innerborder="yes"&nbsp;<br>&nbsp; &nbsp; &nbsp;maximizebutton="yes"&nbsp;<br>&nbsp; &nbsp; &nbsp;minimizebutton="yes"&nbsp;<br>&nbsp; &nbsp; &nbsp;showintaskbar="yes"&nbsp;<br>&nbsp; &nbsp; &nbsp;singleinstance="no"&nbsp;<br>&nbsp; &nbsp; &nbsp;sysmenu="yes"&nbsp;<br>&nbsp; &nbsp; &nbsp;version=""&nbsp;<br>&nbsp; &nbsp; &nbsp;windowstate="nomal"&nbsp;<br>&nbsp; &nbsp; &nbsp;scroll="yes"&nbsp;<br>&nbsp; &nbsp; &nbsp;scrollflat="yes"&nbsp;<br>&nbsp; &nbsp; &nbsp;selection="yes"&nbsp;<br>&nbsp; &nbsp; &nbsp;contextmenu="yes"&nbsp;<br>&nbsp; &nbsp; &nbsp;navigable="yes" /&gt;<br>&lt;body&gt;<br>&lt;form name="form1"&gt;<br>&nbsp;&nbsp; &nbsp;&lt;table&gt;<br>&nbsp;&nbsp; &nbsp;&lt;tr valign="middle"&gt;<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&lt;td&gt;&lt;textarea name="targetList" cols="30" rows="20" wrap="off"&gt;&lt;/textarea&gt;&lt;/td&gt;<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&lt;td&gt;&lt;input type="button" value=" ⇒ " onClick="ScriptMain()" /&gt;&lt;/td&gt;<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&lt;td&gt;&lt;textarea name="resultList" cols="60" rows="20" wrap="off"&gt;&lt;/textarea&gt;&lt;/td&gt;<br>&nbsp;&nbsp; &nbsp;&lt;/tr&gt;<br>&nbsp;&nbsp; &nbsp;&lt;/table&gt;<br>&lt;/form&gt;<br>&lt;/body&gt;<br>&lt;/html&gt;<br>&nbsp;</p></blockquote>
]]>
</description>
<link>https://ameblo.jp/tanchan1910/entry-12531964427.html</link>
<pubDate>Wed, 02 Oct 2019 22:21:38 +0900</pubDate>
</item>
<item>
<title>とあるスクリプト</title>
<description>
<![CDATA[ <blockquote><p># -*- coding: utf8 -*-</p><p>import sys</p><p>from tkinter import Tk, ttk, StringVar</p><p>&nbsp;</p><p># configファイル名</p><p>config_file = 'config.py'</p><p>&nbsp;</p><p># 送信先dict</p><p>ip_lists = [{'ip1' : '192.168.1.1', 'ip2' : '192.168.2.1', 'name' : 'A君'},</p><p>{'ip1' : '192.168.1.2', 'ip2' : '192.168.2.2', 'name' : 'B君'},</p><p>{'ip1' : '192.168.1.3', 'ip2' : '192.168.2.3', 'name' : 'C君'},</p><p>{'ip1' : '192.168.1.4', 'ip2' : '192.168.2.4', 'name' : 'D君'},</p><p>{'ip1' : '192.168.1.4', 'ip2' : '192.168.2.4', 'name' : 'E君'},</p><p>{'ip1' : '192.168.1.5', 'ip2' : '192.168.2.5', 'name' : 'F君'} ]</p><p>&nbsp;</p><p>##########</p><p>def cancel_btn_event (ev):</p><p>"""</p><p>cancelボタン押下イベントプロシジャ</p><p>"""</p><p>global win</p><p>win.quit()</p><p>&nbsp;</p><p>##########</p><p>def getValue(strTargetKey, strTargetString):</p><p>"""</p><p>文字列中のkeyからvalueを返す。</p><p>Parameters</p><p>----------</p><p>strTargetKey : string</p><p>探し出すkey</p><p>strTargetString : string</p><p>key=valueを含む検索対象文字列</p><p>&nbsp;</p><p>Returns</p><p>-------</p><p>value : int</p><p>keyに対応するvalueを返す。</p><p>"""</p><p># '=' で区切って key-value に分割する</p><p>strKey, strValue = strTargetString.split('=', 1) # 1回目を区切って、2個目以降は区切らない</p><p>strValue = strValue.strip()</p><p>return strValue.strip('\'\"')</p><p>&nbsp;</p><p>##########</p><p>def find_line(strTargetKey, listData):</p><p>"""</p><p>configを読み込んだリストから特定 key を含む行番号を返す。</p><p>Parameters</p><p>----------</p><p>strTargetKey : string</p><p>探し出すkey</p><p>listData : list</p><p>configを読み込んだリスト</p><p>&nbsp;</p><p>Returns</p><p>-------</p><p>行番号 : int</p><p>先頭の場合は1を返し、なければ0を返す。</p><p>"""</p><p>&nbsp;</p><p>bFindFlag = False</p><p># list の全ての内容から、strTargetKey を探す</p><p>for i in range(len(listData)):</p><p># 1行取り出しては # より右の文字列を削除する</p><p>strLine = listData[i].split('#', 1)</p><p># = がなければ key-value ではない</p><p>if not '=' in strLine[0]:</p><p>continue</p><p>strLine = listData[i].split('#')</p><p>strKey, strValue = strLine[0].split('=', 1) # 1回目を区切って、2個目以降は区切らない</p><p>&nbsp;</p><p># Targetのkeyと同じkeyをconfigからみつけたら、その行番号を返す。先頭行なら「1」を返す</p><p>if strTargetKey.strip() == strKey.strip():</p><p>return i + 1</p><p>&nbsp;</p><p># key が見つからない場合は 0 を返す</p><p>if not bFindFlag:</p><p>return 0</p><p>&nbsp;</p><p>##### main #####</p><p>if __name__ == '__main__':</p><p>### configを読み込む</p><p>with open(config_file, "r") as f:</p><p>config_lines = f.readlines()</p><p>&nbsp;</p><p>### Tkinter を使ってWindowを用意する</p><p>win = Tk()</p><p>win.title(u"Config Changer")</p><p>win.geometry("400x300")</p><p>&nbsp;</p><p>### 送信先ラジオボタンを表示する</p><p>lbl1 = ttk.Label(win, text='送信先: ')</p><p>lbl1.place(x=15, y=10)</p><p>&nbsp;</p><p>ip_grp = StringVar()</p><p>ip_Radiobutton = []</p><p>&nbsp;</p><p># config内に'ip'の行があれば、その内容を取得する</p><p>intConfigIp = find_line('ip', config_lines)</p><p>if intConfigIp != 0:</p><p>strIpValue = getValue('ip', config_lines[intConfigIp-1])</p><p>else:</p><p>strIpValue = ''</p><p>&nbsp;</p><p># 送信先ラジオボタンを設定する</p><p>y_axis = 30</p><p>for i in range(len(ip_lists)):</p><p>Radio = ttk.Radiobutton(win, text=ip_lists[i]['name']+' ('+ip_lists[i]['ip1']+')', variable=ip_grp, value=(str(i)))</p><p>ip_Radiobutton.append(Radio)</p><p>ip_Radiobutton[i].place(x=40, y=y_axis)</p><p>y_axis = y_axis + 20</p><p>&nbsp;</p><p># config内に表示と同じ'ip'があれば、そのボタンをチェックする</p><p>if strIpValue == ip_lists[i]['ip1']:</p><p>ip_grp.set(str(i))</p><p>&nbsp;</p><p>### ファイルタイプラジオボタンを表示する</p><p>lbl2 = ttk.Label(win, text='ファイルタイプ: ')</p><p>lbl2.place(x=15, y=160)</p><p>&nbsp;</p><p>type_grp = StringVar()</p><p>#type_grp.set('csv')</p><p>type_csv = ttk.Radiobutton(win, text='csv', variable=type_grp, value='csv')</p><p>type_xml = ttk.Radiobutton(win, text='xml', variable=type_grp, value='xml')</p><p>type_csv.place(x=40, y=180)</p><p>type_xml.place(x=40, y=200)</p><p>&nbsp;</p><p>lbl3 = ttk.Label(win, text='送信モード: ')</p><p>lbl3.place(x=200, y=160)</p><p>&nbsp;</p><p>mode_grp = StringVar()</p><p>mode_grp.set('normal')</p><p>mode_csv = ttk.Radiobutton(win, text='Normal', variable=mode_grp, value='normal')</p><p>mode_xml = ttk.Radiobutton(win, text='Hi speed', variable=mode_grp, value='speed')</p><p>mode_csv.place(x=240, y=180)</p><p>mode_xml.place(x=240, y=200)</p><p>&nbsp;</p><p>ok_btn = ttk.Button(text='保存')</p><p>cancel_btn = ttk.Button(text='キャンセル')</p><p>ok_btn.place(x=200, y=250)</p><p>cancel_btn.place(x=300, y=250)</p><p>ok_btn.bind( '&lt;Button-1&gt;', cancel_btn_event )</p><p>cancel_btn.bind( '&lt;Button-1&gt;', cancel_btn_event )</p><p>&nbsp;</p><p>find_line('ip', config_lines)</p><p>&nbsp;</p><p>win.mainloop()</p></blockquote>
]]>
</description>
<link>https://ameblo.jp/tanchan1910/entry-12526719442.html</link>
<pubDate>Tue, 17 Sep 2019 23:14:14 +0900</pubDate>
</item>
<item>
<title>つづき</title>
<description>
<![CDATA[ <p>/////////////////////////////<br>// 日付のフォーマッティング<br>// formatDate(Date [, type])<br>/////////////////////////////<br>function formatDate() {<br>&nbsp;&nbsp; &nbsp;if (arguments.length == 0) return "";<br><br>&nbsp;&nbsp; &nbsp;var targetDate = new Date();<br>&nbsp;&nbsp; &nbsp;targetDate.setTime( arguments[0].getTime() );<br><br>&nbsp;&nbsp; &nbsp;var yy = targetDate.getYear();<br>&nbsp;&nbsp; &nbsp;var mm = targetDate.getMonth() + 1;<br>&nbsp;&nbsp; &nbsp;var dd = targetDate.getDate();<br>&nbsp;&nbsp; &nbsp;if (yy &lt; 2000) { yy += 1900; }<br>&nbsp;&nbsp; &nbsp;if (mm &lt; 10) { mm = "0" + mm; }<br>&nbsp;&nbsp; &nbsp;if (dd &lt; 10) { dd = "0" + dd; }<br><br>&nbsp;&nbsp; &nbsp;var charSeparator1 = "";<br>&nbsp;&nbsp; &nbsp;var charSeparator2 = "";<br>&nbsp;&nbsp; &nbsp;var charSeparator3 = "";<br>&nbsp;&nbsp; &nbsp;if (arguments.length &gt; 1) {<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;switch (arguments[1]) {<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;case 1:<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;charSeparator1 = "/";<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;charSeparator2 = "/";<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;break;<br><br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;case 2:<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;charSeparator1 = "-";<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;charSeparator2 = "-";<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;break;<br><br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;case 3:<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;charSeparator1 = "年";<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;charSeparator2 = "月";<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;charSeparator3 = "日";<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;break;<br><br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;default:<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;charSeparator1 = "";<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;charSeparator2 = "";<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;}<br>&nbsp;&nbsp; &nbsp;}<br><br>&nbsp;&nbsp; &nbsp;return (yy + charSeparator1 + mm + charSeparator2 + dd + charSeparator3);<br><br>}<br><br>/////////////////////////////<br>// 本日日付取得<br>/////////////////////////////<br>function getToday(type) {<br>&nbsp;&nbsp; &nbsp;var todayDate = new Date();<br>&nbsp;&nbsp; &nbsp;return (formatDate(todayDate, type));<br>}<br><br><br>//////////////////////////////////<br>// 休日リスト(画面)をファイル保存<br>//////////////////////////////////<br>function saveHolidays() {<br><br>&nbsp;&nbsp; &nbsp;var objOutputResult&nbsp;&nbsp; &nbsp;= objFSO.OpenTextFile(pathName + holidayListName, 2, true, -2);<br>&nbsp;&nbsp; &nbsp;objOutputResult.WriteLine(document.form1.holidayList.value);<br>&nbsp;&nbsp; &nbsp;objOutputResult.close();<br><br>}<br><br>&lt;/script&gt;<br>&lt;/head&gt;<br>&nbsp; &lt;hta:application<br>&nbsp;&nbsp;&nbsp;&nbsp; id="HTA"<br>&nbsp;&nbsp;&nbsp;&nbsp; icon=""<br>&nbsp;&nbsp;&nbsp;&nbsp; applicationname=""<br>&nbsp;&nbsp;&nbsp;&nbsp; border="thick"<br>&nbsp;&nbsp;&nbsp;&nbsp; borderstyle="normal"<br>&nbsp;&nbsp;&nbsp;&nbsp; caption="yes"<br>&nbsp;&nbsp;&nbsp;&nbsp; innerborder="yes"<br>&nbsp;&nbsp;&nbsp;&nbsp; maximizebutton="yes"<br>&nbsp;&nbsp;&nbsp;&nbsp; minimizebutton="yes"<br>&nbsp;&nbsp;&nbsp;&nbsp; showintaskbar="yes"<br>&nbsp;&nbsp;&nbsp;&nbsp; singleinstance="no"<br>&nbsp;&nbsp;&nbsp;&nbsp; sysmenu="yes"<br>&nbsp;&nbsp;&nbsp;&nbsp; version=""<br>&nbsp;&nbsp;&nbsp;&nbsp; windowstate="nomal"<br>&nbsp;&nbsp;&nbsp;&nbsp; scroll="yes"<br>&nbsp;&nbsp;&nbsp;&nbsp; scrollflat="yes"<br>&nbsp;&nbsp;&nbsp;&nbsp; selection="yes"<br>&nbsp;&nbsp;&nbsp;&nbsp; contextmenu="yes"<br>&nbsp;&nbsp;&nbsp;&nbsp; navigable="yes" /&gt;<br>&lt;body&gt;<br>&lt;p&gt;<br>日報の当日分を作成する。<br>&lt;/p&gt;<br>&lt;form name="form1"&gt;<br>&nbsp;&nbsp;&nbsp; &lt;p&gt;日付<br>&nbsp;&nbsp;&nbsp; &lt;input type="text" name="date" class="datepicker" id= "datepicker1" style="width:8em;" /&gt;&amp;nbsp;<br>&nbsp;&nbsp; &nbsp;&lt;/p&gt;<br>&nbsp;&nbsp;&nbsp; &lt;p&gt;<br>&nbsp;&nbsp; &nbsp;&lt;input type="button" value=" 実行 " onClick="ScriptMain()" /&gt; (処理にちょっと時間がかかります)&lt;br /&gt;<br>&nbsp;&nbsp; &nbsp;Excelに「読み取り専用で開きますか?」と聞かれたら、「いいえ(&lt;u&gt;N&lt;/u&gt;)」を選択してください。&lt;br /&gt;<br>&nbsp;&nbsp; &nbsp;&lt;/p&gt;<br>&nbsp;&nbsp; &nbsp;&lt;p&gt;<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;休日一覧&lt;br /&gt;<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&lt;textarea name="holidayList" cols="20" rows="15"&gt;&lt;/textarea&gt;&lt;br /&gt;<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&lt;input type="button" value=" 保存 " onClick="saveHolidays()" /&gt; (休日一覧を変更したとき用)<br>&nbsp;&nbsp; &nbsp;&lt;/p&gt;<br>&lt;/form&gt;<br>&lt;/body&gt;<br>&lt;/html&gt;<br><br>&nbsp;</p>
]]>
</description>
<link>https://ameblo.jp/tanchan1910/entry-12331953608.html</link>
<pubDate>Tue, 28 Nov 2017 06:53:56 +0900</pubDate>
</item>
<item>
<title>いろいろなスクリプト7</title>
<description>
<![CDATA[ <p>&lt;html&gt;<br>&lt;head&gt;<br>&lt;meta http-equiv="content-type" content="text/html; charset=utf-8"&gt;<br>&lt;title&gt;オペレーション日報作成&lt;/title&gt;<br>&lt;link rel="stylesheet" type="text/css" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1/themes/redmond/jquery-ui.css"&gt;<br>&lt;script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"&gt;&lt;/script&gt;<br>&lt;script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1/jquery-ui.min.js"&gt;&lt;/script&gt;<br>&lt;script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1/i18n/jquery-ui-i18n.min.js"&gt;&lt;/script&gt;<br>&lt;style type="text/css"&gt;body, input, textarea {font-family: "ＭＳ Ｐゴシック",sans-serif;}&lt;/style&gt;<br>&lt;script type="text/javascript"&gt;<br>/////////////////////////////<br>// Window OnLoad イベントプロシジャ<br>/////////////////////////////<br>$(function() {<br>&nbsp;&nbsp; &nbsp;$.datepicker.setDefaults($.datepicker.regional['ja']);<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;$(".datepicker").datepicker({<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;dateFormat: 'yy/mm/dd',<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;autoSize: true<br>&nbsp;&nbsp; &nbsp;});<br><br>&nbsp;&nbsp; &nbsp;// 日付欄に初期値として本日日付を表示<br>&nbsp;&nbsp;&nbsp; document.form1.date.value = getToday(1);<br><br>&nbsp;&nbsp; &nbsp;// 休日ファイルを読込んで、表示する<br>&nbsp;&nbsp; &nbsp;if(objFSO.FileExists(pathName + holidayListName)) {<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;var objInputFile = objFSO.OpenTextFile(pathName + holidayListName, 1, false, -2);<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;var listItems = "";<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;while (!objInputFile.AtEndOfStream) {<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;var LineVal = objInputFile.ReadLine();<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;listItems += LineVal + "\n";<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;}<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;objInputFile.close();<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;document.form1.holidayList.value = listItems;<br>&nbsp;&nbsp; &nbsp;}<br><br>&nbsp;&nbsp; &nbsp;window.resizeTo(640,500);<br><br>});<br>&lt;/script&gt;<br><br>&lt;script language="JScript"&gt;<br>//====================================<br>//====================================<br>var pathName&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;=&nbsp;&nbsp; &nbsp;"C:\\Users\\マスタ\\";<br>//var pathName&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;=&nbsp;&nbsp; &nbsp;"\\\\日報\\マスタ\\";<br>var orgFileName&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;=&nbsp;&nbsp; &nbsp;"___マスタ.xls";&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;// 雛形のファイル名<br>var fileName&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;=&nbsp;&nbsp; &nbsp;"日報_%%TODAY%%.xls";&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;// 結果用ファイル名<br>var holidayListName&nbsp;&nbsp; &nbsp;=&nbsp;&nbsp; &nbsp;"__HolidayList.txt";&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;// 休日ファイル名<br><br>var constWeekdays&nbsp;&nbsp; &nbsp;= ["日", "月", "火", "水", "木", "金", "土"];<br><br>var constNumOfWeeks&nbsp;&nbsp; &nbsp;= [1, 8, 15, 22, 29];&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;// 第x週の初めの「日」<br>var constMonthDays&nbsp;&nbsp; &nbsp;= [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;// 月別の満日数 (後述のisIntercalaryMonth()と一緒に用いると、閏月まで対応できる)<br><br>var idTimer;<br><br>var&nbsp;&nbsp; &nbsp;arrHolidays&nbsp;&nbsp; &nbsp;= new Array();&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;// 休日ファイルの内容をDate型にして収めたArray<br>var objShell&nbsp;&nbsp; &nbsp;= new ActiveXObject("WScript.Shell");<br>var objFSO&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;= new ActiveXObject("Scripting.FileSystemObject");<br><br>//Excel のアプリケーションオブジェクトを生成<br>var objXL&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;= new ActiveXObject("Excel.Application");<br><br>function ScriptMain() {<br><br>&nbsp;&nbsp; &nbsp;// 日付の設定<br>&nbsp;&nbsp; &nbsp;var todayDate&nbsp;&nbsp; &nbsp;= new Date(document.form1.date.value);&nbsp;&nbsp; &nbsp;// 当日日付<br>&nbsp;&nbsp; &nbsp;var targetDate&nbsp;&nbsp; &nbsp;= new Date();<br><br>&nbsp;&nbsp; &nbsp;var yesterdayDate = new Date();<br>&nbsp;&nbsp; &nbsp;yesterdayDate.setTime( todayDate.getTime() - 86400000);<br><br>&nbsp;&nbsp; &nbsp;var today&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;= formatDate(todayDate);<br>&nbsp;&nbsp; &nbsp;var yesterday&nbsp;&nbsp; &nbsp;= formatDate(yesterdayDate);<br><br>&nbsp;&nbsp; &nbsp;// 当日分ファイルのファイル名を作成する。<br>&nbsp;&nbsp; &nbsp;var resultOrgName&nbsp;&nbsp; &nbsp;= pathName + orgFileName;<br>&nbsp;&nbsp; &nbsp;var resultFileName&nbsp;&nbsp; &nbsp;= pathName + fileName;<br>&nbsp;&nbsp; &nbsp;resultFileName&nbsp;&nbsp; &nbsp;= resultFileName.replace("%%TODAY%%",&nbsp;&nbsp; &nbsp;today);<br>&nbsp;&nbsp; &nbsp;resultFileName&nbsp;&nbsp; &nbsp;= resultFileName.replace("%%YESTERDAY%%",yesterday);<br><br>&nbsp;&nbsp; &nbsp;// 休日ファイルの読込み処理をCall<br>&nbsp;&nbsp; &nbsp;getHolidayList( arrHolidays );<br><br>&nbsp;&nbsp; &nbsp;// マスターファイルを、当日分のファイルとしてコピーする<br>&nbsp;&nbsp; &nbsp;objFSO.CopyFile(resultOrgName, resultFileName);<br><br>&nbsp;&nbsp; &nbsp;ExecuteExcel(resultFileName, todayDate);<br><br>}<br><br>function ExecuteExcel(resultFileName, todayDate) {<br><br>&nbsp;&nbsp; &nbsp;var targetDate&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;= new Date();<br><br>&nbsp;&nbsp; &nbsp;idTimer = window.setTimeout(function () {<br><br>&nbsp;&nbsp; &nbsp;objXL.Visible&nbsp;&nbsp; &nbsp;= true;<br>&nbsp;&nbsp; &nbsp;objXL.WorkBooks.Open(resultFileName);<br><br>&nbsp;&nbsp; &nbsp;// 当日日付<br>&nbsp;&nbsp; &nbsp;objXL.Cells.Range("AB5").Value&nbsp;&nbsp; &nbsp;=&nbsp; todayDate.getFullYear();<br>&nbsp;&nbsp; &nbsp;objXL.Cells.Range("AE5").Value&nbsp;&nbsp; &nbsp;=&nbsp; todayDate.getMonth() + 1;<br>&nbsp;&nbsp; &nbsp;objXL.Cells.Range("AH5").Value&nbsp;&nbsp; &nbsp;=&nbsp; todayDate.getDate();<br>&nbsp;&nbsp; &nbsp;objXL.Cells.Range("AL5").Value&nbsp;&nbsp; &nbsp;=&nbsp; constWeekdays[todayDate.getDay()];<br><br>&nbsp;&nbsp; &nbsp;targetDate&nbsp;&nbsp; &nbsp;= getNextWeekDay( todayDate, 1, true, arrHolidays, true );<br>&nbsp;&nbsp; &nbsp;objXL.Cells.Range("AI48").Value&nbsp;&nbsp; &nbsp;=&nbsp; "'" + formatDate( targetDate, 1 );<br><br>&nbsp;&nbsp; &nbsp;// フルバックアップ終了確認 (毎月曜日)<br>&nbsp;&nbsp; &nbsp;objXL.Cells.Range("AI50").Value&nbsp;&nbsp; &nbsp;=&nbsp; "'" + formatDate( targetDate, 1 );<br><br>&nbsp;&nbsp; &nbsp;// 当日の曜日が指定曜日とは異なる場合、未実施を塗りつぶす<br>&nbsp;&nbsp; &nbsp;if ( !getNextWeekDay( todayDate, 1, true, arrHolidays, false )) {<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;// 送付 (毎月曜日)<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;objXL.Cells.Range("W48").Interior.ColorIndex&nbsp;&nbsp; &nbsp;= 0;<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;objXL.Cells.Range("W48").Interior.Pattern&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;= 1;<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;objXL.Cells.Range("Z48").Interior.ColorIndex&nbsp;&nbsp; &nbsp;= 1;<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;objXL.Cells.Range("Z48").Interior.Pattern&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;= 1;<br><br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;// バックアップ終了確認 (毎月曜日)<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;objXL.Cells.Range("W50").Interior.ColorIndex&nbsp;&nbsp; &nbsp;= 0;<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;objXL.Cells.Range("W50").Interior.Pattern&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;= 1;<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;objXL.Cells.Range("Z50").Interior.ColorIndex&nbsp;&nbsp; &nbsp;= 1;<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;objXL.Cells.Range("Z50").Interior.Pattern&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;= 1;<br>&nbsp;&nbsp; &nbsp;}<br><br>&nbsp;&nbsp; &nbsp;// 在庫データ送信 (月初実施)<br>&nbsp;&nbsp; &nbsp;targetDate&nbsp;&nbsp; &nbsp;= getNextMonthFirstDay( todayDate, true, true, true );<br>&nbsp;&nbsp; &nbsp;objXL.Cells.Range("AI54").Value&nbsp;&nbsp; &nbsp;=&nbsp; "'" + formatDate(targetDate, 1);<br>&nbsp;&nbsp; &nbsp;// 当日の日付が指定日付とは異なる場合、未実施を塗りつぶす<br>&nbsp;&nbsp; &nbsp;if ( !getNextMonthFirstDay( todayDate, false, true, false )) {<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;// JDS在庫データ送信<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;objXL.Cells.Range("W54").Interior.ColorIndex&nbsp;&nbsp; &nbsp;= 0;<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;objXL.Cells.Range("W54").Interior.Pattern&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;= 1;<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;objXL.Cells.Range("Z54").Interior.ColorIndex&nbsp;&nbsp; &nbsp;= 1;<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;objXL.Cells.Range("Z54").Interior.Pattern&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;= 1;<br>&nbsp;&nbsp; &nbsp;}<br><br>&nbsp;&nbsp; &nbsp;// 月次締め処理 (月末実施)<br>&nbsp;&nbsp; &nbsp;if (getNextMonthLastDay( todayDate,&nbsp; false, false, false ) == false )&nbsp;&nbsp; &nbsp;targetDate&nbsp;&nbsp; &nbsp;= getNextMonthLastDay( todayDate, false, false, true );&nbsp;&nbsp; &nbsp;// 未経過<br>&nbsp;&nbsp; &nbsp;else&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;targetDate&nbsp;&nbsp; &nbsp;= getNextMonthLastDay( todayDate,&nbsp; true, false, true );&nbsp;&nbsp; &nbsp;// 当日または既に経過<br>&nbsp;&nbsp; &nbsp;objXL.Cells.Range("AI56").Value&nbsp;&nbsp; &nbsp;=&nbsp; "'" + formatDate(targetDate, 1);<br><br>&nbsp;&nbsp; &nbsp;// 当日の日付が指定日付とは異なる場合、未実施を塗りつぶす<br>&nbsp;&nbsp; &nbsp;if ( !getNextMonthLastDay( todayDate, false, true, false )) {<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;// 在庫データ送信<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;objXL.Cells.Range("W56").Interior.ColorIndex&nbsp;&nbsp; &nbsp;= 0;<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;objXL.Cells.Range("W56").Interior.Pattern&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;= 1;<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;objXL.Cells.Range("Z56").Interior.ColorIndex&nbsp;&nbsp; &nbsp;= 1;<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;objXL.Cells.Range("Z56").Interior.Pattern&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;= 1;<br>&nbsp;&nbsp; &nbsp;}<br><br>&nbsp;&nbsp; &nbsp;// サーバー再起動(第一水曜日)<br>&nbsp;&nbsp; &nbsp;// 次回実施日の算出<br>&nbsp;&nbsp; &nbsp;if (getHizukeInMonth( todayDate, 0, 3, true, false, arrHolidays, false ) == -1 ) targetDate&nbsp; = getHizukeInMonth( todayDate, 0, 3, true, false, arrHolidays, true );&nbsp;&nbsp; &nbsp;// 未経過<br>&nbsp;&nbsp; &nbsp;else&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; targetDate&nbsp; = getHizukeInMonth( todayDate, 0, 3, true, true, arrHolidays, true );&nbsp;&nbsp; &nbsp;// 当日または既に経過<br>&nbsp;&nbsp; &nbsp;objXL.Cells.Range("AI58").Value&nbsp;&nbsp; &nbsp;=&nbsp; "'" + formatDate( targetDate, 1 );<br><br>&nbsp;&nbsp; &nbsp;// 当日じゃなかったら、未実施を塗りつぶす<br>&nbsp;&nbsp; &nbsp;if (getHizukeInMonth( todayDate, 0, 3, true, false, arrHolidays, false ) != 0 ) {&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;// 当日以外<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;objXL.Cells.Range("W58").Interior.ColorIndex&nbsp;&nbsp; &nbsp;= 0;<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;objXL.Cells.Range("W58").Interior.Pattern&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;= 1;<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;objXL.Cells.Range("Z58").Interior.ColorIndex&nbsp;&nbsp; &nbsp;= 1;<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;objXL.Cells.Range("Z58").Interior.Pattern&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;= 1;<br>&nbsp;&nbsp; &nbsp;}<br><br>&nbsp;&nbsp; &nbsp;// Eサーバー再起動(第三水曜日)<br>&nbsp;&nbsp; &nbsp;if (getHizukeInMonth( todayDate, 2, 3, true, false, arrHolidays, false ) == -1 ) targetDate&nbsp; = getHizukeInMonth( todayDate, 2, 3, true, false, arrHolidays, true );&nbsp;&nbsp; &nbsp;// 未経過<br>&nbsp;&nbsp; &nbsp;else&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; targetDate&nbsp; = getHizukeInMonth( todayDate, 2, 3, true, true, arrHolidays, true );&nbsp;&nbsp; &nbsp;// 当日または既に経過<br>&nbsp;&nbsp; &nbsp;objXL.Cells.Range("AI60").Value&nbsp;&nbsp; &nbsp;=&nbsp; "'" + formatDate( targetDate, 1 );<br><br>&nbsp;&nbsp; &nbsp;// 当日じゃなかったら、未実施を塗りつぶす<br>&nbsp;&nbsp; &nbsp;if (getHizukeInMonth( todayDate, 2, 3, true, false, arrHolidays, false ) != 0 ) {&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;// 当日以外<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;objXL.Cells.Range("W60").Interior.ColorIndex&nbsp;&nbsp; &nbsp;= 0;<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;objXL.Cells.Range("W60").Interior.Pattern&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;= 1;<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;objXL.Cells.Range("Z60").Interior.ColorIndex&nbsp;&nbsp; &nbsp;= 1;<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;objXL.Cells.Range("Z60").Interior.Pattern&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;= 1;<br>&nbsp;&nbsp; &nbsp;}<br><br>&nbsp;&nbsp; &nbsp;// 処理終了メッセージを表示<br>&nbsp;&nbsp; &nbsp;alert("処理が終了しました。\n\n作成したファイル:\n" + resultFileName + "\n\nExcelを保存・終了して、ファイルを\n親ディレクトリへ移動してください。\n\n");<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; window.clearTimeout(idTimer);<br><br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;}, 2000);<br>}<br><br>//=================================================================================================<br>//次曜日日付を取得<br>//<br>//getNextWeekDay(&nbsp;&nbsp; &nbsp;todayDate,&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;// 調査開始日 (Date型)<br>//&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;targetWeekDay,&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;// 曜日 (0:日曜日～6:土曜日)<br>//&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;directionFlg,&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;// 非営業日の場合、次日付で探すか、前日付で探すか (true:次日付)<br>//&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;arrHolidays,&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;// 休日一覧(Date型Array)。事前にgetHolidayList()をコールして初期化しておく。<br>//&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;opeMode&nbsp;&nbsp; &nbsp;)&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;// 操作モード (true: 日付を返す。false: 調査開始日と算出した日付の同異を返す。<br>//&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;// (同じな場合はtrue, 同じではない場合はfalseを返す))<br>//<br>//=================================================================================================<br>function getNextWeekDay( todayDate, targetWeekDay, directionFlg, arrHolidays, opeMode ) {<br><br>&nbsp;&nbsp; &nbsp;// 作業用日付を調査開始日で初期化する<br>&nbsp;&nbsp; &nbsp;var targetDate&nbsp;&nbsp; &nbsp;= new Date();<br>&nbsp;&nbsp; &nbsp;targetDate.setTime(todayDate.getTime());<br><br>&nbsp;&nbsp; &nbsp;// 調査開始日の曜日を保存しておく<br>&nbsp;&nbsp; &nbsp;var&nbsp;&nbsp; &nbsp;todayDay&nbsp;&nbsp; &nbsp;= todayDate.getDay();<br><br>&nbsp;&nbsp; &nbsp;// 引数で指定された曜日の日付を、一日づつ移動しながら調べる。<br>&nbsp;&nbsp; &nbsp;for (i=0; i&lt;7; i++) {<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;targetDate.setTime(targetDate.getTime() + 86400000);<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;if (targetDate.getDay() == targetWeekDay) break;<br>&nbsp;&nbsp; &nbsp;};<br><br>&nbsp;&nbsp; &nbsp;// 休日処理(一ヵ月分ループする)<br>&nbsp;&nbsp; &nbsp;// 次の日(引数のdirectionFlg次第で翌日または前日)へDateを移動するために、1日分のミリ秒をセットする。<br>&nbsp;&nbsp; &nbsp;var&nbsp;&nbsp; &nbsp;iDirection = 86400000;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;// 翌日<br>&nbsp;&nbsp; &nbsp;if(directionFlg == false) iDirection = -86400000;&nbsp;&nbsp; &nbsp;// 前日<br>&nbsp;&nbsp; &nbsp;for (i=0; i&lt;constMonthDays[todayDate.getMonth()] + isIntercalaryMonth( todayDate ); i++) {<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;// 休日チェックをCallし、当日が休日かを調べ、休日ではない場合はループを終了する。<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;if ( !(isHoliday( targetDate, arrHolidays)) ) break;<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;// 休日だった場合、1日のミリ秒分移動する。<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;targetDate.setTime(targetDate.getTime() + iDirection);<br>&nbsp;&nbsp; &nbsp;}<br><br>&nbsp;&nbsp; &nbsp;// 操作モードがtrueの場合、算出した日付を返す。<br>&nbsp;&nbsp; &nbsp;if (opeMode) return targetDate;<br>&nbsp;&nbsp; &nbsp;else {<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;// 当日の曜日が指定曜日だった場合はtrue, 異なる場合はfalseを返す<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;if (targetWeekDay == todayDay) return&nbsp; true;<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;return false;<br>&nbsp;&nbsp; &nbsp;}<br>}<br><br>//=================================================================================================<br>//翌月初検索処理<br>//<br>//getNextMonthFirstDay(&nbsp;&nbsp; &nbsp;todayDate,&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;// 調査開始日 (Date型)<br>//&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;nextMonthFlg.&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;// 翌月フラグ (true: 翌月の指定曜日。false: 当月の指定曜日)<br>//&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;directionFlg,&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;// 非営業日の場合、次日付で探すか、前日付で探すか (true:次日付)<br>//&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;opeMode&nbsp;&nbsp; &nbsp;)&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;// 操作モード (true: 日付を返す。false: 調査開始日と算出した日付の同異を返す。<br>//&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;// (同じな場合はtrue, 同じではない場合はfalseを返す))<br>//<br>//=================================================================================================<br>function getNextMonthFirstDay( todayDate, nextMonthFlg, directionFlg, opeMode ) {<br><br>&nbsp;&nbsp; &nbsp;// 引数の日付から「年」と「月」を抽出し、その月の初めの「日」で初期化した、Date型変数をnewする。<br>&nbsp;&nbsp; &nbsp;if (nextMonthFlg)&nbsp;&nbsp; &nbsp;var&nbsp;&nbsp; &nbsp;monthOffset&nbsp;&nbsp; &nbsp;= 1;<br>&nbsp;&nbsp; &nbsp;else&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp;&nbsp; &nbsp;var&nbsp;&nbsp; &nbsp;monthOffset&nbsp;&nbsp; &nbsp;= 0;<br>&nbsp;&nbsp; &nbsp;var targetDate&nbsp;&nbsp; &nbsp;= new Date(todayDate.getYear(), todayDate.getMonth()+monthOffset, 1);<br><br>&nbsp;&nbsp; &nbsp;// 休日処理(一ヵ月分ループする)<br>&nbsp;&nbsp; &nbsp;// 次の日(引数のdirectionFlg次第で翌日または前日)へDateを移動するために、1日分のミリ秒をセットする。<br>&nbsp;&nbsp; &nbsp;var&nbsp;&nbsp; &nbsp;iDirection = 86400000;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;// 翌日<br>&nbsp;&nbsp; &nbsp;if(directionFlg == false) iDirection = -86400000;&nbsp;&nbsp; &nbsp;// 前日<br>&nbsp;&nbsp; &nbsp;for (i=0; i&lt;constMonthDays[todayDate.getMonth()] + isIntercalaryMonth( todayDate ); i++) {<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;// 休日チェックをCallし、当日が休日かを調べ、休日ではない場合はループを終了する。<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;if ( !(isHoliday( targetDate, arrHolidays)) ) break;<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;// 休日だった場合、1日のミリ秒分移動する。<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;targetDate.setTime(targetDate.getTime() + iDirection);<br>&nbsp;&nbsp; &nbsp;}<br><br>&nbsp;&nbsp; &nbsp;// 操作モードがtrueの場合、算出した日付を返す。<br>&nbsp;&nbsp; &nbsp;if (opeMode) return targetDate;<br>&nbsp;&nbsp; &nbsp;else {<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;// 当日の日付が指定曜日だった場合はtrue, 異なる場合はfalseを返す<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;if (todayDate.getTime() == targetDate.getTime()) return&nbsp; true;<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;return false;<br>&nbsp;&nbsp; &nbsp;}<br><br>}<br><br>//=================================================================================================<br>//翌月末検索処理<br>//<br>//getNextMonthLastDay(&nbsp;&nbsp; &nbsp;todayDate,&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;// 調査開始日 (Date型)<br>//&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;nextMonthFlg.&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;// 翌月フラグ (true: 翌月の指定日。false: 当月の指定日)<br>//&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;directionFlg,&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;// 非営業日の場合、次日付で探すか、前日付で探すか (true:次日付)<br>//&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;opeMode&nbsp;&nbsp; &nbsp;)&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;// 操作モード (true: 日付を返す。false: 調査開始日と算出した日付の同異を返す。<br>//&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;// (同じな場合はtrue, 同じではない場合はfalseを返す))<br>//<br>//=================================================================================================<br>function getNextMonthLastDay( todayDate, nextMonthFlg, directionFlg, opeMode ) {<br><br>&nbsp;&nbsp; &nbsp;// 引数の日付から「年」と「月」を抽出し、その月の初めの「日」で初期化した、Date型変数をnewする。<br>&nbsp;&nbsp; &nbsp;if (nextMonthFlg)&nbsp;&nbsp; &nbsp;var&nbsp;&nbsp; &nbsp;monthOffset&nbsp;&nbsp; &nbsp;= 1;<br>&nbsp;&nbsp; &nbsp;else&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp;&nbsp; &nbsp;var&nbsp;&nbsp; &nbsp;monthOffset&nbsp;&nbsp; &nbsp;= 0;<br>&nbsp;&nbsp; &nbsp;var workDate = new Date(todayDate.getYear(), todayDate.getMonth()+monthOffset, 1);<br><br>&nbsp;&nbsp; &nbsp;// その月の最終日を設定する<br>&nbsp;&nbsp; &nbsp;var&nbsp;&nbsp; &nbsp;monthLastDay&nbsp;&nbsp; &nbsp;= constMonthDays[workDate.getMonth()] + isIntercalaryMonth( workDate );<br>&nbsp;&nbsp; &nbsp;var targetDate&nbsp;&nbsp; &nbsp;= new Date(workDate.getYear(), workDate.getMonth(), monthLastDay);<br><br>&nbsp;&nbsp; &nbsp;// 休日処理(一ヵ月分ループする)<br>&nbsp;&nbsp; &nbsp;// 次の日(引数のdirectionFlg次第で翌日または前日)へDateを移動するために、1日分のミリ秒をセットする。<br>&nbsp;&nbsp; &nbsp;var&nbsp;&nbsp; &nbsp;iDirection = 86400000;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;// 翌日<br>&nbsp;&nbsp; &nbsp;if(directionFlg == false) iDirection = -86400000;&nbsp;&nbsp; &nbsp;// 前日<br>&nbsp;&nbsp; &nbsp;for (i=0; i&lt;constMonthDays[todayDate.getMonth()] + isIntercalaryMonth( todayDate ); i++) {<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;// 休日チェックをCallし、当日が休日かを調べ、休日ではない場合はループを終了する。<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;if ( !(isHoliday( targetDate, arrHolidays)) ) break;<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;// 休日だった場合、1日のミリ秒分移動する。<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;targetDate.setTime(targetDate.getTime() + iDirection);<br>&nbsp;&nbsp; &nbsp;}<br><br>&nbsp;&nbsp; &nbsp;// 操作モードがtrueの場合、算出した日付を返す。<br>&nbsp;&nbsp; &nbsp;if (opeMode) return targetDate;<br>&nbsp;&nbsp; &nbsp;else {<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;// 当日の日付が指定曜日だった場合はtrue, 異なる場合はfalseを返す<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;if (todayDate.getTime() == targetDate.getTime()) return&nbsp; true;<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;return false;<br>&nbsp;&nbsp; &nbsp;}<br><br>}<br><br>/////////////////////////////<br>// 次月末検索処理<br>// mode: true&nbsp; = 次月<br>//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; false = 本月<br>/////////////////////////////<br>function nextMonthLastDay(fromDate, mode) {<br>&nbsp;&nbsp; &nbsp;var workDate&nbsp;&nbsp; = new Date();<br>&nbsp;&nbsp; &nbsp;var targetDate = new Date();<br>&nbsp;&nbsp; &nbsp;workDate = fromDate;<br><br>//&nbsp;&nbsp; &nbsp;if (mode == false) workDate.setDate(1);<br>//&nbsp;&nbsp; &nbsp;if (mode == true)&nbsp; workDate.setDate(28);<br>&nbsp;&nbsp; &nbsp;workDate.setDate(1);<br>&nbsp;&nbsp; &nbsp;workDate.setTime( workDate.getTime() + (86400000 * 50));<br>&nbsp;&nbsp; &nbsp;workDate.setDate(1);<br><br>&nbsp;&nbsp; &nbsp;for (var i=1; i&lt;1800; i++) {<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;targetDate.setTime( workDate.getTime() - (86400000 * i));<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;if (decideHolidat( targetDate )) continue;<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;break;<br>&nbsp;&nbsp; &nbsp;}<br>&nbsp;&nbsp; &nbsp;return targetDate;<br>}<br><br>//=================================================================================================<br>//月内の第x週の指定曜日日付を取得<br>//<br>//getHizukeInMonth(&nbsp;&nbsp; &nbsp;todayDate,&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;// 調査開始日 (Date型)<br>//&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;numWeek,&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;// 第x週の指定 (0スタート)<br>//&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;targetWeekDay,&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;// 曜日 (0:日曜日～6:土曜日)<br>//&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;directionFlg,&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;// 非営業日の場合、次日付で探すか、前日付で探すか (true:次日付)<br>//&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;nextMonthFlg.&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;// 翌月フラグ (true: 翌月の指定曜日。false: 当月の指定曜日)<br>//&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;arrHolidays,&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;// 休日一覧(Date型Array)。事前にgetHolidayList()をコールして初期化しておく。<br>//&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;opeMode&nbsp;&nbsp; &nbsp;)&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;// 操作モード (true: 日付を返す。false: 調査開始日と算出した日付の同異を返す。<br>//&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;// (同じな場合は0, 経過済みなら1, 未経過なら-1を返す))<br>//<br>//=================================================================================================<br>function getHizukeInMonth( todayDate, numWeek, targetWeekDay, directionFlg, nextMonthFlg, arrHolidays, opeMode ) {<br><br>&nbsp;&nbsp; &nbsp;// 引数の日付から「年」と「月」を抽出し、その月の第x週の初めの「日」で初期化した、Date型変数をnewする。<br>&nbsp;&nbsp; &nbsp;var targetDate = new Date(todayDate.getYear(), todayDate.getMonth(), constNumOfWeeks[numWeek]);<br><br>&nbsp;&nbsp; &nbsp;// 翌月フラグがtrueの場合、1ヵ月分時間を進ませる<br>&nbsp;&nbsp; &nbsp;if (nextMonthFlg) targetDate.setTime(targetDate.getTime() + (constMonthDays[targetDate.getMonth()] * 86400000) + (isIntercalaryMonth( targetDate ) * 86400000));<br><br>&nbsp;&nbsp; &nbsp;// 引数で指定された曜日の日付を、一日づつ移動しながら調べる。<br>&nbsp;&nbsp; &nbsp;for (i=0; i&lt;7; i++) {<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;if (targetDate.getDay() == targetWeekDay) break;<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;targetDate.setTime(targetDate.getTime() + 86400000);<br>&nbsp;&nbsp; &nbsp;};<br><br>&nbsp;&nbsp; &nbsp;// 次の日(引数のdirectionFlg次第で翌日または前日)へDateを移動するために、1日分のミリ秒をセットする。<br>&nbsp;&nbsp; &nbsp;var&nbsp;&nbsp; &nbsp;iDirection = 86400000;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;// 翌日<br>&nbsp;&nbsp; &nbsp;if(directionFlg == false) iDirection = -86400000;&nbsp;&nbsp; &nbsp;// 前日<br><br>&nbsp;&nbsp; &nbsp;// 休日処理(一ヵ月分ループする)<br>&nbsp;&nbsp; &nbsp;for (i=0; i&lt;constMonthDays[todayDate.getMonth()] + isIntercalaryMonth( todayDate ); i++) {<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;// 休日チェックをCallし、当日が休日かを調べ、休日ではない場合はループを終了する。<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;if ( !(isHoliday( targetDate, arrHolidays)) ) break;<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;// 休日だった場合、1日のミリ秒分移動する。<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;targetDate.setTime(targetDate.getTime() + iDirection);<br>&nbsp;&nbsp; &nbsp;}<br><br>&nbsp;&nbsp; &nbsp;// 操作モードがtrueの場合、算出した日付を返す。<br>&nbsp;&nbsp; &nbsp;if (opeMode) return targetDate;<br>&nbsp;&nbsp; &nbsp;else {<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;// 算出した日付と調査開始日が同じ場合は0, 経過済みなら1, 未経過なら-1を返す<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;if (targetDate.getTime() == todayDate.getTime()) return&nbsp; 0;<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;if (targetDate.getTime()&nbsp; &lt; todayDate.getTime()) return&nbsp; 1;<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;return -1;<br>&nbsp;&nbsp; &nbsp;}<br><br>}<br><br>//=================================================================================================<br>//休日ファイルの読込み処理<br>//<br>//getHolidayList(&nbsp;&nbsp; &nbsp;arrHolidays )&nbsp;&nbsp; &nbsp;// 休日ファイルの内容を保持する、Date型Array<br>//<br>//=================================================================================================<br>function getHolidayList( arrHolidays ) {<br>&nbsp;&nbsp; &nbsp;var holidayListName&nbsp;&nbsp; &nbsp;=&nbsp;&nbsp; &nbsp;"\\\\Kin-storagesrv2\\info-sys\\Private\\SIS\\ksystem\\運用保守\\010_オペレーション日報\\オペレーション日報マスタ\\__HolidayList.txt";<br><br>&nbsp;&nbsp; &nbsp;// 休日ファイルを読込み、Date型Arrayに保持する。<br>&nbsp;&nbsp; &nbsp;if(objFSO.FileExists(holidayListName)) {<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;// 休日ファイルをオープンする。<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;var objInputFile = objFSO.OpenTextFile(holidayListName, 1, false, -2);<br><br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;// 休日ファイルがEOFになるまで、処理を繰返す。<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;while (!objInputFile.AtEndOfStream) {<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;// 休日ファイルから1レコード読込む<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;var LineVal = objInputFile.ReadLine();<br><br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;// Date型Arrayに保持する。<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;var holiday = new Date(LineVal);<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;arrHolidays.push(holiday);<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;}<br>&nbsp;&nbsp; &nbsp;}<br>}<br><br>/////////////////////////////<br>// 休日チェック<br>// return: true&nbsp; = 休日<br>//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; false = 平日<br>/////////////////////////////<br>function decideHolidat( targetDate ) {<br><br>&nbsp;&nbsp; &nbsp;if (targetDate.getDay() == 0 || targetDate.getDay() == 6) return true;<br>&nbsp;&nbsp; &nbsp;for (var i=0; i&lt;arrHolidays.length; i++) {<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;if(arrHolidays[i].getTime() == targetDate.getTime()) return true;<br>&nbsp;&nbsp; &nbsp;}<br>&nbsp;&nbsp; &nbsp;return false;<br>}<br><br>function PausedSection() {<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;alert("waite後");<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; window.clearTimeout(idTimer);<br>}<br><br>//==================================================================<br>// 休日チェック<br>// isHoliday(&nbsp;&nbsp; &nbsp;targetDate,&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;// 調査日付 (Date型)<br>//&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;arrHolidays )&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;// 休日リスト (Date型Array)<br>//<br>// return: true&nbsp; = 休日<br>//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; false = 平日<br>//==================================================================<br>function isHoliday( targetDate, arrHolidays) {<br><br>&nbsp;&nbsp; &nbsp;// 曜日が土日の場合、「休日」を返す。<br>&nbsp;&nbsp; &nbsp;if (targetDate.getDay() == 0 || targetDate.getDay() == 6) return true;<br><br>&nbsp;&nbsp; &nbsp;// 休日リストを検索し、同じ日付があれば「休日」を返す。<br>&nbsp;&nbsp; &nbsp;for (var i=0; i&lt;arrHolidays.length; i++) {<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;if(arrHolidays[i].getTime() == targetDate.getTime()) return true;<br>&nbsp;&nbsp; &nbsp;}<br><br>&nbsp;&nbsp; &nbsp;// 平日を返す。<br>&nbsp;&nbsp; &nbsp;return false;<br>}<br><br>//==================================================================<br>// 閏月チェック<br>//<br>// constMonthDaysで月別の満日数を定義しているが、このままでは閏月が<br>// 考慮されていないため、このfunctionを共有することで閏月に対応する。<br>//<br>// isIntercalaryMonth(&nbsp;&nbsp; &nbsp;targetDate )&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;// 調査日付 (Date型)<br>//<br>// return: 1 = 閏月<br>//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0 = 普通の月<br>//==================================================================<br>function isIntercalaryMonth( targetDate ) {<br><br>&nbsp;&nbsp; &nbsp;if ( (targetDate.getYear() % 4) == 0 &amp;&amp; targetDate.getMonth() == 1)&nbsp;&nbsp; &nbsp;return 1;<br>&nbsp;&nbsp; &nbsp;else&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;return 0;<br><br>}<br><br>&nbsp;</p>
]]>
</description>
<link>https://ameblo.jp/tanchan1910/entry-12331953561.html</link>
<pubDate>Tue, 28 Nov 2017 06:53:26 +0900</pubDate>
</item>
<item>
<title>新宿末廣亭で真打昇進口上を観た</title>
<description>
<![CDATA[ 落語協会の、2016年に真打昇進した3名のお披露目興行を見に行った。<br><br><p><a href="http://stat.ameba.jp/user_images/20160410/18/tanchan1910/42/9a/j/o0800060013616789955.jpg"><img id="1460283149301" ratio="1.3333333333333333" src="https://stat.ameba.jp/user_images/20160410/18/tanchan1910/42/9a/j/t02200165_0800060013616789955.jpg" style="width:220px; height:165px; border:none;" alt="新宿末廣亭"></a> <a href="http://stat.ameba.jp/user_images/20160410/18/tanchan1910/96/56/j/o0800060013616789956.jpg"><img id="1460283120006" ratio="1.3333333333333333" src="https://stat.ameba.jp/user_images/20160410/18/tanchan1910/96/56/j/t02200165_0800060013616789956.jpg" style="width:220px; height:165px; border:none;" alt="新宿末廣亭"></a><br>新宿末廣亭</p><br><br>新真打となった中で、林家たけ平って人が今日のトリを勤める。九代目林家正蔵師匠の一番弟子だそうだ。<br><br>末廣亭は昼夜の入替えがないので、直ぐ近所にある伊勢丹の開店時間の10:30に到着するように家を出る。伊勢丹のデパ地下で弁当を2食分買って行列に並ぶ。寄席の中で飲食ができるし(飲酒は禁止)持込みも可なので、近所のスーパーで買ったペットボトルのお茶2本とこの弁当でしのぎならが、12時前の前座さんから21時過ぎの夜席のトリまで、木戸銭￥3,000-でたっぷり楽しめるのだ。<br><br>2年ぶりの真打昇進披露口上だったけど、何度観ても縁起物って感じで楽しいのだ。また来年も来たいなぁ。<br><br><br>寄席： 新宿末廣亭<br>住所： 東京都新宿区新宿3－6－12 <a href="https://maps.google.co.jp/maps?f=q&amp;hl=ja&amp;z=17&amp;q=新宿区新宿3－6－12" target="_blank"><img alt="地図" src="https://emoji.ameba.jp/img/user/st/star-rider/613842.gif"></a><br>
]]>
</description>
<link>https://ameblo.jp/tanchan1910/entry-12148846749.html</link>
<pubDate>Sat, 09 Apr 2016 23:55:30 +0900</pubDate>
</item>
<item>
<title>元住吉「豚星。」の豚坦麺</title>
<description>
<![CDATA[ 職場から徒歩圏内にある二郎っぽいラーメン屋さんで「豚坦麺」というのを食べた。<br><br><p><a href="http://stat.ameba.jp/user_images/20160319/16/tanchan1910/68/3f/j/o0800045013596236454.jpg"><img id="1460278798697" ratio="1.7741935483870968" src="https://stat.ameba.jp/user_images/20160319/16/tanchan1910/68/3f/j/t02200124_0800045013596236454.jpg" style="width:220px; height:124px; border:none;" alt="豚星。"></a><br>こんなお店</p><p><br></p>3月末までの限定メニューってことで、最終日に行ってみたのだった。<br><br><p><a href="http://stat.ameba.jp/user_images/20160410/17/tanchan1910/f6/37/j/o0800045013616730794.jpg"><img id="1460278882182" ratio="1.7741935483870968" src="https://stat.ameba.jp/user_images/20160410/17/tanchan1910/f6/37/j/t02200124_0800045013616730794.jpg" style="width:220px; height:124px; border:none;" alt="豚坦麺"></a><br>豚坦麺</p><p><br></p>坦々麺としてなかなか旨い。辛過ぎないでゴマの風味となにかのナッツがしっかり利いてて、好きなタイプだ。期間限定なのが残念。とはいえ、何ヵ月かすればまた再開するだろうから、それを楽しみにしよう。<br><br>4月の限定も食べたいなぁ。<br><br><br>お店： 豚星。<br>住所： 神奈川県川崎市中原区木月4-5-20 <a href="https://maps.google.co.jp/maps?f=q&amp;hl=ja&amp;z=17&amp;q=川崎市中原区木月4-5-20" target="_blank"><img alt="地図" src="https://emoji.ameba.jp/img/user/st/star-rider/613842.gif"></a><br>
]]>
</description>
<link>https://ameblo.jp/tanchan1910/entry-12148824574.html</link>
<pubDate>Thu, 31 Mar 2016 23:41:46 +0900</pubDate>
</item>
<item>
<title>勝どき「RED STRING」でランチ</title>
<description>
<![CDATA[ 築地に買い物に出かけたついでに、勝鬨橋を渡ってランチを食べに行った。<br><br><p><a href="http://stat.ameba.jp/user_images/20160327/17/tanchan1910/b2/57/j/o0800045013603483884.jpg"><img id="1459068632478" ratio="1.7741935483870968" src="https://stat.ameba.jp/user_images/20160327/17/tanchan1910/b2/57/j/t02200124_0800045013603483884.jpg" style="width:220px; height:124px; border:none;" alt="" red"="" string"=""></a><br>こんなお店(昼バージョン)</p><p><br></p>昔、この地で居酒屋を営んでいたお店がこの「勝どきビュータワー」の建設のために月島駅前の仮店舗で営業。ビルが出来上がったのでこの地に戻ってきたのだが、現在は娘さんが経営していて前のママさんは昼間だけ喫茶店として営業しているのだ。<br><br>月島駅前の頃には、週に8回通った記録がある。ランチに5回と夜に飲みに3回だ。でも今の職場からはなかなか行く機会がない。<br><br><p><a href="http://stat.ameba.jp/user_images/20160327/17/tanchan1910/62/3a/j/o0800045013603483885.jpg"><img id="1459068737765" ratio="1.7741935483870968" src="https://stat.ameba.jp/user_images/20160327/17/tanchan1910/62/3a/j/t02200124_0800045013603483885.jpg" style="width:220px; height:124px; border:none;" alt="釜揚げしらす丼と鰆の西京焼"></a><br>釜揚げしらす丼と鰆の西京焼</p><p><br></p>今日は安生さんもいて二人で営業してた。でもって解禁になったばかりの相模湾の釜揚げしらすがあるよってことで、釜揚げしらす丼と鰆の西京焼き定食(￥1,100-)に決定。しらす丼がメチャ旨かったぁ。鰆もちょうどいい塩梅の焼き具合でこれまた絶品。<br><br><p><a href="http://stat.ameba.jp/user_images/20160327/17/tanchan1910/5e/82/j/o0800045013603483887.jpg"><img id="1459068630824" ratio="1.7741935483870968" src="https://stat.ameba.jp/user_images/20160327/17/tanchan1910/5e/82/j/t02200124_0800045013603483887.jpg" style="width:220px; height:124px; border:none;" alt="玉子かけご飯"></a><br>玉子かけご飯</p><p><br></p>「ご飯おかわりしてね」ってことだったのでお願いしたら、丼だったから玉子をサービスしてくれた。そういえばTKGってしばらく食べてなかったなぁ。目玉焼き丼にすることは多いんだけど。<br><br>アイスコーヒーを楽しみながら昔話に花を咲かせる。新規の5人組のお客さんが来たから、そろそろ月島駅まで歩こう。<br><br>最近、日曜日だけ夜も昔の形で営業しているみたいなので、近いうちにまた来よう。<br><br><br>お店： Cafe &amp; Bar RED STRING (レッドストリング)<br>住所： 東京都中央区勝どき1-8-1 211a <a href="https://maps.google.co.jp/maps?f=q&amp;hl=ja&amp;z=17&amp;q=中央区勝どき1-8-1" target="_blank"><img alt="地図" src="https://emoji.ameba.jp/img/user/st/star-rider/613842.gif"></a><br>
]]>
</description>
<link>https://ameblo.jp/tanchan1910/entry-12143760217.html</link>
<pubDate>Sat, 26 Mar 2016 23:36:15 +0900</pubDate>
</item>
<item>
<title>元住吉「丸はし」でチョコフォンデュ！？</title>
<description>
<![CDATA[ 数日前のこと。毎日のように晩ご飯を食べに寄っている蕎麦屋さんで、先日卒業式を終えた女子中学生8人が、「チョコフォンデュパーティー」をやっていた。<br><br><p><a href="http://stat.ameba.jp/user_images/20150214/12/tanchan1910/73/3e/j/o0800060013217638615.jpg"><img id="1459068952049" ratio="1.3333333333333333" src="https://stat.ameba.jp/user_images/20150214/12/tanchan1910/73/3e/j/t02200165_0800060013217638615.jpg" style="width:220px; height:165px; border:none;" alt="" 生そば"="" 丸はし"=""></a><br>こんなお店</p><p><br>オレはいつものように焼肉丼のオレ仕様ちょっとスペシャルバージョンっを食べていたのだが、ひととおり食事も終わった感じの女子達の下へデザートが運ばれた様子。見たらチョコフォンデュだったのだ。<br><br></p><p><a href="http://stat.ameba.jp/user_images/20160319/16/tanchan1910/09/95/j/o0800045013596263869.jpg"><img id="1458374505372" ratio="1.7741935483870968" src="https://stat.ameba.jp/user_images/20160319/16/tanchan1910/09/95/j/t02200124_0800045013596263869.jpg" style="width:220px; height:124px; border:none;" alt="チョコフォンデュパーティー"></a><br>チョコフォンデュパーティー</p><p><br>蕎麦屋の大将(「おじちゃん」と呼ばれている)の粋な計らいってヤツだ。その女子達がオレの分も作ってくれたので、お相伴にあずかる。焼肉丼で満腹だったけど、旨かった。別腹ってヤツか?<br></p><p><br>お店： 生そば 丸はし 矢上川店<br>住所： 神奈川県川崎市中原区井田2-9-1 <a href="https://maps.google.co.jp/maps?f=q&amp;hl=ja&amp;z=17&amp;q=川崎市中原区井田2-9-1 " target="_blank"><img alt="地図" src="https://emoji.ameba.jp/img/user/st/star-rider/613842.gif"></a><br></p>
]]>
</description>
<link>https://ameblo.jp/tanchan1910/entry-12140884997.html</link>
<pubDate>Tue, 22 Mar 2016 21:42:29 +0900</pubDate>
</item>
<item>
<title>元住吉「豚星。」で二郎インスパイアなラーメン</title>
<description>
<![CDATA[ 以前たまに行っていた白楽にあったお店が、だ～いぶ以前に職場から徒歩でいける範囲に引っ越してきた。<br><br><p><a href="http://stat.ameba.jp/user_images/20160319/16/tanchan1910/68/3f/j/o0800045013596236454.jpg"><img id="1458371715933" ratio="1.7741935483870968" src="https://stat.ameba.jp/user_images/20160319/16/tanchan1910/68/3f/j/t02200124_0800045013596236454.jpg" style="width:220px; height:124px; border:none;" alt="豚星。"></a><br>こんなお店</p><p><br></p>ここん家は二郎インスパイアなラーメン。だから量が多いのだ。以前は「麺少な目」とかでオーダーすることもあったけど、引っ越してきてからは「ミニラーメン」もできたので、今日はそのミニラーメンを券売機で購入、￥650-。<br><br>以前より席数が増えたカウンターのみの店内は満員で、18:30頃の時点で順番待ちのお客さんが十数人いた。その後もどんどん増えていく。相変わらずの人気店だ。<br><br>15分程で空席ができたので着席、それからまた15分程でコール、「野菜マシ＋ニンニク」をお願いした。<br><br><p><a href="http://stat.ameba.jp/user_images/20160319/16/tanchan1910/c6/03/j/o0800045013596236453.jpg"><img id="1458372935600" ratio="1.7741935483870968" src="https://stat.ameba.jp/user_images/20160319/16/tanchan1910/c6/03/j/t02200124_0800045013596236453.jpg" style="width:220px; height:124px; border:none;" alt="ミニラーメン"></a><br>ミニラーメン ￥650-</p><p><br></p>まずは大量のモヤシとキャベツを、スープと絡めながらワシワシッと食う。今日は「濃厚乳化スープ」だという予告が twitter のこのお店のアカウントでアナウンスされていたから行ったのだが、この濃厚乳化スープが野菜によく絡んでなかなかGOOD!だ。<br><br><br><p><a href="http://stat.ameba.jp/user_images/20160319/16/tanchan1910/53/23/j/o0800045013596236455.jpg"><img id="1458372859656" ratio="1.7741935483870968" src="https://stat.ameba.jp/user_images/20160319/16/tanchan1910/53/23/j/t02200124_0800045013596236455.jpg" style="width:220px; height:124px; border:none;" alt="チャーシュー"></a><br>チャーシュー</p><p><br></p>麺は太目のしっかり麺で旨い。こういう麺をたまに食べたくなるんだよなぁ。スープは前述のとおり濃厚乳化スープでこれまたたまに食べたくなるもの。ただ二郎インスパイアなラーメンだから高が知れてるけど。<br><br>食べ進めたところでチャーシューが2枚"コンニチワ"。相変わらずの分厚いチャーシューは適度な脂の量で肉の存在感がしっかり感じられるもので旨い。<br><br>ミニラーメンだったけど満腹だぁ。<br><br>二郎系はそれほど好きなわけではないのだが、たまに食べたくなるんだよなぁ。濃厚乳化スープの時を狙ってまた来よう。<br><br><br>お店： 豚星。<br>住所： 神奈川県川崎市中原区木月4-5-20 <a href="https://maps.google.co.jp/maps?f=q&amp;hl=ja&amp;z=17&amp;q=川崎市中原区木月4-5-20" target="_blank"><img alt="地図" src="https://emoji.ameba.jp/img/user/st/star-rider/613842.gif"></a><br>
]]>
</description>
<link>https://ameblo.jp/tanchan1910/entry-12140877445.html</link>
<pubDate>Fri, 18 Mar 2016 23:05:05 +0900</pubDate>
</item>
<item>
<title>2016年の初詣と初日の出は高尾山と小仏城山で</title>
<description>
<![CDATA[ 2015年はほとんど書いてなかったけど、今年はもうちょっとガンバりたいと、新年の抱負などを語りながら一発目になります。<br><br><p><a href="http://stat.ameba.jp/user_images/20160104/19/tanchan1910/3a/07/j/o0800060013531782661.jpg"><img id="1451903987193" ratio="1.3333333333333333" src="https://stat.ameba.jp/user_images/20160104/19/tanchan1910/3a/07/j/t02200165_0800060013531782661.jpg" style="width:220px; height:165px; border:none;" alt="高尾山ケーブルカー山麓駅"></a><br>高尾山ケーブルカー山麓駅</p><p><br></p>まだ紅白も終わらないうちに(って、観てないけど)家を出て、高尾山口駅へ向かう。電車内はガラガラで座って行けた。JR高尾駅から乗換えのお客さんで若干混雑した程度だった。まずはケーブルカーの駅を目指す。<br><br><p><a href="http://stat.ameba.jp/user_images/20160104/19/tanchan1910/22/d3/j/o0800060013531782664.jpg"><img id="1451907166211" ratio="1.3333333333333333" src="https://stat.ameba.jp/user_images/20160104/19/tanchan1910/22/d3/j/t02200165_0800060013531782664.jpg" style="width:220px; height:165px; border:none;" alt="一号路を登る"></a><br>一号路を登る</p><p><br></p>ケーブルカーに乗るつもりはなく、一号路を登る。高尾山口駅に着いた時点で0時を回っていてかなり寒かったけど、坂道を歩き始めると直ぐに体温が上昇するね。ハードシェルの前をはだけて調節しながら歩く。<br><br>一号路は全線街灯があるので、安全に登れる。<br><br>ケーブルカーの山頂側に到着。お茶したり団子を食べたりしている人たちでごった返していた。それを横目に薬王院を目指す。<br><br><p><a href="http://stat.ameba.jp/user_images/20160104/19/tanchan1910/4f/89/j/o0800060013531782662.jpg"><img id="1451909580210" ratio="1.3333333333333333" src="https://stat.ameba.jp/user_images/20160104/19/tanchan1910/4f/89/j/t02200165_0800060013531782662.jpg" style="width:220px; height:165px; border:none;" alt="ケーブルカー高尾山駅と展望台"></a><br>ケーブルカー高尾山駅と展望台 <br><br></p><p><a href="http://stat.ameba.jp/user_images/20160104/19/tanchan1910/ef/43/j/o0800060013531782663.jpg"><img id="1451909581421" ratio="1.3333333333333333" src="https://stat.ameba.jp/user_images/20160104/19/tanchan1910/ef/43/j/t02200165_0800060013531782663.jpg" style="width:220px; height:165px; border:none;" alt="展望台付近から下界を望む"></a><br>望台付近から下界を望む <br><br></p><p><a href="http://stat.ameba.jp/user_images/20160104/19/tanchan1910/06/f0/j/o0800060013531793031.jpg"><img id="1451909593881" ratio="1.3333333333333333" src="https://stat.ameba.jp/user_images/20160104/19/tanchan1910/06/f0/j/t02200165_0800060013531793031.jpg" style="width:220px; height:165px; border:none;" alt="参道"></a><br>参道 <br><br></p><p><a href="http://stat.ameba.jp/user_images/20160104/19/tanchan1910/38/be/j/o0800060013531793033.jpg"><img id="1451909593362" ratio="1.3333333333333333" src="https://stat.ameba.jp/user_images/20160104/19/tanchan1910/38/be/j/t02200165_0800060013531793033.jpg" style="width:220px; height:165px; border:none;" alt="ひっぱりだこ"></a><br>ひっぱりだこ <br></p><br>男坂を登れば、いよいよ薬王院だ(薬王院の写真はないけど)。<br><br><p><a href="http://stat.ameba.jp/user_images/20160104/19/tanchan1910/e7/3d/j/o0800060013531793032.jpg"><img id="1451909602039" ratio="1.3333333333333333" src="https://stat.ameba.jp/user_images/20160104/19/tanchan1910/e7/3d/j/t02200165_0800060013531793032.jpg" style="width:220px; height:165px; border:none;" alt="男坂"></a><br>男坂 <br><br></p><p><a href="http://stat.ameba.jp/user_images/20160104/19/tanchan1910/72/4d/j/o0800060013531793034.jpg"><img id="1451909888834" ratio="1.3333333333333333" src="https://stat.ameba.jp/user_images/20160104/19/tanchan1910/72/4d/j/t02200165_0800060013531793034.jpg" style="width:220px; height:165px; border:none;" alt="願叶輪潜"></a><br>願叶輪潜</p><p><br></p><p>薬王院で初詣を済ませ愛染堂をお参りしたら、次は高尾山山頂を目指す。<br><br></p><p><a href="http://stat.ameba.jp/user_images/20160104/20/tanchan1910/e3/1a/j/o0800060013531801359.jpg"><img id="1451909888142" ratio="1.3333333333333333" src="https://stat.ameba.jp/user_images/20160104/20/tanchan1910/e3/1a/j/t02200165_0800060013531801359.jpg" style="width:220px; height:165px; border:none;" alt="山頂付近から下界を見下ろす"></a><br>山頂付近から下界を見下ろす <br><br></p><p><a href="http://stat.ameba.jp/user_images/20160104/20/tanchan1910/b0/c2/j/o0800060013531803077.jpg"><img id="1451909608167" ratio="1.3333333333333333" src="https://stat.ameba.jp/user_images/20160104/20/tanchan1910/b0/c2/j/t02200165_0800060013531803077.jpg" style="width:220px; height:165px; border:none;" alt="高尾山山頂"></a><br>高尾山山頂</p><p><br></p><p>高尾山山頂は、既に初日の出を待つ人たちでいっぱいだ!! そこを通り過ぎてもっと先に進む。ここから先に街灯はないので、ヘッドライトを装備して進む。<br><br></p><p><a href="http://stat.ameba.jp/user_images/20160104/20/tanchan1910/ea/9a/j/o0800060013531803079.jpg"><img id="1451909611227" ratio="1.3333333333333333" src="https://stat.ameba.jp/user_images/20160104/20/tanchan1910/ea/9a/j/t02200165_0800060013531803079.jpg" style="width:220px; height:165px; border:none;" alt="ヘッデン着けて先に進む"></a><br>ヘッデン着けて先に進む <br><br></p><p><a href="http://stat.ameba.jp/user_images/20160104/20/tanchan1910/3b/ff/j/o0800060013531803076.jpg"><img id="1451909612834" ratio="1.3333333333333333" src="https://stat.ameba.jp/user_images/20160104/20/tanchan1910/3b/ff/j/t02200165_0800060013531803076.jpg" style="width:220px; height:165px; border:none;" alt="小仏城山への道"></a><br>小仏城山への道</p><p><br></p><p>一時間程歩いて、今回の目的地の小仏城山に到着だ。歩いている間は暑いけど、止まるととたんに体が冷えてくる。実は夕食を食べていなかったので、持参した自作のアルコールストーブで早速お湯を沸かして食事にする。<br><br></p><p style="text-align: left;"><a href="http://stat.ameba.jp/user_images/20160104/20/tanchan1910/66/cd/j/o0800060013531803078.jpg"><img id="1451907212879" ratio="1.3333333333333333" src="https://stat.ameba.jp/user_images/20160104/20/tanchan1910/66/cd/j/t02200165_0800060013531803078.jpg" style="width:220px; height:165px; border:none;" alt="小仏城山から下界を望む"></a><br>小仏城山から下界を望む <br><br></p><p><a href="http://stat.ameba.jp/user_images/20160104/20/tanchan1910/70/9a/j/o0800060013531811292.jpg"><img id="1451909615782" ratio="1.3333333333333333" src="https://stat.ameba.jp/user_images/20160104/20/tanchan1910/70/9a/j/t02200165_0800060013531811292.jpg" style="width:220px; height:165px; border:none;" alt="お湯を沸かして食事とコーヒー"></a><br>お湯を沸かして食事とコーヒー</p><p><br>カップ麺の天ぷらそばとコンビニおむすびで遅い夕食をとり、コーヒーを飲み kindle に入れたコミックを読みながら日の出を待つ。<br><br></p><p>思っていたことだけど、めちゃ寒い。カイロを忘れたのが痛恨。陣取った場所とは反対側で、城山茶屋の人(だったと思う)が焚き火をしてたのでちょっとあたらせてもらう。暖かくて生き返る。<br><br></p><p>3時間位待つことは想定していたので、木製のベンチに座るのはしんどいから Helinox チェアワンを持ってきた(写真は撮り忘れた)。1kgを切る軽量な折畳のイスだけど、座り心地がメチャいいのだ。<br><br></p><p><a href="http://stat.ameba.jp/user_images/20160104/20/tanchan1910/f7/6c/j/o0800060013531811290.jpg"><img id="1451910496543" ratio="1.3333333333333333" src="https://stat.ameba.jp/user_images/20160104/20/tanchan1910/f7/6c/j/t02200165_0800060013531811290.jpg" style="width:220px; height:165px; border:none;" alt="東の空が白み始める"></a><br>東の空が白み始める <br><br></p><p><a href="http://stat.ameba.jp/user_images/20160104/20/tanchan1910/3d/36/j/o0800060013531811289.jpg"><img id="1451909619651" ratio="1.3333333333333333" src="https://stat.ameba.jp/user_images/20160104/20/tanchan1910/3d/36/j/t02200165_0800060013531811289.jpg" style="width:220px; height:165px; border:none;" alt="夜明け前"></a><br>夜明け前 <br><br></p><p><a href="http://stat.ameba.jp/user_images/20160104/20/tanchan1910/f6/8f/j/o0800060013531811291.jpg"><img id="1451909621474" ratio="1.3333333333333333" src="https://stat.ameba.jp/user_images/20160104/20/tanchan1910/f6/8f/j/t02200165_0800060013531811291.jpg" style="width:220px; height:165px; border:none;" alt="太陽が顔を覗かせた"></a><br>太陽が顔を覗かせた</p><p><br></p><p>5:50頃になって、ようやく東の空が明るくなり始めた。6:50頃に太陽が顔をのぞかせる。そしてその5分後、いよいよ初日の出だ!!<br><br></p><p><a href="http://stat.ameba.jp/user_images/20160104/20/tanchan1910/14/c4/j/o0800060013531821472.jpg"><img id="1451908002068" ratio="1.3333333333333333" src="https://stat.ameba.jp/user_images/20160104/20/tanchan1910/14/c4/j/t02200165_0800060013531821472.jpg" style="width:220px; height:165px; border:none;" alt="初日の出"></a><br>初日の出</p><p><br>反対側に行くと、富士山が綺麗だ。本当は日の出前に見ると、高さがある分先に日が当たって、今日みたいに条件がいい日は赤富士状態になってとっても綺麗らしいのだが、日の出の撮影ポイントキープのために動けなかった。ちょっと残念。<br><br></p><p><a href="http://stat.ameba.jp/user_images/20160104/20/tanchan1910/f9/6a/j/o0800060013531821471.jpg"><img id="1451909625908" ratio="1.3333333333333333" src="https://stat.ameba.jp/user_images/20160104/20/tanchan1910/f9/6a/j/t02200165_0800060013531821471.jpg" style="width:220px; height:165px; border:none;" alt="富士山"></a><br>富士山</p><p><br>そろそろ下山しよう。景信山や陣馬山方面に歩こうかとも思ったのだが、疲れてたので東海自然歩道を通って小原宿に出てから、相模湖駅から帰路につくことにした。<br></p><p><br></p><p><a href="http://stat.ameba.jp/user_images/20160104/20/tanchan1910/f5/56/j/o0800060013531821474.jpg"><img id="1451909627720" ratio="1.3333333333333333" src="https://stat.ameba.jp/user_images/20160104/20/tanchan1910/f5/56/j/t02200165_0800060013531821474.jpg" style="width:220px; height:165px; border:none;" alt="東海自然歩道"></a><br>東海自然歩道 <br><br></p><p><a href="http://stat.ameba.jp/user_images/20160104/20/tanchan1910/ce/30/j/o0800060013531821473.jpg"><img id="1451909628343" ratio="1.3333333333333333" src="https://stat.ameba.jp/user_images/20160104/20/tanchan1910/ce/30/j/t02200165_0800060013531821473.jpg" style="width:220px; height:165px; border:none;" alt="相模湖"></a><br>東海自然歩道からの相模湖</p><p><br></p><p>山を降り登山道入口にたどり着いたら、まるで罠を張ったかのように道端で茶屋が開かれていた。草餅をメチャ押してきたが、体を動かして暑かったのでアイスコーヒーをオーダー、￥400-。<br><br></p><p><a href="http://stat.ameba.jp/user_images/20160104/20/tanchan1910/3d/41/j/o0800060013531841377.jpg"><img id="1451909630699" ratio="1.3333333333333333" src="https://stat.ameba.jp/user_images/20160104/20/tanchan1910/3d/41/j/t02200165_0800060013531841377.jpg" style="width:220px; height:165px; border:none;" alt="登山道入口で一服"></a><br>登山道入口で一服</p><p><br>ここからほんの数分でバス停に到着。でも時間が半端だったので(アイスコーヒーを飲まなければ間に合った)、「日帰り入浴」の文字に誘われて「天下茶屋」さんへ向かう。<br></p><p><br></p><p><a href="http://stat.ameba.jp/user_images/20160104/20/tanchan1910/a3/0d/j/o0800060013531843023.jpg"><img id="1451909632679" ratio="1.3333333333333333" src="https://stat.ameba.jp/user_images/20160104/20/tanchan1910/a3/0d/j/t02200165_0800060013531843023.jpg" style="width:220px; height:165px; border:none;" alt="日帰入浴できる天下茶屋"></a><br>日帰入浴できる「弁天島温泉 天下茶屋」 <br><br></p><p><a href="http://stat.ameba.jp/user_images/20160104/20/tanchan1910/bd/66/j/o0800060013531843022.jpg"><img id="1451910553117" ratio="1.3333333333333333" src="https://stat.ameba.jp/user_images/20160104/20/tanchan1910/bd/66/j/t02200165_0800060013531843022.jpg" style="width:220px; height:165px; border:none;" alt="天下茶屋は谷底にあった"></a><br>天下茶屋は谷底にあった</p><p><br></p><p>看板の近くだろうと思っていたら、谷底目指してひたすら降りなければならない。でも温泉の誘惑には勝てずに降りて行く。入浴料￥1,080-を支払い一時間ほどのんびりと入浴。疲れがお湯に溶け出していく気がする。きもちいいい。<br><br></p><p>結局バスのタイミングをまちがえちゃったので、しかたなく相模湖駅まで約3km程の道のりを歩くことにした。<br><br></p><p>疲れたし寒かったけど、この年始はちょっと好きなパターンになるかも。<br></p><p></p>
]]>
</description>
<link>https://ameblo.jp/tanchan1910/entry-12113832775.html</link>
<pubDate>Fri, 01 Jan 2016 23:33:45 +0900</pubDate>
</item>
</channel>
</rss>
