{"id":399,"date":"2009-11-22T07:50:51","date_gmt":"2009-11-22T15:50:51","guid":{"rendered":"http:\/\/www.visophyte.org\/blog\/?p=399"},"modified":"2009-12-05T20:02:16","modified_gmt":"2009-12-06T04:02:16","slug":"thunderbird-jetpack-teasers-words-per-minute-in-compose","status":"publish","type":"post","link":"https:\/\/www.visophyte.org\/blog\/2009\/11\/22\/thunderbird-jetpack-teasers-words-per-minute-in-compose\/","title":{"rendered":"Thunderbird Jetpack Teasers: Words per Minute in Compose"},"content":{"rendered":"<pre lang=\"javascript\" escaped=\"true\">jetpack.future.import(\"thunderbird.compose\");\r\njetpack.thunderbird.compose.appendComposePanel({\r\n  onReady: function (panel, composeContext) {\r\n    let doc = panel.contentDocument;\r\n    let msgNode = $(\"&lt;span \/&gt;\", doc.body).appendTo(doc.body);\r\n\r\n    let started = Date.now();\r\n    setInterval(function() {\r\n      let words = composeContext.getPlaintextContents().split(\/\\s+\/);\r\n      let secs = Math.ceil((Date.now() - started) \/ 1000);\r\n      let wordsPerMinute = Math.floor((words.length * 60) \/ secs);\r\n      msgNode.text(wordsPerMinute + \" words per minute.\");\r\n    }, 1000);\r\n\r\n    panel.show();\r\n  },\r\n  html: &lt;&gt;&lt;body style=\"overflow: hidden\"&gt;&lt;\/body&gt;&lt;\/&gt;\r\n});<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-400\" title=\"thunderbird-jetpack-words-per-minute-example\" src=\"http:\/\/www.visophyte.org\/blog\/wp-content\/uploads\/2009\/11\/thunderbird-jetpack-words-per-minute-example.png\" alt=\"thunderbird-jetpack-words-per-minute-example\" width=\"585\" height=\"409\" srcset=\"https:\/\/www.visophyte.org\/blog\/wp-content\/uploads\/2009\/11\/thunderbird-jetpack-words-per-minute-example.png 585w, https:\/\/www.visophyte.org\/blog\/wp-content\/uploads\/2009\/11\/thunderbird-jetpack-words-per-minute-example-300x209.png 300w\" sizes=\"auto, (max-width: 585px) 100vw, 585px\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>jetpack.future.import(&#8220;thunderbird.compose&#8221;); jetpack.thunderbird.compose.appendComposePanel({ onReady: function (panel, composeContext) { let doc = panel.contentDocument; let msgNode = $(&#8220;&lt;span \/&gt;&#8221;, doc.body).appendTo(doc.body); let started = Date.now(); setInterval(function() { let words = composeContext.getPlaintextContents().split(\/\\s+\/); let secs = Math.ceil((Date.now() &#8211; started) \/ 1000); let wordsPerMinute = Math.floor((words.length * &hellip; <a href=\"https:\/\/www.visophyte.org\/blog\/2009\/11\/22\/thunderbird-jetpack-teasers-words-per-minute-in-compose\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[6],"tags":[67],"class_list":["post-399","post","type-post","status-publish","format-standard","hentry","category-thunderbird","tag-jetpack"],"_links":{"self":[{"href":"https:\/\/www.visophyte.org\/blog\/wp-json\/wp\/v2\/posts\/399","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.visophyte.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.visophyte.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.visophyte.org\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.visophyte.org\/blog\/wp-json\/wp\/v2\/comments?post=399"}],"version-history":[{"count":10,"href":"https:\/\/www.visophyte.org\/blog\/wp-json\/wp\/v2\/posts\/399\/revisions"}],"predecessor-version":[{"id":409,"href":"https:\/\/www.visophyte.org\/blog\/wp-json\/wp\/v2\/posts\/399\/revisions\/409"}],"wp:attachment":[{"href":"https:\/\/www.visophyte.org\/blog\/wp-json\/wp\/v2\/media?parent=399"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.visophyte.org\/blog\/wp-json\/wp\/v2\/categories?post=399"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.visophyte.org\/blog\/wp-json\/wp\/v2\/tags?post=399"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}