{"id":178611,"date":"2013-05-02T16:30:03","date_gmt":"2013-05-02T12:30:03","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=178611"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=178611","title":{"rendered":"<span class=\"post_title\">\u041c\u043e\u0431\u0438\u043b\u044c\u043d\u0430\u044f \u0432\u0435\u0431-\u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0430: \u0436\u0435\u0441\u0442\u044b, \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u0438, \u0446\u0438\u0444\u0440\u044b<\/span>"},"content":{"rendered":"<div class=\"content html_format\">\n<h2>\u0412\u0432\u0435\u0434\u0435\u043d\u0438\u0435.<\/h2>\n<p>  \u041f\u0440\u043e\u0434\u043e\u043b\u0436\u0430\u044f \u0442\u0435\u043c\u0443 \u0432\u0435\u0431-\u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u044b\u0445 \u0441\u0430\u0439\u0442\u043e\u0432 \u0438 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u043f\u043e\u0434 \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u044b\u0435 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 \u043d\u0435\u043b\u044c\u0437\u044f \u043d\u0435 \u0437\u0430\u0442\u0440\u043e\u043d\u0443\u0442\u044c \u0442\u0430\u043a\u0443\u044e \u0442\u0435\u043c\u0443 \u043a\u0430\u043a \u0424\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u0438 \u0434\u043b\u044f \u043c\u0430\u043d\u0438\u043f\u0443\u043b\u044f\u0446\u0438\u0438 DOM \u0438 \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u043e\u0439 \u0430\u0441\u0438\u043d\u0445\u0440\u043e\u043d\u043d\u044b\u0445 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432. <br \/>  \u0421\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043e\u043c \u043d\u0430 \u0434\u0435\u0441\u043a\u0442\u043e\u043f\u0435 \u0443\u0436\u0435 \u0434\u0430\u0432\u043d\u043e \u0441\u0442\u0430\u043b jQuery, \u043d\u043e \u043e\u043d \u043d\u0438\u043a\u0443\u0434\u0430 \u043d\u0435 \u0433\u043e\u0434\u0438\u0442\u0441\u044f \u0434\u043b\u044f \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u043f\u043e\u0434 \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u0443\u044e \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0443. \u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c, \u043a\u0430\u043a jQuery \u0434\u0440\u0443\u0436\u0438\u0442 \u0441 \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u044b\u043c\u0438 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430\u043c\u0438.<\/p>\n<p>  <a name=\"habracut\"><\/a>  <\/p>\n<h2>jQuery \u0438 \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u044b\u0435 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430.<\/h2>\n<p>  \u041f\u0435\u0440\u0432\u0430\u044f \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 jQuery \u2013 \u044d\u0442\u043e \u0442\u0430\u0447\u0438. \u041e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u0442\u0430\u0447\u0435\u0439 \u043f\u043e \u0441\u0440\u0435\u0434\u0441\u0442\u0432\u043e\u043c \u044d\u0432\u0435\u043d\u0442\u0430 &#8216;click\u2019 \u043d\u0435 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043b\u0443\u0447\u0448\u0435\u0439 \u0438\u0434\u0435\u0435\u0439. \u0411\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u044f \u0442\u043e\u043c\u0443, \u0447\u0442\u043e \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u044b\u043c \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430\u043c \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442\u044c\u0441\u044f \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0442\u044c \u044d\u0432\u0435\u043d\u0442 click \u0443 \u043d\u0430\u0441 \u044d\u0442\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0441\u044f, \u043d\u043e \u0434\u043e\u0440\u043e\u0433\u043e\u0439 \u0446\u0435\u043d\u043e\u0439. \u041d\u0430 \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u044b\u0445 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430\u0445 click \u044d\u0432\u0435\u043d\u0442 \u043d\u0435 \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043f\u043e\u043a\u0430 \u043d\u0435 \u043f\u0440\u043e\u0439\u0434\u0435\u0442 300\u043c\u0441 \u043f\u043e\u0441\u043b\u0435 \u0442\u043e\u0433\u043e \u043a\u0430\u043a \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u043a\u043e\u0441\u043d\u0443\u043b\u0441\u044f \u044d\u043a\u0440\u0430\u043d\u0430, \u0434\u043b\u044f \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u0441\u043a\u0440\u043e\u043b\u043b\u0438\u043d\u0433 \u043b\u0438 \u044d\u0442\u043e \u0438\u043b\u0438 \u0434\u0432\u043e\u0439\u043d\u043e\u0439 \u0442\u0430\u043f \u0438\u043b\u0438 \u0447\u0442\u043e-\u0442\u043e \u0434\u0440\u0443\u0433\u043e\u0435 \u0438 \u0441\u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u044d\u0432\u0435\u043d\u0442\u0430 click, \u0438 \u044d\u0442\u043e \u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c\u0441\u044f \u043d\u0435\u0437\u043d\u0430\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u043c, \u043d\u043e \u0440\u0435\u0430\u043a\u0446\u0438\u044f \u043d\u0430 \u0434\u0440\u0443\u0433\u043e\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u0447\u0435\u0440\u0435\u0437 \u0434\u0440\u0443\u0433\u0438\u0435 300\u043c\u0441 \u0432\u044b\u0437\u043e\u0432\u0435\u0442 \u043e\u0449\u0443\u0442\u0438\u043c\u0443\u044e \u0437\u0430\u0434\u0435\u0440\u0436\u043a\u0443.<\/p>\n<p>  \u0427\u0442\u043e\u0431\u044b \u0438\u0437\u0431\u0435\u0436\u0430\u0442\u044c \u044d\u0442\u043e\u0433\u043e \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0442\u0430\u043f-\u044d\u0432\u0435\u043d\u0442\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u044e\u0442\u0441\u044f \u0441\u043f\u0443\u0442\u043d\u0438\u043a\u043e\u043c jQuery \u2013 jQuery Mobile. \u041d\u043e jQuery Mobile \u0442\u0430\u043a\u0436\u0435 \u043d\u0435 \u043b\u0443\u0447\u0448\u0435\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435. \u0412\u043e \u043f\u0435\u0440\u0432\u044b\u0445, \u043e\u043d \u043e\u0447\u0435\u043d\u044c \u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u043f\u043e \u0440\u0430\u0437\u043c\u0435\u0440\u0443, \u043a\u0430\u043a \u0438 jQuery \u0438 \u0434\u0430\u0436\u0435 \u0441\u0435\u0440\u0432\u0438\u0441\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0442 \u0432\u044b\u0440\u0435\u0437\u0430\u0442\u044c \u0447\u0430\u0441\u0442\u0438 jQuery \u043d\u0435 \u043f\u043e\u043c\u043e\u0433\u0430\u044e\u0442 \u0443\u043c\u0435\u043d\u044c\u0448\u0438\u0442\u044c \u0435\u0433\u043e \u0440\u0430\u0437\u043c\u0435\u0440 \u0432 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e\u0439 \u0441\u0442\u0435\u043f\u0435\u043d\u0438. \u0412\u0442\u043e\u0440\u043e\u0439 \u0441\u0435\u0440\u044c\u0435\u0437\u043d\u044b\u0439 \u043d\u0435\u0434\u043e\u0441\u0442\u0430\u0442\u043e\u043a \u2013 \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0438\u0435 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0438 \u0436\u0435\u0441\u0442\u043e\u0432.<\/p>\n<h2>\u0416\u0435\u0441\u0442\u044b \u0432 \u0442\u0435\u043e\u0440\u0438\u0438. <\/h2>\n<p>  \u041c\u043e\u0431\u0438\u043b\u044c\u043d\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f WebKit (iOS, Android) \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u044d\u0432\u0435\u043d\u0442\u044b:  <\/p>\n<ul>\n<li>touchstart \u2013 \u0438\u043d\u0438\u0446\u0438\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u043f\u0440\u0438 \u043a\u043e\u0441\u0430\u043d\u0438\u0438. \u0410\u043d\u0430\u043b\u043e\u0433 \u2014 mouseDown<\/li>\n<li>touchmove \u2013 \u0418\u043d\u0438\u0446\u0438\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u043f\u0440\u0438 \u0434\u0432\u0438\u0436\u0435\u043d\u0438\u0438 \u043a\u043e\u0441\u0430\u043d\u0438\u044f. \u0410\u043d\u0430\u043b\u043e\u0433 \u2014 mouseMove<\/li>\n<li>touchend \u2013 \u0418\u043d\u0438\u0446\u0438\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u043f\u0440\u0438 \u043e\u043a\u043e\u043d\u0447\u0430\u043d\u0438\u0438 \u043a\u043e\u0441\u0430\u043d\u0438\u044f. \u0410\u043d\u0430\u043b\u043e\u0433 \u2014 mouseUp<\/li>\n<li>touchcancel \u2013 \u0418\u043d\u0438\u0446\u0438\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u043f\u0440\u0438 \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u0438 \u043a\u0430\u0441\u0430\u043d\u0438\u044f (\u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u0437\u0430\u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u0430\u043b \u044d\u043a\u0440\u0430\u043d, \u043d\u0430\u0436\u0430\u043b \u043a\u043d\u043e\u043f\u043a\u0443 \u0434\u043e\u043c\u043e\u0439, \u0438\u0437\u043c\u0435\u043d\u0438\u043b \u043e\u0440\u0438\u0435\u043d\u0442\u0430\u0446\u0438\u044e \u044d\u043a\u0440\u0430\u043d\u0430)<\/li>\n<\/ul>\n<p>  \u0418\u0442\u0430\u043a, \u0447\u0442\u043e\u0431\u044b \u0437\u0430\u0442\u0440\u0435\u043a\u0430\u0442\u044c \u0441\u0432\u0430\u0439\u043f \u043d\u0430\u043c \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u044c\u0441\u044f \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u043a\u043e\u0434:  <\/p>\n<pre><code class=\"javascript\">var touchstartX = 0; var touchstartY = 0; var touchendX = 0; var touchendY = 0;  var gesuredZone = document.getElementById('gesuredZone');  gesuredZone.addEventListener('touchstart', function(event) {     touchstartX = event.screenX;     touchstartY = event.screenY; }, false);  gesuredZone.addEventListener('touchend', function(event) {     touchendX = event.screenX;     touchendY = event.screenY;     handleGesure(); }, false);   function handleGesure() {     var swiped = 'swiped: ';     if (touchendX &lt; touchstartX) {         alert(swiped + 'left!');     }     if (touchendX &gt; touchstartX) {         alert(swiped + 'right!');     }     if (touchendY &lt; touchstartY) {         alert(swiped + 'down!');     }     if (touchendY &gt; touchstartY) {         alert(swiped + 'left!');     }     if (touchendY == touchstartY) {         alert('tap!');     } } <\/code><\/pre>\n<p>  <strong>\u0420\u0430\u0431\u043e\u0442\u0430\u044e\u0449\u0438\u0439 \u043f\u0440\u0438\u043c\u0435\u0440:<\/strong><br \/>  <a href=\"http:\/\/jsfiddle.net\/sagens\/zNvtL\/2\/\">http:\/\/jsfiddle.net\/sagens\/zNvtL\/2\/<\/a><\/p>\n<p>  \u0418\u0437-\u0437\u0430 \u0441\u043b\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0436\u0435\u0441\u0442\u043e\u0432 \u043c\u043e\u0436\u043d\u043e \u043e\u0431\u0440\u0430\u0442\u0438\u0442\u044c\u0441\u044f \u043a \u0430\u043b\u044c\u0442\u0435\u0440\u043d\u0430\u0442\u0438\u0432\u0430\u043c jQuery, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u044e\u0442<\/p>\n<h2>\u0410\u043b\u044c\u0442\u0435\u0440\u043d\u0430\u0442\u0438\u0432\u044b jQuery<\/h2>\n<p>  \u0412 \u043f\u043e\u0438\u0441\u043a\u0430\u0445 \u0430\u043b\u044c\u0442\u0435\u0440\u043d\u0430\u0442\u0438\u0432 \u043c\u043e\u0436\u043d\u043e \u0432\u044b\u0434\u0432\u0438\u043d\u0443\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u0438\u044f:  <\/p>\n<ol>\n<li>\u041c\u0430\u043d\u0438\u043f\u0443\u043b\u044f\u0446\u0438\u0438 \u0441 DOM<\/li>\n<li>\u041e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u0436\u0435\u0441\u0442\u043e\u0432<\/li>\n<li>\u0410\u0441\u0438\u043d\u0445\u0440\u043e\u043d\u043d\u044b\u0435 \u0437\u0430\u043f\u0440\u043e\u0441\u044b<\/li>\n<li>\u041c\u0430\u043b\u0435\u043d\u044c\u043a\u0438\u0439 \u0440\u0430\u0437\u043c\u0435\u0440<\/li>\n<\/ol>\n<h2>\u0424\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u0438.<\/h2>\n<p>  <\/p>\n<h3>Quo.JS.<\/h3>\n<p>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/fa4\/277\/7a7\/fa42777a7dc242105a9864454c1e670d.png\"\/><\/p>\n<ul>\n<li><strong>\u0421\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u0424\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a:<\/strong> <a href=\"http:\/\/quojs.tapquo.com\/\">http:\/\/quojs.tapquo.com\/<\/a><\/li>\n<li><strong>\u041f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u043c\u044b\u0435 \u0441\u043e\u0431\u044b\u0442\u0438\u044f:<\/strong> Tap, Single Tap, Double Tab, Hold, 2xFingers Tap, 2xFingers Double Tap, Swipe Up, Swipe Right, Swipe Down, Swipe Down, Swipe Left, Swipe, Drag, Rotate Left, Rotate Right, Rotate, Pinch Out, Pinch, Fingers<\/li>\n<li><strong>\u0420\u0430\u0437\u043c\u0435\u0440 \u0424\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u0430:<\/strong> 18KB \u043c\u0438\u043d\u0438\u043c\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439.<\/li>\n<li><strong>\u041f\u043b\u044e\u0441\u044b:<\/strong><br \/> \n<ol>\n<li>\u041f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442 \u043f\u043e\u043c\u0438\u043c\u043e \u0441\u043e\u0431\u044b\u0442\u0438\u0439, CSS \u0441\u0435\u043b\u0435\u043a\u0442\u043e\u0440\u044b, \u0440\u0430\u0431\u043e\u0442\u0443 \u0441 \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u0430\u043c\u0438, \u0440\u0430\u0431\u043e\u0442\u0443 \u0441 DOM \u0438 AJAX \u0437\u0430\u043f\u0440\u043e\u0441\u044b \u043e\u0447\u0435\u043d\u044c \u043f\u043e\u0445\u043e\u0436\u0438\u0435 \u043d\u0430 \u0430\u043d\u0430\u043b\u043e\u0433\u0438 \u0432 jQuery<\/li>\n<li>\u041d\u0435 \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u043d\u0438\u0447\u0435\u0433\u043e \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b<\/li>\n<li>\u041c\u0430\u043b\u0435\u043d\u044c\u043a\u0438\u0439 \u0440\u0430\u0437\u043c\u0435\u0440 \u0424\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u0430<\/li>\n<li>\u041c\u0438\u0433\u0440\u0430\u0446\u0438\u044f \u0441 jQuery \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u0430\u044f, \u0437\u0430 \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f $$ \u0432\u043c\u0435\u0441\u0442\u043e $, \u0447\u0442\u043e\u0431\u044b \u0438\u0437\u0431\u0435\u0436\u0430\u0442\u044c \u043a\u043e\u043d\u0444\u043b\u0438\u043a\u0442\u043e\u0432, \u043d\u043e \u044d\u0442\u043e \u043b\u0435\u0433\u043a\u043e \u043b\u0435\u0447\u0438\u0442\u0441\u044f<\/li>\n<\/ol>\n<\/li>\n<li><strong>\u041c\u0438\u043d\u0443\u0441\u044b:<\/strong><br \/> \n<ol>\n<li>\u041e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u043a\u0430\u043a\u0430\u044f-\u043b\u0438\u0431\u043e \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f<\/li>\n<\/ol>\n<p>  <\/li>\n<\/ul>\n<p>  <\/p>\n<h3>Zepto.JS<\/h3>\n<p>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/934\/c50\/853\/934c50853b461bfed2eb703c6af40af2.png\"\/><\/p>\n<ul>\n<li><strong>\u0421\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u0424\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a:<\/strong> <a href=\"http:\/\/zeptojs.com\">http:\/\/zeptojs.com<\/a><\/li>\n<li><strong>\u041f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u043c\u044b\u0435 \u0441\u043e\u0431\u044b\u0442\u0438\u044f:<\/strong> Tap, Single Tap, Double Tap, Long Tap, Swipe, SwipeLeft, SwipeRight, SwipeUp, SwipeDown<\/li>\n<li><strong>\u0420\u0430\u0437\u043c\u0435\u0440 \u0424\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u0430:<\/strong> 11KB \u043c\u0438\u043d\u0438\u043c\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439.<\/li>\n<li><strong>\u041f\u043b\u044e\u0441\u044b:<\/strong><br \/> \n<ol>\n<li>\u0424\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a \u043d\u0430\u0446\u0435\u043b\u0435\u043d\u043d\u044b\u0439 \u043d\u0430 \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u0443\u044e \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0443. \u0422\u0430\u043a\u0436\u0435 \u0438\u043c\u0435\u0435\u0442 JQuery-like \u0441\u0442\u0438\u043b\u044c \u0438 \u043a\u043e\u0434 \u043f\u043e\u0447\u0442\u0438 \u0441\u043e\u0432\u043c\u0435\u0441\u0442\u0438\u043c \u0441 jQuery<\/li>\n<li>\u041f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u0441\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u044b<\/li>\n<\/ol>\n<\/li>\n<li><strong>\u041c\u0438\u043d\u0443\u0441\u044b:<\/strong><br \/> \n<ol>\n<li>\u041d\u0435 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442 Drag \u0438 Multitouch*<\/li>\n<\/ol>\n<\/li>\n<\/ul>\n<h2>\u0411\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438<\/h2>\n<p>  <\/p>\n<h3>Hammer.JS<\/h3>\n<p>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/afb\/f58\/90d\/afbf5890d99f89d38093d947297aa2da.png\"\/>  <\/p>\n<ul>\n<li><strong>\u0421\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443:<\/strong> <a href=\"http:\/\/eightmedia.github.io\/hammer.js\">http:\/\/eightmedia.github.io\/hammer.js<\/a><\/li>\n<li><strong>\u041f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u043c\u044b\u0435 \u0441\u043e\u0431\u044b\u0442\u0438\u044f:<\/strong> Hold, Tap, Doubletap, Drag, Dragstart, Dragend, Dragup, Dragdown, Dragleft, Dragright, Swipe, Swipeup, Swipedown, Swipeleft, Swiperight, Transform, Transformstart, Transformend, Rotate, Pinch, Pinchin, Pinchout, Touch, Release<\/li>\n<li><strong>\u0420\u0430\u0437\u043c\u0435\u0440 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438:<\/strong> 13KB \u043c\u0438\u043d\u0438\u043c\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u0430\u044f.<\/li>\n<li><strong>\u041f\u043b\u044e\u0441\u044b:<\/strong><br \/> \n<ol>\n<li>\u0411\u043e\u043b\u044c\u0448\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u043c\u044b\u0445 \u0436\u0435\u0441\u0442\u043e\u0432 \u0432\u043a\u043b\u044e\u0447\u0430\u044f Touch \u0438 Release \u0434\u043b\u044f \u0442\u0440\u0435\u043a\u0438\u043d\u0433\u0430 \u0441\u043b\u043e\u0436\u043d\u044b\u0445 \u0436\u0435\u0441\u0442\u043e\u0432<\/li>\n<li>\u0415\u0441\u0442\u044c \u043f\u043b\u0430\u0433\u0438\u043d \u043f\u043e\u0434 jQuery<\/li>\n<li>\u041f\u043b\u0430\u0433\u0438\u043d \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u0441\u043e\u0432\u043c\u0435\u0441\u0442\u0438\u043c \u0441 Zepto.JS<\/li>\n<\/ol>\n<\/li>\n<li><strong>\u041c\u0438\u043d\u0443\u0441\u044b:<\/strong><br \/> \n<ol>\n<li>\u0420\u0430\u0437\u043c\u0435\u0440. 13 KB \u2013 \u043c\u043d\u043e\u0433\u043e\u0432\u0430\u0442\u043e \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043b\u044f \u0436\u0435\u0441\u0442\u043e\u0432<\/li>\n<\/ol>\n<p>  <\/li>\n<\/ul>\n<p>  <\/p>\n<h3>Jester<\/h3>\n<p>  <\/p>\n<ul>\n<li><strong>\u0421\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443:<\/strong> <a href=\"https:\/\/github.com\/plainview\/Jester\">https:\/\/github.com\/plainview\/Jester<\/a><\/li>\n<li><strong>\u041f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u043c\u044b\u0435 \u0441\u043e\u0431\u044b\u0442\u0438\u044f:<\/strong> Tap, Double tap, Swipe, Flick, Pinch, Pinch arrow, Pinch widen, Pinch end<\/li>\n<li><strong>\u0420\u0430\u0437\u043c\u0435\u0440 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438:<\/strong> 17KB \u043c\u0438\u043d\u0438\u043c\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u0430\u044f.<\/li>\n<li><strong>\u041f\u043b\u044e\u0441\u044b:<\/strong><br \/> \n<ol>\n<li>Standalone \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430<\/li>\n<\/ol>\n<\/li>\n<li><strong>\u041c\u0438\u043d\u0443\u0441\u044b:<\/strong><br \/> \n<ol>\n<li>\u041e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442 Multitouch* \u0438 Drag<\/li>\n<\/ol>\n<\/li>\n<\/ul>\n<p>  <\/p>\n<h3>Thumbs.JS<\/h3>\n<p>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/95e\/e46\/d4a\/95ee46d4a43ce1e48d64a2f7aec9d655.png\"\/><\/p>\n<ul>\n<li><strong>\u0421\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443:<\/strong> <a href=\"http:\/\/mwbrooks.github.io\/thumbs.js\/\">http:\/\/mwbrooks.github.io\/thumbs.js\/<\/a><\/li>\n<li><strong>\u041f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u043c\u044b\u0435 \u0441\u043e\u0431\u044b\u0442\u0438\u044f:<\/strong> touchstart, touchend, touchmove<\/li>\n<li><strong>\u0420\u0430\u0437\u043c\u0435\u0440 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438:<\/strong> 612B \u043c\u0438\u043d\u0438\u043c\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u0430\u044f.<\/li>\n<li><strong>\u041f\u043b\u044e\u0441\u044b:<\/strong><br \/> \n<ol>\n<li>Standalone \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430<\/li>\n<li>\u041c\u0430\u043b\u0435\u043d\u044c\u043a\u0438\u0439 \u0440\u0430\u0437\u043c\u0435\u0440<\/li>\n<\/ol>\n<\/li>\n<li><strong>\u041c\u0438\u043d\u0443\u0441\u044b:<\/strong><br \/> \n<ol>\n<li>\u041f\u0440\u043e\u0441\u0442\u043e \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u0442 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0443 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0445 \u044d\u0432\u0435\u043d\u0442\u043e\u0432 touchstart, touchend, touchmove. \u0416\u0435\u0441\u0442\u044b \u043d\u0443\u0436\u043d\u043e \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0442\u044c \u0441\u0430\u043c\u0438\u043c.<\/li>\n<\/ol>\n<h4>*\u041d\u0430 \u0437\u0430\u043c\u0435\u0442\u043a\u0443:<\/h4>\n<p>  \u0421\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0439 \u0431\u0440\u0430\u0443\u0437\u0435\u0440 Android \u043d\u0435 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442 Multitouch \u0434\u043e \u0432\u0435\u0440\u0441\u0438\u0438 3.2. \u042d\u0442\u043e \u0437\u043d\u0430\u0447\u0438\u0442, \u0447\u0442\u043e Multitouch \u043d\u0435 \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u043d\u0430 \u043b\u044e\u0431\u043e\u043c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0438 \u0437\u0430\u043f\u0443\u0449\u0435\u043d\u043d\u043e\u043c \u0432 PhoneGap \u043d\u0430 \u0432\u0435\u0440\u0441\u0438\u0438 Android \u0434\u043e 3.2.<\/p>\n<h2>\u0421\u0447\u0438\u0442\u0430\u0435\u043c \u043f\u043e\u043f\u0443\u0433\u0430\u0435\u0432<\/h2>\n<p>  \u041f\u0440\u0438 \u0432\u044b\u0431\u043e\u0440\u043a\u0435 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u043f\u043e \u043a\u043b\u0430\u0441\u0441\u0443 \u0434\u0435\u043b\u0430 \u043e\u0431\u0441\u0442\u043e\u044f\u0442 \u0442\u0430\u043a:<\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/be1\/c8b\/c98\/be1c8bc98108386ad6ae2c67ad717fac.png\"\/><br \/>  \u041a\u0430\u043a raw class \u0432\u0437\u044f\u0442\u0430 \u0438\u043c\u043f\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f Robert Nyman <a href=\"http:\/\/code.google.com\/p\/getelementsbyclassname\/\">http:\/\/code.google.com\/p\/getelementsbyclassname\/<\/a><\/p>\n<p>  <strong>\u0411\u043e\u043b\u044c\u0448\u0435 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u043e\u0432:<\/strong> <a href=\"http:\/\/jsperf.com\/zepto-vs-jquery-selectors\/12\">http:\/\/jsperf.com\/zepto-vs-jquery-selectors\/12<\/a><\/p>\n<h2>\u0418\u0442\u043e\u0433\u043e.<\/h2>\n<p>  \u041a\u0430\u043a \u0432\u0438\u0434\u043d\u043e \u043f\u043e \u043e\u0431\u0437\u043e\u0440\u0443 \u043b\u0438\u0434\u0435\u0440\u043e\u0432 \u043d\u0435\u0442 \u0438 \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0441\u043b\u0443\u0447\u0430\u044f \u043d\u0443\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0447\u0442\u043e-\u0442\u043e \u0441\u0432\u043e\u0435. \u0422\u0430\u043a \u043a\u0430\u043a \u043c\u043e\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043e\u0447\u0435\u043d\u044c \u0430\u043a\u0442\u0438\u0432\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u0436\u0435\u0441\u0442\u044b \u0438 \u043c\u043d\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0431\u044b\u043b\u043e \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c DOM \u0438 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u043a\u0440\u043e\u0441\u0441-\u0434\u043e\u043c\u0435\u043d\u043d\u044b\u0435 \u0437\u0430\u043f\u0440\u043e\u0441\u044b, \u044f \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043b\u0441\u044f \u043d\u0430 \u0441\u0432\u044f\u0437\u043a\u0435 Zepto.JS + Hammer.JS. \u041f\u0440\u043e\u0431\u043b\u0435\u043c \u0441\u043e\u0432\u043c\u0435\u0441\u0442\u0438\u043c\u043e\u0441\u0442\u0438 \u043d\u0435 \u0431\u044b\u043b\u043e<\/p>\n<\/li>\n<\/ul>\n<div class=\"clear\"><\/div>\n<\/p><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/habrahabr.ru\/post\/178611\/\"> http:\/\/habrahabr.ru\/post\/178611\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\">\n<h2>\u0412\u0432\u0435\u0434\u0435\u043d\u0438\u0435.<\/h2>\n<p>  \u041f\u0440\u043e\u0434\u043e\u043b\u0436\u0430\u044f \u0442\u0435\u043c\u0443 \u0432\u0435\u0431-\u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u044b\u0445 \u0441\u0430\u0439\u0442\u043e\u0432 \u0438 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u043f\u043e\u0434 \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u044b\u0435 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 \u043d\u0435\u043b\u044c\u0437\u044f \u043d\u0435 \u0437\u0430\u0442\u0440\u043e\u043d\u0443\u0442\u044c \u0442\u0430\u043a\u0443\u044e \u0442\u0435\u043c\u0443 \u043a\u0430\u043a \u0424\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u0438 \u0434\u043b\u044f \u043c\u0430\u043d\u0438\u043f\u0443\u043b\u044f\u0446\u0438\u0438 DOM \u0438 \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u043e\u0439 \u0430\u0441\u0438\u043d\u0445\u0440\u043e\u043d\u043d\u044b\u0445 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432. <br \/>  \u0421\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043e\u043c \u043d\u0430 \u0434\u0435\u0441\u043a\u0442\u043e\u043f\u0435 \u0443\u0436\u0435 \u0434\u0430\u0432\u043d\u043e \u0441\u0442\u0430\u043b jQuery, \u043d\u043e \u043e\u043d \u043d\u0438\u043a\u0443\u0434\u0430 \u043d\u0435 \u0433\u043e\u0434\u0438\u0442\u0441\u044f \u0434\u043b\u044f \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u043f\u043e\u0434 \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u0443\u044e \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0443. \u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c, \u043a\u0430\u043a jQuery \u0434\u0440\u0443\u0436\u0438\u0442 \u0441 \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u044b\u043c\u0438 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430\u043c\u0438.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-178611","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/178611","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=178611"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/178611\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=178611"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=178611"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=178611"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}