HTML and CSS Reference
In-Depth Information
$(document).ready(function() {
tasksController.init($('#taskPage'), function() {
tasksController.loadTasks();
});
});
with this:
if (window.indexedDB) {
$.getScript( "scripts/tasks-indexeddb.js" )
.done(function( script, textStatus ) {
$(document).ready(function() {
tasksController.init($('#taskPage'), function() {
tasksController.loadTasks();
});
})
})
.fail(function( jqxhr, settings, exception ) {
console.log( 'Failed to load indexed db script' );
});
} else if (window.localStorage) {
$.getScript( "scripts/tasks-webstorage.js" )
.done(function( script, textStatus ) {
$(document).ready(function() {
tasksController.init($('#taskPage'), function() {
tasksController.loadTasks();
});
})
})
.fail(function( jqxhr, settings, exception ) {
console.log( 'Failed to load web storage script' );
});
}
Search WWH ::




Custom Search