addon-box.js
3 months ago
addons.css
1 month ago
backup-adstxt.js
3 months ago
dashboard.css
3 months ago
index.js
3 months ago
oneclick.css
3 months ago
spinner.css
3 months ago
subscribe.js
3 months ago
welcome.js
3 months ago
index.js
30 lines
| 1 | import jQuery from 'jquery'; |
| 2 | |
| 3 | import './dashboard.css'; |
| 4 | |
| 5 | import welcome from './welcome'; |
| 6 | import addonBox from './addon-box'; |
| 7 | import backupAdstxt from './backup-adstxt'; |
| 8 | import subscribe from './subscribe'; |
| 9 | |
| 10 | jQuery( () => { |
| 11 | welcome(); |
| 12 | subscribe(); |
| 13 | |
| 14 | jQuery( '#advads-overview' ).on( |
| 15 | 'click', |
| 16 | '.notice-dismiss', |
| 17 | function ( event ) { |
| 18 | event.preventDefault(); |
| 19 | const button = jQuery( this ); |
| 20 | const notice = button.parent(); |
| 21 | notice.fadeOut( 500, function () { |
| 22 | notice.remove(); |
| 23 | } ); |
| 24 | } |
| 25 | ); |
| 26 | |
| 27 | addonBox(); |
| 28 | backupAdstxt(); |
| 29 | } ); |
| 30 |