Coder Social home page Coder Social logo

ralphdrake.com's People

Contributors

ralphorama avatar

Watchers

 avatar

ralphdrake.com's Issues

Populate info section by parsing a JSON file

The current info section could be pretty hard to update in the future. As it stands, each entry looks like:

<!-- Notes on SamSchindler.com -->
<tr>
  <!-- Name -->
  <td>&bull; <a href="http://samschindler.com">samschindler.com</a></td>
  <!-- Accomplishments -->
  <td>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam imperdiet eleifend dolor, ut pellentesque neque sagittis a. Vivamus congue felis quis varius tristique. Nulla facilisi. Nulla laoreet, turpis in dapibus iaculis, sem elit sagittis lectus, vitae vehicula nulla odio quis justo. Phasellus quam urna, ultrices scelerisque sapien ut, porta vehicula felis. Nulla vel magna bibendum, tincidunt eros non, dignissim leo. Nulla pretium ex sed consequat rhoncus. Maecenas eu justo quam. Phasellus quis eleifend felis. Nam nec dui id nibh blandit rhoncus et ac nibh. Mauris tempor sit amet libero quis viverra. Suspendisse ut finibus enim.</td>
  <!-- Notes -->
  <td>
    <ul>
      <li>An initial version of the site was created from scratch before switching to the WordPress setup that is active now.</li>
      <li></li>
      <li></li>
    </ul>
  </td>
</tr>

I should write some JavaScript that could parse a JSON file that looks like:

{
    "samschindler.com": {
        "accomplishments": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam imperdiet eleifend dolor, ut pellentesque neque sagittis a. Vivamus congue felis quis varius tristique. Nulla facilisi. Nulla laoreet, turpis in dapibus iaculis, sem elit sagittis lectus, vitae vehicula nulla odio quis justo. Phasellus quam urna, ultrices scelerisque sapien ut, porta vehicula felis. Nulla vel magna bibendum, tincidunt eros non, dignissim leo. Nulla pretium ex sed consequat rhoncus. Maecenas eu justo quam. Phasellus quis eleifend felis. Nam nec dui id nibh blandit rhoncus et ac nibh. Mauris tempor sit amet libero quis viverra. Suspendisse ut finibus enim.",
        "notes": {
            "1": "Here's a note",
            "2": "Here's a second note.",
            "3": "Only 3 notes in this example, but the script should handle an arbitrary number of notes."
        }
    }
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.