Advertisement
Guest User

Untitled

a guest
Jul 30th, 2015
215
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. var bio = {
  3.  
  4.     "Name":"Ricky Arora",
  5.     "Role": "FRONTEND WEB DEVELOPER",
  6.     "welcomeMessage": "Hi, welcome to my website. Here you will find a copy of my resume, link to my Github account, projects and person tools I use.",
  7.     "Skills": ["Bootstrap", "HTML", "Javascript", "CSS", "jQuery", "HTML5", "bug Test"] ,
  8.     "Contact": {
  9.         "Cellphone": "fakenumber",
  10.         "emailAddress": "professional@email.com",
  11.         "twitter": "Twitter@twitter.com",
  12.         "Location": "****,Ontario,Canada.",
  13.         "Github": "Link to github",
  14.         "Twitter": "Link to twitter",
  15.         "Location": "XYZ,Ontario",
  16.     }
  17.  
  18.  
  19. };
  20.  
  21. var formattedName = HTMLheaderName.replace("%data%", bio.Name);
  22. var formattedRole = HTMLheaderRole.replace("%data%", "FRONTEND WEBDEVELOPER");
  23.  
  24. $("#main").prepend(formattedRole);
  25. $("#main").prepend(formattedName);
  26.  
  27.  
  28.  
  29. var projects = {
  30.     "Projects": [
  31.         {
  32.             "Title": "Portfolio Website",
  33.             "Site": "RickyArora.com",
  34.             "Dates Worked": "May 18-23",
  35.             "description": "Built the basis of my portfolio website using bootstrap, html5 & css.",
  36.         "images": [
  37.         "put pictures here later."]
  38.  
  39.         }
  40.     ]
  41. };
  42.  
  43.  
  44. var work = {
  45.     "jobs": [
  46.     {
  47.         "employer": "JH Computers",
  48.         "title": "Computer Technician",
  49.         "dates": "March 2015 - July 2015 (Co-Op Position)",
  50.         "description": "Repaired Computers by testing hard drives, testing all the hardware, installing programs and reformatting Computers. Also assisted with customer service.",
  51.         "Location": "Brampton,Ontario,Canada"
  52.         }
  53.     ]
  54. }
  55.  
  56. /* work.jobPos = "Computer Technician"
  57.  
  58. work.jobEmployer = "*******"
  59.  
  60. work.jobYear = "Feb 2015 - July 2015 (CO-OP Position)"
  61.  
  62. work.jobCity = "******"
  63.  
  64. work.jobDescript = "Repaired computer hardware, reinstalled OS's, dealt with customers."
  65.  
  66. */
  67.  
  68. var education = {
  69.  
  70.     "schools" : [
  71.         {
  72.             "name": "Private School",
  73.             "city": "Private City",
  74.             "credential": "highschooldiploma"
  75.         },
  76.     ],
  77.         "onlineCourses" : [
  78.         {
  79.             "title": "Intro to HTML & CSS",
  80.             "school": "Udacity",
  81.             "year": "2015",
  82.             "url": "do later"
  83.         }
  84.     ]  
  85. };
  86.  
  87.  
  88. if (bio.Skills.length > 0) {
  89.     $("#header").append(HTMLskillsStart);
  90.     var formattedSkill = HTMLskills.replace("%data%", bio.Skills[0]);
  91.     $("#skills").append(formattedSkill);
  92.  
  93.     $("#skills").append(formattedSkill);
  94.     formattedSkill = HTMLskills.replace("%data%", bio.Skills[1]);
  95.  
  96.     $("#skills").append(formattedSkill);
  97.     formattedSkill = HTMLskills.replace("%data%", bio.Skills[2]);
  98.  
  99.     $("#skills").append(formattedSkill);
  100.     formattedSkill = HTMLskills.replace("%data%", bio.Skills[3]);
  101.  
  102.     $("#skills").append(formattedSkill);
  103.     formattedSkill = HTMLskills.replace("%data%", bio.Skills[4]);
  104.  
  105.     $("#skills").append(formattedSkill);
  106.     formattedSkill = HTMLskills.replace("%data%", bio.Skills[5]);
  107.  
  108.     $("#skills").append(formattedSkill);
  109.     formattedSkill = HTMLskills.replace("%data%", bio.Skills[6]);
  110.     }
  111.  
  112.  
  113. for (job in work.jobs) {
  114.     $("#workExperience").append(HTMLworkStart);
  115.  
  116.     var formattedEmployer = HTMLworkEmployer.replace("%data%", work.jobs[job].employer);
  117.     var formattedTitle = HTMLworkTitle.replace("%data%", work.jobs[job].title)
  118.     var formattedEmployerTitle = formattedEmployer + formattedTitle;
  119.     var formattedDate = HTMLworkDates.replace("%data%", work.jobs[job].dates);
  120.     var formattedDescription = HTMLworkDescription.replace("%data%", work.jobs[job].description);
  121.     var formattedLocation = HTMLworkLocation.replace("%data%", work.jobs[job].Location);
  122.     var formattedDateDescription = formattedLocation + formattedDate + formattedDescription;
  123.     $(".work-entry:last").append(
  124.         formattedEmployerTitle);
  125.     $(".work-entry:last").append(
  126.         formattedDateDescription);
  127. };
  128.  
  129. var displayWork = function(){
  130.  
  131.     for (job in work.jobs) {
  132.     $("#workExperience").append(HTMLworkStart);
  133.  
  134.     var formattedEmployer = HTMLworkEmployer.replace("%data%", work.jobs[job].employer);
  135.     var formattedTitle = HTMLworkTitle.replace("%data%", work.jobs[job].title)
  136.     var formattedEmployerTitle = formattedEmployer + formattedTitle;
  137.     var formattedDate = HTMLworkDates.replace("%data%", work.jobs[job].dates);
  138.     var formattedDescription = HTMLworkDescription.replace("%data%", work.jobs[job].description);
  139.     var formattedLocation = HTMLworkLocation.replace("%data%", work.jobs[job].Location);
  140.     var formattedDateDescription = formattedLocation + formattedDate + formattedDescription;
  141.     $(".work-entry:last").append(
  142.         formattedEmployerTitle);
  143.     $(".work-entry:last").append(
  144.         formattedDateDescription);
  145. }
  146.  
  147.  
  148. }
  149.  
  150. //displayWork();
  151.  
  152. $(document).click(function(loc) {
  153.  
  154.     var x = loc.pageX;
  155.     var y = loc.pageY;
  156.  
  157.     logClicks(x,y);
  158.  
  159. });
  160.  
  161.  
  162.  
  163. name = HTMLheaderName
  164.  
  165. function inName(name) {
  166.     name = name.trim.split(" ");
  167.     console.log(name);
  168.     name[1] = name[1].toUpperCase();
  169.     name[0] = name[0].slice(0,1).toUppercase + name[0].slice(1).toLowerCase();
  170.  
  171.     return name[0] +" "+name[1];
  172.  
  173. }
  174.  
  175. $('#main').prepend(internationalizeButton)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement