progress
This commit is contained in:
parent
7e182b8beb
commit
550e89daef
1 changed files with 11 additions and 7 deletions
|
@ -36,14 +36,18 @@ page.open(url, function (status) {
|
||||||
};
|
};
|
||||||
|
|
||||||
page.evaluate(function() {
|
page.evaluate(function() {
|
||||||
$(document).on(Metamaps.JIT.events.animationDone, function(){
|
|
||||||
$('.upperLeftUI, .upperRightUI, .mapControls, .infoAndHelp, .uv-icon, .footer').hide();
|
$(document).ready(function () {
|
||||||
Metamaps.JIT.zoomExtents();
|
//$(document).on(Metamaps.JIT.events.animationDone, function() {
|
||||||
if (typeof window.callPhantom === 'function') {
|
setTimeout(function(){
|
||||||
window.callPhantom();
|
$('.upperLeftUI, .upperRightUI, .mapControls, .infoAndHelp, .uv-icon, .footer').hide();
|
||||||
}
|
Metamaps.JIT.zoomExtents();
|
||||||
});//document.on animationDone
|
window.callPhantom();
|
||||||
|
}, 5000);
|
||||||
|
});
|
||||||
|
|
||||||
});//page.evaluate
|
});//page.evaluate
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
//failed to load
|
//failed to load
|
||||||
phantom.exit();
|
phantom.exit();
|
||||||
|
|
Loading…
Reference in a new issue