0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020 $(document).ready(function() {
0021 var annotations = $("dt:contains('Annotations')").next("dd").children("span.name");
0022 addBadges(annotations, "AlphaComponent", ":: AlphaComponent ::", '<span class="alphaComponent badge">Alpha Component</span>');
0023 addBadges(annotations, "DeveloperApi", ":: DeveloperApi ::", '<span class="developer badge">Developer API</span>');
0024 addBadges(annotations, "Experimental", ":: Experimental ::", '<span class="experimental badge">Experimental</span>');
0025 });
0026
0027 function addBadges(allAnnotations, name, tag, html) {
0028 var annotations = allAnnotations.filter(":contains('" + name + "')")
0029 var tags = $(".cmt:contains(" + tag + ")")
0030
0031
0032 tags.each(function(index) {
0033 var oldHTML = $(this).html();
0034 var newHTML = oldHTML.replace(tag, "");
0035 $(this).html(newHTML);
0036 });
0037
0038
0039 tags.prevAll("h4.signature")
0040 .add(annotations.closest("div.fullcommenttop"))
0041 .add(annotations.closest("div.fullcomment").prevAll("h4.signature"))
0042 .prepend(html);
0043 }
0044
0045 $(document).ready(function() {
0046 var script = document.createElement('script');
0047 script.type = 'text/javascript';
0048 script.async = true;
0049 script.onload = function(){
0050 MathJax.Hub.Config({
0051 displayAlign: "left",
0052 tex2jax: {
0053 inlineMath: [ ["$", "$"], ["\\(","\\)"] ],
0054 displayMath: [ ["$$","$$"], ["\\[", "\\]"] ],
0055 processEscapes: true,
0056 skipTags: ['script', 'noscript', 'style', 'textarea', 'pre', 'a']
0057 }
0058 });
0059 };
0060 script.src = ('https:' == document.location.protocol ? 'https://' : 'http://') +
0061 'cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js' +
0062 '?config=TeX-AMS-MML_HTMLorMML';
0063 document.getElementsByTagName('head')[0].appendChild(script);
0064 });