Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var myProjects = {
- projects: null,
- getProjects: function() {
- jQuery.ajax({ type: "POST", dataType: "JSON",
- url: "<?=base_url()?>index.php/home/projectsSlider",
- json: {returned: true}, success: function(data) {
- if (data.returned === true) {
- myProjects.projects = data.projects;
- }
- }
- });
- }, placeProjects: function() {
- if (myProjects.projects == null) myProjects.getProjects();
- $.each(myProjects.projects, function(i,e){
- $("#content").fadeOut(150, function() {
- $(this).replaceWith(projectsSlider(data.projectId, data.projectName, data.startDate, data.finishedDate, data.projectDesc, data.createdFor, data.contributors, data.screenshotURI, data.websiteURL), function() {
- $(this).fadeIn(150);
- });
- });
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement