Commit e47223b6 by Manzar Hussain

update override js

parent 9fd2f314
...@@ -205,6 +205,49 @@ ...@@ -205,6 +205,49 @@
//mouseWheelSpeed: 50 //mouseWheelSpeed: 50
}); });
var elemt = $('.history_scroll_pane').find('.historyscrollerPane').eq(0)
elemt.addClass('product_history').siblings('.historyscrollerPane').removeClass('product_history');
stripLength(0);
stripOther(0)
scrollGen('product_history');
scrollGen('scroll_pane');
$('.indicator li').click(function(){
var getIndex = $(this).index();
$('.history_scroll_pane').find('.historyscrollerPane').eq(getIndex).addClass('product_history').siblings('.historyscrollerPane').removeClass('product_history');
scrollGen('product_history');
stripLength(getIndex);
});
function scrollGen(e){
$('.'+e).jScrollPane({
showArrows: false,
horizontalGutter: 100,
verticalGutter: 100,
//mouseWheelSpeed: 50
});
}
function stripLength(elemt){
var getLength = $('.history_scroll_pane').find('.historyscrollerPane').eq(elemt);
var m = getLength.find('.count_li_item li').length;
getLength.find('.strip_c_line span').css({
'width': (m * 200) + 'px'
});
}
function stripOther(elemt){
var getLength = $('.scroll_pane').eq(elemt);
var m = getLength.find('.count_li_item li').length;
getLength.find('.strip_c_line span').css({
'width': (m * 200) + 'px'
});
}
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment