{"id":263798,"date":"2015-08-18T16:16:02","date_gmt":"2015-08-18T12:16:02","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=263798"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=263798","title":{"rendered":"JQuery \u2014 \u0440\u0430\u0437\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u0441\u043e\u0431\u044b\u0442\u0438\u0439 on\u0421lick \u0438 onDbl\u0421lick"},"content":{"rendered":"\n<pre><code class=\"javascript\">this.window.$.on( 'click', function( event ){ context.toggleActive( ); } ) \t\t\t .on( 'dblclick', function( event ){ context.toggleMaximized( ); } ); <\/code><\/pre>\n<p>  \u041f\u0440\u0438 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0435 <b>JS<\/b> \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u0447\u0430\u0441\u0442\u043e \u0432\u043e\u0437\u043d\u0438\u043a\u0430\u0435\u0442 \u043d\u0435\u0443\u0434\u043e\u0431\u0441\u0442\u0432\u043e <i>( \u0441\u043b\u043e\u0436\u043d\u043e \u043d\u0430\u0437\u0432\u0430\u0442\u044c \u044d\u0442\u043e \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u043e\u0439 )<\/i>, \u043a\u043e\u0433\u0434\u0430 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043e\u0442\u0434\u0435\u043b\u044f\u0442\u044c \u0441\u043e\u0431\u044b\u0442\u0438\u0435 \u043a\u043b\u0438\u043a\u0430, \u043e\u0442 \u0434\u0432\u043e\u0439\u043d\u043e\u0433\u043e \u043a\u043b\u0438\u043a\u0430 \u0438\u0437-\u0437\u0430 \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u0435\u0439 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u044d\u0442\u0438\u0445 \u0441\u043e\u0431\u044b\u0442\u0438\u0439 \u2014 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430\u043c\u0438. \u0414\u0443\u043c\u0430\u044e \u043c\u043d\u043e\u0433\u0438\u0435 \u0438\u0437 \u0412\u0430\u0441 \u0441\u0442\u0430\u043b\u043a\u0438\u0432\u0430\u043b\u0438\u0441\u044c \u0441 \u0442\u0435\u043c \u0447\u0442\u043e \u0432\u043e \u0432\u0441\u0435\u0445 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430\u0445 \u0432\u043d\u0430\u0447\u0430\u043b\u0435 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0441\u043e\u0431\u044b\u0442\u0438\u0435 <b>onClick<\/b> \u0430 \u0443\u0436\u0435 \u043f\u043e\u0441\u043b\u0435 \u2014 <b>onDblClick<\/b>. \u041d\u0435 \u0437\u043d\u0430\u044e \u043a\u0430\u043a \u0412\u0430\u043c, \u043d\u043e \u043c\u043d\u0435 \u044d\u0442\u043e \u043e\u0447\u0435\u043d\u044c \u043c\u0435\u0448\u0430\u0435\u0442 \u0441\u043f\u043e\u043a\u043e\u0439\u043d\u043e\u043c\u0443 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u044e \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0441\u043e\u0431\u044b\u0442\u0438\u0439 \u043f\u043e\u0434\u043e\u0431\u043d\u043e\u0433\u043e \u0440\u043e\u0434\u0430.<\/p>\n<p>  \u041d\u043e \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0432\u0441\u044f \u0432 \u0442\u043e\u043c \u0447\u0442\u043e \u043a\u0430\u043a\u0438\u0445-\u0442\u043e \u043f\u0440\u043e\u0441\u0442\u044b\u0445 \u0438 \u0443\u0434\u043e\u0431\u043d\u044b\u0445 \u0440\u0435\u0448\u0435\u043d\u0438\u0439 \u043f\u043e\u0434\u043e\u0431\u043d\u043e\u0439 \u0437\u0430\u0434\u0430\u0447\u0438 \u2014 \u043d\u0435\u0442. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u0432\u0437\u044f\u0442\u044c\u0441\u044f \u0437\u0430 \u0434\u0435\u043b\u043e, \u0438 \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0441\u0432\u043e\u0451 \u0440\u0435\u0448\u0435\u043d\u0438\u0435.<br \/>  <a name=\"habracut\"><\/a><br \/>  <b><\/p>\n<h5>\u041f\u043b\u0430\u0433\u0438\u043d<\/h5>\n<p><\/b><br \/>  \u041e\u0441\u043d\u043e\u0432\u0430 \u043f\u043b\u0430\u0433\u0438\u043d\u0430 \u2014 \u043f\u0435\u0440\u0435\u0445\u0432\u0430\u0442 \u0432\u044b\u0437\u043e\u0432\u0430 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u0438 \u0441\u043e\u0431\u044b\u0442\u0438\u044f <i>( on, off, click, dblclick )<\/i>, \u0441 \u043f\u043e\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0439 \u0437\u0430\u043c\u0435\u043d\u043e\u0439 \u043d\u0430 \u0441\u0432\u043e\u0438 \u0441\u043e\u0431\u044b\u0442\u0438\u044f.  <\/p>\n<pre><code class=\"javascript\">$.fn.on = function( ) \/\/ ( types, selector, data, fn, one ) { \tvar argumentList = $.extend( true, [], arguments ); \tvar eventType = argumentList[0]; \t\/\/.... \tcase eventType === 'click' || eventType === 'dblclick': \t{ \t\t\/\/ \u0418\u043d\u0438\u0446\u0438\u0438\u0440\u0443\u0435\u043c \u043d\u0430\u0432\u0435\u0448\u0438\u0432\u0430\u043d\u0438\u0435 \u0442\u0435\u043a\u0443\u0449\u0435\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0441 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u043c\u0438 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0430\u043c\u0438 \t\tonMethod.call( this, 'reg' + eventType,\teventSelector, eventData, \t\t\tfunction( regEvent, event ) \t\t\t{ \t\t\t\t\/\/ \u0412\u0430\u0436\u043d\u0430\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430, \u0447\u0442\u043e\u0431\u044b \u0437\u043d\u0430\u0442\u044c \u043c\u044b \u043b\u0438 \u044d\u0442\u043e \u0432 \u0446\u0435\u043f\u0438 \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0438 \u0441\u043e\u0431\u044b\u0442\u0438\u0439 \t\t\t\tif( this === regEvent.target ) \t\t\t\t{ \t\t\t\t\t\/\/ \u041d\u0435 \u0434\u0430\u0451\u043c \u043f\u0435\u0440\u0435\u0434\u0430\u0442\u044c \u044d\u0442\u043e\u0442 \u0441\u0438\u0433\u043d\u0430\u043b \u0434\u0430\u043b\u044c\u0448\u0435 \t\t\t\t\tregEvent.preventDefault( ); \t\t\t\t\tregEvent.stopPropagation( ); \t\t\t\t\t\t \t\t\t\t\t\/\/ \u0421\u0431\u0440\u0430\u0441\u044b\u0432\u0430\u0435\u043c \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0432\u044b\u0437\u043e\u0432\u0430 \t\t\t\t\tevent.isDefaultPrevented = function returnFalse( ){ return false; }; \t\t\t\t\tevent.isPropagationStopped = function returnFalse( ){ return false; };  \t\t\t\t\t\/\/ \u0412\u044b\u0437\u044b\u0432\u0430\u0435\u043c \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b\u044c\u043d\u0443\u044e \u0444\u0443\u043d\u043a\u0446\u0438\u044e \t\t\t\t\teventFunc.call( regEvent.target, event ); \t\t\t\t\t\t\t\t \t\t\t\t\t\/\/ \u0415\u0441\u043b\u0438 \u0438\u0441\u0445\u043e\u0434\u044f \u0438\u0437 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 \u0441\u0438\u0433\u043d\u0430\u043b \u043d\u0443\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u0434\u0430\u0442\u044c \u0434\u0430\u043b\u044c\u0448\u0435 - \u043f\u0435\u0440\u0435\u0434\u0430\u0451\u043c \t\t\t\t\tif( !event.isPropagationStopped( ) ) \t\t\t\t\t{ \t\t\t\t\t\t$( event.currentTarget.offsetParent ).trigger( 'click', [ event ] );\t \t\t\t\t\t} \t\t\t\t} \t\t\t} \t\t);  \t\t\/\/ \u0421\u0447\u0438\u0442\u044b\u0432\u0430\u0435\u043c \u0441\u043e\u0431\u044b\u0442\u0438\u044f \u043a \u0441\u043e\u0431\u044b\u0442\u0438\u044e \t\tvar clickEvents = $._data( this[0], 'events' ) ? $._data( this[0], 'events' )[ 'click' ] : undefined;  \t\t\/\/ \u0415\u0441\u043b\u0438 \u0435\u0449\u0435 \u043d\u0435 \u0437\u0430\u043f\u0438\u0441\u0430\u043b\u0438 \u043d\u0438 \u043e\u0434\u043d\u043e\u0433\u043e \u043a\u043b\u0438\u043a\u0430 - \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \t\tif( typeof clickEvents === 'undefined' ) \t\t{ \t\t\t\/\/ \u041d\u0435\u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u043a\u043b\u0438\u043a \t\t\tonMethod.call( this, 'click', eventSelector, eventData, singleDoubleClick ); \t\t\t\t\t\t \t\t\t\/\/ \u0414\u043b\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u043f\u0435\u0440\u0435\u043c\u0435\u0449\u0435\u043d\u0438\u044f \u043c\u044b\u0448\u0438 \t\t\tonMethod.call( this, 'mousedown', eventSelector, eventData, startMoving ); \t\t\tonMethod.call( this, 'mouseup', eventSelector, eventData, endMoving ); \t\t} \t} \t\/\/.... } <\/code><\/pre>\n<p>  \u041f\u043e\u0441\u043b\u0435 \u043f\u0435\u0440\u0435\u0445\u0432\u0430\u0442\u0430 \u0441\u043e\u0431\u044b\u0442\u0438\u044f \u2014 \u043e\u0442 \u043c\u043e\u043c\u0435\u043d\u0442\u0430 \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u043a\u043b\u0438\u043a\u0430 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u0441\u044f \u0442\u0430\u0439\u043c\u0435\u0440 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441\u0447\u0438\u0442\u0430\u0435\u0442 \u0431\u044b\u043b \u043b\u0438 \u0441\u0434\u0432\u0438\u0433 \u043c\u044b\u0448\u043a\u0438 \u0437\u0430 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u044b\u0439 \u043f\u0435\u0440\u0438\u043e\u0434.<br \/>  \u0418 \u0435\u0441\u043b\u0438 \u0431\u044b\u043b \u0441\u0434\u0432\u0438\u0433, \u0438\u043b\u0438 \u043d\u0435 \u043f\u0440\u043e\u0438\u0437\u043e\u0448\u043b\u043e \u0432\u0442\u043e\u0440\u043e\u0433\u043e \u043a\u043b\u0438\u043a\u0430 \u2014 \u0442\u043e \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0441\u043e\u0431\u044b\u0442\u0438\u0435 <b>onClick<\/b>, \u0432 \u043e\u0431\u0440\u0430\u0442\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 <b>onDblClick<\/b>.  <\/p>\n<pre><code class=\"javascript\">\tvar timeOut = 200; \/\/ \u0412\u0440\u0435\u043c\u044f \u043e\u0436\u0438\u0434\u0430\u043d\u0438\u044f \tvar start = { x: 0, y: 0 }; \/\/ \u0422\u043e\u0447\u043a\u0430 \u043d\u0430\u0447\u0430\u043b\u0430 \tvar end = { x: 0, y: 0 }; \/\/ \u0422\u043e\u0447\u043a\u0430 \u043a\u043e\u043d\u0446\u0430 \tvar distance = 0; \/\/ \u0420\u0430\u0441\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u043c\u0435\u0436\u0434\u0443 \u043d\u0430\u0447\u0430\u043b\u043e\u043c \u0438 \u043a\u043e\u043d\u0446\u043e\u043c \u0434\u0432\u0438\u0436\u0435\u043d\u0438\u044f \tvar maxDistance = 3;  \tvar onMethod = $.fn.on; \/\/ \u0417\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b\u044c\u043d\u044b\u0439 on \tvar offMethod = $.fn.off; \/\/ \u0417\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b\u044c\u043d\u044b\u0439 off  \tvar singleDoubleClick = function( event ) \t{ \t\t\/\/ \u0414\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u043e\u0431\u044a\u0435\u043a\u0442\u0430 \u0432 \u0446\u0435\u043f\u0438, \u043f\u043e \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u043e\u0442 \u0441\u044b\u043d\u0430 \u043e\u0442\u0446\u0443 \u0438\u0434\u0435\u0442 \u0441\u043e\u0431\u044b\u0442\u0438\u0435, \u043d\u0443\u0436\u043d\u043e \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0441\u0432\u043e\u0439 \u0442\u0430\u0439\u043c\u0435\u0440 \u0438 \u0441\u0447\u0435\u0442\u0447\u0438\u043a \u043a\u043b\u0438\u043a\u043e\u0432 \t\t\/\/ \u0442\u043e \u0435\u0441\u0442\u044c \u043e\u0434\u0438\u043d \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u044b\u0439 \u043e\u0431\u044a\u0435\u043a\u0442 \u043d\u0435\u043b\u044c\u0437\u044f \u0434\u0435\u0440\u0436\u0430\u0442\u044c, \u0435\u0441\u043b\u0438 \u0434\u0432\u0430 \u0441\u044b\u043d\u0430, \u0442\u043e \u043a\u043b\u0438\u043a \u0441\u0442\u0430\u0435\u0442 \u0434\u0430\u0431\u043b \u043a\u043b\u0438\u043a\u043e\u043c \t\tevent.currentTarget.clicks = ( event.currentTarget.clicks || 0 ) + 1; \t\t \t\t\/\/ \u041f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e - \u043d\u0435 \u0434\u0430\u0451\u043c \u0441\u0438\u0433\u043d\u0430\u043b \u0434\u0430\u043b\u044c\u0448\u0435 \t\tevent.preventDefault( ); \t\tevent.stopPropagation( ); \t\t \t\tvar timeoutCallback = function( event ) \t\t{ \t\t\treturn function( ) \t\t\t{ \t\t\t\t\/\/ \u041e\u0447\u0438\u0449\u0430\u0435\u043c \u0442\u0430\u0439\u043c\u0435\u0440 \t\t\t\tclearTimeout( event.currentTarget.timer ); \t\t\t\t \t\t\t\t\/\/ \u0423\u0447\u0438\u0442\u044b\u0432\u0430\u0435\u043c \u043a\u043e\u043b-\u0432\u043e \u043a\u043b\u0438\u043a\u043e\u0432, \u0434\u0435\u0440\u0433\u0430\u043d\u0438\u0435 \u043c\u044b\u0448\u0438 \u0438 \u0441\u0442\u043e\u043f\u0438\u043d\u0433 \u043f\u0440\u043e\u043f\u0430\u0433\u0430\u0446\u0438\u0438 \t\t\t\tif( event.currentTarget.clicks === 1 && distance &lt; maxDistance ) \t\t\t\t{ \t\t\t\t\t$( event.currentTarget ).trigger( 'regclick', [ event ] );\t \t\t\t\t} \t\t\t\telse if( event.currentTarget.clicks &gt; 1 && distance &lt; maxDistance ) \t\t\t\t{ \t\t\t\t\tevent.type = 'dblclick'; \t\t\t\t\t$( event.currentTarget ).trigger( 'regdblclick', [ event ] ); \t\t\t\t} \t\t\t\t \t\t\t\t\/\/ \u041e\u0431\u043d\u0443\u043b\u044f\u0435\u043c \u0441\u0447\u0451\u0442\u0447\u0438\u043a \u043a\u043b\u0438\u043a\u043e\u0432 \t\t\t\tevent.currentTarget.clicks = 0; \t\t\t}; \t\t};  \t\t\/\/ \u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u0442\u0430\u0439\u043c\u0435\u0440 \t\tevent.currentTarget.timer = setTimeout( timeoutCallback( event ), timeOut ); \t};  \t\/\/ \u041d\u0430\u0447\u0430\u043b\u043e \u0434\u0432\u0438\u0436\u0435\u043d\u0438\u044f \tvar startMoving = function( event ) \t{ \t\tstart = $.getMousePosition( event ); \t};  \t\/\/ \u041a\u043e\u043d\u0435\u0446 \u0434\u0432\u0438\u0436\u0435\u043d\u0438\u044f \tvar endMoving = function( event ) \t{ \t\tend = $.getMousePosition( event ); \t\tvar dx = end.x - start.x; \t\tvar dy = end.y - start.y; \t\tdistance = Math.sqrt( dx * dx + dy * dy ); \t}; <\/code><\/pre>\n<p>  \u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043d\u0430 \u0441\u0430\u043c \u043f\u043b\u0430\u0433\u0438\u043d \u043c\u043e\u0436\u043d\u043e \u0432\u043e\u0442 \u0437\u0434\u0435\u0441\u044c: <a href=\"https:\/\/github.com\/tredsnet\/jQueryPatches\/blob\/master\/jquery.clickSeparation.js\"><b>GitHub<\/b><\/a><br \/>  \u041d\u0430\u0434\u0435\u044e\u0441\u044c \u044d\u0442\u043e \u0435\u0449\u0451 \u043a\u043e\u043c\u0443-\u0442\u043e \u043f\u0440\u0438\u0433\u043e\u0434\u0438\u0442\u044c\u0441\u044f.     \t<\/p>\n<div class=\"clear\"><\/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\/265009\/\"> http:\/\/habrahabr.ru\/post\/265009\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<pre><code class=\"javascript\">this.window.$.on( 'click', function( event ){ context.toggleActive( ); } ) \t\t\t .on( 'dblclick', function( event ){ context.toggleMaximized( ); } ); <\/code><\/pre>\n<p>  \u041f\u0440\u0438 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0435 <b>JS<\/b> \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u0447\u0430\u0441\u0442\u043e \u0432\u043e\u0437\u043d\u0438\u043a\u0430\u0435\u0442 \u043d\u0435\u0443\u0434\u043e\u0431\u0441\u0442\u0432\u043e <i>( \u0441\u043b\u043e\u0436\u043d\u043e \u043d\u0430\u0437\u0432\u0430\u0442\u044c \u044d\u0442\u043e \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u043e\u0439 )<\/i>, \u043a\u043e\u0433\u0434\u0430 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043e\u0442\u0434\u0435\u043b\u044f\u0442\u044c \u0441\u043e\u0431\u044b\u0442\u0438\u0435 \u043a\u043b\u0438\u043a\u0430, \u043e\u0442 \u0434\u0432\u043e\u0439\u043d\u043e\u0433\u043e \u043a\u043b\u0438\u043a\u0430 \u0438\u0437-\u0437\u0430 \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u0435\u0439 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u044d\u0442\u0438\u0445 \u0441\u043e\u0431\u044b\u0442\u0438\u0439 \u2014 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430\u043c\u0438. \u0414\u0443\u043c\u0430\u044e \u043c\u043d\u043e\u0433\u0438\u0435 \u0438\u0437 \u0412\u0430\u0441 \u0441\u0442\u0430\u043b\u043a\u0438\u0432\u0430\u043b\u0438\u0441\u044c \u0441 \u0442\u0435\u043c \u0447\u0442\u043e \u0432\u043e \u0432\u0441\u0435\u0445 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430\u0445 \u0432\u043d\u0430\u0447\u0430\u043b\u0435 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0441\u043e\u0431\u044b\u0442\u0438\u0435 <b>onClick<\/b> \u0430 \u0443\u0436\u0435 \u043f\u043e\u0441\u043b\u0435 \u2014 <b>onDblClick<\/b>. \u041d\u0435 \u0437\u043d\u0430\u044e \u043a\u0430\u043a \u0412\u0430\u043c, \u043d\u043e \u043c\u043d\u0435 \u044d\u0442\u043e \u043e\u0447\u0435\u043d\u044c \u043c\u0435\u0448\u0430\u0435\u0442 \u0441\u043f\u043e\u043a\u043e\u0439\u043d\u043e\u043c\u0443 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u044e \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0441\u043e\u0431\u044b\u0442\u0438\u0439 \u043f\u043e\u0434\u043e\u0431\u043d\u043e\u0433\u043e \u0440\u043e\u0434\u0430.<\/p>\n<p>  \u041d\u043e \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0432\u0441\u044f \u0432 \u0442\u043e\u043c \u0447\u0442\u043e \u043a\u0430\u043a\u0438\u0445-\u0442\u043e \u043f\u0440\u043e\u0441\u0442\u044b\u0445 \u0438 \u0443\u0434\u043e\u0431\u043d\u044b\u0445 \u0440\u0435\u0448\u0435\u043d\u0438\u0439 \u043f\u043e\u0434\u043e\u0431\u043d\u043e\u0439 \u0437\u0430\u0434\u0430\u0447\u0438 \u2014 \u043d\u0435\u0442. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u0432\u0437\u044f\u0442\u044c\u0441\u044f \u0437\u0430 \u0434\u0435\u043b\u043e, \u0438 \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0441\u0432\u043e\u0451 \u0440\u0435\u0448\u0435\u043d\u0438\u0435.  <\/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-263798","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/263798","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=263798"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/263798\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=263798"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=263798"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=263798"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}