mirror of
https://github.com/sehugg/8bitworkshop.git
synced 2025-01-02 23:30:21 +00:00
added new book link
This commit is contained in:
parent
37657d458b
commit
9ae40b58c9
14
index.html
14
index.html
@ -287,18 +287,20 @@ canvas.pixelated {
|
||||
<a href="https://twitter.com/8bitworkshop" class="twitter-follow-button" data-show-count="false">Follow @8bitworkshop</a><script async src="//platform.twitter.com/widgets.js" charset="utf-8"></script>
|
||||
</div>
|
||||
<div class="booklink" id="booklink_vcs">
|
||||
<!--
|
||||
<iframe style="width:120px;height:240px;" marginwidth="0" marginheight="0" scrolling="no" frameborder="0"
|
||||
src="http://ws-na.amazon-adsystem.com/widgets/q?ServiceVersion=20070822&OneJS=1&Operation=GetAdHtml&MarketPlace=US&source=ac&ref=tf_til&ad_type=product_link&tracking_id=pzp-20&marketplace=amazon®ion=US&placement=B01N4DSRIZ&asins=B01N4DSRIZ&linkId=67b114b83ce0b13ceaf715ee86833626&show_border=true&link_opens_in_new_window=false&price_color=333333&title_color=0066c0&bg_color=7d6d6d">
|
||||
</iframe>
|
||||
-->
|
||||
<a target="_new" href="https://www.amazon.com/gp/product/1541021304/ref=as_li_qf_sp_asin_il_tl?ie=UTF8&tag=pzp-20&camp=1789&creative=9325&linkCode=as2&creativeASIN=B01N4DSRIZ&linkId=04d39e274c06e6c93b93d20a9a977111">
|
||||
<img src="https://images-na.ssl-images-amazon.com/images/I/5153Bd8oWeL._AC_AC_SR98,95_.jpg" style="float:right"/></a>
|
||||
Want to learn more?<br>
|
||||
Get the new book<br>
|
||||
Get the book<br>
|
||||
<a target="_new" href="https://www.amazon.com/gp/product/1541021304/ref=as_li_qf_sp_asin_il_tl?ie=UTF8&tag=pzp-20&camp=1789&creative=9325&linkCode=as2&creativeASIN=B01N4DSRIZ&linkId=04d39e274c06e6c93b93d20a9a977111">
|
||||
Making Games For The Atari 2600</a>
|
||||
</div>
|
||||
<div class="booklink" id="booklink_arcade">
|
||||
<a target="_new" href="https://www.amazon.com/gp/product/B0713RQL8X/ref=as_li_tl?ie=UTF8&camp=1789&creative=9325&creativeASIN=B0713RQL8X&linkCode=as2&tag=pzp-20&linkId=e8e05e34acf1b54d81aced148a67790c">
|
||||
<img height="72em" src="https://images-na.ssl-images-amazon.com/images/I/51RaEXf%2B%2BNL._SL500_AA130_.jpg" style="float:right"/></a>
|
||||
New book!<br>
|
||||
<a target="_new" href="https://www.amazon.com/gp/product/B0713RQL8X/ref=as_li_tl?ie=UTF8&camp=1789&creative=9325&creativeASIN=B0713RQL8X&linkCode=as2&tag=pzp-20&linkId=e8e05e34acf1b54d81aced148a67790c">
|
||||
Making 8-bit Arcade Games in C</a>
|
||||
</div>
|
||||
|
||||
<div id="welcomeModal" class="modal fade">
|
||||
<div class="modal-dialog modal-lg" role="document">
|
||||
|
@ -44,7 +44,6 @@ var VCSPlatform = function() {
|
||||
|
||||
this.start = function() {
|
||||
Javatari.start();
|
||||
$("#booklink_vcs").show();
|
||||
}
|
||||
|
||||
this.loadROM = function(title, data) {
|
||||
|
@ -1109,6 +1109,13 @@ function initPlatform() {
|
||||
store = new FileStore(localStorage, platform_id + '/');
|
||||
}
|
||||
|
||||
function showBookLink() {
|
||||
if (platform_id == 'vcs')
|
||||
$("#booklink_vcs").show();
|
||||
else
|
||||
$("#booklink_arcade").show();
|
||||
}
|
||||
|
||||
function startPlatform() {
|
||||
initPlatform();
|
||||
if (!PLATFORMS[platform_id]) throw Error("Invalid platform '" + platform_id + "'.");
|
||||
@ -1122,6 +1129,7 @@ function startPlatform() {
|
||||
setupDebugControls();
|
||||
loadPreset(qs['file']);
|
||||
updateSelector();
|
||||
showBookLink();
|
||||
return true;
|
||||
} else {
|
||||
// try to load last file (redirect)
|
||||
|
Loading…
Reference in New Issue
Block a user