Skip to content

Instantly share code, notes, and snippets.

@basilche
Last active June 4, 2020 01:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save basilche/66393623d4e836c809bfd1236c41515d to your computer and use it in GitHub Desktop.
Save basilche/66393623d4e836c809bfd1236c41515d to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Text Processing</title>
<!-- Import our css styles -->
<link rel="stylesheet" href="styles.css">
</head>
<body>
<div class="main">
<h2 class="main-header">Comment text analysis</h2>
<section class="main-input-comment">
<label for="comment">Write your comment here:</label>
<textarea
name="comment"
id="comment"
class="main-comment-area"
placeholder="Your comment..."
>
</textarea>
<button class="main-analyze-button" onclick="onAnalyzeButtonClick()">Analyze...</button>
</section>
<section class="main-result">
<p id="main-result-block" class="main-result-block invisible">
<span>Result:</span>
<span id="result"></span>
</p>
</section>
</div>
<!-- Import axios library -->
<script src="https://unpkg.com/axios/dist/axios.min.js"></script>
<!-- Querystring library -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/qs/6.7.0/qs.min.js"></script>
<!-- Import our JavaScript file -->
<script src="text-processing.js"></script>
</body>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment