diff --git a/package.json b/package.json index 49b0f64..b4c9e0a 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,8 @@ "description": "", "main": "index.js", "scripts": { - "test": "echo \"Error: no test specified\" && exit 1" + "test": "echo \"Error: no test specified\" && exit 1", + "start": "node server.js" }, "author": "", "license": "ISC", diff --git a/public/js/main.js b/public/js/main.js index fcc986a..fe434d7 100644 --- a/public/js/main.js +++ b/public/js/main.js @@ -35,7 +35,7 @@ function renderMatches(matches) { // Create an element that looks like a JSON object for every match li.innerHTML = ` -
{

name: '${match.name}',
url: '${match.url}',
keywords: [${match.keywords.map(keyword => `'${keyword}'`).join(", ")}]
},
+
{

name: '${match.name}',
url: '${match.url}',
keywords: [${match.keywords.map(keyword => `'${keyword}'`).join(", ")}]
},
`; list.appendChild(li); diff --git a/views/index.ejs b/views/index.ejs index 7c68fa4..b2b2c99 100644 --- a/views/index.ejs +++ b/views/index.ejs @@ -60,7 +60,7 @@
  • -
    {

    name: '<%= resources[i].name %>',
    url: >'<%= resources[i].url %>',
    keywords: [<%= resources[i].keywords.map(keyword => `'${keyword}'`).join(", ") %>]
    },
    +
    {

    name: '<%= resources[i].name %>',
    url: target="_blank">'<%= resources[i].url %>',
    keywords: [<%= resources[i].keywords.map(keyword => `'${keyword}'`).join(", ") %>]
    },
  • <% } %> @@ -139,9 +139,9 @@

    Alexisintech

    - - - + + +