kamlekar / HTML-Skinning-Boilerplate

A Boilerplate/Scaffold to do HTML skinning faster for Websites.
15 stars 6 forks source link

[Need help] Creating html.js file #12

Closed kamlekar closed 8 years ago

kamlekar commented 8 years ago
<div class="html-click" data-html-class="btn" data-html-target=".className"></div>

As shown in the above example element, I am trying to write a small JS library.

Explanation:

kamlekar commented 8 years ago

Check the designed Code structure flow here.

kamlekar commented 8 years ago

I think this is not possible to do with click events as I need to track the clicked element when clicked on document also. For this, I think I need global variables. This concept will work if we consider mousedown and mouseup events instead of click event. We should program manually the clicking behaviour on mousedown and mouseup events.

kamlekar commented 8 years ago

Somehow, completed it myself :D