ã ãã ã®ä»£ããã« ã
åå¿è ã¿ã€ãã»ãã¿ãŒåãã®ãã®ãã¥ãŒããªã¢ã«ã§ã¯ã45åã§ãéä»ããããã¿ãŒãäœæããHabrã®ãããªå°æ¬ãããåºçç©ã®æ¬ ç¹ãä¿®æ£ããŠãææãªãããžã§ã¯ãã®å®è¡ãšããŠç«¶äºããæ¹æ³ã瀺ããŸãã
ãããã¯ãŒã¯ããååŸããéä»ãããã¿ãŒã®1ã€ã®ã¿ã€ãã®å®è£ ãèŠãŠãäœãèµ·ãã£ãŠããã®ããç解ããŠã¿ãŸãããã css-tricks.com/snippets/css/sticky-footer
CSSïŒ
* { margin:0; padding:0; } html, body, #wrap { height: 100%; } body > #wrap {height: auto; min-height: 100%;} #main { padding-bottom: 150px; } /* must be same height as the footer */ #footer { position: relative; margin-top: -150px; /* negative value of footer height */ height: 150px; clear:both;} /* CLEAR FIX*/ .clearfix:after {content: "."; display: block; height: 0; clear: both; visibility: hidden;} .clearfix {display: inline-block;} /* Hides from IE-mac \*/ * html .clearfix { height: 1%;} .clearfix {display: block;} /* End hide from IE-mac */
HTMLïŒ
<div id="wrap"> <div id="main" class="clearfix"> </div> </div> <div id="footer"> </div>
CSSãç¥ã£ãŠããŠããã®ã³ãŒããèŠãŠãååãç解ããèªä¿¡ãæã£ãŠè€éãªãããžã§ã¯ããç·šéãã人ã¯ã»ãšãã©ããŸããã 暪ãžã®äžæ©ã¯å¯äœçšã«ã€ãªãããŸãã 以äžã®æšè«ãšããã¿ãŒã®äœæã¯ãCSSã«ãŒã«ã«ã€ããŠããå€ãã®æŽå¯ãäžããããšãç®çãšããŠããŸãã
çè«ããå§ããŸããã
éä»ããããããã¿ãŒã®éåžžã®å®è£ ã¯ãèŠçŽ ïŒ BODYã®çŽæ¥ã®åå«ïŒãHTMLã¿ã°ã§å§ãŸããã¹ãŠã®èŠªãåãããŒã»ã³ããŒãžã®é«ããæã€å ŽåããŠã£ã³ããŠã«å¯ŸããŠããŒã»ã³ããŒãžã®é«ãïŒ é«ãïŒ100ïŒ ãŸãã¯å¥ïŒãç¶æããäžæã®CSS2ããããã£ã«åºã¥ããŠããŸã ã 以åã¯ãDoctypeããªããQuirksã¢ãŒãã§ã¯ãèŠçŽ ã®ããŒã»ã³ããŒãžã®é«ãã¯ã©ã®ã¬ãã«ã§ããµããŒããããçŸä»£ã®Doctypeã§ã¯ããŒã»ã³ãæå®ã®èŠçŽ å ã§ã®ã¿ãµããŒããããŠããŸããã ãããã£ãŠã100ïŒ ã®é«ããæã€ã³ã³ãã³ããããã¯ïŒ #layoutãšåŒã³ãŸãããïŒãäœæãããšããŸãã§ãŠã£ã³ããŠã®ããã«ã¹ã¯ããŒã«ããŸãã ããã¿ãŒãšããããŒãé€ãããã¹ãŠã®ïŒã¹ããªãŒãã³ã°ïŒã³ã³ãã³ããããã«é 眮ãããŸãã
ããã¿ãŒã¯ãã®ãããã¯ã®åŸã«é 眮ãããé«ã0ãã¯ã»ã«ã«ãªããŸãã äžè¬ã«ã #layoutã®åŸã«å¥œããªã ããããã¯ãé 眮ã§ããŸããããããã¯ãã¹ãŠé«ã0ãã¯ã»ã«ããããŸãã¯ããã¥ã¡ã³ããããŒã®å€åŽïŒ äœçœ®ïŒéçã§ã¯ãªãïŒã§ãªããã°ãªããŸããã ãããŠãé垞䜿çšãããå¥ã®éèŠãªããªãã¯ããããŸãã é«ãã0ã«ããå¿ èŠã¯ãããŸãããé«ããåºå®ããããšãã§ããŸããã margin-bottomããããã£ã®ããã«ã¡ã€ã³ãŠããããããããå·®ãåŒãããšãã§ããŸãã- ïŒé«ãïŒ; ã
人éã®èšèªã§ã¯ãã¹ã¿ã€ã«ã«ãã£ãŠããã¿ãŒãåã蟌ãŸãã空ã®ããã±ããããäœæãããåžžã«ããã¿ãŒããŠã£ã³ããŠã®äžéšããŸãã¯ããã¥ã¡ã³ãããŠã£ã³ããŠã®é«ããããé«ãå Žåã¯ããã¥ã¡ã³ãã®äžéšã«è²Œãä»ããããŸãã ã€ã³ã¿ãŒããã ãšHabréã«ã¯ãå€ãã®ããã¿ãŒã®å®è£ ãããããã¹ãŠã®ãã©ãŠã¶ãŒã§ç°ãªãæåãåããŠããŸãã Habrã®ã¬ã€ã¢ãŠãããäž»å銬ããšããŠäœ¿çšããŠãç§ãã¡ã¯åŒãç¶ãèªåã§æ§ç¯ããŠãããŸãã
#layoutãããã¯ã®äžéšã¯ãã±ããã§ãããããããŒãžãªããžã§ã¯ãã衚瀺ãããããã¿ãŒçšã«ç©ºã«ããå¿ èŠããããŸãã ãããŠãããã§ãã1ã€ã®å¶éããããŸã- #layoutã® ããã£ã³ã°ã®ããã«ç©ºã®ãã±ãããäœãããšã¯ã§ããŸããã ããŒãžã³ãä¿åãããŸãã-ãã¹ããããèŠçŽ ã®ããããã£ã®ããã«ç©ºã«ããå¿ èŠããããŸãã ããã«ããããŒãã£ã³ã°èŠçŽ ã®ãããã¯ãå¢çã®äžã«åºãªãããã«ããå¿ èŠããããŸããããã¯ãããšãã°ãããã¯ã«ãã£ãŠè¡ãããŸã
<div class="clear"></div>
where .clear {clearïŒboth} ãã®ã é«ã ããåºå®ããããåãçžå¯Ÿåäœã«ããããããŒãžãå€æŽããããã»ã¹ã§èšç®ããããšãéèŠã§ãã éåžžããã®ã¬ããªã³ã°ãããã¯ãšå¿
èŠãªé«ãã®èšå®ãçµã¿åããããšäŸ¿å©ã§ãã
å®éšã®ããŒãžã®æ§é ãèŠãŠã¿ãŸãããã ãããè¡ãæãç°¡åãªæ¹æ³ã¯ãChromeã§FirebugãŠã£ã³ããŠãŸãã¯åæ§ã®ãŠã£ã³ããŠïŒéçºè ããŒã«ïŒCtrl-F12ïŒïŒãéãããšã§ãã
<!DOCTYPE html> <html xml:lang="ru" xmlns="http://www.w3.org/1999/xhtml"> <head> <body> <div id="topline">... ...</div> <div id="layout"> <div id="header"> <div class="content_left">...=== ===...</div> <div class="sidebar_right">... ...</div> <div class="clear"></div> <!-- --> <div class="rotated_posts">...</div> <div id="footer"> <dl class="user">..<dl><!-- , --> <dl>...<dl> <dl>...<dl> <dl>...<dl> <dl>...</dl> <div class="copyright">...</div> </div> </div> <div id="AutocompleteContainter_ea125"></div> <!-- --> <div class="token-input-dropdown-hubs"></div> <div id="tiptip_holder" style="max-width:300px;"> <div id="jGrowl" class="top-right jGrowl"> </body> </html>
å®éã®äŸã«ç§»ããŸãããã
éä»ããããããã¿ãŒã®å¹æã«é¢ããã¬ã€ã¢ãŠãã®æ¬ ç¹ã¯äœã§ããïŒ ç§ãã¡ã¯ãããèŠã
1ïŒãµã€ãã®ããã¿ãŒã¯ãid = layoutã®ãããã¯å ã«ãããããŒã»ã³ããŒãžã®é«ãã¯ãããŸããã çè«çã«ã¯ã圌ã䞡芪ãããã³ã³ã³ãã³ããããã¯.content-leftã¯ãé«ãã100ïŒ ã«èšå®ããå¿ èŠããããŸãã åŸè ã§ã¯ãåé¡ãçºçããŸã-圌ã¯ããã«é©ããŠããŸããã ãããã£ãŠã1ã€ã®äžéå±€ãããã¯ãæ¬ èœããŠããããããã¿ãŒããã®ã¬ãã«ã«ãããŸããã ãŸã
2ïŒããã¿ãŒã®é«ãã¯å¯å€ã§ãïŒãªã¹ãå ã®èŠçŽ ã®æ°ãšãã©ã³ããµã€ãºã«äŸåããŸããããã¯HTMLã§ã¯ãªãCSSã§ç¢ºèªã§ããŸãïŒã ãããŠ
3ïŒ #layoutã®äžã«ã 90pxã®åºå®é«ãã®åºåãŠãããããããŸãã
4ïŒããã¿ãŒããŸãã¯ïŒäžè¬çã«èšãã°ïŒ #layoutãããã¯ã«é 眮ãããã¯ã¯ãããŸããïŒãã ãã .rotated_postsãããã¯ã®äžã«ãããŸãããããããããã¿ãŒã«èµ·å ããã¯ãã§ãïŒã
ãã€ã³ã4-ã¹ã¯ãªãããæç»ããå¿ èŠããããŸãã
è¿œå ããããšã§3çªç®ã®æ®µèœãæ±ãã®ã¯ç°¡åã«æããŸã
#layout{margin-top:-90px;}
ãã ãããã®ãããã¯ã¯ããã§ã¯ãªãå¯èœæ§ãããããšã«æ³šæããŠãã ãã-ãããŒã®åãåãã«ãã£ãŠæå¶ãããŠããããåºåäž»ãçªç¶è¡šç€ºããªãããšã決å®ããŸãã ããã§ãªããµã€ãã«ã¯å€ãã®ããŒãžããããŸãã ãã®ãããåºåãŠããããžã®ããŒãžã³ãããã®äŸåã¯æªãèãã§ãã #layoutå
ã«é
眮ããããšããå§ãããŸã -äœãéªéããŸããã
æåã®ãã€ã³ãã¯ãéä»ããããããã¿ãŒãæ©èœããããã«ã¯ãããã¿ãŒãããã¯ã#layoutã®äžã«é 眮ããå¿ èŠããããšããããšã§ãã ãã ããjavascriptã䜿çšãããšãä»ã®éä»ããããããã¿ãŒã¹ããŒã ãå®è£ ã§ããŸããããããã®å Žåããããã䜿çšããªãå Žåã¯JSãŸãã¯æ£ããã¬ã€ã¢ãŠããå¿ èŠã§ãã
ã³ã³ãã³ãå ã®ããã¿ãŒããéé£ããããµã€ãã®æåŸã®ã¬ã€ã¢ãŠããã¶ã€ããŒããã匷ããªãããšã¯ã§ããªããããããã¿ãŒãå°æ¥ã®ãµã€ãã«æ£ããé 眮ãããšããã¢ã€ãã¢ã延æããŸãïŒãããã£ãŠãHabrããããã¯ãŒã«ãã«ãªããŸãïŒïŒãããŠãæ£ããã¹ã¯ãªããã«HabrãæºåããŸãïŒãŠãŒã¶ãŒã¹ã¯ãªããïŒç¶æ ã ïŒããšãã°ãã¬ã€ã¢ãŠããã¶ã€ããŒãã¹ã€ãããã³ã§ã¯ãªãããµã€ãã®å€èŠ³ããããžã§ã¯ã管çã®æŠç¥çãªæ±ºå®ã決å®ããŸããïŒãããã£ãŠãæåã®1ã2ç§ã§ããŒãžã誀ã£ãã¬ã€ã¢ãŠãã§èªã¿èŸŒãŸãããããçæ³ãéæããããšã¯ã§ããŸããã ããããç§ãã¡ã«ãšã£ãŠãITã®
ãããã£ãŠãã¹ã¯ãªããã®é©åãªå ŽæïŒä»¥åãããŒãžã®èªã¿èŸŒã¿ã®æåŸïŒã§ãåºåãšããã¿ãŒã®DOMãããã¯ã®è»¢éãé©åãªå Žæã«æžã蟌ã¿ãŸãã ïŒãŠãŒã¶ãŒã¹ã¯ãªããã®ããã«ããœãªã¥ãŒã·ã§ã³ã¯çŽç²ããè€éã«ãªããšããäºå®ã«åããŸããïŒ
var dQ = function(q){return document.querySelector(q);} // var topL = dQ('#topline'), lay = dQ('#layout'), foot = dQ('#footer'); if(topL && lay) // - lay.insertBefore(topL, lay.firstChild); if(lay && foot && lay.nextSibling) // lay.parentNode.insertBefore(footer, lay.nextSibling);
ãããã¯ãé 眮ããŸã-å¿ èŠãªããããã£ãèŠçŽ ã«å²ãåœãŠãããã«æ®ããŸãã ããã¿ãŒã®é«ããæ£ç¢ºã«èšå®ããå¿ èŠããããŸããããã¯ããŠãŒã¶ãŒã¹ã¯ãªãããã¢ã¯ãã£ãã«ãªãïŒããŒãžã®èªã¿èŸŒã¿ãçµäºããïŒæç¹ã§ãã§ã«ããã£ãŠããããã§ãã åè¿°ã®ããã«ããŠãŒã¶ãŒã¹ã¯ãªããã®ããªã¬ãŒãã€ã³ãã«ãããããŒãžäžã®ããã¿ãŒãžã£ã³ãã¯é¿ããããŸããã ããªãã¯ãè¯ãé¡ããããããšããããšãã§ããŸããããæªãã²ãŒã ãã§ïŒ ãªãã§ïŒ ãµã€ãã®ãæªãã²ãŒã ãã«ãããäœåãªåŽåãªãã§ã³ã³ã»ãããäœæã§ããŸããããã¯ãå質ãè©äŸ¡ããã®ã«ååã§ããããããžã§ã¯ãã®ãæ£ããã²ãŒã ãã§ã¯å¿ èŠãããŸããã
if(foot){ //- <div class="clear"></div> h.apnd_el({clss:'clear', appendTo: footer}); var footH = foot.offsetHeight; //... } if(topL && lay && footer && lay.nextSibling){ // ("") h.apnd_el({clss:'clear', css:{height: (footH ||0) +'px'}, appendTo: lay}); lay.style.minHeight ='100%'; h.addRules('#layout{margin-bottom:-'+ footH +'px!important}html, body {height:100%}'); }
ããã§ã¯ãjQueryãšã»ãŒåãã§ããèªå·±èšè¿°é¢æ°h.apnd_elã®äœ¿çšãèš±å¯ããŸãã-
$('<div class="clear"></div>').css({height: footH ||0}).appendTo($(footer))
ãããŠããã«-CSSã®ã«ãŒã«ã®å®è£ ã®ãã1ã€ã®å žåçãªæ©èœ-h.addRules ã ããã§ã¯ãã ïŒéèŠ ãã§ã«ãŒã«ã宣èšããå¿ èŠãããããããããªãã§ã¯å®è¡ã§ããŸãã-ãŠãŒã¶ãŒã¹ã¯ãªããããã®ã¹ã¿ã€ã«ã®åªå é äœã®ç¹æ§ã®ããã ãã§ãã
ãããã®ã³ãŒãã䜿çšãããšããŠãŒã¶ãŒã¹ã¯ãªããã«éä»ããããããã¿ãŒã衚瀺ããïŒãžã£ã³ãããåŸïŒãããŒãžã¬ã€ã¢ãŠãã®äœææ¹æ³ãå®å šã«ç解ã§ããŸãã ãžã£ã³ãã³ã°ãã¶ã€ã³ãæ¯æ¥äœ¿çšããã®ã¯äžå¿«ã§ãããããã£ãŠããã¢ã³ã¹ãã¬ãŒã·ã§ã³ãšãã¹ãã®ããã ãã«äœ¿çšããããšããå§ãããŸãã HabrAjax ãŠãŒã¶ãŒã¹ã¯ãªããã«ãããŒãžã§ã³0.883_2012-09-12ããå§ãŸããunderFooterãèšå®ïŒèšå®ãªã¹ãã®ãfooted to the bottomãã®åã«ãcheckmarkããèšå®ïŒã§éããåæ§ã®ã¹ã¯ãªãããã€ã³ã¹ããŒã«ããŸããã
éä»ãããã足ã¯ãã€ã³ã¹ããŒã«ãããŠããå Žåã ZenCommentã¹ã¿ã€ã«ãæŽæ°ããå¿ èŠæ§ã«åœ±é¿ããŸããïŒ ã¯ããããã§ãã ãŠãŒã¶ãŒã¹ã¯ãªããã«ãã£ãŠæ¿å ¥ãããã¹ã¿ã€ã«ã®åªå é äœãæãäœãã¹ã¿ã€ã«ã®åªå é äœã®è€éãªãã§ãŒã³ã®ãããéä»ããããããã¿ãŒã䜿çšã§ããããã«ãŠãŒã¶ãŒã¹ã¿ã€ã«ããããã«èª¿æŽããå¿ èŠããããŸããã ãŠãŒã¶ãŒã¹ã¿ã€ã«ãæŽæ°ããªãå ŽåïŒæ倧2.66_2012-09-12 +ïŒãããã¿ãŒã¯æ£ç¢ºã«æ©èœããŸããã
rotate_postããã㯠ïŒéå»ã®äººæ°ã®ãã3ã€ã®æçš¿ïŒã¯ããã¿ãŒã§ããè«ççã«èŠãããããå®éã®ã¹ã¯ãªããã§ã¯ããã¿ãŒã«ã転éãããŸãã
2çªç®ã®é ç®ïŒã¬ã€ã¢ãŠãã®æ¬ é¥ã®ãªã¹ãããïŒã¯ãçŽç²ã«Habrã®çç±ã§ãïŒãŠãŒã¶ãŒã¹ã¯ãªããã«ã¯é©çšããããåã®ãã®ãéšåçã«ç¹°ãè¿ããŸãïŒã
ããŒãžã«ã¯ãçŽç²ãªCSSã§éä»ãããã¿ãŒãäœæã§ããªããšããåé¡ããããŸããããã¿ãŒã®é«ãã¯ããã©ãŠã¶ãŒã®ããã©ã«ãã®ãã©ã³ããµã€ãºã«ãã£ãŠç°ãªããŸãã CSSã«ããã¿ãŒãå®è£ ããã«ã¯ãçžå¯Ÿçãªãã©ã³ãã®é«ããéžæããå¿ èŠããããŸããããŠãŒã¶ãŒã®ã³ã³ãã¥ãŒã¿ãŒã«ãã©ã³ããæäŸãããŠããªãå Žåã¯æ©èœããªãå ŽåããããŸãã ãããã£ãŠããœãªã¥ãŒã·ã§ã³ã«ã¯ãããã¿ãŒã®ãããã®äœçœ®ã«é·ç§»ãäžèŽãããããšãã§ããjavascriptãå«ããå¿ èŠããããŸãã ãŸãã¯ãç°ãªããã©ãããã©ãŒã ã®ãŠãŒã¶ãŒã¹ã¯ãªããã§è¡ããã決å®ã®åãå ¥ãå¯èœæ§ãèŠãŠãéä»ããããããã¿ãŒã®èšç®ãããã€ã³ã¹ããŒã«ãè¡ããŸã-æåã®èŠ³å¯ã¯ããœãªã¥ãŒã·ã§ã³ãå®çšçã§ããããšã瀺ããŠããŸãã
çµè«ïŒHabréã§ã¬ã€ã¢ãŠããå®å šã«é 眮ã§ããŸããããã®ããã«ã¯ãã¬ã€ã¢ãŠãã®åäœãæ確ã«ç解ããæ£ããé åºã§ãããã¯ãé 眮ããã¬ã€ã¢ãŠããã¶ã€ããŒãå¿ èŠã§ãã ïŒããã¿ãŒãšããããããŒã¯ãã¹ã¿ã€ã«ã«éä»ããããããã¿ãŒãååŸããããã ãã§ãªãããããã«ãããŸãããïŒãããã¿ãŒã®é«ããçžå¯Ÿçãªåäœã§èšå®ãããšããã©ã³ããäžç¢ºå®ã«ãªããŸãã
å®è£
HabrAjax 0.883+ãæå¹ã«ãããšããåºå®ããã¿ãŒãã®åäœã衚瀺ãããŸãã ã¹ã¯ãªããã䜿çšããŠé«ãã調æŽããŸãã éåžžã®ããã¿ãŒãšæ¯èŒããŠãããã¿ãŒãéä»ããããããŒãžãã©ãã ãåªããŠããããè©äŸ¡ã§ããŸãã ZenCommentã®ãŠãŒã¶ãŒã¹ã¿ã€ã«ã¯ã¹ã¯ãªãããšäºææ§ããããŸãã ãéä»ããããããã¿ãŒãé©åã«æ©èœãããã«ã¯ãZenCommentããŒãžã§ã³2.66_2012-09-12 +ãã€ã³ã¹ããŒã«ããå¿ èŠããããŸãã
å®è£ åäœã®äºå®
ããã¿ãŒãã¹ã¿ã€ã«ãã¹ã¯ãªããã䜿çšããã·ã£ãŒãããºã ã¯ã·ã£ãŒãããºã ã§ãïŒçè«ã«ãã£ãŠã®ã¿åŒ·åãããŸãïŒã ãã©ãŠã¶ã«ãã£ãŠåäœãå°ãç°ãªããŸãããå Žæã«ãã£ãŠã¯-äºæ³å€ã§ãã ãŠãŒã¶ãŒã¹ã¯ãªãããšãããã¯ã®åé 眮ããªããã°ãçµæã¯ç°ãªããŸãã 以äžã«ããŠãŒã¶ãŒã¹ã¯ãªããã§ã®å®è£ ã®å®éšã§åŸããã®ã瀺ããŸãã
1ïŒFirefox-ããã¿ãŒãžã£ã³ãã®äºæããªãäžè¶³ã ããããååšããªãã®ã¯å¥åŠã§ã-ããã¿ãŒãäžéšã«é 眮ããåŸã«ã¬ã³ããªã³ã°ãè¡ãããŸãã
2ïŒChrome-圌ã¯ãããŸãããã¹ã¯ããŒã«ãã«é©ãã-1ç§ã«1åã®åšæã§äžã®ç©ºã®ã¹ããŒã¹ãããŒãžã«è¿œå ããã-é«ãã®èšç®ã§äœããããããã htmlãbody {heightïŒ100ïŒ }ããŠãŒã¶ãŒã¹ã¿ã€ã«ã§èšè¿°ããããšã§åŠçãããŸãããåžžã«æ©èœãããšããä¿èšŒã¯ãããŸããã ããä¿¡é Œã§ããã®ã¯ãããã¥ã¡ã³ãããŠã£ã³ããŠã®é«ããè¶ ããŠããªããã©ããã確èªããè¶ ããŠããªãå Žåã¯ããã¿ãŒã移åããããã§ãªãå Žåã¯äœãããªãããšã§ãã ãžã£ã³ãã§-ãã¹ãŠãé 調ã§ããããã§ãã
3ïŒOpera-æåã®ããŒãžã®èªã¿èŸŒã¿ã§ã¯ãžã£ã³ãïŒvã12.02ïŒã¯ãããŸããããæ¥ãã§ãªããŒããããšããã¿ãŒã®ãžã£ã³ãã衚瀺ãããå ŽåããããŸãã æ®ãã¯Fxãšåããããæ£ç¢ºã§ãã
ãŸããChromeãïŒã¹ã¯ãªããã䜿çšããŠïŒæ£ããåäœããããã«ç¹å¥ã«ãã¬ãŒãã³ã°ãããã®åœ¢åŒã§ã¬ãã¥ãŒçšã«ããŒãžã§ã³ãããŒã«ã¢ãŠãããå¿ èŠããããŸãã ãããã£ãŠããŠãŒã¶ãŒã¹ã¯ãªããã®ã»ã¯ã·ã§ã³ã¯ãèšäºã§èª¬æãããŠããã»ã¯ã·ã§ã³ãããå°ãè€éã§ãã
ããã¯å®å šãªå®è£ ã§ã¯ãªãããšãæãåºããŠãã ãããããšãã°ããŠãŒã¶ãŒããŠã£ã³ããŠã®ãµã€ãºãå€æŽããå Žåã¯èæ ®ãããŸããã ãŸãã移åã®ååŸã«ããã¿ãŒã®é«ããå€æŽãããšããïŒå®éã«ã¯ïŒãŸããªçµã¿åãããèŠã€ããããšãã§ããŸãããã®å Žåãäžéœåãçããããšãªããããžãã¯ã倱æãå§ããŸãã æŽç·Žã®è€éããšãœãªã¥ãŒã·ã§ã³ã®äžææ§ã®ãã©ã³ã¹ãå°éããããããæ¬ é¥ã¯æå³çã«æ®ãããŸããã
ãã®çµæãå°ãªããšãé«éã®åºå®ã³ã³ãã¥ãŒã¿ãŒã§ã¯ãå®å šã«æ©èœããäœæ¥ã¹ããŒã ã§ããããšãå€æããŸããã äžæ£ãªããã¿ãŒã®åäœãæ€åºãããå ŽåããunderFooterãèšå®ãç¡å¹ã«ããå¿ èŠããããŸãã
ããã¯ã©ã®ããŒãžã«åœ¹ç«ã¡ãŸããïŒ
ãŠãŒã¶ãŒã¹ã¿ã€ã«ã®ãªãæšæºãµã€ãã§ã¯ãçãããŒãžã®è³ªåãšåçã§ãã1500pxãããé·ããªããŸããããã¯ã»ãšãã©ã®å Žåãæ°Žå¹³ã«é 眮ãããã¢ãã¿ãŒã§ã¯æç¥ã§ããŸããã ããããæ®éã®ã¢ãã¿ãŒã§ããé«ãçŽ1300ãã¯ã»ã«ã®ãŠãŒã¶ãŒã®å人ããŒãžãããèŠãããŸããããã§ã¯ãç¡æµã®ããã¿ãŒãæ å ã®äžã§çŸããŸãã éåžžã«é·ããªãããŠãŒã¶ãŒèšå®ã®ããŒãžæ°ã
ZenCommentãŠãŒã¶ãŒã¹ã¿ã€ã«ã䜿çšãããšãå¿ èŠãªããŒãžã®é«ããå€§å¹ ã«åæžãããHabrAjaxãŠãŒã¶ãŒã¹ã¯ãªããã¯ãµã€ãããŒã®ãµã€ããããã¯ã®äžéšãŸãã¯ãã¹ãŠã衚瀺ããªãå ŽåããããŸãã ãããã£ãŠãã¹ã¯ãªãããšã¹ã¿ã€ã«ã䜿çšãããšãç¡æµã®ããã¿ãŒã®å¹æãããé »ç¹ã«èŠ³å¯ãããŸãã ãããã£ãŠãHabrAjaxã§ããã¿ãŒä¿®æ£ãåããŠç»å Žããã®ã¯è«ççã§ãã ããããéåžžã®ãµã€ãã«ã¯ãéä»ããããããã¿ãŒã圹ç«ã€å€ãã®ããŒãžããããŸãã
ãµããŒãã¯ãããŸããïŒ
éå»1幎éã®ãµã€ãã®åäœã¯ãéçºè ïŒããã³ç®¡çè ïŒãã以åã¯ãŠãŒã¶ãŒã¹ã¯ãªãããšãŠãŒã¶ãŒã¹ã¿ã€ã«ã®ã¿ã«ååšããŠããæ©èœãå°å ¥ãå§ããããšã瀺ããŠããŸãã ããšãã°ã幎ã®åãã«Habrã®äœ¿ããããã«é¢ããèšäºã®ã¬ãã¥ãŒãæžããŸãã ãããã§ã¯å€ãã®å°ããªé¡ããéããŸããã 6ãæåŸãç§ã¯åœŒå¥³ã«æ»ã£ãŠãåžæãšããŠèšè¿°ãããå€ãã®æ©èœããã§ã«ãµã€ãã«å®è£ ãããŠããããšãæºè¶³ããŠïŒããã¹ãã§çŽæ¥ããUPDããšæ¥ä»ãèªãããšãã§ããŸãïŒææããŸããã
次ã«ãã³ã¡ã³ããè©äŸ¡ããããã«ãæ£æ¹åœ¢ã§ã¯ãªããç¢å°ããèŠãŠãã ããã 圌ãã¯ãŠãŒã¶ãŒalmalexa ïŒ "Prettifier"ïŒã«çŽ3幎åã«ç»å ŽããçŽ2幎åã«ZenCommentã«è»¢éãããŸããã çŽ2ã3ãæåããµã€ãã«ç»å ŽããŸããã ZenCommentã§è¡ãããŠããããã«ããã¹ãå°ãªãããããã«ããã°ãããããšç¢å°ãããçšåºŠã®è·é¢ã«åºãããšèãããå§ããŠããŸãïŒæ°åã®å·Šã«1ã€ã®ç¢å°ãå³ã«2çªç®ã®ç¢å°ïŒã
ãããã£ãŠããããããHabréã®ãéä»ããããããã¿ãŒãã¯ãçŽ3幎åã«èŠããã»ã©çŽ æŽããããã®ã§ã¯ãããŸããã
éå»3ãæéã«è¡šç€ºãããHabrAjaxã¹ã¯ãªããã®ãã®ä»ã®æ©èœ ïŒèšå®ã§ç¡å¹ã«ãªã£ãŠããŸãïŒïŒ
* autostatå ¥åãã£ãŒã«ã ïŒOperaã§ã¯ã倧ããªããã¹ãã§ã¯é床ãäœäžããå ŽåããããŸãïŒ;
*ãä»æ¥ããšãæšæ¥ã以å€ã®æ¥ä»ã®ææ¥ã
*ããŒãå ã®ã€ãã³ãã 1è¡2æåã«æãããã¿å¯èœ ã
*ãHabr *ããšããåèªã®ãÏã»ãããã³ãÏαããžã®ç¥èªã
* èšäºçªå·ã®æ¥ä»ã®ãã³ã-URLã®çªå·ã«ãã£ãŠãèšäºãããŠã³ããŒããããåã®æãšå¹Žãå ±åãããŸãã
* ãé¡äŒŒã®æçš¿ãã2åèªã«æå°åããŸãã ã ãããã¢ãããé¡äŒŒã®æçš¿ãã®ã¹ã¯ãªãŒã³ã·ã§ãã ïŒ4ã§ã¯ãªã12ã®ãªã³ã¯ã衚瀺ïŒã