PluginProbe
Copy Anything to Clipboard for WordPress – Copy Button, Copy Text & Copy Code / 1.7.3
Copy Anything to Clipboard for WordPress – Copy Button, Copy Text & Copy Code v1.7.3
5.5.3 3.1.0 3.2.0 3.2.1 3.3.0 3.4.0 3.4.1 3.4.2 3.4.3 3.5.0 3.5.1 3.5.2 3.6.0 3.7.0 3.8.0 3.8.1 3.8.2 3.8.3 4.0.0 4.0.2 4.0.3 4.0.4 4.0.5 4.1.0 4.1.1 All 78 releases
copy-the-code / assets / js / page.js

page.js in Copy Anything to Clipboard for WordPress – Copy Button, Copy Text & Copy Code 1.7.3, at assets/js/page.js

36 lines 776 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 (function($) {
2
3 CopyTheCodePage = {
4 /**
5 * Init
6 */
7 init: function()
8 {
9 this._bind();
10 $('.copy-the-code .nav-tab-wrapper > .nav-tab:first-child').addClass('nav-tab-active');
11 },
12
13 _bind: function()
14 {
15 $( document ).on('click', '.nav-tab', CopyTheCodePage._switch_tab );
16 },
17
18 _switch_tab: function( event ) {
19 $(this).siblings().removeClass('nav-tab-active');
20 $(this).addClass('nav-tab-active');
21 $( '#' + $(this).attr( 'data-id' ) ).siblings().hide();
22 $( '#' + $(this).attr( 'data-id' ) ).show();
23 }
24
25 };
26
27 /**
28 * Initialization
29 */
30 $(function() {
31 CopyTheCodePage.init();
32 });
33
34 })(jQuery);
35
36