<commit_before>/**
 * Main JS file for Casper behaviours
 */

/*globals jQuery, document */
(function ($) {
    "use strict";

    $(document).ready(function(){

        $(".post-content").fitVids();

        // Calculates Reading Time
        $('.post-content').readingTime({
            readingTimeTarget: '.post-reading-time'
        });
    });

}(jQuery));<commit_msg>make formal citations clickable<commit_after>/**
 * Main JS file for Casper behaviours
 */

/*globals jQuery, document */
(function ($) {
    "use strict";

    $(document).ready(function(){

        $(".post-content").fitVids();

        // Calculates Reading Time
        $('.post-content').readingTime({
            readingTimeTarget: '.post-reading-time'
        });

        $('span.citation').click(function(){
            $(location).attr('href', $(this).data("cites"));
        });
    });

}(jQuery));
{'fraction_non_alphanumeric': 0.19479048697621745, 'fraction_numerical': 0.0, 'mean_word_length': 2.4396887159533076, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7442019', 'n_tokens_mistral': 262, 'n_tokens_neox': 246, 'n_words': 49}