Lines Matching refs:jQuery

3 jQuery(document).ready(function() {
8 jQuery( '#writr__sidebar' ).on( 'click', '#writr__sidebar-toggle', function( e ) {
10 jQuery( 'html, body' ).scrollTop( 0 );
11 jQuery( this ).toggleClass( 'open' );
12 jQuery( 'body' ).toggleClass( 'sidebar-closed' );
13 jQuery( '#writr__secondary' ).resize();
21 var $container = jQuery('#writr__site-navigation');
23 var $button = jQuery('.menu-toggle', $container);
25 var $menu = jQuery('ul', $container);
39 jQuery( '.main-navigation .node > div > a' ).append( '<span class="dropdown-icon" />' );
40 jQuery( '#writr__site-navigation' ).on( 'click', '.dropdown-icon', function( e ) {
42 jQuery( this ).toggleClass( 'open' );
43 if ( jQuery( this ).hasClass( 'open' ) ) {
44 jQuery( this ).parent().parent().next( 'ul' ).show();
46 jQuery( this ).parent().parent().next( 'ul' ).hide();
55 var $toc = jQuery('#dw__toc .toggle');
66 var $searchForm = jQuery('.search-form > form > div');
67 var $searchButton = jQuery('input[type="submit"]', $searchForm).detach();
77 jQuery('.action.AddNewPage').click(function(event) {
79 const button = jQuery(this);
80 jQuery('.addnewpage').toggle(0,function(){
82 button.attr('aria-expanded', jQuery(this).is(':visible'));
86 jQuery(document).click(function(event) {
87 if (!jQuery(event.target).closest('.action.AddNewPage, .addnewpage').length) {
88 jQuery('.addnewpage').hide();
97 jQuery('.action.Translation').click(function(event) {
99 const button = jQuery(this);
100 jQuery('.plugin_translation').toggle(0,function(){
102 button.attr('aria-expanded', jQuery(this).is(':visible'));
106 jQuery(document).click(function(event) {
107 if (!jQuery(event.target).closest('.action.Translation, .plugin_translation').length) {
108 jQuery('.plugin_translation').hide();
117 jQuery('#writr__toolbar .hook .node').each(function() {
118 const dropdown = jQuery(this);
120 const trigger = jQuery(this);
122 trigger.attr('aria-expanded', jQuery(this).is(':visible'));
126 jQuery(document).on('click.dropdown', function(e) {
130 jQuery(document).off('click.dropdown');
141 jQuery('[data-toggle="collapse"]').click(function(event){
143 const trigger = jQuery(this);
144 const target = jQuery(trigger.attr('data-target'));
156 jQuery('.dropdown').each(function() {
157 const dropdown = jQuery(this);
160 const button = jQuery(this);
162 button.attr('aria-expanded', jQuery(this).is(':visible'));
166 jQuery(document).on('click.dropdown', function(e) {
170 jQuery(document).off('click.dropdown');
181 jQuery('body.enableTooltips [title]:not(.media),body.enableTooltips [alt]:not(.media)').each(function() {
182 const element = jQuery(this);
192 const tooltip = jQuery('<div class="tooltip"><div class="tooltip-text">' + content + '</div></div>');
193 jQuery('body').append(tooltip);
211 jQuery('.tooltip').remove();
216 jQuery(function(){