SHOW:
|
|
- or go back to the newest paste.
1 | var myProjects = { | |
2 | projects: null, | |
3 | getProjects: function() { | |
4 | jQuery.ajax({ type: "POST", dataType: "JSON", | |
5 | url: "<?=base_url()?>index.php/home/projectsSlider", | |
6 | json: {returned: true}, success: function(data) { | |
7 | if (data.returned === true) { | |
8 | myProjects.projects = data.projects; | |
9 | } | |
10 | } | |
11 | }); | |
12 | }, placeProjects: function() { | |
13 | if (myProjects.projects == null) myProjects.getProjects(); | |
14 | $.each(myProjects.projects, function(i,e){ | |
15 | $("#content").fadeOut(150, function() { | |
16 | - | $(this).replaceWith(projectsSlider(data.projectId, data.projectName, data.startDate, data.finishedDate, data.projectDesc, data.createdFor, data.contributors, data.screenshotURI, data.websiteURL), function() { |
16 | + | $(this).replaceWith(projectsSlider(e.projectId, e.projectName, de.startDate, e.finishedDate, e.projectDesc, e.createdFor, e.contributors, e.screenshotURI, e.websiteURL), function() { |
17 | $(this).fadeIn(150); | |
18 | }); | |
19 | }); | |
20 | } | |
21 | } | |
22 | } |