From 166b41157a621c62d7e5dfc6e0bfb122afd37de9 Mon Sep 17 00:00:00 2001 From: Vivek Teega Date: Sat, 4 Jul 2020 08:58:20 +0530 Subject: [PATCH] Form submission --- index.html | 88 ++++++++++++++++++++++++++++++++++++++++-------------- 1 file changed, 65 insertions(+), 23 deletions(-) diff --git a/index.html b/index.html index 46b1a2b..6a74c45 100644 --- a/index.html +++ b/index.html @@ -102,7 +102,8 @@

Projects

-

This is some random text which will be replaced with much more creative introduction to the Project List

+

This is some random text which will be replaced with much more creative introduction to the Project + List

@@ -121,7 +122,7 @@

Apply

-
+
@@ -132,24 +133,24 @@
- - + +
- - + +
- - + +
- - + +
- - + +
+
  • Instagram
  • GitHub
  • - + -->
    @@ -9548,10 +9549,41 @@ print 'It took ' + i + ' iterations to sort the deck.'; @@ -9567,15 +9599,24 @@ print 'It took ' + i + ' iterations to sort the deck.'; alert(`Welcome FLO_ID: ${myFloID}`) //App functions.... - loadRIBC() - .then(loadres => { + /*loadRIBC() + .then(loadres => { + + + }) */ + + let ribcAppdata = floCloudAPI.requestObjectData('RIBC', options = { senderIDs: false, receiverID: "FMeiptdJNtYQEtzyYAVNP8fjsDJ1i4EPfE", application: 'RIBC' }) + let ribcGendata = floCloudAPI.requestGeneralData('test') + + Promise.all([ribcAppdata, ribcGendata]).then((values) => { + console.log("Hey I'm here, the promises just got resolved") + console.log(values) let projectDetails = floGlobals.appObjects.RIBC.projectDetails let projectDetailsKeys = Object.keys(projectDetails) - console.log('hey im here') let projectlistContainer = document.getElementById('projectlist') - for(let i=0; i${projectDetails[projectDetailsKeys[i]].projectName}

    ${projectDetails[projectDetailsKeys[i]].projectDescription}

    ` @@ -9583,7 +9624,8 @@ print 'It took ' + i + ' iterations to sort the deck.'; projectlistContainer.innerHTML = projectlistContainer.innerHTML + newHtml } - }) + }); + }).catch(error => console.error(error)) }