Advertisement
Guest User

Untitled

a guest
Mar 23rd, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. container = {}
  2. container.fruit = ['apple','orange','mango','banana','pineappel'];
  3.  
  4.  
  5. setTimeout(function(){
  6.  
  7. if(container.fruit.length != $(".allfruit").length)
  8. {
  9. //code
  10. }
  11.  
  12. },1500)
  13.  
  14. function createSubFolder(foldernaam)
  15. {
  16.  
  17. var body = new Object();
  18. body.title = foldernaam;
  19. body.parents = [{'id': resp.id}];
  20. body.mimeType = "application/vnd.google-apps.folder";
  21.  
  22. console.log(body)
  23. var request = gapi.client.request({
  24. 'path': '/drive/v2/files',
  25. 'method': 'POST',
  26. 'body': JSON.stringify(body)
  27. });
  28. request.execute(function(resp) { });
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement