diff -r 000000000000 -r d153941bb745 src/build/html/_static/websupport.min.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/build/html/_static/websupport.min.js Sun Jan 14 11:48:51 2018 +0100 @@ -0,0 +1,1 @@ +!function(e){e.fn.autogrow=function(){return this.each(function(){var t=this;e.fn.autogrow.resize(t),e(t).focus(function(){t.interval=setInterval(function(){e.fn.autogrow.resize(t)},500)}).blur(function(){clearInterval(t.interval)})})},e.fn.autogrow.resize=function(t){var n=parseInt(e(t).css("line-height"),10),a=t.value.split("\n"),i=t.cols,o=0;e.each(a,function(){o+=Math.ceil(this.length/i)||1});var s=n*(o+1);e(t).css("height",s)}}(jQuery),function(e){function t(){n(),o()}function n(){e(document).on("click","a.comment-close",function(t){t.preventDefault(),c(e(this).attr("id").substring(2))}),e(document).on("click","a.vote",function(t){t.preventDefault(),y(e(this))}),e(document).on("click","a.reply",function(t){t.preventDefault(),x(e(this).attr("id").substring(2))}),e(document).on("click","a.close-reply",function(t){t.preventDefault(),k(e(this).attr("id").substring(2))}),e(document).on("click","a.sort-option",function(t){t.preventDefault(),b(e(this))}),e(document).on("click","a.show-proposal",function(t){t.preventDefault(),f(e(this).attr("id").substring(2))}),e(document).on("click","a.hide-proposal",function(t){t.preventDefault(),h(e(this).attr("id").substring(2))}),e(document).on("click","a.show-propose-change",function(t){t.preventDefault(),v(e(this).attr("id").substring(2))}),e(document).on("click","a.hide-propose-change",function(t){t.preventDefault(),g(e(this).attr("id").substring(2))}),e(document).on("click","a.accept-comment",function(t){t.preventDefault(),u(e(this).attr("id").substring(2))}),e(document).on("click","a.delete-comment",function(t){t.preventDefault(),p(e(this).attr("id").substring(2))}),e(document).on("click","a.comment-markup",function(t){t.preventDefault(),w(e(this).attr("id").substring(2))})}function a(){if("asc"==U.substring(0,3)){var t=U.substring(3);T=function(e,n){return e[t]-n[t]}}else T=function(e,t){return t[U]-e[U]};e("a.sel").attr("href","#").removeClass("sel"),e("a.by"+U).removeAttr("href").addClass("sel")}function o(){if(U="rating",document.cookie.length>0){var e=document.cookie.indexOf("sortBy=");if(-1!=e){e+=7;var t=document.cookie.indexOf(";",e);-1==t&&(t=document.cookie.length,U=unescape(document.cookie.substring(e,t)))}}a()}function s(t){e("#ao"+t).hide(),e("#ah"+t).show();var n=e.extend({id:t},I),a=e(C(E,n)).hide();a.find('textarea[name="proposal"]').hide(),a.find("a.by"+U).addClass("sel");var i=a.find("#cf"+t);i.submit(function(e){e.preventDefault(),d(i)}),e("#s"+t).after(a),a.slideDown("fast",function(){r(t)})}function c(t){e("#ah"+t).hide(),e("#ao"+t).show();var n=e("#sc"+t);n.slideUp("fast",function(){n.remove()})}function r(t){e.ajax({type:"GET",url:I.getCommentsURL,data:{node:t},success:function(n,a,i){var o=e("#cl"+t),s=100;if(e("#cf"+t).find('textarea[name="proposal"]').data("source",n.source),0===n.comments.length)o.html("
  • No comments yet.
  • "),o.data("empty",!0);else{var c=_(n.comments);s=100*n.comments.length,l(c,o),o.data("empty",!1)}e("#cn"+t).slideUp(s+200),o.slideDown(s)},error:function(e,t,n){O("Oops, there was a problem retrieving the comments.")},dataType:"json"})}function d(t){var n=t.find('input[name="node"]').val(),a=t.find('input[name="parent"]').val(),i=t.find('textarea[name="comment"]').val(),o=t.find('textarea[name="proposal"]').val();""!=i?(t.find("textarea,input").attr("disabled","disabled"),e.ajax({type:"POST",url:I.addCommentURL,dataType:"json",data:{node:n,parent:a,text:i,proposal:o},success:function(i,o,s){n&&g(n),t.find("textarea").val("").add(t.find("input")).removeAttr("disabled");var c=e("#cl"+(n||a));c.data("empty")&&(e(c).empty(),c.data("empty",!1)),m(i.comment),e("#ao"+n).find("img").attr({src:I.commentBrightImage}),n&&e("#ca"+n).slideUp()},error:function(e,n,a){t.find("textarea,input").removeAttr("disabled"),O("Oops, there was a problem adding the comment.")}})):O("Please enter a comment.")}function l(t,n){e.each(t,function(){var t=A(this);n.append(e(document.createElement("li")).html(t)),l(this.children,t.find("ul.comment-children")),this.children=null,t.data("comment",this)})}function m(t){var n=A(t);t.children=null,n.data("comment",t);var a=e("#cl"+(t.node||t.parent)),o=D(a),s=e(document.createElement("li"));for(s.hide(),i=0;iThank you! Your comment will show up once it is has been approved by a moderator.');t.pretty_rating=t.rating+" point"+(1==t.rating?"":"s"),t.css_class=t.displayed?"":" moderate";var n=e.extend({},I,t),a=e(C(P,n));if(t.vote){var i=1==t.vote?"u":"d";a.find("#"+i+"v"+t.id).hide(),a.find("#"+i+"u"+t.id).show()}return(I.moderator||"[deleted]"!=t.text)&&(a.find("a.reply").show(),t.proposal_diff&&a.find("#sp"+t.id).show(),I.moderator&&!t.displayed&&a.find("#cm"+t.id).show(),(I.moderator||I.username==t.username)&&a.find("#dc"+t.id).show()),a}function C(t,n){function a(t,a){var o=n;return e.each(t.split("."),function(){o=o[this]}),a?i.text(o||"").html():o}var i=e(document.createElement("div"));return t.replace(/<([%#])([\w\.]*)\1>/g,function(){return a(arguments[2],"%"==arguments[1])})}function O(t){e(document.createElement("div")).attr({class:"popup-error"}).append(e(document.createElement("div")).attr({class:"error-message"}).text(t)).appendTo("body").fadeIn("slow").delay(2e3).fadeOut("slow")}var T,U;e.fn.comment=function(){return this.each(function(){var t=e(this).attr("id").substring(1),n=COMMENT_METADATA[t],a=n+" comment"+(1==n?"":"s"),i=n>0?I.commentBrightImage:I.commentImage,o=0==n?" nocomment":"";e(this).append(e(document.createElement("a")).attr({href:"#",class:"sphinx-comment-open"+o,id:"ao"+t}).append(e(document.createElement("img")).attr({src:i,alt:"comment",title:a})).click(function(t){t.preventDefault(),s(e(this).attr("id").substring(2))})).append(e(document.createElement("a")).attr({href:"#",class:"sphinx-comment-close hidden",id:"ah"+t}).append(e(document.createElement("img")).attr({src:I.closeCommentImage,alt:"close",title:"close"})).click(function(t){t.preventDefault(),c(e(this).attr("id").substring(2))}))})};var I={processVoteURL:"/_process_vote",addCommentURL:"/_add_comment",getCommentsURL:"/_get_comments",acceptCommentURL:"/_accept_comment",deleteCommentURL:"/_delete_comment",commentImage:"/static/_static/comment.png",closeCommentImage:"/static/_static/comment-close.png",loadingImage:"/static/_static/ajax-loader.gif",commentBrightImage:"/static/_static/comment-bright.png",upArrow:"/static/_static/up.png",downArrow:"/static/_static/down.png",upArrowPressed:"/static/_static/up-pressed.png",downArrowPressed:"/static/_static/down-pressed.png",voting:!1,moderator:!1};"undefined"!=typeof COMMENT_OPTIONS&&(I=jQuery.extend(I,COMMENT_OPTIONS));var E='

    Sort by: best rated newest oldest

    Comments
    loading comments...

    Add a comment (markup):

    reStructured text markup: *emph*, **strong**, ``code``, code blocks: :: and an indented block after blank line

    Propose a change ▹ Propose a change ▿

    ',P='

    <%username%> <%pretty_rating%> <%time.delta%>

    <#text#>

    reply ▿ proposal ▹ proposal ▿

    <#proposal_diff#>        
      ',j='
    • ';e(document).ready(function(){t()})}(jQuery),$(document).ready(function(){$(".sphinx-has-comment").comment(),$("div.context").each(function(){var e=$.getQueryParameters(),t=e.q?e.q[0].split(/\s+/):[],n=$(this);$.each(t,function(){n.highlightText(this.toLowerCase(),"highlighted")})});var e=document.location.hash;"#comment-"==e.substring(0,9)&&($("#ao"+e.substring(9)).click(),document.location.hash="#s"+e.substring(9))});