{"id":252117,"date":"2015-02-28T21:37:02","date_gmt":"2015-02-28T17:37:02","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=252117"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=252117","title":{"rendered":"\u0421\u043e\u0437\u0434\u0430\u0451\u043c \u0441\u0432\u043e\u0451 \u043f\u0435\u0440\u0432\u043e\u0435 \u0434\u0435\u0441\u043a\u0442\u043e\u043f\u043d\u043e\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 HTML, JS \u0438 Node-WebKit"},"content":{"rendered":"<p>       \u0412 \u043d\u0430\u0448\u0435 \u0432\u0440\u0435\u043c\u044f \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 JavaScript \u0438 HTML \u043c\u043e\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0432\u0441\u0451. \u0410 \u0431\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u044f Node-WebKit (\u043d\u0435\u0434\u0430\u0432\u043d\u043e \u043f\u0435\u0440\u0435\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d \u0432 NW.js) \u043c\u043e\u0436\u043d\u043e \u0434\u0435\u043b\u0430\u0442\u044c \u0434\u0430\u0436\u0435 \u0434\u0435\u0441\u043a\u0442\u043e\u043f\u043d\u044b\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432\u044b\u0433\u043b\u044f\u0434\u044f\u0442, \u043a\u0430\u043a \u043d\u0430\u0442\u0438\u0432\u043d\u044b\u0435 \u0438 \u0438\u043c\u0435\u044e\u0442 \u0434\u043e\u0441\u0442\u0443\u043f \u043a\u043e \u0432\u0441\u0435\u043c \u0447\u0430\u0441\u0442\u044f\u043c \u041e\u0421. \u0421\u0435\u0433\u043e\u0434\u043d\u044f \u043c\u044b \u043f\u043e\u043a\u0430\u0436\u0435\u043c, \u043a\u0430\u043a \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043f\u0440\u043e\u0441\u0442\u043e\u0435 \u0434\u0435\u0441\u043a\u0442\u043e\u043f\u043d\u043e\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 Node-WebKit, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f jQuery \u0438 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043c\u043e\u0434\u0443\u043b\u0435\u0439 \u0434\u043b\u044f Node.js.<\/p>\n<p>  Node-WebKit \u2014 \u043a\u043e\u043c\u0431\u0438\u043d\u0430\u0446\u0438\u044f Node.js \u0438 \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u043e\u0433\u043e \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430 WebKit. \u041a\u043e\u0434 JavaScript \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f \u0432 \u043e\u0441\u043e\u0431\u043e\u043c \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u0438, \u0438\u0437 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0435\u0441\u0442\u044c \u0434\u043e\u0441\u0442\u0443\u043f \u0438 \u043a \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e\u043c\u0443 API \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u043e\u0432, \u0438 \u043a Node.js.<\/p>\n<p>  \u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c Node-WebKit<br \/>\n  \u0414\u043b\u044f \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u043d\u0443\u0436\u043d\u043e \u0441\u043a\u0430\u0447\u0430\u0442\u044c \u0438\u0441\u043f\u043e\u043b\u043d\u044f\u0435\u043c\u044b\u0439 \u0444\u0430\u0439\u043b node-webkit \u0438 \u0432\u044b\u0437\u044b\u0432\u0430\u0442\u044c \u0435\u0433\u043e \u0438\u0437 \u043a\u043e\u043c\u0430\u043d\u0434\u043d\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0438. \u041f\u043e\u0437\u0436\u0435 \u0432\u0441\u0451 \u0432\u043c\u0435\u0441\u0442\u0435 \u0443\u043f\u0430\u043a\u0443\u0435\u0442\u0441\u044f \u0432 \u043e\u0434\u043d\u0443 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0431\u0443\u0434\u0435\u0442 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c\u0441\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u043c.<\/p>\n<p>  \u0421\u043a\u0430\u0447\u0430\u0439\u0442\u0435 \u0444\u0430\u0439\u043b\u044b, \u043f\u043e\u0434\u0445\u043e\u0434\u044f\u0449\u0438\u0435 \u0434\u043b\u044f \u0432\u0430\u0448\u0435\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b, \u0438 \u0440\u0430\u0441\u043f\u0430\u043a\u0443\u0439\u0442\u0435 \u0438\u0445 \u0432 \u043f\u043e\u0434\u0445\u043e\u0434\u044f\u0449\u0435\u0435 \u043c\u0435\u0441\u0442\u043e. \u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u0438\u0445 \u043d\u0443\u0436\u043d\u043e \u0442\u0430\u043a:<\/p>\n<p>  # \u0435\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 linux\/osx  \/path\/to\/node-webkit\/nw \/your\/project\/folder  # \u0435\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 windows  C:\\path\\to\\node-webkit\\nw.exe C:\\your\\project\\folder  # (\u043f\u0443\u0442\u0438 \u0443\u043a\u0430\u0437\u0430\u043d\u044b \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043b\u044f \u043f\u0440\u0438\u043c\u0435\u0440\u0430) <\/p>\n<p>  \u041e\u0442\u043a\u0440\u043e\u0435\u0442\u0441\u044f \u043d\u043e\u0432\u043e\u0435 \u043e\u043a\u043d\u043e node-webkit, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0432\u0435\u0434\u0435\u043d\u043e \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e \u043e\u0442\u043b\u0430\u0434\u043e\u0447\u043d\u044b\u0445 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0439.<\/p>\n<p>  \u041f\u0435\u0440\u0432\u043e\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435<\/p>\n<p>  \u041c\u044b \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u0438\u043b\u0438 \u0434\u043b\u044f \u0432\u0430\u0441 \u0442\u0435\u0441\u0442\u043e\u0432\u043e\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0434\u043b\u044f \u043f\u0440\u0438\u043c\u0435\u0440\u0430. \u041e\u043d\u043e \u0441\u043a\u0430\u0447\u0438\u0432\u0430\u0435\u0442 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 \u0441\u0442\u0430\u0442\u044c\u0438 \u0441 Tutorialzine \u0438 \u0434\u0435\u043b\u0430\u0435\u0442 \u0438\u0437 \u043d\u0438\u0445 \u043a\u0430\u0440\u0443\u0441\u0435\u043b\u044c\u043a\u0443 \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 jQuery Flipster.<\/p>\n<p>  \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u043e\u0432<\/p>\n<p>  \u0412 \u0430\u0440\u0445\u0438\u0432\u0435 \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0442\u0441\u044f \u0432\u044b\u0448\u0435\u0443\u043a\u0430\u0437\u0430\u043d\u043d\u044b\u0435 \u0444\u0430\u0439\u043b\u044b. \u0412\u044b\u0433\u043b\u044f\u0434\u044f\u0442 \u043e\u043d\u0438 \u043a\u0430\u043a \u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0441\u0430\u0439\u0442, \u043d\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0432 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0435 \u043f\u0440\u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0435 index.html \u043d\u0435 \u0431\u0443\u0434\u0443\u0442 \u2013 \u0438\u043c \u043d\u0443\u0436\u043d\u044b \u043c\u043e\u0434\u0443\u043b\u0438 Node.js. \u0414\u043b\u044f \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435\u0441\u044c \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439 <\/p>\n<p>  \/path\/to\/node-webkit\/nw . <\/p>\n<p>  \u041e\u043d\u0430 \u0438 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442 \u043d\u0430\u0448\u0435 \u043f\u0440\u0435\u0432\u043e\u0441\u0445\u043e\u0434\u043d\u043e\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435.<\/p>\n<p>  \u041a\u0430\u043a \u044d\u0442\u043e \u0441\u0434\u0435\u043b\u0430\u043d\u043e<br \/>\n  \u0412\u0441\u0451 \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442\u0441\u044f \u0441 \u0444\u0430\u0439\u043b\u0430 package.json, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 node-webkit \u0438\u0449\u0435\u0442 \u043f\u0440\u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0435. \u0422\u0430\u043c \u043e\u043f\u0438\u0441\u0430\u043d\u043e, \u0447\u0442\u043e \u043d\u0443\u0436\u043d\u043e \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0442\u044c \u0438 \u0434\u0430\u043d\u044b \u0440\u0430\u0437\u043d\u044b\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043e\u043a\u043d\u0430.<\/p>\n<p>  package.json<br \/>\n  {   &quot;name&quot;: &quot;nw-app&quot;,   &quot;version&quot;: &quot;1.0.0&quot;,   &quot;description&quot;: &quot;&quot;,   &quot;main&quot;: &quot;index.html&quot;,   &quot;scripts&quot;: {     &quot;test&quot;: &quot;echo \\&quot;\u041e\u0448\u0438\u0431\u043a\u0430: \u0442\u0435\u0441\u0442 \u043d\u0435 \u0437\u0430\u0434\u0430\u043d\\&quot; &#038;&#038; exit 1&quot;   },   &quot;author&quot;: &quot;&quot;,   &quot;window&quot;: {     &quot;toolbar&quot;: false,     &quot;width&quot;: 800,     &quot;height&quot;: 500   },   &quot;license&quot;: &quot;ISC&quot;,   &quot;dependencies&quot;: {     &quot;pretty-bytes&quot;: &quot;^1.0.2&quot;   } } <\/p>\n<p>  \u0412 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0435 window \u043e\u043f\u0438\u0441\u0430\u043d\u0430 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u044c \u043e\u0442\u043a\u0440\u044b\u0442\u044c \u043e\u043a\u043d\u043e \u0440\u0430\u0437\u043c\u0435\u0440\u0430 800 \u0445 500 \u043f\u0438\u043a\u0441\u0435\u043b\u0435\u0439 \u0438 \u0441\u043f\u0440\u044f\u0442\u0430\u0442\u044c \u0443 \u043d\u0435\u0433\u043e \u0442\u0443\u043b\u0431\u0430\u0440. \u0412 \u043d\u0435\u0433\u043e \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u0441\u044f \u0444\u0430\u0439\u043b \u0438\u0437 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430 main. \u0423 \u043d\u0430\u0441 \u044d\u0442\u043e <\/p>\n<p>  index.html<br \/>\n  &lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt;      &lt;meta charset=&quot;utf-8&quot;&gt;     &lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1&quot;&gt;      &lt;title&gt;Tutorialzine Node-Webkit Experiment&lt;\/title&gt;      &lt;link rel=&quot;stylesheet&quot; href=&quot;.\/css\/jquery.flipster.min.css&quot;&gt;     &lt;link rel=&quot;stylesheet&quot; href=&quot;.\/css\/styles.css&quot;&gt;  &lt;\/head&gt; &lt;body&gt;      &lt;div class=&quot;flipster&quot;&gt;         &lt;ul&gt;             &lt;!&#8212; Tutorialzine&#8217;s latest articles will show here &#8212;&gt;         &lt;\/ul&gt;     &lt;\/div&gt;      &lt;p class=&quot;stats&quot;&gt;&lt;\/p&gt;      &lt;script src=&quot;.\/js\/jquery.min.js&quot;&gt;&lt;\/script&gt;     &lt;script src=&quot;.\/js\/jquery.flipster.min.js&quot;&gt;&lt;\/script&gt;     &lt;script src=&quot;.\/js\/script.js&quot;&gt;&lt;\/script&gt; &lt;\/body&gt; &lt;\/html&gt; <\/p>\n<p>  \u0418 \u043d\u0430\u043a\u043e\u043d\u0435\u0446, \u043d\u0430\u0448 \u0444\u0430\u0439\u043b\u0438\u043a \u0441 JavaScript. \u0412\u043e\u0442 \u0433\u0434\u0435 \u0441\u0430\u043c\u043e\u0435 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e\u0435.<\/p>\n<p>  \/\/ \u0421\u043c\u0435\u0448\u0430\u0442\u044c \u0432 \u043e\u0434\u043d\u043e\u043c \u0444\u0430\u0439\u043b\u0435 \u043a\u043e\u0434 jQuery \u0438 Node.js? \u0414\u0430 \u043d\u0435 \u0432\u043e\u043f\u0440\u043e\u0441!  $(function(){      \/\/ \u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u043e \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u0435, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u043c\u043e\u0434\u0443\u043b\u044c os       var os = require(&#8216;os&#8217;);     var prettyBytes = require(&#8216;pretty-bytes&#8217;);      $(&#8216;.stats&#8217;).append(&#8216;Number of cpu cores: &lt;span&gt;&#8217; + os.cpus().length + &#8216;&lt;\/span&gt;&#8217;);     $(&#8216;.stats&#8217;).append(&#8216;Free memory: &lt;span&gt;&#8217; + prettyBytes(os.freemem())+ &#8216;&lt;\/span&gt;&#8217;);      \/\/ \u041d\u0430\u0442\u0438\u0432\u043d\u0430\u044f \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 Node webkit \u0434\u043b\u044f UI. \u041f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f \u043f\u043e\u043f\u043e\u0437\u0436\u0435     var gui = require(&#8216;nw.gui&#8217;);      \/\/ \u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 \u043f\u043e\u0441\u0442\u044b \u0441 Tutorialzine      var ul = $(&#8216;.flipster ul&#8217;);      \/\/ \u041e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u0439 \u043d\u0430 \u0437\u0430\u043f\u0440\u043e\u0441 \u0434\u0430\u043d\u043d\u044b\u0445 \u0441 \u0434\u0440\u0443\u0433\u0438\u0445 \u0434\u043e\u043c\u0435\u043d\u043e\u0432 \u043d\u0435\u0442, \u043f\u043e\u044d\u0442\u043e\u043c\u0443     \/\/ \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c ajax-\u0437\u0430\u043f\u0440\u043e\u0441 \u043d\u0430 \u0434\u0440\u0443\u0433\u043e\u0439 \u0441\u0430\u0439\u0442.      $.get(&#8216;http:\/\/feeds.feedburner.com\/Tutorialzine&#8217;, function(response){          var rss = $(response);          \/\/ \u041d\u0430\u0439\u0434\u0451\u043c \u0441\u0442\u0430\u0442\u044c\u0438 \u0432 RSS \u0444\u0438\u0434\u0435          rss.find(&#8216;item&#8217;).each(function(){             var item = $(this);                          var content = item.find(&#8216;encoded&#8217;).html().split(&#8216;&lt;\/a&gt;&lt;\/div&gt;&#8217;)[0]+'&lt;\/a&gt;&lt;\/div&gt;&#8217;;             var urlRegex = \/(http|ftp|https):\\\/\\\/[\\w\\-_]+(\\.[\\w\\-_]+)+([\\w\\-\\.,@?^=%&amp;:\/~\\+#]*[\\w\\-\\@?^=%&amp;\/~\\+#])?\/g;              \/\/ \u0417\u0430\u0433\u0440\u0443\u0437\u0438\u043c \u043f\u0435\u0440\u0432\u0443\u044e \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0443 \u0438\u0437 \u0441\u0442\u0430\u0442\u044c\u0438             var imageSource = content.match(urlRegex)[1];              \/\/ \u0421\u043e\u0437\u0434\u0430\u0434\u0438\u043c li \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0438 \u0438 \u0434\u043e\u0431\u0430\u0432\u0438\u043c \u0432 \u043d\u0435\u043d\u0443\u043c\u0435\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u0441\u043f\u0438\u0441\u043e\u043a              var li = $(&#8216;&lt;li&gt;&lt;img \/&gt;&lt;a target=&quot;_blank&quot;&gt;&lt;\/a&gt;&lt;\/li&gt;&#8217;);              li.find(&#8216;a&#8217;)                 .attr(&#8216;href&#8217;, item.find(&#8216;link&#8217;).text())                 .text(item.find(&quot;title&quot;).text());              li.find(&#8216;img&#8217;).attr(&#8216;src&#8217;, imageSource);              li.appendTo(ul);          });          \/\/ \u0418\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u0443\u0435\u043c \u043f\u043b\u0430\u0433\u0438\u043d flipster           $(&#8216;.flipster&#8217;).flipster({             style: &#8216;carousel&#8217;         });          \/\/ \u041f\u043e \u043a\u043b\u0438\u043a\u0443 \u043d\u0430 \u043a\u0430\u0440\u0443\u0441\u0435\u043b\u044c\u043a\u0435 \u043e\u0442\u043a\u0440\u043e\u0435\u043c \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443 \u0432 \u0434\u0435\u0444\u043e\u043b\u0442\u043d\u043e\u043c \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0435.         \/\/ \u0418\u043d\u0430\u0447\u0435 \u043e\u043d\u0430 \u043e\u0442\u043a\u0440\u044b\u043b\u0430\u0441\u044c \u0431\u044b \u0432 \u043d\u0430\u0448\u0435\u043c \u043e\u043a\u043d\u0435, \u0430 \u043d\u0430\u043c \u044d\u0442\u043e \u043d\u0435 \u043d\u0430\u0434\u043e.          $(&#8216;.flipster&#8217;).on(&#8216;click&#8217;, &#8216;a&#8217;, function (e) {              e.preventDefault();                          \/\/ \u043e\u0442\u043a\u0440\u043e\u0435\u043c URL \u0432 \u0434\u0435\u0444\u043e\u043b\u0442\u043d\u043e\u043c \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0435             gui.Shell.openExternal(e.target.href);          });      });  }); <\/p>\n<p>  \u0412 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0435 \u043d\u0435\u043b\u044c\u0437\u044f \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u043d\u0430 \u0434\u0440\u0443\u0433\u043e\u043c \u0434\u043e\u043c\u0435\u043d\u0435 \u0447\u0435\u0440\u0435\u0437 jQuery. \u041d\u043e node-webkit \u0443\u0431\u0438\u0440\u0430\u0435\u0442 \u044d\u0442\u0438 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u044f.<\/p>\n<p>  \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u043c\u043e\u0434\u0443\u043b\u0438:<br \/>\n    Shell \u2013 \u043c\u043e\u0434\u0443\u043b\u044c node webkit \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u0434\u0435\u0441\u043a\u0442\u043e\u043f\u043e\u043c  OS \u2013 \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u0439 \u0432 Node.js \u043c\u043e\u0434\u0443\u043b\u044c. \u0423\u043c\u0435\u0435\u0442 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0442\u044c \u043e\u0431\u044a\u0451\u043c \u0441\u0432\u043e\u0431\u043e\u0434\u043d\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u043e\u0439 \u043f\u0430\u043c\u044f\u0442\u0438  Pretty Bytes \u2013 \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u0443\u0435\u0442 \u0431\u0430\u0439\u0442\u044b \u0432 \u0447\u0435\u043b\u043e\u0432\u0435\u043a\u043e-\u0447\u0438\u0442\u0430\u0435\u043c\u044b\u0435 \u0441\u0442\u0440\u043e\u043a\u0438 1337 \u2192 1.34 kB.  <\/p>\n<p>  \u0422\u0430\u043a\u0436\u0435 \u0435\u0441\u0442\u044c jQuery \u0438 \u043f\u043b\u0430\u0433\u0438\u043d jQuery-flipster. \u0418 \u0432\u0441\u0451!<\/p>\n<p>  \u041f\u0430\u043a\u0443\u0435\u043c \u0438 \u0440\u0430\u0441\u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u044f\u0435\u043c<br \/>\n  \u041a\u043e\u043d\u0435\u0447\u043d\u043e, \u0434\u043b\u044f \u0443\u0434\u043e\u0431\u0441\u0442\u0432\u0430 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u043d\u0443\u0436\u043d\u043e \u0437\u0430\u043f\u0430\u043a\u043e\u0432\u0430\u0442\u044c \u0432\u0441\u0451 \u044d\u0442\u043e \u0432 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u0443\u044e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443, \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u043c\u043e\u0436\u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u043f\u0440\u043e\u0441\u0442\u044b\u043c \u0434\u0432\u043e\u0439\u043d\u044b\u043c \u043a\u043b\u0438\u043a\u043e\u043c.<\/p>\n<p>  \u0412\u0440\u0443\u0447\u043d\u0443\u044e \u044d\u0442\u043e \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u043c\u0443\u0442\u043e\u0440\u043d\u043e \u0434\u0435\u043b\u0430\u0442\u044c, \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u0435\u0441\u043b\u0438 \u0432\u044b \u0445\u043e\u0442\u0438\u0442\u0435 \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u0438\u0442\u044c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0434\u043b\u044f \u0440\u0430\u0437\u043d\u044b\u0445 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c. \u041d\u043e \u0435\u0441\u0442\u044c \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0438 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438.<\/p>\n<p>  \u0415\u0441\u0442\u044c \u0438 \u043c\u0438\u043d\u0443\u0441 \u2013 \u0438\u0441\u043f\u043e\u043b\u043d\u044f\u0435\u043c\u044b\u0435 \u0444\u0430\u0439\u043b\u044b \u043f\u043e\u043b\u0443\u0447\u0430\u044e\u0442\u0441\u044f \u0443\u0436 \u043e\u0447\u0435\u043d\u044c \u0431\u043e\u043b\u044c\u0448\u0438\u043c\u0438 (\u0431\u044b\u0432\u0430\u0435\u0442, \u0447\u0442\u043e \u0438 40-50 \u041c\u0431), \u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u0432 \u043d\u0438\u0445 \u0443\u043f\u0438\u0445\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0438 \u0431\u0440\u0430\u0443\u0437\u0435\u0440 webkit \u0438 node.js, \u0438 \u0432\u0430\u0448 \u043a\u043e\u0434. \u0412\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u0434\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u043f\u0440\u043e\u0441\u0442\u044b\u0445 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u0438\u0445 \u0434\u0435\u0441\u043a\u0442\u043e\u043f\u043d\u044b\u0445 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u044d\u0442\u043e \u043d\u0435 \u0438\u0434\u0435\u0430\u043b\u044c\u043d\u044b\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442.<\/p>\n<p>  \u0417\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435<br \/>\n  Node-webkit \u2013 \u043c\u043e\u0449\u043d\u0430\u044f \u0448\u0442\u0443\u0447\u043a\u0430, \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u044e\u0449\u0430\u044f \u043d\u043e\u0432\u044b\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u0434\u043b\u044f \u0432\u0435\u0431-\u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432. \u0421 \u0435\u0451 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043c\u043e\u0436\u043d\u043e \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u0432\u0441\u043f\u043e\u043c\u043e\u0433\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0434\u043b\u044f \u0432\u0430\u0448\u0438\u0445 \u0432\u0435\u0431-\u0441\u0435\u0440\u0432\u0438\u0441\u043e\u0432 \u0438 \u0434\u0435\u043b\u0430\u0442\u044c \u0434\u0435\u0441\u043a\u0442\u043e\u043f\u043d\u044b\u0435 \u043a\u043b\u0438\u0435\u043d\u0442\u044b, \u0443 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u043b\u043d\u044b\u0439 \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u0443 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f. \u041f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435 \u043e node-webkit \u0447\u0438\u0442\u0430\u0439\u0442\u0435 \u0432 \u0438\u0445 wiki.   \t     http:\/\/habrahabr.ru\/post\/251723\/<\/p>\n","protected":false},"excerpt":{"rendered":"<p>       \u0412 \u043d\u0430\u0448\u0435 \u0432\u0440\u0435\u043c\u044f \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 JavaScript \u0438 HTML \u043c\u043e\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0432\u0441\u0451. \u0410 \u0431\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u044f Node-WebKit (\u043d\u0435\u0434\u0430\u0432\u043d\u043e \u043f\u0435\u0440\u0435\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d \u0432 NW.js) \u043c\u043e\u0436\u043d\u043e \u0434\u0435\u043b\u0430\u0442\u044c \u0434\u0430\u0436\u0435 \u0434\u0435\u0441\u043a\u0442\u043e\u043f\u043d\u044b\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432\u044b\u0433\u043b\u044f\u0434\u044f\u0442, \u043a\u0430\u043a \u043d\u0430\u0442\u0438\u0432\u043d\u044b\u0435 \u0438 \u0438\u043c\u0435\u044e\u0442 \u0434\u043e\u0441\u0442\u0443\u043f \u043a\u043e \u0432\u0441\u0435\u043c \u0447\u0430\u0441\u0442\u044f\u043c \u041e\u0421. \u0421\u0435\u0433\u043e\u0434\u043d\u044f \u043c\u044b \u043f\u043e\u043a\u0430\u0436\u0435\u043c, \u043a\u0430\u043a \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043f\u0440\u043e\u0441\u0442\u043e\u0435 \u0434\u0435\u0441\u043a\u0442\u043e\u043f\u043d\u043e\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 Node-WebKit, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f jQuery \u0438 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043c\u043e\u0434\u0443\u043b\u0435\u0439 \u0434\u043b\u044f Node.js.<\/p>\n<p>  Node-WebKit \u2014 \u043a\u043e\u043c\u0431\u0438\u043d\u0430\u0446\u0438\u044f Node.js \u0438 \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u043e\u0433\u043e \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430 WebKit. \u041a\u043e\u0434 JavaScript \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f \u0432 \u043e\u0441\u043e\u0431\u043e\u043c \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u0438, \u0438\u0437 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0435\u0441\u0442\u044c \u0434\u043e\u0441\u0442\u0443\u043f \u0438 \u043a \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e\u043c\u0443 API \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u043e\u0432, \u0438 \u043a Node.js.<\/p>\n<p>  \u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c Node-WebKit<br \/>\n  \u0414\u043b\u044f \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u043d\u0443\u0436\u043d\u043e \u0441\u043a\u0430\u0447\u0430\u0442\u044c \u0438\u0441\u043f\u043e\u043b\u043d\u044f\u0435\u043c\u044b\u0439 \u0444\u0430\u0439\u043b node-webkit \u0438 \u0432\u044b\u0437\u044b\u0432\u0430\u0442\u044c \u0435\u0433\u043e \u0438\u0437 \u043a\u043e\u043c\u0430\u043d\u0434\u043d\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0438. \u041f\u043e\u0437\u0436\u0435 \u0432\u0441\u0451 \u0432\u043c\u0435\u0441\u0442\u0435 \u0443\u043f\u0430\u043a\u0443\u0435\u0442\u0441\u044f \u0432 \u043e\u0434\u043d\u0443 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0431\u0443\u0434\u0435\u0442 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c\u0441\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u043c.<\/p>\n<p>  \u0421\u043a\u0430\u0447\u0430\u0439\u0442\u0435 \u0444\u0430\u0439\u043b\u044b, \u043f\u043e\u0434\u0445\u043e\u0434\u044f\u0449\u0438\u0435 \u0434\u043b\u044f \u0432\u0430\u0448\u0435\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b, \u0438 \u0440\u0430\u0441\u043f\u0430\u043a\u0443\u0439\u0442\u0435 \u0438\u0445 \u0432 \u043f\u043e\u0434\u0445\u043e\u0434\u044f\u0449\u0435\u0435 \u043c\u0435\u0441\u0442\u043e. \u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u0438\u0445 \u043d\u0443\u0436\u043d\u043e \u0442\u0430\u043a:<\/p>\n<p>  # \u0435\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 linux\/osx  \/path\/to\/node-webkit\/nw \/your\/project\/folder  # \u0435\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 windows  C:\\path\\to\\node-webkit\\nw.exe C:\\your\\project\\folder  # (\u043f\u0443\u0442\u0438 \u0443\u043a\u0430\u0437\u0430\u043d\u044b \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043b\u044f \u043f\u0440\u0438\u043c\u0435\u0440\u0430) <\/p>\n<p>  \u041e\u0442\u043a\u0440\u043e\u0435\u0442\u0441\u044f \u043d\u043e\u0432\u043e\u0435 \u043e\u043a\u043d\u043e node-webkit, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0432\u0435\u0434\u0435\u043d\u043e \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e \u043e\u0442\u043b\u0430\u0434\u043e\u0447\u043d\u044b\u0445 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0439.<\/p>\n<p>  \u041f\u0435\u0440\u0432\u043e\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435<\/p>\n<p>  \u041c\u044b \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u0438\u043b\u0438 \u0434\u043b\u044f \u0432\u0430\u0441 \u0442\u0435\u0441\u0442\u043e\u0432\u043e\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0434\u043b\u044f \u043f\u0440\u0438\u043c\u0435\u0440\u0430. \u041e\u043d\u043e \u0441\u043a\u0430\u0447\u0438\u0432\u0430\u0435\u0442 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 \u0441\u0442\u0430\u0442\u044c\u0438 \u0441 Tutorialzine \u0438 \u0434\u0435\u043b\u0430\u0435\u0442 \u0438\u0437 \u043d\u0438\u0445 \u043a\u0430\u0440\u0443\u0441\u0435\u043b\u044c\u043a\u0443 \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 jQuery Flipster.<\/p>\n<p>  \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u043e\u0432<\/p>\n<p>  \u0412 \u0430\u0440\u0445\u0438\u0432\u0435 \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0442\u0441\u044f \u0432\u044b\u0448\u0435\u0443\u043a\u0430\u0437\u0430\u043d\u043d\u044b\u0435 \u0444\u0430\u0439\u043b\u044b. \u0412\u044b\u0433\u043b\u044f\u0434\u044f\u0442 \u043e\u043d\u0438 \u043a\u0430\u043a \u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0441\u0430\u0439\u0442, \u043d\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0432 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0435 \u043f\u0440\u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0435 index.html \u043d\u0435 \u0431\u0443\u0434\u0443\u0442 \u2013 \u0438\u043c \u043d\u0443\u0436\u043d\u044b \u043c\u043e\u0434\u0443\u043b\u0438 Node.js. \u0414\u043b\u044f \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435\u0441\u044c \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439 <\/p>\n<p>  \/path\/to\/node-webkit\/nw . <\/p>\n<p>  \u041e\u043d\u0430 \u0438 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442 \u043d\u0430\u0448\u0435 \u043f\u0440\u0435\u0432\u043e\u0441\u0445\u043e\u0434\u043d\u043e\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435.<\/p>\n<p>  \u041a\u0430\u043a \u044d\u0442\u043e \u0441\u0434\u0435\u043b\u0430\u043d\u043e<br \/>\n  \u0412\u0441\u0451 \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442\u0441\u044f \u0441 \u0444\u0430\u0439\u043b\u0430 package.json, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 node-webkit \u0438\u0449\u0435\u0442 \u043f\u0440\u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0435. \u0422\u0430\u043c \u043e\u043f\u0438\u0441\u0430\u043d\u043e, \u0447\u0442\u043e \u043d\u0443\u0436\u043d\u043e \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0442\u044c \u0438 \u0434\u0430\u043d\u044b \u0440\u0430\u0437\u043d\u044b\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043e\u043a\u043d\u0430.<\/p>\n<p>  package.json<br \/>\n  {   &quot;name&quot;: &quot;nw-app&quot;,   &quot;version&quot;: &quot;1.0.0&quot;,   &quot;description&quot;: &quot;&quot;,   &quot;main&quot;: &quot;index.html&quot;,   &quot;scripts&quot;: {     &quot;test&quot;: &quot;echo \\&quot;\u041e\u0448\u0438\u0431\u043a\u0430: \u0442\u0435\u0441\u0442 \u043d\u0435 \u0437\u0430\u0434\u0430\u043d\\&quot; &#038;&#038; exit 1&quot;   },   &quot;author&quot;: &quot;&quot;,   &quot;window&quot;: {     &quot;toolbar&quot;: false,     &quot;width&quot;: 800,     &quot;height&quot;: 500   },   &quot;license&quot;: &quot;ISC&quot;,   &quot;dependencies&quot;: {     &quot;pretty-bytes&quot;: &quot;^1.0.2&quot;   } } <\/p>\n<p>  \u0412 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0435 window \u043e\u043f\u0438\u0441\u0430\u043d\u0430 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u044c \u043e\u0442\u043a\u0440\u044b\u0442\u044c \u043e\u043a\u043d\u043e \u0440\u0430\u0437\u043c\u0435\u0440\u0430 800 \u0445 500 \u043f\u0438\u043a\u0441\u0435\u043b\u0435\u0439 \u0438 \u0441\u043f\u0440\u044f\u0442\u0430\u0442\u044c \u0443 \u043d\u0435\u0433\u043e \u0442\u0443\u043b\u0431\u0430\u0440. \u0412 \u043d\u0435\u0433\u043e \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u0441\u044f \u0444\u0430\u0439\u043b \u0438\u0437 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430 main. \u0423 \u043d\u0430\u0441 \u044d\u0442\u043e <\/p>\n<p>  index.html<br \/>\n  &lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt;      &lt;meta charset=&quot;utf-8&quot;&gt;     &lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1&quot;&gt;      &lt;title&gt;Tutorialzine Node-Webkit Experiment&lt;\/title&gt;      &lt;link rel=&quot;stylesheet&quot; href=&quot;.\/css\/jquery.flipster.min.css&quot;&gt;     &lt;link rel=&quot;stylesheet&quot; href=&quot;.\/css\/styles.css&quot;&gt;  &lt;\/head&gt; &lt;body&gt;      &lt;div class=&quot;flipster&quot;&gt;         &lt;ul&gt;             &lt;!&#8212; Tutorialzine&#8217;s latest articles will show here &#8212;&gt;         &lt;\/ul&gt;     &lt;\/div&gt;      &lt;p class=&quot;stats&quot;&gt;&lt;\/p&gt;      &lt;script src=&quot;.\/js\/jquery.min.js&quot;&gt;&lt;\/script&gt;     &lt;script src=&quot;.\/js\/jquery.flipster.min.js&quot;&gt;&lt;\/script&gt;     &lt;script src=&quot;.\/js\/script.js&quot;&gt;&lt;\/script&gt; &lt;\/body&gt; &lt;\/html&gt; <\/p>\n<p>  \u0418 \u043d\u0430\u043a\u043e\u043d\u0435\u0446, \u043d\u0430\u0448 \u0444\u0430\u0439\u043b\u0438\u043a \u0441 JavaScript. \u0412\u043e\u0442 \u0433\u0434\u0435 \u0441\u0430\u043c\u043e\u0435 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e\u0435.<\/p>\n<p>  \/\/ \u0421\u043c\u0435\u0448\u0430\u0442\u044c \u0432 \u043e\u0434\u043d\u043e\u043c \u0444\u0430\u0439\u043b\u0435 \u043a\u043e\u0434 jQuery \u0438 Node.js? \u0414\u0430 \u043d\u0435 \u0432\u043e\u043f\u0440\u043e\u0441!  $(function(){      \/\/ \u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u043e \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u0435, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u043c\u043e\u0434\u0443\u043b\u044c os       var os = require(&#8216;os&#8217;);     var prettyBytes = require(&#8216;pretty-bytes&#8217;);      $(&#8216;.stats&#8217;).append(&#8216;Number of cpu cores: &lt;span&gt;&#8217; + os.cpus().length + &#8216;&lt;\/span&gt;&#8217;);     $(&#8216;.stats&#8217;).append(&#8216;Free memory: &lt;span&gt;&#8217; + prettyBytes(os.freemem())+ &#8216;&lt;\/span&gt;&#8217;);      \/\/ \u041d\u0430\u0442\u0438\u0432\u043d\u0430\u044f \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 Node webkit \u0434\u043b\u044f UI. \u041f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f \u043f\u043e\u043f\u043e\u0437\u0436\u0435     var gui = require(&#8216;nw.gui&#8217;);      \/\/ \u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 \u043f\u043e\u0441\u0442\u044b \u0441 Tutorialzine      var ul = $(&#8216;.flipster ul&#8217;);      \/\/ \u041e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u0439 \u043d\u0430 \u0437\u0430\u043f\u0440\u043e\u0441 \u0434\u0430\u043d\u043d\u044b\u0445 \u0441 \u0434\u0440\u0443\u0433\u0438\u0445 \u0434\u043e\u043c\u0435\u043d\u043e\u0432 \u043d\u0435\u0442, \u043f\u043e\u044d\u0442\u043e\u043c\u0443     \/\/ \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c ajax-\u0437\u0430\u043f\u0440\u043e\u0441 \u043d\u0430 \u0434\u0440\u0443\u0433\u043e\u0439 \u0441\u0430\u0439\u0442.      $.get(&#8216;http:\/\/feeds.feedburner.com\/Tutorialzine&#8217;, function(response){          var rss = $(response);          \/\/ \u041d\u0430\u0439\u0434\u0451\u043c \u0441\u0442\u0430\u0442\u044c\u0438 \u0432 RSS \u0444\u0438\u0434\u0435          rss.find(&#8216;item&#8217;).each(function(){             var item = $(this);                          var content = item.find(&#8216;encoded&#8217;).html().split(&#8216;&lt;\/a&gt;&lt;\/div&gt;&#8217;)[0]+'&lt;\/a&gt;&lt;\/div&gt;&#8217;;             var urlRegex = \/(http|ftp|https):\\\/\\\/[\\w\\-_]+(\\.[\\w\\-_]+)+([\\w\\-\\.,@?^=%&amp;:\/~\\+#]*[\\w\\-\\@?^=%&amp;\/~\\+#])?\/g;              \/\/ \u0417\u0430\u0433\u0440\u0443\u0437\u0438\u043c \u043f\u0435\u0440\u0432\u0443\u044e \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0443 \u0438\u0437 \u0441\u0442\u0430\u0442\u044c\u0438             var imageSource = content.match(urlRegex)[1];              \/\/ \u0421\u043e\u0437\u0434\u0430\u0434\u0438\u043c li \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0438 \u0438 \u0434\u043e\u0431\u0430\u0432\u0438\u043c \u0432 \u043d\u0435\u043d\u0443\u043c\u0435\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u0441\u043f\u0438\u0441\u043e\u043a              var li = $(&#8216;&lt;li&gt;&lt;img \/&gt;&lt;a target=&quot;_blank&quot;&gt;&lt;\/a&gt;&lt;\/li&gt;&#8217;);              li.find(&#8216;a&#8217;)                 .attr(&#8216;href&#8217;, item.find(&#8216;link&#8217;).text())                 .text(item.find(&quot;title&quot;).text());              li.find(&#8216;img&#8217;).attr(&#8216;src&#8217;, imageSource);              li.appendTo(ul);          });          \/\/ \u0418\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u0443\u0435\u043c \u043f\u043b\u0430\u0433\u0438\u043d flipster           $(&#8216;.flipster&#8217;).flipster({             style: &#8216;carousel&#8217;         });          \/\/ \u041f\u043e \u043a\u043b\u0438\u043a\u0443 \u043d\u0430 \u043a\u0430\u0440\u0443\u0441\u0435\u043b\u044c\u043a\u0435 \u043e\u0442\u043a\u0440\u043e\u0435\u043c \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443 \u0432 \u0434\u0435\u0444\u043e\u043b\u0442\u043d\u043e\u043c \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0435.         \/\/ \u0418\u043d\u0430\u0447\u0435 \u043e\u043d\u0430 \u043e\u0442\u043a\u0440\u044b\u043b\u0430\u0441\u044c \u0431\u044b \u0432 \u043d\u0430\u0448\u0435\u043c \u043e\u043a\u043d\u0435, \u0430 \u043d\u0430\u043c \u044d\u0442\u043e \u043d\u0435 \u043d\u0430\u0434\u043e.          $(&#8216;.flipster&#8217;).on(&#8216;click&#8217;, &#8216;a&#8217;, function (e) {              e.preventDefault();                          \/\/ \u043e\u0442\u043a\u0440\u043e\u0435\u043c URL \u0432 \u0434\u0435\u0444\u043e\u043b\u0442\u043d\u043e\u043c \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0435             gui.Shell.openExternal(e.target.href);          });      });  }); <\/p>\n<p>  \u0412 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0435 \u043d\u0435\u043b\u044c\u0437\u044f \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u043d\u0430 \u0434\u0440\u0443\u0433\u043e\u043c \u0434\u043e\u043c\u0435\u043d\u0435 \u0447\u0435\u0440\u0435\u0437 jQuery. \u041d\u043e node-webkit \u0443\u0431\u0438\u0440\u0430\u0435\u0442 \u044d\u0442\u0438 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u044f.<\/p>\n<p>  \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u043c\u043e\u0434\u0443\u043b\u0438:<br \/>\n    Shell \u2013 \u043c\u043e\u0434\u0443\u043b\u044c node webkit \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u0434\u0435\u0441\u043a\u0442\u043e\u043f\u043e\u043c  OS \u2013 \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u0439 \u0432 Node.js \u043c\u043e\u0434\u0443\u043b\u044c. \u0423\u043c\u0435\u0435\u0442 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0442\u044c \u043e\u0431\u044a\u0451\u043c \u0441\u0432\u043e\u0431\u043e\u0434\u043d\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u043e\u0439 \u043f\u0430\u043c\u044f\u0442\u0438  Pretty Bytes \u2013 \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u0443\u0435\u0442 \u0431\u0430\u0439\u0442\u044b \u0432 \u0447\u0435\u043b\u043e\u0432\u0435\u043a\u043e-\u0447\u0438\u0442\u0430\u0435\u043c\u044b\u0435 \u0441\u0442\u0440\u043e\u043a\u0438 1337 \u2192 1.34 kB.  <\/p>\n<p>  \u0422\u0430\u043a\u0436\u0435 \u0435\u0441\u0442\u044c jQuery \u0438 \u043f\u043b\u0430\u0433\u0438\u043d jQuery-flipster. \u0418 \u0432\u0441\u0451!<\/p>\n<p>  \u041f\u0430\u043a\u0443\u0435\u043c \u0438 \u0440\u0430\u0441\u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u044f\u0435\u043c<br \/>\n  \u041a\u043e\u043d\u0435\u0447\u043d\u043e, \u0434\u043b\u044f \u0443\u0434\u043e\u0431\u0441\u0442\u0432\u0430 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u043d\u0443\u0436\u043d\u043e \u0437\u0430\u043f\u0430\u043a\u043e\u0432\u0430\u0442\u044c \u0432\u0441\u0451 \u044d\u0442\u043e \u0432 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u0443\u044e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443, \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u043c\u043e\u0436\u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u043f\u0440\u043e\u0441\u0442\u044b\u043c \u0434\u0432\u043e\u0439\u043d\u044b\u043c \u043a\u043b\u0438\u043a\u043e\u043c.<\/p>\n<p>  \u0412\u0440\u0443\u0447\u043d\u0443\u044e \u044d\u0442\u043e \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u043c\u0443\u0442\u043e\u0440\u043d\u043e \u0434\u0435\u043b\u0430\u0442\u044c, \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u0435\u0441\u043b\u0438 \u0432\u044b \u0445\u043e\u0442\u0438\u0442\u0435 \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u0438\u0442\u044c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0434\u043b\u044f \u0440\u0430\u0437\u043d\u044b\u0445 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c. \u041d\u043e \u0435\u0441\u0442\u044c \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0438 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438.<\/p>\n<p>  \u0415\u0441\u0442\u044c \u0438 \u043c\u0438\u043d\u0443\u0441 \u2013 \u0438\u0441\u043f\u043e\u043b\u043d\u044f\u0435\u043c\u044b\u0435 \u0444\u0430\u0439\u043b\u044b \u043f\u043e\u043b\u0443\u0447\u0430\u044e\u0442\u0441\u044f \u0443\u0436 \u043e\u0447\u0435\u043d\u044c \u0431\u043e\u043b\u044c\u0448\u0438\u043c\u0438 (\u0431\u044b\u0432\u0430\u0435\u0442, \u0447\u0442\u043e \u0438 40-50 \u041c\u0431), \u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u0432 \u043d\u0438\u0445 \u0443\u043f\u0438\u0445\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0438 \u0431\u0440\u0430\u0443\u0437\u0435\u0440 webkit \u0438 node.js, \u0438 \u0432\u0430\u0448 \u043a\u043e\u0434. \u0412\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u0434\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u043f\u0440\u043e\u0441\u0442\u044b\u0445 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u0438\u0445 \u0434\u0435\u0441\u043a\u0442\u043e\u043f\u043d\u044b\u0445 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u044d\u0442\u043e \u043d\u0435 \u0438\u0434\u0435\u0430\u043b\u044c\u043d\u044b\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442.<\/p>\n<p>  \u0417\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435<br \/>\n  Node-webkit \u2013 \u043c\u043e\u0449\u043d\u0430\u044f \u0448\u0442\u0443\u0447\u043a\u0430, \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u044e\u0449\u0430\u044f \u043d\u043e\u0432\u044b\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u0434\u043b\u044f \u0432\u0435\u0431-\u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432. \u0421 \u0435\u0451 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043c\u043e\u0436\u043d\u043e \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u0432\u0441\u043f\u043e\u043c\u043e\u0433\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0434\u043b\u044f \u0432\u0430\u0448\u0438\u0445 \u0432\u0435\u0431-\u0441\u0435\u0440\u0432\u0438\u0441\u043e\u0432 \u0438 \u0434\u0435\u043b\u0430\u0442\u044c \u0434\u0435\u0441\u043a\u0442\u043e\u043f\u043d\u044b\u0435 \u043a\u043b\u0438\u0435\u043d\u0442\u044b, \u0443 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u043b\u043d\u044b\u0439 \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u0443 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f. \u041f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435 \u043e node-webkit \u0447\u0438\u0442\u0430\u0439\u0442\u0435 \u0432 \u0438\u0445 wiki.<\/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-252117","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/252117","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=252117"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/252117\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=252117"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=252117"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=252117"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}