Skip to content

Commit

Permalink
re: remove fadeout effect in boards
Browse files Browse the repository at this point in the history
  • Loading branch information
subhalingamd committed Sep 5, 2020
1 parent e04875e commit 4b95ed9
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions boards/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,8 @@ $(".container").on("click",".init-item",function(){
else{
$(this).siblings().removeClass("init-item-active");
$(this).parent().parent().find('.init-index-container:not([data-init-index="'+data+'"])').css("display","none");
book_container.css("white-space", "nowrap");
if(! $(this).hasClass('no-active')){
book_item.addClass('init-item-active');
}
book_container.css("white-space", "nowrap");
book_item.addClass('init-item-active');
if ($(window).scrollTop() + $('header').height() + 5 > book_container.offset().top){
//alert('triggered');
$('html,body').animate({
Expand Down Expand Up @@ -154,12 +152,13 @@ $('select').each(function(){
$.toggler = function(val){
//$('.container').fadeOut(function(){
//$(".container").html("");
$(".container").load("./partials/"+val.toLowerCase()+".html .ux-vertical-tabs");
$(".container").load("./partials/"+val.toLowerCase()+".html .ux-vertical-tabs",function(){
var timelines = $('.cd-horizontal-timeline');
(timelines.length > 0) && initTimeline(timelines);
});
$("title").html(val+" :: Boards | SAC, IIT Delhi");
//$('.container').fadeIn(function(){
/*********** Minutes of Meet ********/
var timelines = $('.cd-horizontal-timeline');
(timelines.length > 0) && initTimeline(timelines);
//});
history.replaceState(undefined, undefined, "#"+val.toLowerCase());
//})
Expand Down

0 comments on commit 4b95ed9

Please sign in to comment.