WordPress.org

Making WordPress.org

Changeset 2016


Ignore:
Timestamp:
10/28/15 20:49:01 (2 years ago)
Author:
samuelsidler
Message:

Handbook Plugin: Allow toggling of Chapters list on small screens.

This adds a new JavaScript file that allows toggling of the Chapters list when the screen size is < 700 pixels.

Props morganestes.
See #467.

Location:
sites/trunk/wordpress.org/public_html/wp-content/plugins/handbook
Files:
2 added
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/handbook/handbook.php

    r1551 r2016  
    3131 
    3232        add_action( 'wp_enqueue_scripts', array( __CLASS__, 'enqueue_styles' ) ); 
     33        add_action( 'wp_enqueue_scripts', array( __CLASS__, 'enqueue_scripts' ) ); 
    3334    } 
    3435 
    3536    static public function enqueue_styles() { 
    3637        wp_enqueue_style( 'wporg-handbook-css', plugins_url( '/stylesheets/callout-boxes.css', __FILE__ ), array(), '20150507' ); 
     38    } 
     39 
     40    static public function enqueue_scripts() { 
     41        wp_enqueue_script( 'wporg-handbook', plugins_url( '/scripts/handbook.js', __FILE__ ), array( 'jquery' ), '20150930' ); 
    3742    } 
    3843 
Note: See TracChangeset for help on using the changeset viewer.