PageSourceSearch

https://presentpasts.info/static/js/journals/article-click-events.js

js presentpasts.info collected 2026-10-02 05:34:36 UTC 3,614 bytes, 94 lines download raw bytes

1(function() {
2  $(function() {
3    $(document).on('click', '#dyslexia-mode', function(e) {
4      e.preventDefault();
5      $('#dyslexia-mode').toggleClass('active');
6      return $('.app-container').toggleClass('dyslexia-mode');
7    });
8    $(document).on('click', '#text-smaller', function(e) {
9      e.preventDefault();
10      return $('.major-article-block').css('font-size', '-=1px');
11    });
12    $(document).on('click', '#text-larger', function(e) {
13      e.preventDefault();
14      return $('.major-article-block').css('font-size', '+=1px');
15    });
16    $(document).on('click', '.author-hover', function(e) {
17      e.preventDefault();
18      return $(this).parents('.author-block').toggleClass('show-author');
19    });
20    $(document).on('click', '.hide-author', function(e) {
21      e.preventDefault();
22      return $(this).parents('.author-block').removeClass('show-author');
23    });
24    $(document).on('click', '.expand-stats', function(e) {
25      e.preventDefault();
26      return $('.hidden-stats').toggleClass('show-stats');
27    });
28    $(document).on('click', '#open-author-modal', function(e) {
29      e.preventDefault();
30      $('#add-author-modal').addClass('show');
31      return $('body').addClass('lock-scroll');
32    });
33    $(document).on('click', '.modal-close', function(e) {
34      e.preventDefault();
35      $('#add-author-modal').removeClass('show');
36      return $('body').removeClass('lock-scroll');
37    });
38    $(document).on('click', '.expand-content', function(e) {
39      e.preventDefault();
40      $('.in').removeClass('in');
41      $('.expand-content').html('Learn More <i class="fa fa-angle-down"></i>');
42      $(this).html('Learn More <i class="fa fa-angle-up"></i>');
43      $(this).parents('.expanding-about').children('.content-hide-xl').toggleClass('show');
44      return $('html, body').animate({
45        scrollTop: $(this).offset().top + (-100)
46      }, 2000);
47    });
48    $(document).on('click', '.close-content', function(e) {
49      e.preventDefault();
50      console.log('closing...');
51      $('.in').removeClass('in');
52      return $('.expand-content').html('Learn More <i class="fa fa-angle-down"></i>');
53    });
54    $(document).on('change', '#login-modal', function(e) {
55      if ($('#login-modal').is(':checked')) {
56        return $('body').addClass('lock-scroll');
57      } else {
58        return $('body').removeClass('lock-scroll');
59      }
60    });
61    $(document).on('change', '.has-funding input[type="radio"]', function(e) {
62      if ($('#yes').is(':checked')) {
63        $("#funding-yes").addClass('show');
64        $("#funding-no").removeClass('show');
65      }
66      if ($('#no').is(':checked')) {
67        $("#funding-yes").removeClass('show');
68        return $("#funding-no").addClass('show');
69      }
70    });
71    $(document).on('change', '.has-competing input[type="radio"]', function(e) {
72      if ($('#yes-compete').is(':checked')) {
73        $("#comp-yes").addClass('show');
74        $("#comp-no").removeClass('show');
75      }
76      if ($('#no-compete').is(':checked')) {
77        $("#comp-yes").removeClass('show');
78        return $("#comp-no").addClass('show');
79      }
80    });
81    $(document).on('change', '.review-preference input[type="radio"]', function(e) {
82      if ($('#yes-review-preference').is(':checked')) {
83        $("#recommend_reviewers").addClass('show');
84        $("#exclude_reviewers").addClass('show');
85      }
86      if ($('#no-review-preference').is(':checked')) {
87        $("#recommend_reviewers").removeClass('show');
88        return $("#exclude_reviewers").removeClass('show');
89      }
90    });
91    return $('.wysiwig-area').jqte();
92  });
93
94}).call(this);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.