Plugin Directory

Changeset 764735


Ignore:
Timestamp:
08/30/2013 12:57:45 PM (12 years ago)
Author:
sudiptomahato
Message:

Quick bug fix related to fixed scroll. Initially released as v1.7

Location:
scrolling-social-sharebar
Files:
3 added
2 edited

Legend:

Unmodified
Added
Removed
  • scrolling-social-sharebar/trunk/readme.txt

    r764629 r764735  
    55Requires at least: 3.0
    66Tested up to: 3.6
    7 Stable tag: 1.7
     7Stable tag: 1.7.1
    88
    99A scrolling social sharebar scrolling plugin with 7 social icons (Twitter, FB Like, Google +1, Linkedin, FB Share, Stumbleupon and Addthis) and option to add your own custom buttons.
  • scrolling-social-sharebar/trunk/scroll-sharebar.php

    r764629 r764735  
    44Plugin URI: http://techxt.com/scrolling-social-sharebar-plugin/
    55Description: Scrolling Social Sharebar (Twitter Like Google +1 Linkedin and Stumbleupon)
    6 Version: 1.7
     6Version: 1.7.1
    77Author: Sudipto Pratap Mahato
    88Author URI: http://techxt.com
     
    5353{
    5454    $sharelinks=disp_ssharebar_func();
    55     $content=$sharelinks.$content;
     55    $content='<div id="ssbartop"></div>'.$sharelinks.$content;
    5656    $dispssbar=TRUE;
    5757}
    5858if((is_single()&&get_option('ssbar_dpost','checked')=='checked')||(is_page()&&get_option('ssbar_dpage','checked')=='checked')){
    5959    $sharelinks=disp_ssharebar_func();
    60     $content=$sharelinks.$content;
     60    $content='<div id="ssbartop"></div>'.$sharelinks.$content;
    6161    $dispssbar=TRUE;
    6262}
     
    104104    {
    105105        position: fixed !important;
    106         z-index: 9999;
     106    z-index: 9999;
    107107    top: <?php echo $toppad; ?>px;
    108108    }
     
    131131<?php }else { ?>
    132132<script type="text/javascript">
    133 
    134133(function($) {
    135134    $(function() {
    136             var offset = $("#scrollbarbox").offset();
     135            var offset = $("#ssbartop").offset();
    137136            var bottomPadding = <?php echo $bottompad; ?>;
    138137            var topPadding = <?php echo $toppad; ?>;
     138            $(window).resize(function() {
     139                offset = $("#ssbartop").offset();
     140                if(offset.top<topPadding)$("#scrollbarbox").addClass("sbpinned");
     141            });
    139142            $(window).scroll(function() {
    140        
     143        offset = $("#ssbartop").offset();
    141144                if ($(window).scrollTop() > offset.top-topPadding && $(window).scrollTop()<$(document).height()-bottomPadding-$("#scrollbarbox").height())
    142145                {
Note: See TracChangeset for help on using the changeset viewer.