PluginProbe
Super RSS Reader – Add attractive RSS Feed Widget / 4.5
Super RSS Reader – Add attractive RSS Feed Widget v4.5
trunk 0.8 2.0 2.1 2.2 2.3 2.4 2.5 2.6 2.7 2.8 3.0 3.1 3.2 4.0 4.0.1 4.1 4.2 4.3 4.4 4.4.1 4.5 4.6 4.7 4.8 All 33 releases
super-rss-reader / admin / js / script-widget.js

script-widget.js in Super RSS Reader – Add attractive RSS Feed Widget 4.5, at admin/js/script-widget.js

39 lines 1.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 (function($){
2 $(document).ready(function(){
3
4 $(document).on('click', '.srr_tab_list a', function(e){
5 e.preventDefault();
6 var $settings = $(this).closest('.srr_settings');
7 var id = $(this).data('tab');
8 $settings.find('.active').removeClass('active');
9 $(this).addClass('active');
10 $settings.find('section[data-tab-id="' + id + '"]').addClass('active');
11 });
12
13 $(document).on('mouseenter', '.srr_pro_intro', function(){
14 if( !$(this).hasClass('srr_pro_expand') ){
15 window.srr_pro_expand = window.setTimeout(function($ele) {
16 window.srr_pro_expand = null;
17 $ele.closest('.srr_pro').find('.srr_pro_details').slideDown();
18 $ele.addClass('srr_pro_expand');
19 }, 1500, $(this));
20 }
21 });
22
23 $(document).on('mouseleave', '.srr_pro_intro', function(){
24 clearTimeout(window.srr_pro_expand);
25 });
26
27 $(document).on('click', '.srr_pro_intro', function() {
28 var $details = $(this).closest('.srr_pro').find('.srr_pro_details');
29 if( !$(this).hasClass('srr_pro_expand') ){
30 $details.slideDown();
31 $(this).addClass('srr_pro_expand');
32 }else{
33 $details.slideUp();
34 $(this).removeClass('srr_pro_expand');
35 }
36 });
37
38 });
39 }(jQuery))