<!DOCTYPE html> <!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]--> <!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]--> <!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]--> <!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]--> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title>dato.pr</title> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="description" content="No" /> <!-- Facebook and Twitter integration --> <meta property="og:title" content=""/> <meta property="og:image" content=""/> <meta property="og:url" content=""/> <meta property="og:site_name" content=""/> <meta property="og:description" content=""/> <meta name="twitter:title" content="" /> <meta name="twitter:image" content="" /> <meta name="twitter:url" content="" /> <meta name="twitter:card" content="" /> <!-- Place favicon.ico and apple-touch-icon.png in the root directory --> <link rel="shortcut icon" href="favicon.ico"> <link href="https://fonts.googleapis.com/css?family=Inconsolata:400,700" rel="stylesheet"> <!-- Custom css --> <link rel="stylesheet" href="css/main.css"> <!-- Animate.css --> <link rel="stylesheet" href="css/animate.css"> <!-- Icomoon Icon Fonts--> <link rel="stylesheet" href="css/icomoon.css"> <!-- Simple Line Icons --> <link rel="stylesheet" href="css/simple-line-icons.css"> <!-- Bootstrap --> <link rel="stylesheet" href="css/bootstrap.css"> <!-- Style --> <link rel="stylesheet" href="css/style.css"> <!-- Modernizr JS --> <script src="js/modernizr-2.6.2.min.js"></script> <!-- FOR IE9 below --> <!--[if lt IE 9]> <script src="js/respond.min.js"></script> <![endif]--> <!-- Custom JS --> <script src="sortposts.js"></script> <script src="https://unpkg.com/axios/dist/axios.min.js"></script> <script> var articles; axios.get(`http://localhost:5000/articles`) .then(response => { articles = response.data; for (element of articles) { axios.get(`http://localhost:5000/articles/${element}`) .then(response => { let articlesHeading = document.querySelector("#articles-heading").parentElement; let articleDiv = document.createElement("button"); articleDiv.textContent = response.data; articleDiv.classList.add("m-5", "article-content"); articlesHeading.appendChild(articleDiv); }) .catch(error => console.error(error)); } }) .catch(error => console.error(error)); </script> </head> <body> <header role="banner" id="fh5co-header"> <div class="fluid-container"> <nav class="navbar navbar-default navbar-fixed-top js-fullheight"> <div id="navbar" class="navbar-collapse js-fullheight"> <ul class="nav navbar-nav navbar-left"> <li class="active"><a href="#" data-nav-section="home"><span>Home</span></a></li> <li><a href="#" data-nav-section="services"><span>Services</span></a></li> </ul> </div> </nav> </div> </header> <section id="fh5co-home" data-section="home" style="background-image: url(images/project-5.jpg);"> <div class="gradient"></div> <div class="container"> <div class="text-wrap"> <div class="text-inner"> <div class="row"> <div class="col-md-8 col-md-offset-2 text-center"> <h1 style="color :white;" class="to-animate">dato.pr</h1> <h2 style="color :white;" class="to-animate">"Estudiando lo ambiguo e investigando lo desconocido."</h2> </div> </div> </div> </div> </div> </section> <section id="fh5co-services" data-section="services"> <div class="fh5co-services"> <div class="container"> <div class="row"> <div class="col-md-12 section-heading text-center"> <h2 class="to-animate">Articles</h2> </div> </div> <div class="row"> <div class="core-features"> <div class="grid2"> <div id="rows-parent" class="core-f"> <div class="row" id="articles-row"> <div class="col-md-12"> <div class="core"> <i class="icon-columns to-animate-2"></i> <div class="fh5co-post to-animate"> <h3 id="articles-heading">Articles</h3> </div> </div> </div> </div> </div> </div> </div> </div> <div id="fh5co-counter-section" class="fh5co-counters"> <div class="container"> <div class="row to-animate"> <div class="col-md-3 text-center"> <span class="fh5co-counter js-counter" data-from="0" data-to="3452" data-speed="5000" data-refresh-interval="50"></span> <span class="fh5co-counter-label">Tazas de Café Consumidas</span> </div> <div class="col-md-3 text-center"> <span class="fh5co-counter js-counter" data-from="0" data-to="234" data-speed="5000" data-refresh-interval="50"></span> <span class="fh5co-counter-label">Días sin Luz</span> </div> <div class="col-md-3 text-center"> <span class="fh5co-counter js-counter" data-from="0" data-to="6542" data-speed="5000" data-refresh-interval="50"></span> <span class="fh5co-counter-label">Cosas que Hacer</span> </div> <div class="col-md-3 text-center"> <span class="fh5co-counter js-counter" data-from="0" data-to="0" data-speed="5000" data-refresh-interval="50"></span> <span class="fh5co-counter-label">Tiempo para perder</span> </div> </div> </div> </div> </div> </div> </section> <!-- jQuery --> <script src="js/jquery.min.js"></script> <!-- jQuery Easing --> <script src="js/jquery.easing.1.3.js"></script> <!-- Bootstrap --> <script src="js/bootstrap.min.js"></script> <!-- Waypoints --> <script src="js/jquery.waypoints.min.js"></script> <!-- Stellar Parallax --> <script src="js/jquery.stellar.min.js"></script> <!-- Counters --> <script src="js/jquery.countTo.js"></script> <!-- Main JS (Do not remove) --> <script src="js/main.js"></script> </body> </html>