6 console
.log
.apply(console
, arguments
);
8 blink
: function blink(c
) {
11 $c
.fadeOut("fast").queue(function(next
) {
12 this.style
.color
= "red";
14 }).fadeIn("fast").fadeOut("slow").queue(function(next
) {
15 this.style
.color
= "";
19 hashchange
: function hashchange() {
20 if (location
.hash
.length
> 1) {
21 var hash
= decodeURIComponent(location
.hash
.substring(1));
23 if ((e
= document
.getElementById(location
.hash
.substring(1)))) {
28 if (hash
.substring(hash
.length
-1) === "*") {
29 hash
= hash
.substring(0, hash
.length
-1);
31 $((hash
.substring(0,1) === "$") ? ".var" : ".constant").each(function(i
, c
) {
32 if (c
.textContent
.substring(0, hash
.length
) === hash
) {
34 $(window
).scrollTop($(c
).offset().top
- 100);
45 $(window
).on("hashchange", mdref
.hashchange
);
48 $("#disqus_activator").on("click", function() {
49 var dsq
= document
.createElement('script'); dsq
.type
= 'text/javascript'; dsq
.async
= true;
50 dsq
.src
= '//' + disqus_shortname
+ '.disqus.com/embed.js';
51 (document
.getElementsByTagName('head')[0] || document
.getElementsByTagName('body')[0]).appendChild(dsq
);
53 $.ajax("https://disqus.com/api/3.0/threads/details.json?thread:ident="+(disqus_identifier
||"index")+"&forum=mdref&api_key=VmhVG4z5jjtY8SCaMstOjfUuwniMv43Xy9FCU9YfEzhsrl95dNz1epykXSJn8jt9"). then(function(json
) {
54 if (json
&& json
.response
) {
55 $("#disqus_activator span").text(json
.response
.posts
);
58 setTimeout(function() {
59 $("footer").addClass("hidden");