This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .container { | |
| background-color: #000; | |
| color: #fff; | |
| } | |
| .container h1 { | |
| color: purple; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .container { | |
| background-color: #000; | |
| color: #fff; | |
| h1 { | |
| color: purple; | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $primary-color: #0B5351; | |
| $secondary-color: #6B8F71; | |
| a { | |
| color: $primary-color; | |
| } | |
| a:hover { | |
| color: $secondary-color; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .container { | |
| display: block; | |
| background-color: red; | |
| font-family: sans-serif; | |
| } | |
| ul { | |
| list-style: none; | |
| margin: 0; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .container | |
| display: block | |
| background-color: red | |
| font-family: sans-serif | |
| ul | |
| list-style: none | |
| margin: 0 | |
| ul li |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <script> | |
| $(document).ready( () => { | |
| $.get( '/mediumPosts', (result) => { | |
| for (let i=1; i <= 3; i++) { | |
| let postId = '#post' + i; | |
| let title = 'mediumTitle' + i; | |
| let excerpt = 'mediumExcerpt' + i; | |
| let url = 'mediumUrl' + i; | |
| let postDiv = document.createElement('div'); | |
| postDiv.className = 'post'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <script src="https://code.jquery.com/jquery-3.2.1.min.js" | |
| integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4=" | |
| crossorigin="anonymous"></script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <div id='page-wrapper'> | |
| <div id="intro-section"> | |
| <h1>Medium Blog Posts</h1> | |
| <p>Here is a list of the most recent blog posts from <a href="https://medium.com/@jaltucher" target="_blank">James Altucher</a>.</p> | |
| </div> | |
| <!-- Blog posts get appended here --> | |
| </div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <html> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>Medium Blog Posts with Node.js</title> | |
| </head> | |
| <body> | |
| </body> | |
| </html> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| app.get('/mediumPosts', (request, response) => { | |
| getMediumData( (mediumData) => { | |
| response.send(mediumData); | |
| }); | |
| }); |