Skip to content

Commit

Permalink
Added info to public html page.
Browse files Browse the repository at this point in the history
  • Loading branch information
maiquelcraash committed Apr 9, 2018
1 parent f655d4a commit f156b75
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
4 changes: 2 additions & 2 deletions KeepCalm Chrome Extension/manifest.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"manifest_version": 2,
"name": "KeepCalm Beta 0.8",
"name": "KeepCalm Beta 0.9",
"description": "Detecção de Agressividade",
"version": "0.8",
"version": "0.9",
"browser_action": {
"default_popup": "popup.html",
"default_title": "KeepCalm",
Expand Down
2 changes: 2 additions & 0 deletions main-services/classifier.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,12 @@

activityLogController.updateActivity(activityID, feedback, (err) => {
if (err) {
console.error("Error to handle activity: " + activityID);
res.status(400);
res.json(err);
}
else {
console.log("Feedback added to activity: " + activityID);
res.status(201);
res.json({"Status": "OK"});
}
Expand Down
7 changes: 7 additions & 0 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,13 @@
<textarea type="text" id="text" class="form-control" aria-label="With textarea"></textarea>
</div>
<button id="clear" type="button" class="btn btn-dark">Limpar</button>
<br><br>
<div>
<p class="text-center">Você precisa estar utilizando o Google Chrome com a extensão KeepCalm instalada.</p>
<a target="_blank" href="https://chrome.google.com/webstore/detail/keepcalm-beta-09/ofpiboidgabckgfdckeafkpeifcfjfib?hl=pt-BR">
<button class="btn btn-info btn-sm">Ainda não instalei o KeepCalm</button>
</a>
</div>
</div>
</section>
</body>
Expand Down

0 comments on commit f156b75

Please sign in to comment.