📜 ⬆️ ⬇️

Internet voting on html

Everyone is already aware that the elections to these presidents and your thoughts will be coming soon. The election campaign promises to be harsh and merciless. No, this is not a campaign. This is a statement of fact.
image
TV and the Internet is already replete with official party ratings. I, as well as probably, are worried about the integrity of the upcoming elections. How to find out what is the real balance of power? The official survey can be trusted, but you can not. Check still would not hurt.

For this we need a truly independent survey. The possibilities of the Internet give us this opportunity.

So the idea of ​​the site.
')
Primary requirements:

Perhaps the most important requirement is the speed of development, it dictates how our project will look like. Solutions for PHP, Ruby, Python, and maybe even ASP.NET are certainly good for teams that have time and money. In our case, the site is being made on pure enthusiasm in our free time (and there is very little time).
Therefore, html was chosen as a platform. Yes, simple html. Without any server code.

Idea


Voting will be carried out through social network widgets. They are very well suited for this, as they allow you to count the number of clicks, automatically perform authorization in the social network and help us promote the site.
image
User comments can be made via the “Comments” widget. It is even easier.

Implementation


The idea is very simple, all that is required for its implementation is just a layout and a bit of client javascript.
HTML5 Boilerplate, 960grid, and yepnope were chosen as an asynchronous script download as the starting point.
The domain of the project was chosen rosizber.com
The location for the site is github. Yes! The project is completely open. In addition, better free hosting for static content than github we can not find.

What happened


The result of labor can be seen here http://rosizber.com/
Code here: https://github.com/codeninja-ru/rosizbercom
The voting procedure is extremely simple, the visitor enters the site and clicks the desired widget under the party of interest.

The voting results can be seen simply by comparing the numbers on the counters of different parties. Everything is very simple.

What's next?


Since the announcement of the project on Twitter. 4 people joined the githaba project, and the total number of developers is currently 5 people. Everyone made their own contribution, thank you so much!

Website: http://rosizber.com/
Anyone who wants to help in the development of the project: https://github.com/codeninja-ru/rosizbercom
Framework and libraries:
HTML5 Boilerplate http://html5boilerplate.com/
960 Grid http://960.gs/
yepnope http://yepnopejs.com/

Source: https://habr.com/ru/post/130920/


All Articles