create account

[ E-learning Js 0.1 ] Release 0.1.3 - alpha 1 by cunigarro

View this thread on: hive.blogpeakd.comecency.com
· @cunigarro · (edited)
$1.06
[ E-learning Js 0.1 ] Release 0.1.3 - alpha 1
<center>![logo.png](https://i.postimg.cc/jSj7LDn2/logo.png)</center>

E-learning library was created with the promise to help to create activities for e-learning courses that can return data about score and time, and improve the experience of evaluation from the virtuality of the class room.

I'm back to this project and I hope to evolve it and get a stable library. I have great plans for this project and Steem. You can follow development  in the next link: [Link to Project](https://github.com/cunigarro/e-learning-js).

This release was based of three improvements:

1. ES Lint audit based on Airbnb Javascript recommendations
2. Improve design qualities.
3. Better use for import in css and javascript.

# 1. ES Lint audit based on Airbnb Javascript recommendations

<div class="pull-left">
Airbnb has an excellent <a href="https://github.com/airbnb/javascript">style guide for javascript</a> and I adde this audit to this project with Es Lint. Mainly is the implementation of the last standard for javascript, in this case Ecmascript 2018 (ES8). Now you can use last javascript standard (ES8): arrow functions, destructuring, const, let, literal templates, import, export and classes with the audit of airbnb.

It will improve the understanding for code and let you to join to the project following some rules to make the code more readable for all contributors.
</div>

<div class="pull-right">
https://i.postimg.cc/SKmMSW0T/Screen-Shot-2019-02-01-at-10-09-19-PM.png
</div>

<hr>
<div class="clearfix">
To ES Lint audit run the next commands in the root to the project:

1. Install dependencies `npm install`.
2. Run `eslint ./src/js/activities/*.js`
3. Review problems and solve it.
</div>


# 2. Improve design qualities

I improve design qualities suggested in the before post about e-learning js here in steemit.

* Show message when click on Check without set an answer.

[![fix-it.png](https://i.postimg.cc/prV9xvgm/fix-it.png)](https://postimg.cc/mzqZNvZ4)

<hr>

<center>
[![fix-1-2.gif](https://i.postimg.cc/YC2w39QG/fix-1-2.gif)](https://postimg.cc/kBHZM71q)
</center>

* The design is broken when the answer is wrong.

[![fix-it-2.png](https://i.postimg.cc/0jtzy3sc/fix-it-2.png)](https://postimg.cc/V0Cf7K5C)

<center>
[![fix-2-1.gif](https://i.postimg.cc/cCGp84sJ/fix-2-1.gif)](https://postimg.cc/BLNYr3PW)
</center>

<hr>

* The crosses aren't on the same line height as the text.

[![fix-it-4.png](https://i.postimg.cc/vBTFdS0Q/fix-it-4.png)](https://postimg.cc/TyzHVQ8S)

<hr>

<center>
[![fix-3.gif](https://i.postimg.cc/Y01h19YD/fix-3.gif)](https://postimg.cc/D4wvh7C1)
</center>

*  I can add multiple answers in a drop and drap that's weird. And the line height is not the same when I have an answer or no answer at all. The text inside the yellow box is not centered.

[![fix-it-5.png](https://i.postimg.cc/cCtpvtq2/fix-it-5.png)](https://postimg.cc/n9ZR5zhG)

<hr>

<center>
[![fix-4.gif](https://i.postimg.cc/NjVBjtrK/fix-4.gif)](https://postimg.cc/sMptTtmz)
</center>

*  If I add images in the same field I can't go back or reset until I check.

[![fix-it-6.png](https://i.postimg.cc/Ls66nDxW/fix-it-6.png)](https://postimg.cc/yDtzGm4h)

<hr>

<center>
[![fix-6.gif](https://i.postimg.cc/1zZ7H7kW/fix-6.gif)](https://postimg.cc/v43v8hH9)
</center>

<hr>

Finally, you can validate this fixes in the next [link](https://cunigarro.github.io/e-learning-js/), where you can interact with the library.

# 3. Better use for import in css and javascript

This is a simple fix but  you can now call the library with import in js and css, with the next commands:

**Common js:** `require('e-learning-js');`

**Import ES6 js:** `import 'e-learning-js';`

**Import sass (css):** `@import '~e-learning-js/dist/e-learning-js.min.css';`

<hr>

**Proof of Work Done**
Github account: [https://github.com/cunigarro](https://github.com/cunigarro)
Pull Request: [link to Pull Request](https://github.com/cunigarro/e-learning-js/pull/13)

<hr/>

**See you soon Steemiants** ✋

<hr/>
👍  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and 3 others
properties (23)
authorcunigarro
permlinke-learning-js-0-1-release-0-1-3-alpha-1
categoryutopian-io
json_metadata{"tags":["utopian-io","development","e-learning","javascript"],"image":["https://i.postimg.cc/jSj7LDn2/logo.png","https://i.postimg.cc/SKmMSW0T/Screen-Shot-2019-02-01-at-10-09-19-PM.png","https://i.postimg.cc/prV9xvgm/fix-it.png","https://i.postimg.cc/YC2w39QG/fix-1-2.gif","https://i.postimg.cc/0jtzy3sc/fix-it-2.png","https://i.postimg.cc/cCGp84sJ/fix-2-1.gif","https://i.postimg.cc/vBTFdS0Q/fix-it-4.png","https://i.postimg.cc/Y01h19YD/fix-3.gif","https://i.postimg.cc/cCtpvtq2/fix-it-5.png","https://i.postimg.cc/NjVBjtrK/fix-4.gif","https://i.postimg.cc/Ls66nDxW/fix-it-6.png","https://i.postimg.cc/1zZ7H7kW/fix-6.gif"],"links":["https://github.com/cunigarro/e-learning-js","https://github.com/airbnb/javascript","https://postimg.cc/mzqZNvZ4","https://postimg.cc/kBHZM71q","https://postimg.cc/V0Cf7K5C","https://postimg.cc/BLNYr3PW","https://postimg.cc/TyzHVQ8S","https://postimg.cc/D4wvh7C1","https://postimg.cc/n9ZR5zhG","https://postimg.cc/sMptTtmz","https://postimg.cc/yDtzGm4h","https://postimg.cc/v43v8hH9","https://cunigarro.github.io/e-learning-js/","https://github.com/cunigarro","https://github.com/cunigarro/e-learning-js/pull/13"],"app":"steemit/0.1","format":"markdown"}
created2019-02-02 04:51:03
last_update2019-02-02 04:51:51
depth0
children6
last_payout2019-02-09 04:51:03
cashout_time1969-12-31 23:59:59
total_payout_value0.826 HBD
curator_payout_value0.234 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length3,997
author_reputation42,847,167,243,710
root_title"[ E-learning Js 0.1 ] Release 0.1.3 - alpha 1"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id79,284,990
net_rshares2,251,862,992,165
author_curate_reward""
vote details (67)
@introduce.bot ·
✅ Enjoy the vote! For more amazing content, please follow @themadcurator!
properties (22)
authorintroduce.bot
permlinkintroduce-bot-re-cunigarroe-learning-js-0-1-release-0-1-3-alpha-1
categoryutopian-io
json_metadata""
created2019-02-02 05:06:21
last_update2019-02-02 05:06:21
depth1
children0
last_payout2019-02-09 05:06:21
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length73
author_reputation20,568,707,332,317
root_title"[ E-learning Js 0.1 ] Release 0.1.3 - alpha 1"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id79,285,423
net_rshares0
@justyy · (edited)
$13.45
Thank you for your contribution.

1. magik numbers such as `tempPage <= 9`
2. You might want to let users define these data in a JSON/XML instead of `main.js`
3. you probably could use some librarys/frameworks  to make your Javascript code such as `document.getQuerySelector` or `.style.display=` shorter.
4. some code duplications (could be refactored) for example:
```
const questionsHtml = document.querySelector(options.questionsHtml);
const resetButton = document.querySelector(options.resetButton);
...
```

 

Your contribution has been evaluated according to [Utopian policies and guidelines](https://join.utopian.io/guidelines), as well as a predefined set of questions pertaining to the category.

To view those questions and the relevant answers related to your post, [click here](https://review.utopian.io/result/3/2-2-2-2-0-1-2-).

---- 
Need help? Chat with us on [Discord](https://discord.gg/uTyJkNm).

[[utopian-moderator]](https://join.utopian.io/)
👍  , , , , , , , , , , , , , , , , , , , , , ,
properties (23)
authorjustyy
permlinkre-cunigarro-e-learning-js-0-1-release-0-1-3-alpha-1-20190202t204433872z
categoryutopian-io
json_metadata{"tags":["utopian-io"],"links":["https://join.utopian.io/guidelines","https://review.utopian.io/result/3/2-2-2-2-0-1-2-","https://discord.gg/uTyJkNm","https://join.utopian.io/"],"app":"steemit/0.1"}
created2019-02-02 20:44:36
last_update2019-02-02 20:46:15
depth1
children2
last_payout2019-02-09 20:44:36
cashout_time1969-12-31 23:59:59
total_payout_value10.170 HBD
curator_payout_value3.278 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length965
author_reputation280,616,224,641,976
root_title"[ E-learning Js 0.1 ] Release 0.1.3 - alpha 1"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id79,314,312
net_rshares27,778,140,111,030
author_curate_reward""
vote details (23)
@cunigarro · (edited)
Thanks [@justyy](https://steemit.com/@justyy) for your recomendations, I will take this improvements in the project dashboard in github.
properties (22)
authorcunigarro
permlinkcunigarro-re-justyy-re-cunigarro-e-learning-js-0-1-release-0-1-3-alpha-1-20190203t185433958z
categoryutopian-io
json_metadata{"app":"partiko","client":"android"}
created2019-02-03 18:54:33
last_update2019-02-03 18:54:57
depth2
children0
last_payout2019-02-10 18:54:33
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length136
author_reputation42,847,167,243,710
root_title"[ E-learning Js 0.1 ] Release 0.1.3 - alpha 1"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id79,352,204
net_rshares0
@utopian-io ·
Thank you for your review, @justyy! Keep up the good work!
properties (22)
authorutopian-io
permlinkre-re-cunigarro-e-learning-js-0-1-release-0-1-3-alpha-1-20190202t204433872z-20190205t161611z
categoryutopian-io
json_metadata"{"app": "beem/0.20.17"}"
created2019-02-05 16:16:12
last_update2019-02-05 16:16:12
depth2
children0
last_payout2019-02-12 16:16:12
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length58
author_reputation152,955,367,999,756
root_title"[ E-learning Js 0.1 ] Release 0.1.3 - alpha 1"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id79,439,038
net_rshares0
@steem-ua ·
#### Hi @cunigarro!

Your post was upvoted by @steem-ua, new Steem dApp, using UserAuthority for algorithmic post curation!
Your post is eligible for our upvote, thanks to our collaboration with @utopian-io!
**Feel free to join our [@steem-ua Discord server](https://discord.gg/KpBNYGz)**
properties (22)
authorsteem-ua
permlinkre-e-learning-js-0-1-release-0-1-3-alpha-1-20190204t115723z
categoryutopian-io
json_metadata"{"app": "beem/0.20.18"}"
created2019-02-04 11:57:24
last_update2019-02-04 11:57:24
depth1
children0
last_payout2019-02-11 11:57:24
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length288
author_reputation23,214,230,978,060
root_title"[ E-learning Js 0.1 ] Release 0.1.3 - alpha 1"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id79,380,785
net_rshares0
@steemitboard ·
Congratulations @cunigarro! You have completed the following achievement on the Steem blockchain and have been rewarded with new badge(s) :

<table><tr><td>https://steemitimages.com/60x70/http://steemitboard.com/@cunigarro/posts.png?201902020639</td><td>You published more than 20 posts. Your next target is to reach 30 posts.</td></tr>
</table>

<sub>_[Click here to view your Board](https://steemitboard.com/@cunigarro)_</sub>
<sub>_If you no longer want to receive notifications, reply to this comment with the word_ `STOP`</sub>


To support your work, I also upvoted your post!


> Support [SteemitBoard's project](https://steemit.com/@steemitboard)! **[Vote for its witness](https://v2.steemconnect.com/sign/account-witness-vote?witness=steemitboard&approve=1)** and **get one more award**!
properties (22)
authorsteemitboard
permlinksteemitboard-notify-cunigarro-20190202t073029000z
categoryutopian-io
json_metadata{"image":["https://steemitboard.com/img/notify.png"]}
created2019-02-02 07:30:30
last_update2019-02-02 07:30:30
depth1
children0
last_payout2019-02-09 07:30:30
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length796
author_reputation38,975,615,169,260
root_title"[ E-learning Js 0.1 ] Release 0.1.3 - alpha 1"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id79,289,181
net_rshares0