Commit f4b247d2 by Valera Rozuvan Committed by Vasyl Nakvasiuk

Refactoring, documenting, moving all HTML generation to template.

parent 97855bb4
.input-cloud { .input-cloud {
margin: 5px; margin: 5px;
} }
.result_cloud_section {
display: none;
width: 0px;
height: 0px;
}
.result_cloud_section.active {
display: block;
width: 635px;
height: auto;
margin-left: auto;
margin-right: auto;
}
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
data-ajax-url="${ajax_url}" data-ajax-url="${ajax_url}"
> >
<section id="input-cloud-section"> <section class="input_cloud_section">
% for row in range(num_inputs): % for row in range(num_inputs):
<input <input
class="input-cloud" class="input-cloud"
...@@ -19,7 +19,10 @@ ...@@ -19,7 +19,10 @@
</section> </section>
</section> </section>
<section id="result-cloud-section" style="display: none;"> <section id="result_cloud_section_${element_id}" class="result_cloud_section">
<h3>Your words: <span class="your_words"></span></h3>
<h3>Total number of words: <span class="total_num_words"></span></h3>
<div class="word_cloud"></div>
</section> </section>
<!-- Hidden field to read configuration JSON from. --> <!-- Hidden field to read configuration JSON from. -->
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment