📄 _day.vm
字号:
<div class="entry">#if ($velocityCount == 1) <div id="search" style="float: right; margin-top: -2px"> #if ( !$searchResults ) <form id="searchForm" method="get" action="$ctxPath/search/$userName" onsubmit="return search(this)" style="margin: 0; padding: 0"> <input type="text" id="q" name="q" size="20" maxlength="255" value="search this site" style="font-size: 11px; border: 1px inset silver; font-weight: normal; padding-left: 2px" onclick="this.value=''" /> </form> #end <script type="text/javascript"> function search(form) { if (form.q.value == "search this site" || form.q.value == "") { alert("Please enter a search term to continue."); form.q.focus(); return false; } } title = "$entries.get(0).title"; if (title != "") { document.title=title; } #if ($searchResults) document.title="Search Results for '$term'"; #end // set the calendar to the top day's date try { $dateFormatter.applyPattern("yyyy,MM,dd") var today = new Date($dateFormatter.format($entries.get(0).pubTime)); var month = today.getMonth()-1; cal.currentDate = new Date(today.getFullYear(),LZ(month),LZ(today.getDate())); } catch (err) { // ignore, defaults to today } </script> </div>#end #showDayPermalink( $day ) #showEntryDate( $day )</div>#foreach( $entry in $entries ) <p> <a name="$utilities.encode($entry.anchor)" id="$utilities.encode($entry.anchor)"></a> <b>$entry.title</b> <br /><br /> #showEntryText( $entry ) <span class="dateStamp">#showTimestamp($entry.pubTime)</span> #showEntryPermalink( $entry ) </p> #showCommentsDiv ( $entry )#end #showLinkbacks( $day )
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -