Use new feature png.
Project: http://git-wip-us.apache.org/repos/asf/incubator-rocketmq-site/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-rocketmq-site/commit/e29c1519 Tree: http://git-wip-us.apache.org/repos/asf/incubator-rocketmq-site/tree/e29c1519 Diff: http://git-wip-us.apache.org/repos/asf/incubator-rocketmq-site/diff/e29c1519 Branch: refs/heads/master Commit: e29c1519ea13ce6f8e54a3b23d8b9874497d30e8 Parents: 7885a8d Author: yukon <[email protected]> Authored: Fri Dec 30 18:40:41 2016 +0800 Committer: yukon <[email protected]> Committed: Fri Dec 30 18:40:41 2016 +0800 ---------------------------------------------------------------------- _config.yml | 8 +- assets/images/rmq-feature-bigdata.png | Bin 39529 -> 39087 bytes assets/images/rmq-feature-finance.png | Bin 41122 -> 40051 bytes assets/images/rmq-feature-industry.png | Bin 38460 -> 45315 bytes assets/images/rmq-feature-lowlatency.png | Bin 51557 -> 47445 bytes .../images/rmq-feature-massiveaccumulation.png | Bin 46698 -> 46075 bytes assets/images/rmq-feature-neutral.png | Bin 47104 -> 46387 bytes content/about/contact/index.html | 2 +- content/about/team/index.html | 2 +- content/assets/images/rmq-feature-bigdata.png | Bin 39529 -> 39087 bytes content/assets/images/rmq-feature-finance.png | Bin 41122 -> 40051 bytes content/assets/images/rmq-feature-industry.png | Bin 38460 -> 45315 bytes .../assets/images/rmq-feature-lowlatency.png | Bin 51557 -> 47445 bytes .../images/rmq-feature-massiveaccumulation.png | Bin 46698 -> 46075 bytes content/assets/images/rmq-feature-neutral.png | Bin 47104 -> 46387 bytes content/docs/best-practice-broker/index.html | 113 +++++++++++++++---- content/docs/best-practice-consumer/index.html | 113 +++++++++++++++---- content/docs/best-practice-namesvr/index.html | 113 +++++++++++++++---- content/docs/best-practice-producer/index.html | 113 +++++++++++++++---- content/docs/cli-admin-tool/index.html | 113 +++++++++++++++---- content/docs/cluster-deployment/index.html | 113 +++++++++++++++---- content/docs/code-guidelines/index.html | 113 +++++++++++++++---- content/docs/core-concept/index.html | 113 +++++++++++++++---- content/docs/faq/index.html | 113 +++++++++++++++---- content/docs/motivation/index.html | 113 +++++++++++++++---- content/docs/pull-request/index.html | 113 +++++++++++++++---- content/docs/quick-start/index.html | 113 +++++++++++++++---- content/feed.xml | 2 +- .../index.html | 111 ++++++++++++++---- .../index.html | 111 ++++++++++++++---- 30 files changed, 1279 insertions(+), 313 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-rocketmq-site/blob/e29c1519/_config.yml ---------------------------------------------------------------------- diff --git a/_config.yml b/_config.yml index e98a6cf..d78777f 100644 --- a/_config.yml +++ b/_config.yml @@ -19,9 +19,9 @@ destination : content # breadcrumbs : false # true, false (default) words_per_minute : 200 comments: - provider : "disqus" # false (default), "disqus", "discourse", "facebook", "google-plus", "staticman", "custom" + provider : "staticman" # false (default), "disqus", "discourse", "facebook", "google-plus", "staticman", "custom" disqus: - shortname : "rocketmq" # https://help.disqus.com/customer/portal/articles/466208-what-s-a-shortname- + shortname : discourse: server : # https://meta.discourse.org/t/embedding-discourse-comments-via-javascript/31963 , e.g.: meta.discourse.org facebook: @@ -35,8 +35,8 @@ staticman: commitMessage : "New comment." filename : comment-{@timestamp} format : "yml" - moderation : true - path : "docs/_data/comments/{options.slug}" # "/_data/comments/{options.slug}" (default) + moderation : false + path : "_data/comments/{options.slug}" requiredFields : ['name', 'email', 'message'] transforms: email : "md5" http://git-wip-us.apache.org/repos/asf/incubator-rocketmq-site/blob/e29c1519/assets/images/rmq-feature-bigdata.png ---------------------------------------------------------------------- diff --git a/assets/images/rmq-feature-bigdata.png b/assets/images/rmq-feature-bigdata.png index 8359022..b5d0978 100755 Binary files a/assets/images/rmq-feature-bigdata.png and b/assets/images/rmq-feature-bigdata.png differ http://git-wip-us.apache.org/repos/asf/incubator-rocketmq-site/blob/e29c1519/assets/images/rmq-feature-finance.png ---------------------------------------------------------------------- diff --git a/assets/images/rmq-feature-finance.png b/assets/images/rmq-feature-finance.png index 082cbde..56f04cc 100755 Binary files a/assets/images/rmq-feature-finance.png and b/assets/images/rmq-feature-finance.png differ http://git-wip-us.apache.org/repos/asf/incubator-rocketmq-site/blob/e29c1519/assets/images/rmq-feature-industry.png ---------------------------------------------------------------------- diff --git a/assets/images/rmq-feature-industry.png b/assets/images/rmq-feature-industry.png index dfbbb81..91eb933 100755 Binary files a/assets/images/rmq-feature-industry.png and b/assets/images/rmq-feature-industry.png differ http://git-wip-us.apache.org/repos/asf/incubator-rocketmq-site/blob/e29c1519/assets/images/rmq-feature-lowlatency.png ---------------------------------------------------------------------- diff --git a/assets/images/rmq-feature-lowlatency.png b/assets/images/rmq-feature-lowlatency.png index ca3df30..994fcc1 100755 Binary files a/assets/images/rmq-feature-lowlatency.png and b/assets/images/rmq-feature-lowlatency.png differ http://git-wip-us.apache.org/repos/asf/incubator-rocketmq-site/blob/e29c1519/assets/images/rmq-feature-massiveaccumulation.png ---------------------------------------------------------------------- diff --git a/assets/images/rmq-feature-massiveaccumulation.png b/assets/images/rmq-feature-massiveaccumulation.png index cbe2992..7944360 100755 Binary files a/assets/images/rmq-feature-massiveaccumulation.png and b/assets/images/rmq-feature-massiveaccumulation.png differ http://git-wip-us.apache.org/repos/asf/incubator-rocketmq-site/blob/e29c1519/assets/images/rmq-feature-neutral.png ---------------------------------------------------------------------- diff --git a/assets/images/rmq-feature-neutral.png b/assets/images/rmq-feature-neutral.png index 068bfb9..ca0ae83 100755 Binary files a/assets/images/rmq-feature-neutral.png and b/assets/images/rmq-feature-neutral.png differ http://git-wip-us.apache.org/repos/asf/incubator-rocketmq-site/blob/e29c1519/content/about/contact/index.html ---------------------------------------------------------------------- diff --git a/content/about/contact/index.html b/content/about/contact/index.html index e4bc65c..ab73e9c 100644 --- a/content/about/contact/index.html +++ b/content/about/contact/index.html @@ -57,7 +57,7 @@ <meta property="og:type" content="article"> - <meta property="article:published_time" content="2016-12-30T10:03:22+08:00"> + <meta property="article:published_time" content="2016-12-30T18:39:19+08:00"> http://git-wip-us.apache.org/repos/asf/incubator-rocketmq-site/blob/e29c1519/content/about/team/index.html ---------------------------------------------------------------------- diff --git a/content/about/team/index.html b/content/about/team/index.html index e319351..e7dafdd 100644 --- a/content/about/team/index.html +++ b/content/about/team/index.html @@ -57,7 +57,7 @@ <meta property="og:type" content="article"> - <meta property="article:published_time" content="2016-12-30T10:03:22+08:00"> + <meta property="article:published_time" content="2016-12-30T18:39:19+08:00"> http://git-wip-us.apache.org/repos/asf/incubator-rocketmq-site/blob/e29c1519/content/assets/images/rmq-feature-bigdata.png ---------------------------------------------------------------------- diff --git a/content/assets/images/rmq-feature-bigdata.png b/content/assets/images/rmq-feature-bigdata.png index 8359022..b5d0978 100755 Binary files a/content/assets/images/rmq-feature-bigdata.png and b/content/assets/images/rmq-feature-bigdata.png differ http://git-wip-us.apache.org/repos/asf/incubator-rocketmq-site/blob/e29c1519/content/assets/images/rmq-feature-finance.png ---------------------------------------------------------------------- diff --git a/content/assets/images/rmq-feature-finance.png b/content/assets/images/rmq-feature-finance.png index 082cbde..56f04cc 100755 Binary files a/content/assets/images/rmq-feature-finance.png and b/content/assets/images/rmq-feature-finance.png differ http://git-wip-us.apache.org/repos/asf/incubator-rocketmq-site/blob/e29c1519/content/assets/images/rmq-feature-industry.png ---------------------------------------------------------------------- diff --git a/content/assets/images/rmq-feature-industry.png b/content/assets/images/rmq-feature-industry.png index dfbbb81..91eb933 100755 Binary files a/content/assets/images/rmq-feature-industry.png and b/content/assets/images/rmq-feature-industry.png differ http://git-wip-us.apache.org/repos/asf/incubator-rocketmq-site/blob/e29c1519/content/assets/images/rmq-feature-lowlatency.png ---------------------------------------------------------------------- diff --git a/content/assets/images/rmq-feature-lowlatency.png b/content/assets/images/rmq-feature-lowlatency.png index ca3df30..994fcc1 100755 Binary files a/content/assets/images/rmq-feature-lowlatency.png and b/content/assets/images/rmq-feature-lowlatency.png differ http://git-wip-us.apache.org/repos/asf/incubator-rocketmq-site/blob/e29c1519/content/assets/images/rmq-feature-massiveaccumulation.png ---------------------------------------------------------------------- diff --git a/content/assets/images/rmq-feature-massiveaccumulation.png b/content/assets/images/rmq-feature-massiveaccumulation.png index cbe2992..7944360 100755 Binary files a/content/assets/images/rmq-feature-massiveaccumulation.png and b/content/assets/images/rmq-feature-massiveaccumulation.png differ http://git-wip-us.apache.org/repos/asf/incubator-rocketmq-site/blob/e29c1519/content/assets/images/rmq-feature-neutral.png ---------------------------------------------------------------------- diff --git a/content/assets/images/rmq-feature-neutral.png b/content/assets/images/rmq-feature-neutral.png index 068bfb9..ca0ae83 100755 Binary files a/content/assets/images/rmq-feature-neutral.png and b/content/assets/images/rmq-feature-neutral.png differ http://git-wip-us.apache.org/repos/asf/incubator-rocketmq-site/blob/e29c1519/content/docs/best-practice-broker/index.html ---------------------------------------------------------------------- diff --git a/content/docs/best-practice-broker/index.html b/content/docs/best-practice-broker/index.html index 0344a1e..3a79b33 100644 --- a/content/docs/best-practice-broker/index.html +++ b/content/docs/best-practice-broker/index.html @@ -57,7 +57,7 @@ <meta property="og:type" content="article"> - <meta property="article:published_time" content="2016-12-30T10:03:22+08:00"> + <meta property="article:published_time" content="2016-12-30T18:39:19+08:00"> @@ -395,8 +395,57 @@ If you just want to make it easy, you may only need a ASYNC_MASTER without SLAVE <div class="page__comments"> - <h4 class="page__comments-title">Leave a Comment</h4> - <section id="disqus_thread"></section> + <section id="static-comments"> + + <!-- Start static comments --> + <div class="js-comments"> + + </div> + <!-- End static comments --> + + <!-- Start new comment form --> + <h4 class="page__comments-title">Leave a Comment</h4> + <p class="small">Your email address will not be published. Required fields are marked <span class="required">*</span></p> + <form id="new_comment" class="page__comments-form js-form form" method="post" action="https://api.staticman.net/v1/entry/apache/incubator-rocketmq/master"> + <div class="form__spinner"> + <i class="fa fa-spinner fa-spin fa-3x fa-fw"></i> + <span class="sr-only">Loading...</span> + </div> + + <fieldset> + <label for="comment-form-message">Comment <small class="required">*</small></label> + <textarea type="text" rows="3" id="comment-form-message" name="fields[message]" tabindex="1"></textarea> + <div class="small help-block"><a href="https://daringfireball.net/projects/markdown/">Markdown is supported.</a></div> + </fieldset> + <fieldset> + <label for="comment-form-name">Name <small class="required">*</small></label> + <input type="text" id="comment-form-name" name="fields[name]" tabindex="2" /> + </fieldset> + <fieldset> + <label for="comment-form-email">Email address <small class="required">*</small></label> + <input type="email" id="comment-form-email" name="fields[email]" tabindex="3" /> + </fieldset> + <fieldset> + <label for="comment-form-url">Website (optional)</label> + <input type="url" id="comment-form-url" name="fields[url]" tabindex="4"/> + </fieldset> + <fieldset class="hidden" style="display: none;"> + <input type="hidden" name="options[slug]" value="best-practice-broker"> + <label for="comment-form-location">Not used. Leave blank if you are a human.</label> + <input type="text" id="comment-form-location" name="fields[hidden]" autocomplete="off"/> + </fieldset> + <!-- Start comment form alert messaging --> + <p class="hidden js-notice"> + <strong class="js-notice-text"></strong> + </p> + <!-- End comment form alert messaging --> + <fieldset> + <button type="submit" id="comment-form-submit" tabindex="5" class="btn btn--large">Submit Comment</button> + </fieldset> + </form> + <!-- End new comment form --> + + </section> </div> @@ -439,26 +488,46 @@ If you just want to make it easy, you may only need a ASYNC_MASTER without SLAVE - <script type="text/javascript"> - /* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */ - var disqus_shortname = 'rocketmq'; - - /* * * DON'T EDIT BELOW THIS LINE * * */ - (function() { - var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true; - dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js'; - (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq); - })(); - - /* * * DON'T EDIT BELOW THIS LINE * * */ - (function () { - var s = document.createElement('script'); s.async = true; - s.type = 'text/javascript'; - s.src = '//' + disqus_shortname + '.disqus.com/count.js'; - (document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s); - }()); + <script> + (function ($) { + var $comments = $('.js-comments'); + + $('#new_comment').submit(function () { + var form = this; + + $(form).addClass('disabled'); + $('#comment-form-submit').html('<i class="fa fa-spinner fa-spin fa-fw"></i> Loading...'); + + $.ajax({ + type: $(this).attr('method'), + url: $(this).attr('action'), + data: $(this).serialize(), + contentType: 'application/x-www-form-urlencoded', + success: function (data) { + $('#comment-form-submit').html('Submitted'); + $('.page__comments-form .js-notice').removeClass('notice--danger'); + $('.page__comments-form .js-notice').addClass('notice--success'); + showAlert('Thanks for your comment! It will show on the site once it has been approved.'); + }, + error: function (err) { + console.log(err); + $('#comment-form-submit').html('Submit Comment'); + $('.page__comments-form .js-notice').removeClass('notice--success'); + $('.page__comments-form .js-notice').addClass('notice--danger'); + showAlert('Sorry, there was an error with your submission. Please make sure all required fields have been completed and try again.'); + $(form).removeClass('disabled'); + } + }); + + return false; + }); + + function showAlert(message) { + $('.page__comments-form .js-notice').removeClass('hidden'); + $('.page__comments-form .js-notice-text').html(message); + } + })(jQuery); </script> - <noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript> http://git-wip-us.apache.org/repos/asf/incubator-rocketmq-site/blob/e29c1519/content/docs/best-practice-consumer/index.html ---------------------------------------------------------------------- diff --git a/content/docs/best-practice-consumer/index.html b/content/docs/best-practice-consumer/index.html index 4a9f0bb..43752f2 100644 --- a/content/docs/best-practice-consumer/index.html +++ b/content/docs/best-practice-consumer/index.html @@ -57,7 +57,7 @@ <meta property="og:type" content="article"> - <meta property="article:published_time" content="2016-12-30T10:03:22+08:00"> + <meta property="article:published_time" content="2016-12-30T18:39:19+08:00"> @@ -420,8 +420,57 @@ You can also use CONSUME_FROM_TIMESTAMP to consume messages produced after the s <div class="page__comments"> - <h4 class="page__comments-title">Leave a Comment</h4> - <section id="disqus_thread"></section> + <section id="static-comments"> + + <!-- Start static comments --> + <div class="js-comments"> + + </div> + <!-- End static comments --> + + <!-- Start new comment form --> + <h4 class="page__comments-title">Leave a Comment</h4> + <p class="small">Your email address will not be published. Required fields are marked <span class="required">*</span></p> + <form id="new_comment" class="page__comments-form js-form form" method="post" action="https://api.staticman.net/v1/entry/apache/incubator-rocketmq/master"> + <div class="form__spinner"> + <i class="fa fa-spinner fa-spin fa-3x fa-fw"></i> + <span class="sr-only">Loading...</span> + </div> + + <fieldset> + <label for="comment-form-message">Comment <small class="required">*</small></label> + <textarea type="text" rows="3" id="comment-form-message" name="fields[message]" tabindex="1"></textarea> + <div class="small help-block"><a href="https://daringfireball.net/projects/markdown/">Markdown is supported.</a></div> + </fieldset> + <fieldset> + <label for="comment-form-name">Name <small class="required">*</small></label> + <input type="text" id="comment-form-name" name="fields[name]" tabindex="2" /> + </fieldset> + <fieldset> + <label for="comment-form-email">Email address <small class="required">*</small></label> + <input type="email" id="comment-form-email" name="fields[email]" tabindex="3" /> + </fieldset> + <fieldset> + <label for="comment-form-url">Website (optional)</label> + <input type="url" id="comment-form-url" name="fields[url]" tabindex="4"/> + </fieldset> + <fieldset class="hidden" style="display: none;"> + <input type="hidden" name="options[slug]" value="best-practice-consumer"> + <label for="comment-form-location">Not used. Leave blank if you are a human.</label> + <input type="text" id="comment-form-location" name="fields[hidden]" autocomplete="off"/> + </fieldset> + <!-- Start comment form alert messaging --> + <p class="hidden js-notice"> + <strong class="js-notice-text"></strong> + </p> + <!-- End comment form alert messaging --> + <fieldset> + <button type="submit" id="comment-form-submit" tabindex="5" class="btn btn--large">Submit Comment</button> + </fieldset> + </form> + <!-- End new comment form --> + + </section> </div> @@ -464,26 +513,46 @@ You can also use CONSUME_FROM_TIMESTAMP to consume messages produced after the s - <script type="text/javascript"> - /* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */ - var disqus_shortname = 'rocketmq'; - - /* * * DON'T EDIT BELOW THIS LINE * * */ - (function() { - var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true; - dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js'; - (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq); - })(); - - /* * * DON'T EDIT BELOW THIS LINE * * */ - (function () { - var s = document.createElement('script'); s.async = true; - s.type = 'text/javascript'; - s.src = '//' + disqus_shortname + '.disqus.com/count.js'; - (document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s); - }()); + <script> + (function ($) { + var $comments = $('.js-comments'); + + $('#new_comment').submit(function () { + var form = this; + + $(form).addClass('disabled'); + $('#comment-form-submit').html('<i class="fa fa-spinner fa-spin fa-fw"></i> Loading...'); + + $.ajax({ + type: $(this).attr('method'), + url: $(this).attr('action'), + data: $(this).serialize(), + contentType: 'application/x-www-form-urlencoded', + success: function (data) { + $('#comment-form-submit').html('Submitted'); + $('.page__comments-form .js-notice').removeClass('notice--danger'); + $('.page__comments-form .js-notice').addClass('notice--success'); + showAlert('Thanks for your comment! It will show on the site once it has been approved.'); + }, + error: function (err) { + console.log(err); + $('#comment-form-submit').html('Submit Comment'); + $('.page__comments-form .js-notice').removeClass('notice--success'); + $('.page__comments-form .js-notice').addClass('notice--danger'); + showAlert('Sorry, there was an error with your submission. Please make sure all required fields have been completed and try again.'); + $(form).removeClass('disabled'); + } + }); + + return false; + }); + + function showAlert(message) { + $('.page__comments-form .js-notice').removeClass('hidden'); + $('.page__comments-form .js-notice-text').html(message); + } + })(jQuery); </script> - <noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript> http://git-wip-us.apache.org/repos/asf/incubator-rocketmq-site/blob/e29c1519/content/docs/best-practice-namesvr/index.html ---------------------------------------------------------------------- diff --git a/content/docs/best-practice-namesvr/index.html b/content/docs/best-practice-namesvr/index.html index 9205dd5..17140a8 100644 --- a/content/docs/best-practice-namesvr/index.html +++ b/content/docs/best-practice-namesvr/index.html @@ -57,7 +57,7 @@ <meta property="og:type" content="article"> - <meta property="article:published_time" content="2016-12-30T10:03:22+08:00"> + <meta property="article:published_time" content="2016-12-30T18:39:19+08:00"> @@ -383,8 +383,57 @@ <div class="page__comments"> - <h4 class="page__comments-title">Leave a Comment</h4> - <section id="disqus_thread"></section> + <section id="static-comments"> + + <!-- Start static comments --> + <div class="js-comments"> + + </div> + <!-- End static comments --> + + <!-- Start new comment form --> + <h4 class="page__comments-title">Leave a Comment</h4> + <p class="small">Your email address will not be published. Required fields are marked <span class="required">*</span></p> + <form id="new_comment" class="page__comments-form js-form form" method="post" action="https://api.staticman.net/v1/entry/apache/incubator-rocketmq/master"> + <div class="form__spinner"> + <i class="fa fa-spinner fa-spin fa-3x fa-fw"></i> + <span class="sr-only">Loading...</span> + </div> + + <fieldset> + <label for="comment-form-message">Comment <small class="required">*</small></label> + <textarea type="text" rows="3" id="comment-form-message" name="fields[message]" tabindex="1"></textarea> + <div class="small help-block"><a href="https://daringfireball.net/projects/markdown/">Markdown is supported.</a></div> + </fieldset> + <fieldset> + <label for="comment-form-name">Name <small class="required">*</small></label> + <input type="text" id="comment-form-name" name="fields[name]" tabindex="2" /> + </fieldset> + <fieldset> + <label for="comment-form-email">Email address <small class="required">*</small></label> + <input type="email" id="comment-form-email" name="fields[email]" tabindex="3" /> + </fieldset> + <fieldset> + <label for="comment-form-url">Website (optional)</label> + <input type="url" id="comment-form-url" name="fields[url]" tabindex="4"/> + </fieldset> + <fieldset class="hidden" style="display: none;"> + <input type="hidden" name="options[slug]" value="best-practice-namesvr"> + <label for="comment-form-location">Not used. Leave blank if you are a human.</label> + <input type="text" id="comment-form-location" name="fields[hidden]" autocomplete="off"/> + </fieldset> + <!-- Start comment form alert messaging --> + <p class="hidden js-notice"> + <strong class="js-notice-text"></strong> + </p> + <!-- End comment form alert messaging --> + <fieldset> + <button type="submit" id="comment-form-submit" tabindex="5" class="btn btn--large">Submit Comment</button> + </fieldset> + </form> + <!-- End new comment form --> + + </section> </div> @@ -427,26 +476,46 @@ - <script type="text/javascript"> - /* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */ - var disqus_shortname = 'rocketmq'; - - /* * * DON'T EDIT BELOW THIS LINE * * */ - (function() { - var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true; - dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js'; - (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq); - })(); - - /* * * DON'T EDIT BELOW THIS LINE * * */ - (function () { - var s = document.createElement('script'); s.async = true; - s.type = 'text/javascript'; - s.src = '//' + disqus_shortname + '.disqus.com/count.js'; - (document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s); - }()); + <script> + (function ($) { + var $comments = $('.js-comments'); + + $('#new_comment').submit(function () { + var form = this; + + $(form).addClass('disabled'); + $('#comment-form-submit').html('<i class="fa fa-spinner fa-spin fa-fw"></i> Loading...'); + + $.ajax({ + type: $(this).attr('method'), + url: $(this).attr('action'), + data: $(this).serialize(), + contentType: 'application/x-www-form-urlencoded', + success: function (data) { + $('#comment-form-submit').html('Submitted'); + $('.page__comments-form .js-notice').removeClass('notice--danger'); + $('.page__comments-form .js-notice').addClass('notice--success'); + showAlert('Thanks for your comment! It will show on the site once it has been approved.'); + }, + error: function (err) { + console.log(err); + $('#comment-form-submit').html('Submit Comment'); + $('.page__comments-form .js-notice').removeClass('notice--success'); + $('.page__comments-form .js-notice').addClass('notice--danger'); + showAlert('Sorry, there was an error with your submission. Please make sure all required fields have been completed and try again.'); + $(form).removeClass('disabled'); + } + }); + + return false; + }); + + function showAlert(message) { + $('.page__comments-form .js-notice').removeClass('hidden'); + $('.page__comments-form .js-notice-text').html(message); + } + })(jQuery); </script> - <noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript> http://git-wip-us.apache.org/repos/asf/incubator-rocketmq-site/blob/e29c1519/content/docs/best-practice-producer/index.html ---------------------------------------------------------------------- diff --git a/content/docs/best-practice-producer/index.html b/content/docs/best-practice-producer/index.html index 198ab12..9307dcd 100644 --- a/content/docs/best-practice-producer/index.html +++ b/content/docs/best-practice-producer/index.html @@ -57,7 +57,7 @@ <meta property="og:type" content="article"> - <meta property="article:published_time" content="2016-12-30T10:03:22+08:00"> + <meta property="article:published_time" content="2016-12-30T18:39:19+08:00"> @@ -427,8 +427,57 @@ In default, you can only create only one producer with the same producer group i <div class="page__comments"> - <h4 class="page__comments-title">Leave a Comment</h4> - <section id="disqus_thread"></section> + <section id="static-comments"> + + <!-- Start static comments --> + <div class="js-comments"> + + </div> + <!-- End static comments --> + + <!-- Start new comment form --> + <h4 class="page__comments-title">Leave a Comment</h4> + <p class="small">Your email address will not be published. Required fields are marked <span class="required">*</span></p> + <form id="new_comment" class="page__comments-form js-form form" method="post" action="https://api.staticman.net/v1/entry/apache/incubator-rocketmq/master"> + <div class="form__spinner"> + <i class="fa fa-spinner fa-spin fa-3x fa-fw"></i> + <span class="sr-only">Loading...</span> + </div> + + <fieldset> + <label for="comment-form-message">Comment <small class="required">*</small></label> + <textarea type="text" rows="3" id="comment-form-message" name="fields[message]" tabindex="1"></textarea> + <div class="small help-block"><a href="https://daringfireball.net/projects/markdown/">Markdown is supported.</a></div> + </fieldset> + <fieldset> + <label for="comment-form-name">Name <small class="required">*</small></label> + <input type="text" id="comment-form-name" name="fields[name]" tabindex="2" /> + </fieldset> + <fieldset> + <label for="comment-form-email">Email address <small class="required">*</small></label> + <input type="email" id="comment-form-email" name="fields[email]" tabindex="3" /> + </fieldset> + <fieldset> + <label for="comment-form-url">Website (optional)</label> + <input type="url" id="comment-form-url" name="fields[url]" tabindex="4"/> + </fieldset> + <fieldset class="hidden" style="display: none;"> + <input type="hidden" name="options[slug]" value="best-practice-producer"> + <label for="comment-form-location">Not used. Leave blank if you are a human.</label> + <input type="text" id="comment-form-location" name="fields[hidden]" autocomplete="off"/> + </fieldset> + <!-- Start comment form alert messaging --> + <p class="hidden js-notice"> + <strong class="js-notice-text"></strong> + </p> + <!-- End comment form alert messaging --> + <fieldset> + <button type="submit" id="comment-form-submit" tabindex="5" class="btn btn--large">Submit Comment</button> + </fieldset> + </form> + <!-- End new comment form --> + + </section> </div> @@ -471,26 +520,46 @@ In default, you can only create only one producer with the same producer group i - <script type="text/javascript"> - /* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */ - var disqus_shortname = 'rocketmq'; - - /* * * DON'T EDIT BELOW THIS LINE * * */ - (function() { - var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true; - dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js'; - (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq); - })(); - - /* * * DON'T EDIT BELOW THIS LINE * * */ - (function () { - var s = document.createElement('script'); s.async = true; - s.type = 'text/javascript'; - s.src = '//' + disqus_shortname + '.disqus.com/count.js'; - (document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s); - }()); + <script> + (function ($) { + var $comments = $('.js-comments'); + + $('#new_comment').submit(function () { + var form = this; + + $(form).addClass('disabled'); + $('#comment-form-submit').html('<i class="fa fa-spinner fa-spin fa-fw"></i> Loading...'); + + $.ajax({ + type: $(this).attr('method'), + url: $(this).attr('action'), + data: $(this).serialize(), + contentType: 'application/x-www-form-urlencoded', + success: function (data) { + $('#comment-form-submit').html('Submitted'); + $('.page__comments-form .js-notice').removeClass('notice--danger'); + $('.page__comments-form .js-notice').addClass('notice--success'); + showAlert('Thanks for your comment! It will show on the site once it has been approved.'); + }, + error: function (err) { + console.log(err); + $('#comment-form-submit').html('Submit Comment'); + $('.page__comments-form .js-notice').removeClass('notice--success'); + $('.page__comments-form .js-notice').addClass('notice--danger'); + showAlert('Sorry, there was an error with your submission. Please make sure all required fields have been completed and try again.'); + $(form).removeClass('disabled'); + } + }); + + return false; + }); + + function showAlert(message) { + $('.page__comments-form .js-notice').removeClass('hidden'); + $('.page__comments-form .js-notice-text').html(message); + } + })(jQuery); </script> - <noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript> http://git-wip-us.apache.org/repos/asf/incubator-rocketmq-site/blob/e29c1519/content/docs/cli-admin-tool/index.html ---------------------------------------------------------------------- diff --git a/content/docs/cli-admin-tool/index.html b/content/docs/cli-admin-tool/index.html index dae59aa..103273a 100644 --- a/content/docs/cli-admin-tool/index.html +++ b/content/docs/cli-admin-tool/index.html @@ -57,7 +57,7 @@ <meta property="og:type" content="article"> - <meta property="article:published_time" content="2016-12-30T10:03:22+08:00"> + <meta property="article:published_time" content="2016-12-30T18:39:19+08:00"> @@ -456,8 +456,57 @@ See 'mqadmin help <command>' for more information on a specific command. <div class="page__comments"> - <h4 class="page__comments-title">Leave a Comment</h4> - <section id="disqus_thread"></section> + <section id="static-comments"> + + <!-- Start static comments --> + <div class="js-comments"> + + </div> + <!-- End static comments --> + + <!-- Start new comment form --> + <h4 class="page__comments-title">Leave a Comment</h4> + <p class="small">Your email address will not be published. Required fields are marked <span class="required">*</span></p> + <form id="new_comment" class="page__comments-form js-form form" method="post" action="https://api.staticman.net/v1/entry/apache/incubator-rocketmq/master"> + <div class="form__spinner"> + <i class="fa fa-spinner fa-spin fa-3x fa-fw"></i> + <span class="sr-only">Loading...</span> + </div> + + <fieldset> + <label for="comment-form-message">Comment <small class="required">*</small></label> + <textarea type="text" rows="3" id="comment-form-message" name="fields[message]" tabindex="1"></textarea> + <div class="small help-block"><a href="https://daringfireball.net/projects/markdown/">Markdown is supported.</a></div> + </fieldset> + <fieldset> + <label for="comment-form-name">Name <small class="required">*</small></label> + <input type="text" id="comment-form-name" name="fields[name]" tabindex="2" /> + </fieldset> + <fieldset> + <label for="comment-form-email">Email address <small class="required">*</small></label> + <input type="email" id="comment-form-email" name="fields[email]" tabindex="3" /> + </fieldset> + <fieldset> + <label for="comment-form-url">Website (optional)</label> + <input type="url" id="comment-form-url" name="fields[url]" tabindex="4"/> + </fieldset> + <fieldset class="hidden" style="display: none;"> + <input type="hidden" name="options[slug]" value="04-cli-admin-tool"> + <label for="comment-form-location">Not used. Leave blank if you are a human.</label> + <input type="text" id="comment-form-location" name="fields[hidden]" autocomplete="off"/> + </fieldset> + <!-- Start comment form alert messaging --> + <p class="hidden js-notice"> + <strong class="js-notice-text"></strong> + </p> + <!-- End comment form alert messaging --> + <fieldset> + <button type="submit" id="comment-form-submit" tabindex="5" class="btn btn--large">Submit Comment</button> + </fieldset> + </form> + <!-- End new comment form --> + + </section> </div> @@ -500,26 +549,46 @@ See 'mqadmin help <command>' for more information on a specific command. - <script type="text/javascript"> - /* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */ - var disqus_shortname = 'rocketmq'; - - /* * * DON'T EDIT BELOW THIS LINE * * */ - (function() { - var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true; - dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js'; - (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq); - })(); - - /* * * DON'T EDIT BELOW THIS LINE * * */ - (function () { - var s = document.createElement('script'); s.async = true; - s.type = 'text/javascript'; - s.src = '//' + disqus_shortname + '.disqus.com/count.js'; - (document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s); - }()); + <script> + (function ($) { + var $comments = $('.js-comments'); + + $('#new_comment').submit(function () { + var form = this; + + $(form).addClass('disabled'); + $('#comment-form-submit').html('<i class="fa fa-spinner fa-spin fa-fw"></i> Loading...'); + + $.ajax({ + type: $(this).attr('method'), + url: $(this).attr('action'), + data: $(this).serialize(), + contentType: 'application/x-www-form-urlencoded', + success: function (data) { + $('#comment-form-submit').html('Submitted'); + $('.page__comments-form .js-notice').removeClass('notice--danger'); + $('.page__comments-form .js-notice').addClass('notice--success'); + showAlert('Thanks for your comment! It will show on the site once it has been approved.'); + }, + error: function (err) { + console.log(err); + $('#comment-form-submit').html('Submit Comment'); + $('.page__comments-form .js-notice').removeClass('notice--success'); + $('.page__comments-form .js-notice').addClass('notice--danger'); + showAlert('Sorry, there was an error with your submission. Please make sure all required fields have been completed and try again.'); + $(form).removeClass('disabled'); + } + }); + + return false; + }); + + function showAlert(message) { + $('.page__comments-form .js-notice').removeClass('hidden'); + $('.page__comments-form .js-notice-text').html(message); + } + })(jQuery); </script> - <noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript> http://git-wip-us.apache.org/repos/asf/incubator-rocketmq-site/blob/e29c1519/content/docs/cluster-deployment/index.html ---------------------------------------------------------------------- diff --git a/content/docs/cluster-deployment/index.html b/content/docs/cluster-deployment/index.html index 062a57d..70ba65d 100644 --- a/content/docs/cluster-deployment/index.html +++ b/content/docs/cluster-deployment/index.html @@ -57,7 +57,7 @@ <meta property="og:type" content="article"> - <meta property="article:published_time" content="2016-12-30T10:03:22+08:00"> + <meta property="article:published_time" content="2016-12-30T18:39:19+08:00"> @@ -460,8 +460,57 @@ Assuming binary RocketMQ is at <code class="highlighter-rouge">/home/rocketmq/di <div class="page__comments"> - <h4 class="page__comments-title">Leave a Comment</h4> - <section id="disqus_thread"></section> + <section id="static-comments"> + + <!-- Start static comments --> + <div class="js-comments"> + + </div> + <!-- End static comments --> + + <!-- Start new comment form --> + <h4 class="page__comments-title">Leave a Comment</h4> + <p class="small">Your email address will not be published. Required fields are marked <span class="required">*</span></p> + <form id="new_comment" class="page__comments-form js-form form" method="post" action="https://api.staticman.net/v1/entry/apache/incubator-rocketmq/master"> + <div class="form__spinner"> + <i class="fa fa-spinner fa-spin fa-3x fa-fw"></i> + <span class="sr-only">Loading...</span> + </div> + + <fieldset> + <label for="comment-form-message">Comment <small class="required">*</small></label> + <textarea type="text" rows="3" id="comment-form-message" name="fields[message]" tabindex="1"></textarea> + <div class="small help-block"><a href="https://daringfireball.net/projects/markdown/">Markdown is supported.</a></div> + </fieldset> + <fieldset> + <label for="comment-form-name">Name <small class="required">*</small></label> + <input type="text" id="comment-form-name" name="fields[name]" tabindex="2" /> + </fieldset> + <fieldset> + <label for="comment-form-email">Email address <small class="required">*</small></label> + <input type="email" id="comment-form-email" name="fields[email]" tabindex="3" /> + </fieldset> + <fieldset> + <label for="comment-form-url">Website (optional)</label> + <input type="url" id="comment-form-url" name="fields[url]" tabindex="4"/> + </fieldset> + <fieldset class="hidden" style="display: none;"> + <input type="hidden" name="options[slug]" value="05-cluster-deployment"> + <label for="comment-form-location">Not used. Leave blank if you are a human.</label> + <input type="text" id="comment-form-location" name="fields[hidden]" autocomplete="off"/> + </fieldset> + <!-- Start comment form alert messaging --> + <p class="hidden js-notice"> + <strong class="js-notice-text"></strong> + </p> + <!-- End comment form alert messaging --> + <fieldset> + <button type="submit" id="comment-form-submit" tabindex="5" class="btn btn--large">Submit Comment</button> + </fieldset> + </form> + <!-- End new comment form --> + + </section> </div> @@ -504,26 +553,46 @@ Assuming binary RocketMQ is at <code class="highlighter-rouge">/home/rocketmq/di - <script type="text/javascript"> - /* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */ - var disqus_shortname = 'rocketmq'; - - /* * * DON'T EDIT BELOW THIS LINE * * */ - (function() { - var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true; - dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js'; - (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq); - })(); - - /* * * DON'T EDIT BELOW THIS LINE * * */ - (function () { - var s = document.createElement('script'); s.async = true; - s.type = 'text/javascript'; - s.src = '//' + disqus_shortname + '.disqus.com/count.js'; - (document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s); - }()); + <script> + (function ($) { + var $comments = $('.js-comments'); + + $('#new_comment').submit(function () { + var form = this; + + $(form).addClass('disabled'); + $('#comment-form-submit').html('<i class="fa fa-spinner fa-spin fa-fw"></i> Loading...'); + + $.ajax({ + type: $(this).attr('method'), + url: $(this).attr('action'), + data: $(this).serialize(), + contentType: 'application/x-www-form-urlencoded', + success: function (data) { + $('#comment-form-submit').html('Submitted'); + $('.page__comments-form .js-notice').removeClass('notice--danger'); + $('.page__comments-form .js-notice').addClass('notice--success'); + showAlert('Thanks for your comment! It will show on the site once it has been approved.'); + }, + error: function (err) { + console.log(err); + $('#comment-form-submit').html('Submit Comment'); + $('.page__comments-form .js-notice').removeClass('notice--success'); + $('.page__comments-form .js-notice').addClass('notice--danger'); + showAlert('Sorry, there was an error with your submission. Please make sure all required fields have been completed and try again.'); + $(form).removeClass('disabled'); + } + }); + + return false; + }); + + function showAlert(message) { + $('.page__comments-form .js-notice').removeClass('hidden'); + $('.page__comments-form .js-notice-text').html(message); + } + })(jQuery); </script> - <noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript> http://git-wip-us.apache.org/repos/asf/incubator-rocketmq-site/blob/e29c1519/content/docs/code-guidelines/index.html ---------------------------------------------------------------------- diff --git a/content/docs/code-guidelines/index.html b/content/docs/code-guidelines/index.html index e67478c..a859902 100644 --- a/content/docs/code-guidelines/index.html +++ b/content/docs/code-guidelines/index.html @@ -57,7 +57,7 @@ <meta property="og:type" content="article"> - <meta property="article:published_time" content="2016-12-30T10:03:22+08:00"> + <meta property="article:published_time" content="2016-12-30T18:39:19+08:00"> @@ -406,8 +406,57 @@ <div class="page__comments"> - <h4 class="page__comments-title">Leave a Comment</h4> - <section id="disqus_thread"></section> + <section id="static-comments"> + + <!-- Start static comments --> + <div class="js-comments"> + + </div> + <!-- End static comments --> + + <!-- Start new comment form --> + <h4 class="page__comments-title">Leave a Comment</h4> + <p class="small">Your email address will not be published. Required fields are marked <span class="required">*</span></p> + <form id="new_comment" class="page__comments-form js-form form" method="post" action="https://api.staticman.net/v1/entry/apache/incubator-rocketmq/master"> + <div class="form__spinner"> + <i class="fa fa-spinner fa-spin fa-3x fa-fw"></i> + <span class="sr-only">Loading...</span> + </div> + + <fieldset> + <label for="comment-form-message">Comment <small class="required">*</small></label> + <textarea type="text" rows="3" id="comment-form-message" name="fields[message]" tabindex="1"></textarea> + <div class="small help-block"><a href="https://daringfireball.net/projects/markdown/">Markdown is supported.</a></div> + </fieldset> + <fieldset> + <label for="comment-form-name">Name <small class="required">*</small></label> + <input type="text" id="comment-form-name" name="fields[name]" tabindex="2" /> + </fieldset> + <fieldset> + <label for="comment-form-email">Email address <small class="required">*</small></label> + <input type="email" id="comment-form-email" name="fields[email]" tabindex="3" /> + </fieldset> + <fieldset> + <label for="comment-form-url">Website (optional)</label> + <input type="url" id="comment-form-url" name="fields[url]" tabindex="4"/> + </fieldset> + <fieldset class="hidden" style="display: none;"> + <input type="hidden" name="options[slug]" value="07-code-guidelines"> + <label for="comment-form-location">Not used. Leave blank if you are a human.</label> + <input type="text" id="comment-form-location" name="fields[hidden]" autocomplete="off"/> + </fieldset> + <!-- Start comment form alert messaging --> + <p class="hidden js-notice"> + <strong class="js-notice-text"></strong> + </p> + <!-- End comment form alert messaging --> + <fieldset> + <button type="submit" id="comment-form-submit" tabindex="5" class="btn btn--large">Submit Comment</button> + </fieldset> + </form> + <!-- End new comment form --> + + </section> </div> @@ -450,26 +499,46 @@ - <script type="text/javascript"> - /* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */ - var disqus_shortname = 'rocketmq'; - - /* * * DON'T EDIT BELOW THIS LINE * * */ - (function() { - var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true; - dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js'; - (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq); - })(); - - /* * * DON'T EDIT BELOW THIS LINE * * */ - (function () { - var s = document.createElement('script'); s.async = true; - s.type = 'text/javascript'; - s.src = '//' + disqus_shortname + '.disqus.com/count.js'; - (document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s); - }()); + <script> + (function ($) { + var $comments = $('.js-comments'); + + $('#new_comment').submit(function () { + var form = this; + + $(form).addClass('disabled'); + $('#comment-form-submit').html('<i class="fa fa-spinner fa-spin fa-fw"></i> Loading...'); + + $.ajax({ + type: $(this).attr('method'), + url: $(this).attr('action'), + data: $(this).serialize(), + contentType: 'application/x-www-form-urlencoded', + success: function (data) { + $('#comment-form-submit').html('Submitted'); + $('.page__comments-form .js-notice').removeClass('notice--danger'); + $('.page__comments-form .js-notice').addClass('notice--success'); + showAlert('Thanks for your comment! It will show on the site once it has been approved.'); + }, + error: function (err) { + console.log(err); + $('#comment-form-submit').html('Submit Comment'); + $('.page__comments-form .js-notice').removeClass('notice--success'); + $('.page__comments-form .js-notice').addClass('notice--danger'); + showAlert('Sorry, there was an error with your submission. Please make sure all required fields have been completed and try again.'); + $(form).removeClass('disabled'); + } + }); + + return false; + }); + + function showAlert(message) { + $('.page__comments-form .js-notice').removeClass('hidden'); + $('.page__comments-form .js-notice-text').html(message); + } + })(jQuery); </script> - <noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript> http://git-wip-us.apache.org/repos/asf/incubator-rocketmq-site/blob/e29c1519/content/docs/core-concept/index.html ---------------------------------------------------------------------- diff --git a/content/docs/core-concept/index.html b/content/docs/core-concept/index.html index 979f650..5814e16 100644 --- a/content/docs/core-concept/index.html +++ b/content/docs/core-concept/index.html @@ -57,7 +57,7 @@ <meta property="og:type" content="article"> - <meta property="article:published_time" content="2016-12-30T10:03:22+08:00"> + <meta property="article:published_time" content="2016-12-30T18:39:19+08:00"> @@ -495,8 +495,57 @@ <div class="page__comments"> - <h4 class="page__comments-title">Leave a Comment</h4> - <section id="disqus_thread"></section> + <section id="static-comments"> + + <!-- Start static comments --> + <div class="js-comments"> + + </div> + <!-- End static comments --> + + <!-- Start new comment form --> + <h4 class="page__comments-title">Leave a Comment</h4> + <p class="small">Your email address will not be published. Required fields are marked <span class="required">*</span></p> + <form id="new_comment" class="page__comments-form js-form form" method="post" action="https://api.staticman.net/v1/entry/apache/incubator-rocketmq/master"> + <div class="form__spinner"> + <i class="fa fa-spinner fa-spin fa-3x fa-fw"></i> + <span class="sr-only">Loading...</span> + </div> + + <fieldset> + <label for="comment-form-message">Comment <small class="required">*</small></label> + <textarea type="text" rows="3" id="comment-form-message" name="fields[message]" tabindex="1"></textarea> + <div class="small help-block"><a href="https://daringfireball.net/projects/markdown/">Markdown is supported.</a></div> + </fieldset> + <fieldset> + <label for="comment-form-name">Name <small class="required">*</small></label> + <input type="text" id="comment-form-name" name="fields[name]" tabindex="2" /> + </fieldset> + <fieldset> + <label for="comment-form-email">Email address <small class="required">*</small></label> + <input type="email" id="comment-form-email" name="fields[email]" tabindex="3" /> + </fieldset> + <fieldset> + <label for="comment-form-url">Website (optional)</label> + <input type="url" id="comment-form-url" name="fields[url]" tabindex="4"/> + </fieldset> + <fieldset class="hidden" style="display: none;"> + <input type="hidden" name="options[slug]" value="03-core-concept"> + <label for="comment-form-location">Not used. Leave blank if you are a human.</label> + <input type="text" id="comment-form-location" name="fields[hidden]" autocomplete="off"/> + </fieldset> + <!-- Start comment form alert messaging --> + <p class="hidden js-notice"> + <strong class="js-notice-text"></strong> + </p> + <!-- End comment form alert messaging --> + <fieldset> + <button type="submit" id="comment-form-submit" tabindex="5" class="btn btn--large">Submit Comment</button> + </fieldset> + </form> + <!-- End new comment form --> + + </section> </div> @@ -539,26 +588,46 @@ - <script type="text/javascript"> - /* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */ - var disqus_shortname = 'rocketmq'; - - /* * * DON'T EDIT BELOW THIS LINE * * */ - (function() { - var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true; - dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js'; - (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq); - })(); - - /* * * DON'T EDIT BELOW THIS LINE * * */ - (function () { - var s = document.createElement('script'); s.async = true; - s.type = 'text/javascript'; - s.src = '//' + disqus_shortname + '.disqus.com/count.js'; - (document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s); - }()); + <script> + (function ($) { + var $comments = $('.js-comments'); + + $('#new_comment').submit(function () { + var form = this; + + $(form).addClass('disabled'); + $('#comment-form-submit').html('<i class="fa fa-spinner fa-spin fa-fw"></i> Loading...'); + + $.ajax({ + type: $(this).attr('method'), + url: $(this).attr('action'), + data: $(this).serialize(), + contentType: 'application/x-www-form-urlencoded', + success: function (data) { + $('#comment-form-submit').html('Submitted'); + $('.page__comments-form .js-notice').removeClass('notice--danger'); + $('.page__comments-form .js-notice').addClass('notice--success'); + showAlert('Thanks for your comment! It will show on the site once it has been approved.'); + }, + error: function (err) { + console.log(err); + $('#comment-form-submit').html('Submit Comment'); + $('.page__comments-form .js-notice').removeClass('notice--success'); + $('.page__comments-form .js-notice').addClass('notice--danger'); + showAlert('Sorry, there was an error with your submission. Please make sure all required fields have been completed and try again.'); + $(form).removeClass('disabled'); + } + }); + + return false; + }); + + function showAlert(message) { + $('.page__comments-form .js-notice').removeClass('hidden'); + $('.page__comments-form .js-notice-text').html(message); + } + })(jQuery); </script> - <noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript> http://git-wip-us.apache.org/repos/asf/incubator-rocketmq-site/blob/e29c1519/content/docs/faq/index.html ---------------------------------------------------------------------- diff --git a/content/docs/faq/index.html b/content/docs/faq/index.html index e909009..83a0e4c 100644 --- a/content/docs/faq/index.html +++ b/content/docs/faq/index.html @@ -57,7 +57,7 @@ <meta property="og:type" content="article"> - <meta property="article:published_time" content="2016-12-30T10:03:22+08:00"> + <meta property="article:published_time" content="2016-12-30T18:39:19+08:00"> @@ -469,8 +469,57 @@ The broadcaset consumption still ensures that a message is consumered at least o <div class="page__comments"> - <h4 class="page__comments-title">Leave a Comment</h4> - <section id="disqus_thread"></section> + <section id="static-comments"> + + <!-- Start static comments --> + <div class="js-comments"> + + </div> + <!-- End static comments --> + + <!-- Start new comment form --> + <h4 class="page__comments-title">Leave a Comment</h4> + <p class="small">Your email address will not be published. Required fields are marked <span class="required">*</span></p> + <form id="new_comment" class="page__comments-form js-form form" method="post" action="https://api.staticman.net/v1/entry/apache/incubator-rocketmq/master"> + <div class="form__spinner"> + <i class="fa fa-spinner fa-spin fa-3x fa-fw"></i> + <span class="sr-only">Loading...</span> + </div> + + <fieldset> + <label for="comment-form-message">Comment <small class="required">*</small></label> + <textarea type="text" rows="3" id="comment-form-message" name="fields[message]" tabindex="1"></textarea> + <div class="small help-block"><a href="https://daringfireball.net/projects/markdown/">Markdown is supported.</a></div> + </fieldset> + <fieldset> + <label for="comment-form-name">Name <small class="required">*</small></label> + <input type="text" id="comment-form-name" name="fields[name]" tabindex="2" /> + </fieldset> + <fieldset> + <label for="comment-form-email">Email address <small class="required">*</small></label> + <input type="email" id="comment-form-email" name="fields[email]" tabindex="3" /> + </fieldset> + <fieldset> + <label for="comment-form-url">Website (optional)</label> + <input type="url" id="comment-form-url" name="fields[url]" tabindex="4"/> + </fieldset> + <fieldset class="hidden" style="display: none;"> + <input type="hidden" name="options[slug]" value="07-frequently-asked-questions"> + <label for="comment-form-location">Not used. Leave blank if you are a human.</label> + <input type="text" id="comment-form-location" name="fields[hidden]" autocomplete="off"/> + </fieldset> + <!-- Start comment form alert messaging --> + <p class="hidden js-notice"> + <strong class="js-notice-text"></strong> + </p> + <!-- End comment form alert messaging --> + <fieldset> + <button type="submit" id="comment-form-submit" tabindex="5" class="btn btn--large">Submit Comment</button> + </fieldset> + </form> + <!-- End new comment form --> + + </section> </div> @@ -513,26 +562,46 @@ The broadcaset consumption still ensures that a message is consumered at least o - <script type="text/javascript"> - /* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */ - var disqus_shortname = 'rocketmq'; - - /* * * DON'T EDIT BELOW THIS LINE * * */ - (function() { - var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true; - dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js'; - (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq); - })(); - - /* * * DON'T EDIT BELOW THIS LINE * * */ - (function () { - var s = document.createElement('script'); s.async = true; - s.type = 'text/javascript'; - s.src = '//' + disqus_shortname + '.disqus.com/count.js'; - (document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s); - }()); + <script> + (function ($) { + var $comments = $('.js-comments'); + + $('#new_comment').submit(function () { + var form = this; + + $(form).addClass('disabled'); + $('#comment-form-submit').html('<i class="fa fa-spinner fa-spin fa-fw"></i> Loading...'); + + $.ajax({ + type: $(this).attr('method'), + url: $(this).attr('action'), + data: $(this).serialize(), + contentType: 'application/x-www-form-urlencoded', + success: function (data) { + $('#comment-form-submit').html('Submitted'); + $('.page__comments-form .js-notice').removeClass('notice--danger'); + $('.page__comments-form .js-notice').addClass('notice--success'); + showAlert('Thanks for your comment! It will show on the site once it has been approved.'); + }, + error: function (err) { + console.log(err); + $('#comment-form-submit').html('Submit Comment'); + $('.page__comments-form .js-notice').removeClass('notice--success'); + $('.page__comments-form .js-notice').addClass('notice--danger'); + showAlert('Sorry, there was an error with your submission. Please make sure all required fields have been completed and try again.'); + $(form).removeClass('disabled'); + } + }); + + return false; + }); + + function showAlert(message) { + $('.page__comments-form .js-notice').removeClass('hidden'); + $('.page__comments-form .js-notice-text').html(message); + } + })(jQuery); </script> - <noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript> http://git-wip-us.apache.org/repos/asf/incubator-rocketmq-site/blob/e29c1519/content/docs/motivation/index.html ---------------------------------------------------------------------- diff --git a/content/docs/motivation/index.html b/content/docs/motivation/index.html index f94e21e..87bff9e 100644 --- a/content/docs/motivation/index.html +++ b/content/docs/motivation/index.html @@ -57,7 +57,7 @@ <meta property="og:type" content="article"> - <meta property="article:published_time" content="2016-12-30T10:03:22+08:00"> + <meta property="article:published_time" content="2016-12-30T18:39:19+08:00"> @@ -458,8 +458,57 @@ <div class="page__comments"> - <h4 class="page__comments-title">Leave a Comment</h4> - <section id="disqus_thread"></section> + <section id="static-comments"> + + <!-- Start static comments --> + <div class="js-comments"> + + </div> + <!-- End static comments --> + + <!-- Start new comment form --> + <h4 class="page__comments-title">Leave a Comment</h4> + <p class="small">Your email address will not be published. Required fields are marked <span class="required">*</span></p> + <form id="new_comment" class="page__comments-form js-form form" method="post" action="https://api.staticman.net/v1/entry/apache/incubator-rocketmq/master"> + <div class="form__spinner"> + <i class="fa fa-spinner fa-spin fa-3x fa-fw"></i> + <span class="sr-only">Loading...</span> + </div> + + <fieldset> + <label for="comment-form-message">Comment <small class="required">*</small></label> + <textarea type="text" rows="3" id="comment-form-message" name="fields[message]" tabindex="1"></textarea> + <div class="small help-block"><a href="https://daringfireball.net/projects/markdown/">Markdown is supported.</a></div> + </fieldset> + <fieldset> + <label for="comment-form-name">Name <small class="required">*</small></label> + <input type="text" id="comment-form-name" name="fields[name]" tabindex="2" /> + </fieldset> + <fieldset> + <label for="comment-form-email">Email address <small class="required">*</small></label> + <input type="email" id="comment-form-email" name="fields[email]" tabindex="3" /> + </fieldset> + <fieldset> + <label for="comment-form-url">Website (optional)</label> + <input type="url" id="comment-form-url" name="fields[url]" tabindex="4"/> + </fieldset> + <fieldset class="hidden" style="display: none;"> + <input type="hidden" name="options[slug]" value="02-motivation"> + <label for="comment-form-location">Not used. Leave blank if you are a human.</label> + <input type="text" id="comment-form-location" name="fields[hidden]" autocomplete="off"/> + </fieldset> + <!-- Start comment form alert messaging --> + <p class="hidden js-notice"> + <strong class="js-notice-text"></strong> + </p> + <!-- End comment form alert messaging --> + <fieldset> + <button type="submit" id="comment-form-submit" tabindex="5" class="btn btn--large">Submit Comment</button> + </fieldset> + </form> + <!-- End new comment form --> + + </section> </div> @@ -502,26 +551,46 @@ - <script type="text/javascript"> - /* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */ - var disqus_shortname = 'rocketmq'; - - /* * * DON'T EDIT BELOW THIS LINE * * */ - (function() { - var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true; - dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js'; - (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq); - })(); - - /* * * DON'T EDIT BELOW THIS LINE * * */ - (function () { - var s = document.createElement('script'); s.async = true; - s.type = 'text/javascript'; - s.src = '//' + disqus_shortname + '.disqus.com/count.js'; - (document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s); - }()); + <script> + (function ($) { + var $comments = $('.js-comments'); + + $('#new_comment').submit(function () { + var form = this; + + $(form).addClass('disabled'); + $('#comment-form-submit').html('<i class="fa fa-spinner fa-spin fa-fw"></i> Loading...'); + + $.ajax({ + type: $(this).attr('method'), + url: $(this).attr('action'), + data: $(this).serialize(), + contentType: 'application/x-www-form-urlencoded', + success: function (data) { + $('#comment-form-submit').html('Submitted'); + $('.page__comments-form .js-notice').removeClass('notice--danger'); + $('.page__comments-form .js-notice').addClass('notice--success'); + showAlert('Thanks for your comment! It will show on the site once it has been approved.'); + }, + error: function (err) { + console.log(err); + $('#comment-form-submit').html('Submit Comment'); + $('.page__comments-form .js-notice').removeClass('notice--success'); + $('.page__comments-form .js-notice').addClass('notice--danger'); + showAlert('Sorry, there was an error with your submission. Please make sure all required fields have been completed and try again.'); + $(form).removeClass('disabled'); + } + }); + + return false; + }); + + function showAlert(message) { + $('.page__comments-form .js-notice').removeClass('hidden'); + $('.page__comments-form .js-notice-text').html(message); + } + })(jQuery); </script> - <noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript> http://git-wip-us.apache.org/repos/asf/incubator-rocketmq-site/blob/e29c1519/content/docs/pull-request/index.html ---------------------------------------------------------------------- diff --git a/content/docs/pull-request/index.html b/content/docs/pull-request/index.html index bf9ad7e..a2296cf 100644 --- a/content/docs/pull-request/index.html +++ b/content/docs/pull-request/index.html @@ -57,7 +57,7 @@ <meta property="og:type" content="article"> - <meta property="article:published_time" content="2016-12-30T10:03:22+08:00"> + <meta property="article:published_time" content="2016-12-30T18:39:19+08:00"> @@ -521,8 +521,57 @@ In this case all subsequent comments will automatically be copied to jira withou <div class="page__comments"> - <h4 class="page__comments-title">Leave a Comment</h4> - <section id="disqus_thread"></section> + <section id="static-comments"> + + <!-- Start static comments --> + <div class="js-comments"> + + </div> + <!-- End static comments --> + + <!-- Start new comment form --> + <h4 class="page__comments-title">Leave a Comment</h4> + <p class="small">Your email address will not be published. Required fields are marked <span class="required">*</span></p> + <form id="new_comment" class="page__comments-form js-form form" method="post" action="https://api.staticman.net/v1/entry/apache/incubator-rocketmq/master"> + <div class="form__spinner"> + <i class="fa fa-spinner fa-spin fa-3x fa-fw"></i> + <span class="sr-only">Loading...</span> + </div> + + <fieldset> + <label for="comment-form-message">Comment <small class="required">*</small></label> + <textarea type="text" rows="3" id="comment-form-message" name="fields[message]" tabindex="1"></textarea> + <div class="small help-block"><a href="https://daringfireball.net/projects/markdown/">Markdown is supported.</a></div> + </fieldset> + <fieldset> + <label for="comment-form-name">Name <small class="required">*</small></label> + <input type="text" id="comment-form-name" name="fields[name]" tabindex="2" /> + </fieldset> + <fieldset> + <label for="comment-form-email">Email address <small class="required">*</small></label> + <input type="email" id="comment-form-email" name="fields[email]" tabindex="3" /> + </fieldset> + <fieldset> + <label for="comment-form-url">Website (optional)</label> + <input type="url" id="comment-form-url" name="fields[url]" tabindex="4"/> + </fieldset> + <fieldset class="hidden" style="display: none;"> + <input type="hidden" name="options[slug]" value="06-best-practice-pull-request"> + <label for="comment-form-location">Not used. Leave blank if you are a human.</label> + <input type="text" id="comment-form-location" name="fields[hidden]" autocomplete="off"/> + </fieldset> + <!-- Start comment form alert messaging --> + <p class="hidden js-notice"> + <strong class="js-notice-text"></strong> + </p> + <!-- End comment form alert messaging --> + <fieldset> + <button type="submit" id="comment-form-submit" tabindex="5" class="btn btn--large">Submit Comment</button> + </fieldset> + </form> + <!-- End new comment form --> + + </section> </div> @@ -565,26 +614,46 @@ In this case all subsequent comments will automatically be copied to jira withou - <script type="text/javascript"> - /* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */ - var disqus_shortname = 'rocketmq'; - - /* * * DON'T EDIT BELOW THIS LINE * * */ - (function() { - var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true; - dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js'; - (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq); - })(); - - /* * * DON'T EDIT BELOW THIS LINE * * */ - (function () { - var s = document.createElement('script'); s.async = true; - s.type = 'text/javascript'; - s.src = '//' + disqus_shortname + '.disqus.com/count.js'; - (document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s); - }()); + <script> + (function ($) { + var $comments = $('.js-comments'); + + $('#new_comment').submit(function () { + var form = this; + + $(form).addClass('disabled'); + $('#comment-form-submit').html('<i class="fa fa-spinner fa-spin fa-fw"></i> Loading...'); + + $.ajax({ + type: $(this).attr('method'), + url: $(this).attr('action'), + data: $(this).serialize(), + contentType: 'application/x-www-form-urlencoded', + success: function (data) { + $('#comment-form-submit').html('Submitted'); + $('.page__comments-form .js-notice').removeClass('notice--danger'); + $('.page__comments-form .js-notice').addClass('notice--success'); + showAlert('Thanks for your comment! It will show on the site once it has been approved.'); + }, + error: function (err) { + console.log(err); + $('#comment-form-submit').html('Submit Comment'); + $('.page__comments-form .js-notice').removeClass('notice--success'); + $('.page__comments-form .js-notice').addClass('notice--danger'); + showAlert('Sorry, there was an error with your submission. Please make sure all required fields have been completed and try again.'); + $(form).removeClass('disabled'); + } + }); + + return false; + }); + + function showAlert(message) { + $('.page__comments-form .js-notice').removeClass('hidden'); + $('.page__comments-form .js-notice-text').html(message); + } + })(jQuery); </script> - <noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript> http://git-wip-us.apache.org/repos/asf/incubator-rocketmq-site/blob/e29c1519/content/docs/quick-start/index.html ---------------------------------------------------------------------- diff --git a/content/docs/quick-start/index.html b/content/docs/quick-start/index.html index a130580..bd186ce 100644 --- a/content/docs/quick-start/index.html +++ b/content/docs/quick-start/index.html @@ -57,7 +57,7 @@ <meta property="og:type" content="article"> - <meta property="article:published_time" content="2016-12-30T10:03:22+08:00"> + <meta property="article:published_time" content="2016-12-30T18:39:19+08:00"> @@ -444,8 +444,57 @@ Send shutdown request to mqnamesrv<span class="o">(</span>36664<span class="o">) <div class="page__comments"> - <h4 class="page__comments-title">Leave a Comment</h4> - <section id="disqus_thread"></section> + <section id="static-comments"> + + <!-- Start static comments --> + <div class="js-comments"> + + </div> + <!-- End static comments --> + + <!-- Start new comment form --> + <h4 class="page__comments-title">Leave a Comment</h4> + <p class="small">Your email address will not be published. Required fields are marked <span class="required">*</span></p> + <form id="new_comment" class="page__comments-form js-form form" method="post" action="https://api.staticman.net/v1/entry/apache/incubator-rocketmq/master"> + <div class="form__spinner"> + <i class="fa fa-spinner fa-spin fa-3x fa-fw"></i> + <span class="sr-only">Loading...</span> + </div> + + <fieldset> + <label for="comment-form-message">Comment <small class="required">*</small></label> + <textarea type="text" rows="3" id="comment-form-message" name="fields[message]" tabindex="1"></textarea> + <div class="small help-block"><a href="https://daringfireball.net/projects/markdown/">Markdown is supported.</a></div> + </fieldset> + <fieldset> + <label for="comment-form-name">Name <small class="required">*</small></label> + <input type="text" id="comment-form-name" name="fields[name]" tabindex="2" /> + </fieldset> + <fieldset> + <label for="comment-form-email">Email address <small class="required">*</small></label> + <input type="email" id="comment-form-email" name="fields[email]" tabindex="3" /> + </fieldset> + <fieldset> + <label for="comment-form-url">Website (optional)</label> + <input type="url" id="comment-form-url" name="fields[url]" tabindex="4"/> + </fieldset> + <fieldset class="hidden" style="display: none;"> + <input type="hidden" name="options[slug]" value="01-quick-start-guide"> + <label for="comment-form-location">Not used. Leave blank if you are a human.</label> + <input type="text" id="comment-form-location" name="fields[hidden]" autocomplete="off"/> + </fieldset> + <!-- Start comment form alert messaging --> + <p class="hidden js-notice"> + <strong class="js-notice-text"></strong> + </p> + <!-- End comment form alert messaging --> + <fieldset> + <button type="submit" id="comment-form-submit" tabindex="5" class="btn btn--large">Submit Comment</button> + </fieldset> + </form> + <!-- End new comment form --> + + </section> </div> @@ -488,26 +537,46 @@ Send shutdown request to mqnamesrv<span class="o">(</span>36664<span class="o">) - <script type="text/javascript"> - /* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */ - var disqus_shortname = 'rocketmq'; - - /* * * DON'T EDIT BELOW THIS LINE * * */ - (function() { - var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true; - dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js'; - (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq); - })(); - - /* * * DON'T EDIT BELOW THIS LINE * * */ - (function () { - var s = document.createElement('script'); s.async = true; - s.type = 'text/javascript'; - s.src = '//' + disqus_shortname + '.disqus.com/count.js'; - (document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s); - }()); + <script> + (function ($) { + var $comments = $('.js-comments'); + + $('#new_comment').submit(function () { + var form = this; + + $(form).addClass('disabled'); + $('#comment-form-submit').html('<i class="fa fa-spinner fa-spin fa-fw"></i> Loading...'); + + $.ajax({ + type: $(this).attr('method'), + url: $(this).attr('action'), + data: $(this).serialize(), + contentType: 'application/x-www-form-urlencoded', + success: function (data) { + $('#comment-form-submit').html('Submitted'); + $('.page__comments-form .js-notice').removeClass('notice--danger'); + $('.page__comments-form .js-notice').addClass('notice--success'); + showAlert('Thanks for your comment! It will show on the site once it has been approved.'); + }, + error: function (err) { + console.log(err); + $('#comment-form-submit').html('Submit Comment'); + $('.page__comments-form .js-notice').removeClass('notice--success'); + $('.page__comments-form .js-notice').addClass('notice--danger'); + showAlert('Sorry, there was an error with your submission. Please make sure all required fields have been completed and try again.'); + $(form).removeClass('disabled'); + } + }); + + return false; + }); + + function showAlert(message) { + $('.page__comments-form .js-notice').removeClass('hidden'); + $('.page__comments-form .js-notice-text').html(message); + } + })(jQuery); </script> - <noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
