src/main/webapp/scripts/newProject/Phagebook.js
//Displays the next project notebook entry
Displays the next project notebook entry
Displays the next project notebook entry
function nextEntry(){
    personID = "clotho.developer.katielewis1";
    var count = 0;
    var current = document.getElementById("entryGoesHere").innerText;
    Clotho.get(personID).then(function(result){
        for(var i=0;i < result.notebookEntries.length;i++){
            Clotho.get(result.notebookEntries[i]).then(function(res){
                if(current == res.entryText && res.id != result.notebookEntries[result.notebookEntries.length-1]){
                    Clotho.get(result.notebookEntries[1+count]).then(function(re){
                        document.getElementById("entryGoesHere").innerText = re.entryText;
                    });
                }
                count++;
            });
        };
    });
}
function nextEntry ( ) { personID = "clotho.developer.katielewis1" ; var count = 0 ; var current = document . getElementById ( "entryGoesHere" ) . innerText ; Clotho . get ( personID ) . then ( function ( result ) { for ( var i = 0 ; i < result . notebookEntries . length ; i ++ ) { Clotho . get ( result . notebookEntries [ i ] ) . then ( function ( res ) { if ( current == res . entryText && res . id != result . notebookEntries [ result . notebookEntries . length - 1 ] ) { Clotho . get ( result . notebookEntries [ 1 + count ] ) . then ( function ( re ) { document . getElementById ( "entryGoesHere" ) . innerText = re . entryText ; } ) ; } count ++ ; } ) ; } ; } ) ; }
Displays the next project notebook entry
Displays the next project notebook entry