1
0
mirror of https://github.com/sehugg/8bitworkshop.git synced 2024-11-26 10:49:17 +00:00

removed splash

This commit is contained in:
Steven Hugg 2017-05-01 07:37:48 -04:00
parent 63bd690a8a
commit 992bf927e0
3 changed files with 9 additions and 23 deletions

View File

@ -96,7 +96,7 @@ body {
<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"> <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> <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> 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"> <a target="_new" href="https://www.amazon.com/Making-8-bit-Arcade-Games-C/dp/1545484759">
Making 8-bit Arcade Games in C</a> Making 8-bit Arcade Games in C</a>
</div> </div>

View File

@ -1037,28 +1037,7 @@ function setupDebugControls(){
} }
function showWelcomeMessage() { function showWelcomeMessage() {
if (localStorage.getItem("__lastplatform")) { if (!localStorage.getItem("8bitworkshop.hello")) {
localStorage.setItem('8bitworkshop.splash', true);
}
if (!localStorage.getItem("8bitworkshop.splash") && qs['redir']) {
// OH BOOTSTRAP YOU ARE SO AWESOME A+++++
// https://stackoverflow.com/questions/28270333/how-do-i-know-which-button-is-click-when-bootstrap-modal-closes
// https://github.com/jschr/bootstrap-modal/issues/224
var whichPlatform;
$('#welcomeModal button').on('click', function(event) {
whichPlatform = $(event.target).data('platform');
});
$('#welcomeModal img').on('click', function(event) {
whichPlatform = $(event.target).data('platform');
});
$('#welcomeModal').on('hidden.bs.modal', function (event) {
localStorage.setItem('8bitworkshop.splash', true);
if (whichPlatform && whichPlatform != qs['platform']) {
window.location = "?platform=" + whichPlatform;
}
}).modal('show');
}
else if (!localStorage.getItem("8bitworkshop.hello")) {
// Instance the tour // Instance the tour
var is_vcs = platform_id == 'vcs'; var is_vcs = platform_id == 'vcs';
var tour = new Tour({ var tour = new Tour({

View File

@ -57,6 +57,13 @@ var PLATFORM_PARAMS = {
data_size: 0x8000, data_size: 0x8000,
stack_end: 0x0, stack_end: 0x0,
}, },
'coleco': {
code_start: 0x8000,
code_size: 0x8000,
data_start: 0x6000,
data_size: 0x400,
stack_end: 0x8000,
},
}; };
var loaded = {} var loaded = {}