Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var myProjects = {
- projects: null,
- getProjects: function() {
- // lets say json works, just add result manually
- myProjects.projects = [
- {
- "projectId": "932713684f9073189ec7b",
- "projectName": "Cloud859Collective",
- "startDate": "April 19th, 2012",
- "finishedDate": "April 25th, 2012",
- "createdFor": "ClasskCreations",
- "contributors": "Mike Grigsby",
- "projectDesc": "This website was created with a friend in mind. His name is Kevin Johnson and he is a rapper. He needed a website that would allow him to host and share his music."
- },
- {
- "projectId": "10599012654f907093714e9",
- "projectName": "Nurbell Studio",
- "startDate": "April 15th, 2012",
- "finishedDate": "April 19th, 2012",
- "createdFor": "Nurbell LLC",
- "contributors": "Mike Grigsby",
- "projectDesc": "This is the page you are currently looking at. This is the official Nurbell homepage. Complete with a frontend and a backend."
- }
- ];
- },
- placeProjects: function() {
- if (myProjects.projects === null) {
- myProjects.getProjects();
- }
- $.each(myProjects.projects, function(i,e){
- $("#content").fadeOut(150, function() {
- $(this).replaceWith(projectsSlider(e.projectId, e.projectName, e.startDate, e.finishedDate, e.projectDesc, e.createdFor, e.contributors, e.screenshotURI, e.websiteURL), function() {
- $(this).fadeIn(150);
- });
- });
- });
- }
- }
- } $("#projects").click(myProjects.placeProjects());
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement