PluginProbe
Super RSS Reader – Add attractive RSS Feed Widget / 2.7
Super RSS Reader – Add attractive RSS Feed Widget v2.7
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 / public / js / script.js

script.js in Super RSS Reader – Add attractive RSS Feed Widget 2.7, at public/js/script.js

39 lines 1.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 /*
2 * Super RSS Reader - v1.2
3 * Included with "Super RSS Reader" Wordpress plugin @since v2.0
4 * Author: Aakash Chakravarthy, www.aakashweb.com
5 */
6
7 (function($){
8 $(document).ready(function(){
9
10 var widget = $('.super-rss-reader-widget');
11 widget.find('.srr-wrap').hide();
12 widget.find('.srr-wrap:first').show();
13 widget.find('.srr-tab-wrap li:first').addClass('srr-active-tab');
14
15 $('.srr-tab-wrap li').click(function(){
16 var id = $(this).attr('data-tab');
17 var parent = $(this).parent().parent();
18
19 $(this).parent().children('li').removeClass('srr-active-tab');
20 $(this).addClass('srr-active-tab');
21
22 parent.find('.srr-wrap').hide();
23 parent.find('.srr-wrap[data-id=' + id + ']').show();
24 });
25
26 // Add the ticker to the required elements
27 $('.srr-vticker').each(function(){
28 var visible = $(this).attr('data-visible');
29 var interval = $(this).attr('data-speed');
30 var height = (parseInt(visible) <= 20 ? 'auto' : visible );
31 var ticker = $(this).easyTicker({
32 'visible': visible,
33 'height': height,
34 'interval': interval
35 });
36 });
37
38 });
39 }(jQuery));