å€ãã®äººã家åºçšãã¬ãã«ã€ããŠèããããšããããšæããŸãããé«å質ã®ãã¬ãã楜ããã ããæ ç»ãè³Œå ¥ãããã倩æ°ã調ã¹ããããã¬ããé¢ããã«ãã£ãšå€ãã®ããšãã§ããããã«ã家åºã§ãã¬ããã³ãŒããŒïŒã»ãããããããã¯ã¹ïŒãè³Œå ¥ãããšããææ¡ããããŸãã
次ã«ããœãããŠã§ã¢éçºè ã®åŽãããã®ãã¬ãã£ãã¯ã¹ã玹ä»ããŸãã
èå³ãããã°ãç«ã«ããããã
ãã¬ãã£ãã¯ã¹ãšã¯äœã§ããïŒ
ãã¬ãã£ãã¯ã¹ïŒ STBãã»ãããããããã¯ã¹ãããã¯ã¹ ïŒã¯ãGNU / Linuxãã¡ããªãŒã®æ倧åãæšãŠè»žãã€ã³ã¹ããŒã«ãããŠããã·ã³ã°ã«ããŒãã³ã³ãã¥ãŒã¿ãŒã§ãã
Uname -aã³ãã³ãïŒ
# uname -a Linux (none) 3.1.5-1.7 #66 SMP Wed Oct 22 14:40:19 EEST 2014 mips GNU/Linux
ããã¯ã¹ã¯é垞匱ãã§ãã
匷åãªä»£è¡šè ïŒãããŠããã«å¿ããŠé«äŸ¡ãªïŒã«ã¯æ¬¡ã®ãã®ããããŸãã
- RAM -300Mbãã1GbãŸã§
- ã³ã³ãœãŒã«ã®åèšã¹ããŒã¹ -ã250Mb
- 空ãé å -ã5ã20 MBïŒãããããã以äžãããŸããããããã¯ãŸãã«ããªããäœæ¥ããªããã°ãªããªãæ°åã§ãïŒ
- ããã»ããµãŒ -æ倧1.3GhzïŒæ倧2ã³ã¢ïŒ
åããã¯ã¹ã«ã¯æ¬¡ã®ãã®ããããŸãïŒãªã¹ãã«ã¯éèŠãªèŠçŽ ã®ã¿ãå«ãŸããŠããŸãïŒã
- ã€ãŒãµãããå ¥å -IPTVïŒIPTVããã¯ã¹ã®å ŽåïŒãã»ãããããããã¯ã¹ã«æ¥ç¶ããããã®ãµãŒãã¹ãšã®çµ±åã«å¿ èŠ
- HDMIåºå -ã³ã¡ã³ããªã
- ã¢ããã°åºå -ã³ã¡ã³ããªã
- S / PDIF-ã³ã¡ã³ããªã
- USBå ¥åã¯éåžž1ã€ã®å ¥åã§ãããããŸããŸãªãã©ãã·ã¥ãã©ã€ããšå€éšããŒããã©ã€ããåæã«æ¥ç¶ããããã«èšèšãããŠãããããããå€ãã®å ¥åãå¯èœãªããã¯ã¹ããããŸãã äžéšã®ããã¯ã¹ã¯USBããããµããŒãããŠããŸãã
ãã¯ã·ã³ã°ã®ã¿ã¹ã¯ãšä»ã®ããã€ãã®èŠå ã«å¿ããŠããã¯ã·ã³ã°ã«ã¯ä»¥äžãå«ãŸããŸãã
- SIMã«ãŒãã®æ¿å ¥ -äžéšã®ã³ã³ãœãŒã«ã«ã¯3Gã¢ãžã¥ãŒã«ããããSIMã«ãŒããä»ããŠã€ãŒãµãããã±ãŒãã«ãªãã§ã€ã³ã¿ãŒãããã«ã¢ã¯ã»ã¹ã§ããŸãã ããã«ããªãã¬ãŒã¿ãŒããã®ã¡ãã»ãŒãžã¯SIMã«ãŒãã«å±ãå¯èœæ§ãããããã©ãããã©ãŒã APIã䜿çšããŠSMSã¡ãã»ãŒãžãæäœã§ããŸãã
- ä¿¡å·å ¥å ïŒè¡æ/ã±ãŒãã«å ¥åïŒ-ã»ãããããããã¯ã¹ãè¡æãŸãã¯ã±ãŒãã«ã®å Žåãããžã¿ã«æŸéãåä¿¡ããããã«å¿ èŠã§ãïŒèšãæããã°ãTVãã£ã³ãã«ã®ã¹ããªãŒã ã«æ¥ç¶ã§ããããã«ããããïŒã ã±ãŒãã«ãä»ããæŸéã«å ããŠããµãŒãã¹æ å ±ãå±ãå ŽåããããŸãã
- ã¹ããŒãã«ãŒããžã®ãã°ã€ã³ -以äžã§å°ã説æããŸãã
- Wi-Fiã¢ã³ããçšã®ã³ãã¯ã¿ -äžéšã®ããã¯ã¹ã¯Wi-Fiãããã¯ãŒã¯ã§åäœããŸãã
ããã«èŠãããããããŸããïŒäŸãã°ããããã¯ãŒã¯ããã®åçïŒïŒ
ããã§JavaScriptãšã¯äœã§ããïŒ
å å ¥è ãèªå® ã§ã»ãããããããã¯ã¹ãèµ·åãããšãã»ãããããããã¯ã¹ããã³ã³ãœãŒã«ã䜿çšããŠäœ¿çšã§ããçŸãã䟿å©ãªããŒã¿ã«ã衚瀺ãããŸãã
ãã®ããŒã¿ã«ã¯ ãJavaScriptã§èšè¿°ãã ãåäžããŒãžã¢ããªã±ãŒã·ã§ã³ ïŒ SPA-åäžããŒãžã¢ããªã±ãŒã·ã§ã³ ïŒã«éãã ãã³ã³ãœãŒã«ã§å®è¡ãããŠãããã©ãŠã¶ãŒã®ã¿ãã§éããŸãã
ïŒæ é€ã®ããã«ïŒãã¯ã·ã³ã°ããªã³ã«ãããšãäžè¬çãªå Žåã次ã®ããšãèµ·ãããŸãïŒãã¹ãŠã®éå°ã説æããããã§ã¯ãããŸããïŒã
- ã³ã³ãœãŒã«ã®è»žãéå§ããŸãã
- ãã¬ãã£ãã¯ã¹ã¯ãã©ãŠã¶ãèµ·åãããã®äžã®HTMLãã¡ã€ã«ãéããŸã
ç¬èªã®ç¹æ§ããããŸãã
- äžéšã®ã³ã³ãœãŒã«ã§ã¯ãæ§æãã¡ã€ã«ã¯æžã蟌ã¿å¯èœã§ããããšãã°ããã©ãŠã¶ãŒãèµ·åãŸãã¯åèµ·åãããšãã«ãã©ãŠã¶ãŒã¿ãã§éãHTMLãã¡ã€ã«ãžã®ãã¹ãå€æŽã§ããŸãã äžè¬çã«ãå€ãã®èšå®ã¯ãã³ãŒãã®ãããã°ããã»ã¹ãæé©åããããã«äœ¿çšãããŸãã
- äžéšã®ã³ã³ãœãŒã«ã§ã¯ãããŒã¿ã«ã®HTMLãã¡ã€ã«ã§ã¯ãªãããªã¢ãŒãã³ã³ãããŒã«ã䜿çšããŠãã¡ã€ã«ã¢ãã¬ã¹ïŒãŸãã¯ãœãŒã¹ãé åžãããµãŒããŒã®ã¢ãã¬ã¹ïŒãå ¥åããã³ã³ãœãŒã«ç¬èªã®ããŒã¿ã«ãèµ·åãããã©ãŠã¶ãŒã¯åã«å ¥åãããªã³ã¯ãéããŸãã
ã«ãŒã«ããè¿œå ïŒ
ãã¹ãŠã®ã³ã³ãœãŒã«ã§ããŒã¿ã«ããŒãžãŸãã¯ããŒã¿ã«ã¢ãã¬ã¹ãå€æŽã§ããããã§ã¯ãããŸããã ããšãã°ãæåã®ããŒãžã®Aminoã§ã¯ããã®ã¡ãŒã«ãŒã®ç¹å¥ãªããŒãå¿ èŠã§ãã ããã«ã¯ããã€ãã®ã¢ã¯ã»ã¹ã¬ãã«ããããŸãã
ã³ã³ãœãŒã«ã§ããŒã¿ã«ãéçºããããã®ã¹ãã«ã¯ã»ãšãã©å¿ èŠãªãããšãããããŸãããïŒ ãã¬ãã£ãã¯ã¹ãæ§æããã¢ããªã±ãŒã·ã§ã³ããããã€ããæ¹æ³ãåŠã¶ã ãã§ååã§ããïŒ - ããã¯å®å šã«çå®ã§ã¯ãããŸãã ã
ãã¬ãã£ãã¯ã¹ã¯ããã©ãŒãã³ã¹ãéåžžã«äœããã©ãããã©ãŒã ã§ãããããWebãšãã¯ã·ã³ã°ã®éçºã¯ãŸã£ããç°ãªãã¬ãã«ã®è€éãã§ãã ãã®ãããã»ãšãã©ãã¹ãŠã®ã³ãŒãã£ã³ã°ãšã©ãŒãæããããŸããã¢ããªã±ãŒã·ã§ã³ã¯æ£ããã¬ã³ããªã³ã°ãããããã©ããŒãã§ã¬ã³ããªã³ã°ãããã¹ããŒããŠã³ããåäœãæåŠãããã©ãŠã¶ããã¯ã©ãã·ã¥ããããã¢ãŒãã£ãã¡ã¯ããçºè¡ããã¡ã¢ãªãæ¶å»ããŸãã ããã«ã€ããŠã¯å°ãåŸã§èª¬æããŸãã
ãªããã¬ãã£ãã¯ã¹ãå¿ èŠãªã®ã§ããïŒ
- ç§ã¯å å ¥è ã§ã -ç§ã¯å£ã«ãã©ãºããä¿æããããã«æ¥é èŸãæ¥ç¶ããé«å質ã®æ ç»ãè¡æãã¬ããèŠãŠãä»äºã«è¡ããšãã«æã«äº€éæžæ»ããããã©ããã調ã¹ãŠãåªåããªãããã«ããŸãã
- ç§ã¯é»æ°éä¿¡äºæ¥è ã§ããã»ãããããããã¯ã¹ãå å ¥è ã«è²©å£²ïŒãŸãã¯ã¬ã³ã¿ã«ãªã©ïŒãããããéããŠãµãŒãã¹ïŒæ ç»ããã£ã³ãã«ããã±ãŒãžãªã©ïŒã販売ããŠå©çãäžããããšãã§ããŸãã
ãããã£ãŠãã»ãããããããã¯ã¹ã®ããŒã¿ã«ã®å€§éšåã¯ã1ã€ã®å€§ããªåé¡ã解決ããããšãç®çãšããŠããŸã-äžæ¹ã§ã¯ããµãŒãã¹ã販売ããæ©äŒãäœæãïŒæ ç»ã®è²©å£²ãææãã£ã³ãã«ã®èŠèŽãªã©ïŒãä»æ¹ã§ã¯ãæã䟿å©ãªã¢ããªã±ãŒã·ã§ã³ãä»ã®ãµãŒãã¹ïŒã«ãŒããã¡ãŒã«ããœãŒã·ã£ã«ãããã¯ãŒã¯ããã¥ãŒã¹ãSMSãã€ã³ã¿ãŒããããµãŒãã£ã³ãªã©ïŒã1ã€ã®ãããã¯ã¹ãã§ãã¬ããèŠãããä»ã®å€ãã®åé¡ã解決ãããã§ããŸãã
ãããéåžžã®ãã©ãŠã¶ã§ããå Žåãããããã¹ãŠå®è£ ã§ããŸããïŒ ãã¬ãïŒ æ ç»ïŒ SMSïŒ - ãã¬ãã£ãã¯ã¹ã¯ããã©ãŠã¶ãå éšã«ããåãªãããã¯ã¹ã§ã¯ãªããããã§ããŸã ã åããã¯ã¹ã«ã¯ç¬èªã®JavaScript APIããããŸãã
JavaScript APIãã¬ãã£ãã¯ã¹
äžè¬ã«ããã¬ãã£ãã¯ã¹APIã¯ã°ã«ãŒãã«åããããšãã§ããŸãã
- ã³ã³ãœãŒã«ãã¬ãŒã€ãŒAPI-åçãå¶åŸ¡ããããã®ã¡ãœããã
- çŸåšã®ã¹ããªãŒã ã«é¢ããæ å ±ãåä¿¡ããããã®API-åå¹ããªãŒãã£ãªãã©ãã¯ããã¬ããã¹ããªã©
- ã»ãããããããã¯ã¹å ¥åãæäœããããã®API-HDMIãã€ãŒãµãããã±ãŒãã«ãè¡æã±ãŒãã«ã3Gå¯çšæ§ãªã©ã®ç¢ºèª...
- æ¥ç¶ã®å¯çšæ§ã確èªããããã®API-æ¿å ¥ãããã±ãŒãã«å ã®ã€ã³ã¿ãŒãããã®ååšãè¡æä¿¡å·ã®ååšãŸãã¯å質ãªã©...
- ã³ã³ãœãŒã«ã¹ãã¬ãŒãžãæäœããããã®APIã¯ãã¹ãŠã®ããã¯ã¹ã«ããããã§ã¯ãããŸããããå€ãã®å Žåãã³ã³ãœãŒã«ã®åèµ·ååŸã«ããŒã«ã«ãã©ãŠã¶ãŒã¹ãã¬ãŒãžãã¯ãªã¢ãããããããªããŒãéã§ããŒã¿ãä¿åããããã«å¥ã®APIã䜿çšãããŸãã
- ããŒã¿ãåä¿¡ããããã®API-IPããã¯ã¹ãMACã¢ãã¬ã¹ãããã¯ã¹ã¢ãã«ãªã©ãååŸããŸãã
- ãããŒããã£ã¹ããããã¯ãŒã¯API-ãã£ã³ãã«ã¹ãã£ã³ãªã©ã
- ãã¯ã·ã³ã°ã«ã¹ã¿ãã€ãºAPI-ç»åæ¡å€§ãã©ãŒããããã¢ã¹ãã¯ãæ¯ããã®ä»..
- ãã¡ã€ã«ãšãã¡ã€ã«ã·ã¹ãã ãæäœããããã®API-ãã¡ã€ã«ã®ç¶ç¶æéãååŸãããã©ãã·ã¥ãã©ã€ãäžã®ãã¡ã€ã«ã®ãªã¹ããååŸãããããªã³ãŒããã¯ãèŠã€ããŸãã
ããã¯ãã»ãšãã©ã®åé¡ã解決ããã«ã¯ååã§ãã
ãŠãŒã¶ãŒã¯ã©ã®ããã«ããŒã¿ã«ãšå¯Ÿè©±ããŸããïŒ
åã³ã³ãœãŒã«ã«ã¯ã³ã³ãããŒã«ããã«ãä»å±ããŠããŸãã éåžžããã¬ãã«é¢é£ããåºæ¬çãªã¿ã¹ã¯ã解決ããããã®ãã¿ã³ãå«ãŸããŠããŸãã
- ããã²ãŒã·ã§ã³ãã¿ã³-ãäžãããå³ãããäžãããå·Šãããå ¥åãããã¡ãã¥ãŒãããæ»ããã
- é³é調ç¯ãã¿ã³-ãé³éãäžãããããé³éãäžããããããã¥ãŒãã
- ãã£ã³ãã«ãåãæ¿ããããã®ãã¿ã³-ã次ã®ãã£ã³ãã«ãããåã®ãã£ã³ãã«ã
- åçå¶åŸ¡ãã¿ã³ã¯ããåçãããåæ¢ãããäžæåæ¢ãããå·»ãæ»ããããå·»ãæ»ããããé²ç»éå§ãã§ãã 補é å ã«ãã£ãŠã¯ãäžéšã®ãã¿ã³ãæ¬ èœããŠããå Žåãçµã¿åããããŠããå ŽåããããŸãã
- æ°åããŒããã-æ°åãšæåãæãããŠããŸãã æåå ¥åãç°¡çŽ åããããã«å¿ èŠãªã
- è²ä»ãã®ãã¿ã³-ããŒãžãšã®å¯Ÿè©±ã容æã«ããŸãã çŸåšã®ããŒãžã®ç¶æ ã«å¿ããŠããããã®ãã¿ã³ã«ã¯ããã€ãã®ããžãã¯ãããã£ãŠããŸãã
- æå¹å/ç¡å¹å
- ãã®ä»ã®ã«ã¹ã¿ã ãã¿ã³-ã¢ããªã±ãŒã·ã§ã³ã®ç¹å®ã®ããŒãžã«ã€ãªãããã¿ã³ãè¿œå ããŸãã ããã²ãŒã·ã§ã³ã³ã³ãããŒã«ãªã©ã
ããŒã¿ã«ã¯ã©ã®ããã«ã³ã³ãœãŒã«ãšå¯Ÿè©±ããŸããïŒ
ã¢ããªã±ãŒã·ã§ã³ãéçºãããšãã¯ããã¿ã³ã®ã¯ãªãã¯ããã£ããããŠåŠçããå¿ èŠããããŸãã ããã§ã¯ããã¹ãŠãéåžžã«ç°¡åã§ã-ãªã¢ã³ã³ã®ãã¿ã³ãæŒãããšã¯ãããŒããŒãã®ããŒãæŒãéåžžã®ããã«æ±ãããŸãã 1ã€ã®éã-åãã³ããŒã®ããŒã³ãŒãã¯ç°ãªããŸãã
ããŒãã¹ãã©ã㯠-äžéšã®ããã¯ã¹ã§ã¯ãã€ãã³ããããŒã¢ããããšãããŒããŠã³ããåæã«çºçããŸãã ãããã£ãŠããªã¢ãŒãã³ã³ãããŒã«ããŒãæŒãåŠçãè¡ãå ŽåïŒãã®ãããªå ŽåããããŸãïŒãcrutches_and_bicycles.jpgã®ç»åãèŠããŠãããŠãã ãã
äœããããŸããïŒ
ãã®ç°¡åãªçŽ¹ä»ã®ç°¡åãªèŠçŽãèŠçŽããã«ã¯ïŒ
- ãã¯ã·ã³ã°ã¯åŒ±ãLinuxãã·ã³ã§ã
- ããã¯ã¹ããªã³ã«ãããšããã©ãŠã¶ãèµ·åããããããã³ã³ãœãŒã«äžã®ã¢ããªã±ãŒã·ã§ã³ã¯æ¬è³ªçã«Webã¢ããªã±ãŒã·ã§ã³ã§ãã
- ãã¯ã·ã³ã°ã®äœæ¥ã¯ãSSHãŸãã¯Telnetãä»ããŠè¡ãããŸãã
- Boxingã¯ãTVããªãŒãã£ãª/ãããªãã¡ã€ã«ããã®ä»å€ãã«é¢é£ããå¹ åºãã¿ã¹ã¯ã解決ããããã«ããã©ãŠã¶ãŒããã¢ã¯ã»ã¹å¯èœãªAPIãæäŸããŸãã
ãã®ããã«ãã»ãããããããã¯ã¹ã¯ããã©ãŒãã³ã¹ã®äœããã©ãããã©ãŒã ã§ãããäœããã®æ¹æ³ã§ãã¬ãã«æ¥ç¶ããŠåé¡ã解決ã§ããŸãã ãã®ãã©ãããã©ãŒã ã«å¿ èŠãªãã¹ãŠã®ããŒã«ããããŸãã
ããã¯ããã§ããïŒ -ãããïŒ ããããå®éã«ã¯ããã¹ãŠãããã»ã©è¯ãé³ã§ã¯ãªãã®ã§ãä»åºŠã¯èšäºã®ããèå³æ·±ã第2éšã«ç§»ããŸãã
泚é
ç¹°ãè¿ããŸããããã¬ãã£ãã¯ã¹ã¯LinuxãæèŒããã³ã³ãã¥ãŒã¿ãŒã§ããããã©ãŠã¶ãŒã¯è¿œå ã®APIã«ãã蟌ãŸããŸããããã«ãããã³ã³ãœãŒã«äžã®ããŒã¿ã«ãçŽé¢ããã»ãšãã©ã®ã¿ã¹ã¯ãå®çŸå¯èœã«ãªããŸãã
ç§ãã¡ã«ãšã£ãŠããã®å£°æã®2çªç®ã®éšåã ããéèŠã§ã- ããã¯ã¹ã¡ãŒã«ãŒã¯ãã©ãŠã¶ãå®æãããŸãïŒ
ããŸããŸãªãã©ãŠã¶ãŒãããã¯ã¹ã«ã€ã³ã¹ããŒã«ãããŠããŸãããOperaãŸãã¯WebKitãã©ãŠã¶ãŒãæãããèŠãããŸãã ãã®çµæãé ã£æã£ããã©ãŠã¶ã¯ããŸããŸãªãã°ãæ±ãå§ããŸãïŒæãäºæããªãå Žæã§ã®ã¡ã¢ãªãªãŒã¯ãéšåçã«éã¢ã¯ãã£ããªã¬ããŒãžã³ã¬ã¯ã¿ãæãäžè¬çãªã¡ãœããåŒã³åºãã®çµæãšããŠã®ãã©ãŠã¶ã®ã¯ã©ãã·ã¥ããã°ã®ã¬ã³ããªã³ã°ãªã©ã
以äžã«æžãããŠããããŒãã¯ãè©°ããããã³ãŒã³ãšèŠã€ãã£ãã¬ãŒãã«åºã¥ãã䞻芳çãªçµè«ã§ãã ãããã圹ã«ç«ã€ããšãæ¬åœã«é¡ã£ãŠããŸãã
è¡ãã..
DOMæäœ
DOM æäœã¯æãé£ããæäœã§ãã ã³ã³ãœãŒã«ã§ã¯ãããã¯éåžžã«ïŒïŒïŒé¡èã§ãïŒæåéãã®æå³ã§ïŒã
DOMã䜿çšããæäœã®æ°ãæå°åãããŠããªãå Žåã次ã®å¯èœæ§ããããŸãã
- éåžžã«äžå¿«ãªå¹æãåŸãããŸã - ããŒãžãã©ã®ããã«æç»ãããããïŒæåéãïŒè¡šç€ºãããŸãã å®éãããã¯éåžžã«ãã£ãããšæ©èœããè€åã¬ã€ã€ãŒã§ãããããããŒãžã°ãªããã¯èçŒã§åæç»ãããŸãïŒã°ãªããã®ã»ã¯ã¿ãŒã次ã ã«çœ®ãæããŸãããäžåºŠã«ãã¹ãŠã眮ãæããããã§ã¯ãããŸããïŒã
- ããŒãžã®ã¬ã³ããªã³ã°ã«å€ãã®æéãè²»ãããŠãã ããã
ããããçããäž»ãªåé¡ã¯ã UXãèããæãªãããããšã§ãã ãŠãŒã¶ãŒãšããŠããã¿ã³ãæŒããŠãã¬ã€ã€ãŒãåæç»ãããã1ã3ç§ã§åŸ æ©ãããããããšãªããããã«éãããŒãžãèŠãããšæããŸãã ãã€ããããèŠããšãããŒã¿ã«ãšã®ããåãã§äžå¿«ãªæ°æã¡ã«ãªããŸãã ãŸã第äžã«ããŠãŒã¶ãŒãšããŠãç§ã¯ã¢ããªã±ãŒã·ã§ã³ãšããåãããåã³ãäœéšãããã®ã§ãããç¡é§ã«ãéã䜿ããªãã£ããšæããŸãã
ããå°ãæãäžããŸã-æå°åããå¿ èŠããããã®ã¯äœã§ããïŒ
以äžãæå°åãŸãã¯æé€ããå¿ èŠããããŸãã
- èŠçŽ ããããã§æ¿å ¥ãã-document.createDocumentFragment ïŒïŒãšåéã«ãªããŸãããã
- èŠçŽ ã®ã¹ã¿ã€ã«ã®å€æŽ -ç¹å®ã®å ŽåïŒèŠçŽ ã®ç§»åãªã©ïŒã«èŠçŽ ã®ããã¯å šäœã§ã¯ãªã1ã€ãŸãã¯2ã€ã®èŠçŽ ã®ã¹ã¿ã€ã«ãå€æŽã§ããããã«ããŒãžãèšèšã§ããå Žåã¯ãããã䜿çšããå¿ èŠããããŸãã
- ã¬ã€ã¢ãŠã+èŠçŽ ã®ããªãŒã®åæç»ã å±æ©ã«whatããŠãããã®ãç解ããããã«ãäŸãæããŸãã ããšãã°ã3ã€ã®ã¬ã€ã€ãŒïŒdivïŒãé£ãåã£ãŠãããšããŸãã æåã®å¢çç·ã1pxã§è¿œå ãããšã1ã€ã§ã¯ãªããã¹ãŠã®ã¬ã€ã€ãŒãåæç»ãããŸãã ãã®äœåãªè² è·ã¯ãå¥ã®æ¹æ³ã§ããŒãžãèšèšããããšã§æé€ã§ããŸãã
- ç»åã®ãµã€ãºå€æŽ-100x100ã®ãµã€ãºã®ç»åãååŸãã90x90ã®ãµã€ãºã«èšå®ããŠé 眮ãããšããã©ãŠã¶ã«äœåãªè² è·ãããããŸãïŒãã©ãŠã¶ã¯ç»åãå§çž®ããŸãïŒã åèŠçŽ ã«ç»åãå«ãŸããã¿ã€ã«ã§ã«ã¿ãã°ãäœæããå Žåãããã¯äœåãªè² è·ã«ãªããŸãã å¯èœã§ããã°ããµãŒããŒããå³å¯ã«å¿ èŠãªãµã€ãºã®ã€ã¡ãŒãžããã«ãããã®å Žåã¯äžèŠãªã¢ã¯ã·ã§ã³ã§ãã©ãŠã¶ãŒãéè² è·ã«ããªãã§ãã ããã
- ã¢ãã¡ãŒã·ã§ã³ ãã¬ãã£ãã¯ã¹ã䜿çšãããšãã¢ããªã±ãŒã·ã§ã³ã«ã¢ãã¡ãŒã·ã§ã³ãè¿œå ã§ããŸããã軜éã¢ãã¡ãŒã·ã§ã³ïŒå°ããªãªã¹ããã¡ãã¥ãŒãããã¹ãã®ã¹ã¯ããŒã«ïŒã®ã¿ãè¿œå ã§ããŸãã ãã以å€ã®å Žåãã³ã³ãœãŒã«ã®ããã©ãŒãã³ã¹ãååã§ãªããã¢ãã¡ãŒã·ã§ã³ããããããããŸãã 倧ããªããŒãžèŠçŽ ã®ã¢ãã¡ãŒã·ã§ã³åãå®å šã«å¿ããããšãã§ããŸãã 2ã€ã®äŸå€ããããŸã-ãã£ã³ãã¹å€æãšCSS3å€æã ãããã¯å€ããå°ãªããæ©èœããŸãïŒå€§å¹ ã«é ããªãããšã¯ãããŸããããã60fpsãã§ã¯ãããŸãããããããã¬ã©ã³ããšåŒã³ãŸãããïŒãããã¯éçºã®è¿œå ã®è€éãã§ãã
ãŸãšããŸãã DOMã䜿çšããããã®ã¬ã·ãïŒ
- document.createDocumentFragmentã䜿çšããŸããDOMã䜿çšãã1ã€ã®æäœã¯ãè€æ°ã®æäœãããã¯ããã«å¹ççã§ãïŒCaptain Evidenceãåã³çšæãããŠããŸãïŒã
- ããŒãžãšå¯Ÿè©±ãããšãã«ãæå°éã®DOMå€æŽã§ããŒãžãèšèšããŸãã
- 絶察ééã®èŠçŽ ãå«ãã¬ã€ã¢ãŠãã䜿çšããŸãã
- ãµã€ãºã«åããªãç»åã¯äœ¿çšããªãã§ãã ããã
- ãã©ãŠã¶ãžã®äžå¿ èŠãªè² è·ãæé€ããŠãã ããã
- éæ床ã䜿çšããªãããã«ããŠãã ãã-ããã«ããããã©ãŠã¶ãŒã¯ããå€ãã®èšç®ãè¡ãããã«ãªããŸãã
- ã¢ãã¡ãŒã·ã§ã³ãæŸæ£ãããããã£ã³ãã¹ã䜿çšããŸãã
CSS
æ°Žãå€ãããã ã¹ã¿ã€ã«ã·ãŒããæé©åããã¯ã©ã¹ãšããåãããããã®ã¬ã·ã ïŒ
- è€æ°ã¬ãã«ã®ãã¹ãã䜿çšããªãããã«ããŠãã ãã -ããããã©ãŠã¶ã®è² è·ã§ãã ããå€ãã®ãã¹ããè¡ãå Žåãã¬ã€ã¢ãŠããèŠçŽ ã¯ã©ã¹ããŸãã¯èŠçŽ ã¹ã¿ã€ã«ãå€æŽãããšããã©ãŠã¶ã¯æå°ã®ãã¹ããããå€ãã®ããŒãããã€ãã¹ããŠèŠçŽ ã¹ã¿ã€ã«ãçæããŸãã
- éãã»ã¬ã¯ã¿ãŒã䜿çšããªãã§ãã ããã
- çµåã§ããªãè€æ°ã®æäœïŒèŠçŽ ã®ã¹ã¿ã€ã«ãå€æŽããïŒãå®è¡ããå¿ èŠãããå Žåã¯ãããããé£ç¶ããŠå®è¡ããŸãã ãã©ãŠã¶ã¯ãããå€æããnåäœåãªèŠçŽ ãåæç»ããŸããïŒã¹ã¿ã€ã«ãåèšç®ããªãããšãå«ãïŒã
ãã®çµæãCSSãã¬ãŒã ã¯ãŒã¯ïŒããŒãã¹ãã©ãããªã©ïŒã®äœ¿çšã¯æãŸãããããŸããã
匷åãªããã©ãŒãã³ã¹ããŒã¹ããæäŸããåªãããœãªã¥ãŒã·ã§ã³ããããŸããã¯ã©ã¹ãæŸæ£ããã€ã³ã©ã€ã³ã¹ã¿ã€ã«ïŒã¹ã¿ã€ã«ã¿ã°ïŒã§ã¬ã€ã¢ãŠããçæããŠã¿ãŠãã ããã ãããããGulp / Gruntçšã®ãã©ã°ã€ã³ããããŸãã
CSSããããã£ã®ãµããŒãã«ã€ããŠå°ã説æããŸãã ã»ãšãã©ã®ããã¯ã¹ã«ã¯WebKitããããCSS3ã®å€ãããµããŒããããŠããŸãã 1ã€ã®ããã¯ã¹ã§ã¯ãªããäžåºŠã«è€æ°ã®ã¢ããªã±ãŒã·ã§ã³ãéçºããå ŽåãããŸããŸãªæ°ããããã³ãã®äœ¿çšã¯ãå§ãããŸããã 1ã€ã®ãã©ãããã©ãŒã ã§åé¡ãªãåäœãã2çªç®ã®ãã©ãããã©ãŒã ã§ã¯ãã°ãçºçããªãå¯èœæ§ããããŸãã
詳现ãè¿œå ããŸãã å€ãã®å ŽåãµããŒããããŠãããã®ïŒCSS3ãããå®éã®ã±ãŒã¹ã«åºã¥ããŠãã¡ã¢ãªããã®ãªã¹ãã¯éåžžã«äžå®å šã§ãïŒïŒ
- å¢çååŸ
- rgba
- ç·åœ¢åŸé
- ããã¹ããªãŒããŒãããŒ
- èæ¯ãµã€ãº
- å€æ
- ã¢ãã¡ãŒã·ã§ã³
- äžéæ床
- 箱圱
- ãªãŒããŒãããŒx
- ãªãŒããŒãããŒy
- æ¹è¡
- ã¯ãŒãã©ãã
- ããã¹ã圱
- @ font-face
- ããã¯ã¹ãµã€ãº
- ããã¹ããªãŒããŒãããŒ
è«
誀ã£ãŠããã°ã©ã ãããããžãã¯ã®çµæãšããŠçºçããå¯èœæ§ã®ããéåžžã®ãã°ã«å ããŠããã¯ã·ã³ã°ã¯éåžžã«é »ç¹ã«éèªæãªå Žæã«æœãå¯èœæ§ããããŸãã
ãã°ã¯äœã§ããïŒ
ã»ãšãã©ã®å ŽåãããŒãžã¬ã³ããªã³ã°ã«é¢é£ãããã°ããããŸããdivã®èæ¯ã¯æç»ãããŸããã§ãããèŠçŽ ãåæç»ããããšãã«å€ãèæ¯ãã¢ã³ããŒããããŸããã§ããã
ãã°ã¯ãšã³ãžã³ã§ã¯ããŸãäžè¬çã§ã¯ãããŸããïŒãã€ãã£ãã¡ãœããã®åŒã³åºãã¯ãã©ãŠã¶ãããããããŸãããã©ãŠã¶ãç¹å¥ãªæ¡ä»¶äžã§ãããããããšããªããžã§ã¯ãã®ããŒã®ç¹°ãè¿ããæªãœãŒãã®åœ¢åŒã§çºçããŸãïŒ
ãã°ã®å¥ã®ã°ã«ãŒãã¯ãã³ããŒãã°ã§ããã¹ããªãŒã ã¯æ²ãã£ãŠåäœãããã¡ã€ã«ã·ã¹ãã ã¯æ£ããèªã¿åãããŸãããAPIã䜿çšãããšãçãã誀ã£ãŠçæãããŸãã
äžèšã®ã¢ã©ã«ã¯ã ãµããŒããããã¹ãŠã®ãã©ãããã©ãŒã ã§ãœãªã¥ãŒã·ã§ã³ãåžžã«åŸ¹åºçã«ãã¹ãããããšã§ãã ãœãªã¥ãŒã·ã§ã³ã1ã€ã®ãã©ãããã©ãŒã ã§æ©èœããå Žåãä»ã®ãã¹ãŠã®ãã©ãããã©ãŒã ã§æ©èœãããšããä¿èšŒã¯ãããŸããã
ã¡ã¢ãªãªãŒã¯
ã³ã³ãœãŒã«ã®ã¡ã¢ãªãªãŒã¯ã¯ã©ããããšããªãçºçããå¯èœæ§ããããŸãã ãããåé¿ããããã®æ®éçãªã¬ã·ãã¯ãªããããäŸã¯ãããŸããã
ã«ãŒã«ã¯åçŽã§ã - ã¡ã¢ãªãªãŒã¯ã«å¯ŸããŠå®æçã«ã¢ããªã±ãŒã·ã§ã³ãå®è¡ããŸãã ãªãŒã¯ãããå Žåã¯ãã©ããæ¢ããŠããªãŒã¯ããéããŸãã
ãã®ä»
ã¢ããªã±ãŒã·ã§ã³ã¯éåžžã©ã®ããã«ãããã€ãããŸããïŒéçºäžïŒïŒ
ããã€ãã®æ¹æ³ãããããããã¯ãã¹ãŠç°¡åã§ãã å±éå šäœã§ã¯ããã¡ã€ã«ããã·ã³ããããã¯ã¹ã®ãã©ã«ããŒã«ã³ããŒããããïŒããã«ç°¡åã«ïŒã³ã³ãœãŒã«ãæ§æããŠããã¡ã€ã«ã·ã¹ãã ããã§ã¯ãªããããã¯ãŒã¯ïŒããšãã°ãããŒã«ã«ãµãŒããŒïŒãããœãŒã¹ãååŸããŸãã
åæ¹æ³ã«ã€ããŠïŒèª¬æãšããŠïŒæžããŸããããèšäºãç ©éã«ããªãããã«ããã¹ãŠããã¿ãã¬ã«å ãŸããŠããŸãã
é衚瀺ã®ããã¹ã
æ¹æ³ïŒ1-USBãã©ãã·ã¥ãã©ã€ãçµç±
æ¹æ³ïŒ2-ãã·ã³ãããœãŒã¹ãããŠã³ããŒããã
æåã®æ¹æ³ã¯æ¹æ³3ã§ãã
æ¹æ³ïŒ3-ãããã€ãªã
ãã®ã¡ãœããã¯ãã³ã³ãœãŒã«ã«HTMLãã¡ã€ã«ã®ååŸå ãæ瀺ã§ããå Žåã«æ©èœããŸãïŒã»ãšãã©ãã¹ãŠã®ããã¯ã¹ã§å¯èœã§ãïŒã
åèµ·ååŸãã³ã³ãœãŒã«ãã©ãŠã¶ãŒã¯ãµãŒããŒã«ãã¡ã€ã«ãèŠæ±ãããã¹ãŠã®ãœãŒã¹ïŒã¹ã¯ãªãããã¹ã¿ã€ã«ãç»åãªã©ïŒèªäœãæœåºããŸãã
- ç³è«æžãåéããŸã
- ãœãŒã¹ãUSBãã©ãã·ã¥ãã©ã€ãã«ã³ããŒããŸã
- ãã©ãã·ã¥ãã©ã€ããããã¯ã¹ã«æ¿å ¥ããŸã
- telnetãŸãã¯sshïŒããã¯ã¹ã«ãã£ãŠç°ãªããŸãïŒãä»ããŠã³ã³ãœãŒã«ã«ã¢ã¯ã»ã¹ããŸã
- ãã¬ãã£ãã¯ã¹ãHTMLãã¡ã€ã«ãå®è¡ããããšãããã£ã¬ã¯ããªå ã®ãœãŒã¹ã眮ãæããŸãïŒéåžžãããã¯index.htmlãã¡ã€ã«ã§ãïŒ
æ¹æ³ïŒ2-ãã·ã³ãããœãŒã¹ãããŠã³ããŒããã
- ãµãŒããŒãå±éãïŒããšãã°ããšã¯ã¹ãã¬ã¹ïŒãã¢ããªã±ãŒã·ã§ã³ã移åãããã£ã¬ã¯ããªããéçå€æ°ãé åžããŸã
- ã¢ããªã±ãŒã·ã§ã³ããŸãšãã
- ã¢ããªã±ãŒã·ã§ã³ãã¢ãŒã«ã€ããã
- telnetãŸãã¯sshïŒããã¯ã¹ã«ãã£ãŠç°ãªããŸãïŒãä»ããŠã³ã³ãœãŒã«ã«ã¢ã¯ã»ã¹ããŸã
- ãã·ã³ãããœãŒã¹ã³ãŒããåºåããŸãïŒwgetãcurlïŒ
- ãã¬ãã£ãã¯ã¹ãHTMLãã¡ã€ã«ãå®è¡ããããšãããã£ã¬ã¯ããªå ã®ãœãŒã¹ã眮ãæããŸãïŒéåžžãããã¯index.htmlãã¡ã€ã«ã§ãïŒ
æåã®æ¹æ³ã¯æ¹æ³3ã§ãã
æ¹æ³ïŒ3-ãããã€ãªã
ãã®ã¡ãœããã¯ãã³ã³ãœãŒã«ã«HTMLãã¡ã€ã«ã®ååŸå ãæ瀺ã§ããå Žåã«æ©èœããŸãïŒã»ãšãã©ãã¹ãŠã®ããã¯ã¹ã§å¯èœã§ãïŒã
- ãµãŒããŒãå±éãïŒããšãã°ããšã¯ã¹ãã¬ã¹ïŒãã¢ããªã±ãŒã·ã§ã³ã移åãããã£ã¬ã¯ããªããéçå€æ°ãé åžããŸã
- telnetãŸãã¯sshïŒããã¯ã¹ã«ãã£ãŠç°ãªããŸãïŒãä»ããŠã³ã³ãœãŒã«ã«ã¢ã¯ã»ã¹ããŸã
- ããã¯ã¹æ§æã®ç·šé-ããŒã«ã«ãµãŒããŒäžã®HTMLãã¡ã€ã«ã¢ãã¬ã¹ãæå®ããŸã
åèµ·ååŸãã³ã³ãœãŒã«ãã©ãŠã¶ãŒã¯ãµãŒããŒã«ãã¡ã€ã«ãèŠæ±ãããã¹ãŠã®ãœãŒã¹ïŒã¹ã¯ãªãããã¹ã¿ã€ã«ãç»åãªã©ïŒèªäœãæœåºããŸãã
ã¹ããŒãã«ãŒã
ããã¯ã¹å ã«ã¹ããŒãã«ãŒããããå ŽåããããŸãã ç§ã¯ãã®åéã®å°é家ã§ã¯ãªãã®ã§ããŠã£ãããã£ã¢ã§ããã«ã€ããŠèªã¿ãŸãã ã
ãã¯ã·ã³ã°ã§ã¯ã2ã€ã®åœ¢åŒã§è¡šç€ºã§ããŸãã
- å€éšã«ãŒã-ããã¯ã¹ã®ç¹å¥ãªå ¥ãå£ã«èªåã§æ¿å ¥ããå¿ èŠããããŸãã
- å èµã«ãŒãã¯ããã¯ã¹å ã«é ç·ãããŠãããå®éã«ã¯ãããã¯ã¹ã®é»æºãå ¥ãããšåžžã«ãæ¿å ¥ããããŸãã
ç§ã¯ããã«ã€ããŠä»ã«äœãæžããŸãã-ç§ã¯å°é家ã§ã¯ãããŸããããããŠããããã¿ããæãã¬ãã«ã§ã®ã¿ã©ã®ããã«æ©èœãããç解ããŠããŸããå¶ç¶ããªãã«åãã€ããããããŸããã
çµãã
ãã¯ã·ã³ã°ïŒãã¬ãã£ãã¯ã¹ïŒã¯èå³æ·±ããã©ãããã©ãŒã ã§ããããããšé£æºããããšã§ãæãçç£çãªã¢ããªã±ãŒã·ã§ã³ã®äœææ¹æ³ã«é¢ããçµéšãç©ãããšãã§ããŸããããã«ããã®ãã©ãããã©ãŒã ã§äœæ¥ããéã®èå³æ·±ãã¿ã¹ã¯ããã°ã倧éã«æäŸãããŸãã
çéå ¥ãã®ïŒèšèã®æå³ã§ïŒããã°ã©ãã³ã°ãåäžããŒãžã®ã¢ããªã±ãŒã·ã§ã³ã奜ãã§ãããªãã«åœ¹ç«ã€è²Žéãªäœéšãæ¢ããŠãããªããã³ã³ãœãŒã«ã¢ããªã±ãŒã·ã§ã³ãæžããŠã¿ãŠãã ããã
PS
, - . , , .
, , - .
, â , .