mirror of
https://github.com/sehugg/8bitworkshop.git
synced 2024-11-22 14:33:51 +00:00
removed splash
This commit is contained in:
parent
63bd690a8a
commit
992bf927e0
@ -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">
|
||||
<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">
|
||||
<a target="_new" href="https://www.amazon.com/Making-8-bit-Arcade-Games-C/dp/1545484759">
|
||||
Making 8-bit Arcade Games in C</a>
|
||||
</div>
|
||||
|
||||
|
23
src/ui.js
23
src/ui.js
@ -1037,28 +1037,7 @@ function setupDebugControls(){
|
||||
}
|
||||
|
||||
function showWelcomeMessage() {
|
||||
if (localStorage.getItem("__lastplatform")) {
|
||||
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")) {
|
||||
if (!localStorage.getItem("8bitworkshop.hello")) {
|
||||
// Instance the tour
|
||||
var is_vcs = platform_id == 'vcs';
|
||||
var tour = new Tour({
|
||||
|
@ -57,6 +57,13 @@ var PLATFORM_PARAMS = {
|
||||
data_size: 0x8000,
|
||||
stack_end: 0x0,
|
||||
},
|
||||
'coleco': {
|
||||
code_start: 0x8000,
|
||||
code_size: 0x8000,
|
||||
data_start: 0x6000,
|
||||
data_size: 0x400,
|
||||
stack_end: 0x8000,
|
||||
},
|
||||
};
|
||||
|
||||
var loaded = {}
|
||||
|
Loading…
Reference in New Issue
Block a user