Changeset 1695358
- Timestamp:
- 07/12/2017 06:05:22 PM (8 years ago)
- Location:
- net-neutrality/trunk
- Files:
-
- 3 edited
-
net-neutrality.js (modified) (2 diffs)
-
net-neutrality.php (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
net-neutrality/trunk/net-neutrality.js
r1694628 r1695358 37 37 38 38 nnLoading.on( 'click', '.nn-overlay', function () { 39 var thisOverlay = $ ( this ); 40 nnOverlay = $( '#net-neutrality-overlay' ); 41 nnOverlay.show().css( 'opacity', '1' ) 39 var thisOverlay = $ ( this ), 40 nnOverlay = $( '.nn-overlay' ), 41 nnOverlayWrap = $( '#net-neutrality-overlay' ); 42 43 nnOverlayWrap.show().css( 'opacity', '1' ); 42 44 $( '#net-neutrality-overlay-action' ).focus(); 43 45 … … 46 48 } ); 47 49 48 nnOverlay .on( 'click', function() {50 nnOverlayWrap.on( 'click', function() { 49 51 $( '.post' ).removeClass( 'nn-loading' ); 50 52 thisOverlay.remove(); 51 $( this ).hide().css( 'opacity', '0' ); 53 nnOverlay.hide().css( 'opacity', '0' ).remove(); 54 nnOverlayWrap.hide().css( 'opacity', '0' ); 52 55 $( '#net-neutrality-ribbon' ).show().css( 'opacity', '1' ); 53 56 } ); 54 57 55 $( '#net-neutrality-overlay-close' ).on( 'click', function( ) {58 $( '#net-neutrality-overlay-close' ).on( 'click', function( event ) { 56 59 event.preventDefault(); 57 60 $( '.post' ).removeClass( 'nn-loading' ); 58 61 thisOverlay.remove(); 59 nnOverlay.hide().css( 'opacity', '0' ); 62 nnOverlay.hide().css( 'opacity', '0' ).remove(); 63 nnOverlayWrap.hide().css( 'opacity', '0' ); 60 64 $( '#net-neutrality-ribbon' ).show().css( 'opacity', '1' ); 61 65 } ); -
net-neutrality/trunk/net-neutrality.php
r1695231 r1695358 5 5 * Description: Slow your site down to fight for net neutrality. 6 6 * Author: Automattic 7 * Version: 1.0. 17 * Version: 1.0.2 8 8 * Author URI: http://wordpress.com 9 9 * License: GPL2+ … … 113 113 114 114 wp_enqueue_style( 'net-neutrality', plugins_url( 'net-neutrality.css', __FILE__ ), array(), '20140904' ); 115 wp_register_script( 'net-neutrality-js', plugins_url( 'net-neutrality.js', __FILE__ ), array( 'jquery' ), '201 40904' );115 wp_register_script( 'net-neutrality-js', plugins_url( 'net-neutrality.js', __FILE__ ), array( 'jquery' ), '20170712-2' ); 116 116 wp_localize_script( 'net-neutrality-js', 'netNeutrality', array( 117 117 'strings' => array( -
net-neutrality/trunk/readme.txt
r1695231 r1695358 2 2 Contributors: automattic, pesieminski, Joen, ebinnion, michaelarestad 3 3 Tags: net neutrality 4 Stable tag: 1.0. 14 Stable tag: 1.0.2 5 5 Requires at least: 4.6 6 6 Tested up to: 4.8 … … 14 14 == Changelog == 15 15 16 = 1.0.2 17 - Fix an issue with undefined event in latest Firefox 18 - Improve compatibility with darker themes by fully removing overlay divs 19 16 20 = 1.0.1 = 17 21
Note: See TracChangeset
for help on using the changeset viewer.