Skip to content

Commit b9c04e5

Browse files
autoscroll pages to the top on landing
1 parent 05e8b48 commit b9c04e5

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

cache.manifest

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
CACHE MANIFEST
2-
# version 226
2+
# version 227
33

44
# gogole maps files
55
http://maps.google.com/maps/api/js?v=3.10&sensor=false&language=en_us&key=AIzaSyCOqkcNey4CCyG4X0X5qxHAhCgD8g5DwXg

js/app.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ $(window).ready(function() {
339339
var box = $('#chasecarbox');
340340
if(box.is(':hidden')) {
341341
$('.main_screen,#aboutbox,#settingsbox,#embedbox').hide();
342-
box.show();
342+
box.show().scrollTop(0);
343343
}
344344
checkSize();
345345
})
@@ -348,7 +348,7 @@ $(window).ready(function() {
348348
var box = $('#aboutbox');
349349
if(box.is(':hidden')) {
350350
$('.main_screen,#chasecarbox,#settingsbox,#embedbox').hide();
351-
box.show();
351+
box.show().scrollTop(0);
352352
}
353353
checkSize();
354354
})
@@ -357,15 +357,15 @@ $(window).ready(function() {
357357
var box = $('#settingsbox');
358358
if(box.is(':hidden')) {
359359
$('.main_screen,#chasecarbox,#aboutbox,#embedbox').hide();
360-
box.show();
360+
box.show().scrollTop(0);
361361
}
362362
})
363363
.on('click', '.embed', function() {
364364
var e = $(this);
365365
var box = $('#embedbox');
366366
if(box.is(':hidden')) {
367367
$('.main_screen,#chasecarbox,#aboutbox,#settingsbox').hide();
368-
box.show();
368+
box.show().scrollTop(0);
369369
}
370370
checkSize();
371371
});

0 commit comments

Comments
 (0)