Skip to content

Commit

Permalink
c64: book
Browse files Browse the repository at this point in the history
  • Loading branch information
sehugg committed Nov 14, 2024
1 parent cd245c5 commit bb78a4b
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 1 deletion.
2 changes: 2 additions & 0 deletions css/ui.css
Original file line number Diff line number Diff line change
Expand Up @@ -604,6 +604,8 @@ div.asset_toolbar {
}
.book-active span {
font-weight: bold;
color: #339999;
font-size: 1.25em;
}
.book-active span::after {
font-size: x-large;
Expand Down
Binary file added images/book_c64.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 7 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,13 @@
<li>
<a class="dropdown-item dropdown-link book-nes" target="_book_nes" href="https://www.amazon.com/gp/product/1075952727/ref=as_li_tl?ie=UTF8&camp=1789&creative=9325&creativeASIN=1075952727&linkCode=as2">
<img src="images/book_nes.png"/>
&nbsp;&nbsp;<span class="book-title">Making Games For The NES</span>
&nbsp;&nbsp;<span class="book-title">Making Games for the NES</span>
</a>
</li>
<li>
<a class="dropdown-item dropdown-link book-c64" target="_book_c64" href="https://www.amazon.com/dp/B0DMKH8NGL">
<img src="images/book_c64.png"/>
&nbsp;&nbsp;<span class="book-title">Making Games for the C-64</span>
</a>
</li>
</ul>
Expand Down
1 change: 1 addition & 0 deletions src/ide/ui.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1774,6 +1774,7 @@ function updateBooksMenu() {
if (getRootBasePlatform(platform_id) == 'nes') $(".book-nes").addClass("book-active");
else if (getRootBasePlatform(platform_id) == 'vcs') $(".book-vcs").addClass("book-active");
else if (getRootBasePlatform(platform_id) == 'verilog') $(".book-verilog").addClass("book-active");
else if (getRootBasePlatform(platform_id) == 'c64') $(".book-c64").addClass("book-active");
else if (platform.getToolForFilename(getCurrentMainFilename()) == 'sdcc') $(".book-arcade").addClass("book-active");
}

Expand Down

0 comments on commit bb78a4b

Please sign in to comment.