Demo of pure code wiring with Html5+canvas+jquery implementation

Source: Internet
Author: User

The front-end has been to make the Mavericks timid field, but once involved, technology is naturally also rubbing against the upward, the purse is naturally bingo.

However, in this thousands of worlds together with the information of the Times, but still in our development process there is always a lost technical point is difficult to find suitable for their own demo, which led to the discontent and complaints of the cows and cows, so bitter from the back end to the front-end of the expedition, embarked on a long life road.

With the wide range of our business applications, and the many gorgeous front-end art and products, we then share a draft version of the demo with Html5+canvas, hoping to help the front-line developers, as well as provide some suggestions and a lot of forgiveness.

The first feature point involves four button actions such as reset, fallback, value (Getpair), Answer (Savepair).

1, reset button, as the name implies to clear so operation action, empty the function of the artboard;

2, the fallback button, that is, to return to the meaning of the previous step, until all the answers are cleared;

3, take the value (Getpair), the case is as follows:

650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M01/88/7D/wKioL1f59f6TRBJ1AACeUXFgjA0000.jpg-wh_500x0-wm_3 -wmp_4-s_539831629.jpg "title=" line1.jpg "alt=" Wkiol1f59f6trbj1aaceuxfgja0000.jpg-wh_50 "/>

Returns the property format and the built-in properties Key-value can be customized:

var idattr = [];IDSTR = "Key:value"; Idattr.push (IDSTR); alert (idattr);


4, the Answer (Savepair), the case is as follows:


650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M01/88/80/wKiom1f594XjhK4dAAFOy19CnWw656.jpg-wh_500x0-wm_3 -wmp_4-s_4271541341.jpg "title=" line2.jpg "alt=" Wkiom1f594xjhk4daafoy19cnww656.jpg-wh_50 "/>

A counterfeited can be customized to show the correct answer line format as indicated in the green box.

650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M00/88/81/wKiom1f5-cei9T-OAAEi4xY8lIU365.jpg-wh_500x0-wm_3 -wmp_4-s_2351509564.jpg "title=" line3.jpg "alt=" Wkiom1f5-cei9t-oaaei4xy8liu365.jpg-wh_50 "/>


Annex Case Design horizontal and vertical version of the demo, can replace the picture and other resources, the specific style layout please download the changes yourself.


Source can not understand the place please message consulting, will be the first time to reply to everyone.

This article is from the "beautiful Dē‖java Question" blog, please be sure to keep this source http://teny32.blog.51cto.com/8027509/1859843

Demo of pure code wiring with Html5+canvas+jquery implementation

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: [email protected] and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.