Commit 5b906463 by Manzar Hussain

Merge branch 'feature-theme' into 'develop'

Feature theme

See merge request manzarH/dic-global-dev!508
parents 2ee293dd e47223b6
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -205,6 +205,49 @@
//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