Thursday, March 28, 2019

Removing all data from HTML

JOB PURPOSE

I want to remove all hardcoded data from the  HTML file and have that all in the json file. Most of the data is now in JSON but one last element is currently hardcoded into the HTML file. The title of the HTML with "Should I move to Chiang Mai - really - sure???"

in the index.html file there is the following code
<div class ="subject-question">
<p id="question">Should I move to Chiang Mai - really - sure???</p>
</div>


This relates to the following text 




JOB REQUEST

  1. Link the infoshot.js file to the new json file changSubject.json 
  2. The only difference between the files changSubject.json  and chang.json is one last object with a column ID of 100
  3. Please use that last object  to populate the <p id= "question"> in the html file with the data from the "linkName"column the data in the file currently reads " "Now I Have a great new Dynamic question"
NEW OBJECT IS BELOW



RESOURCES

Files now on github here https://github.com/jimmyyukka/Infoshot

FILE DESCRIPTION 

 /data/chang.json                  {Current data file} 
/data/changSubject.json      {Proposed new datafile} 
/index.html                          {main html} 
/infoshot.js                           {javascript file} 
/style.css                               {main stylesheet}


WH

No comments:

Post a Comment