Update to match latest tutorial-navigator updates

This commit is contained in:
Cristian Douce 2014-07-28 16:47:44 -03:00
Родитель 3944008d99
Коммит 676750d8e3
1 изменённых файлов: 6 добавлений и 9 удалений

Просмотреть файл

@ -61,7 +61,7 @@ Hello@@account.userName ? ' ' + account.userName : ''@@! Ready to test drive Aut
apptype: apptype,
nativePlatform: 'native-mobile' === apptype ? platform : '',
hybridPlatform: 'hybrid' === apptype ? platform : '',
clientPlatform: 'spa-api' === apptype ? platform : '',
clientPlatform: 'spa' === apptype ? platform : '',
serverPlatform: 'web' === apptype ? platform : '',
serverApi: 'no-api' === api || !api ? '' : api
});
@ -151,15 +151,12 @@ Hello@@account.userName ? ' ' + account.userName : ''@@! Ready to test drive Aut
};
// pretty printing
tutorial.on('codevisible', prettifyonvisible);
tutorial.on('nativevisible', prettifyonvisible);
tutorial.on('hybridvisible', prettifyonvisible);
tutorial.on('clientvisible', prettifyonvisible);
tutorial.on('serverapivisible', prettifyonvisible);
tutorial.pretty(function() {
return 'function' === typeof window.prettyPrint
? window.prettyPrint()
: null;
});
function prettifyonvisible(visible) {
if (visible && typeof prettyPrint !== 'undefined') prettyPrint();
}
})()
</script>