File tree Expand file tree Collapse file tree 3 files changed +24
-5
lines changed
Expand file tree Collapse file tree 3 files changed +24
-5
lines changed Original file line number Diff line number Diff line change 2121
2222Here's an overview of the GameCube's motherboard, with the some important components labeled:
2323
24- <img src =" / images/gc-motherboard.png" width =" 80% " >
24+ <img src =" images/gc-motherboard.png " width =" 80% " >
2525<div class =" caption " >
2626Image by Rodrigo Copetti,
2727<a href =" resources.html#gamecube-architecture---a-pratical-analysis " >Gamecube Architecture - A Pratical Analysis</a >
2828</div >
2929
3030And here's a diagram of the architecture:
3131
32- <img src =" / images/arch-diagram.png" width =100% >
32+ <img src =" images/arch-diagram.png " width =100% >
3333<div class =" caption " >
3434Image by Rodrigo Copetti,
3535<a href =" resources.html#gamecube-architecture---a-pratical-analysis " >Gamecube Architecture - A Pratical Analysis</a >
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ The Nintendo GameCube is a console released in 2001/2002 and is the successor to
44belongs to the sixth generation of consoles, together with others like Sony's Playstation 2 and
55Microsoft's Xbox.
66
7- <img src =" / images/gamecube.png" width =" 80% " >
7+ <img src =" images/gamecube.png " width =" 80% " >
88
99While the GameCube is frequentely overshadowed by it's big brother, the Nintendo Wii, it is a very
1010charming console, powerful for it's time.
Original file line number Diff line number Diff line change 1+ function checkImage ( imageSrc , good , bad ) {
2+ var img = new Image ( ) ;
3+ img . onload = good ;
4+ img . onerror = bad ;
5+ img . src = imageSrc ;
6+ }
7+
8+
19const header = document . getElementsByClassName ( "menu-title" ) [ 0 ] ;
210const title = header . childNodes [ 0 ] ;
311
12+ let depth = 0 ;
13+ const logoPath = "images/gc.png" ;
414const logo = document . createElement ( "img" ) ;
5- logo . setAttribute ( "src" , "/images/gc.png" ) ;
615logo . setAttribute ( "class" , "gc-logo" ) ;
16+ logo . onerror = function ( ) {
17+ depth ++ ;
18+ if ( depth > 3 ) {
19+ return ;
20+ }
21+
22+ logo . src = "../" . repeat ( depth ) + logoPath ;
23+ }
24+
25+ logo . src = logoPath ;
726
827const div = document . createElement ( "div" ) ;
9- div . setAttribute ( "class" , "title" )
28+ div . setAttribute ( "class" , "title" ) ;
1029div . append ( logo ) ;
1130div . append ( title ) ;
1231
You can’t perform that action at this time.
0 commit comments