Contact
CoCalc Logo Icon
StoreFeaturesDocsShareSupport News AboutSign UpSign In
| Download
Views: 18615
1
$(document).ready(function() {
2
if($(window).width() > 960){
3
var leftHeight = $('.aside_bx').height();
4
$('.aside_bx').attr('data-height', leftHeight);
5
6
// Javascript to enable link to tab
7
var url = document.location.toString();
8
if (url.match('#')) {
9
$('.nav-tabs a[href="#' + url.split('#')[1] + '"]').tab('show');
10
}
11
12
// Change hash for page-reload
13
$('.nav-tabs a').on('shown.bs.tab', function (e) {
14
window.location.hash = e.target.hash;
15
})
16
17
$('a[data-toggle=tab]').click(function(){
18
var elemId = $(this).attr('href');
19
var rightHeight = $(elemId).height();
20
if((rightHeight > leftHeight)){
21
$('.aside_bx').height(rightHeight+20);
22
} else {
23
$('.aside_bx').height($('.aside_bx').attr('data-height'));
24
}
25
});
26
}
27
28
$('#myCarousel').carousel({
29
interval: 3000
30
})
31
32
$('#myCarousel,#myCarousel2').on('slid.bs.carousel', function() {
33
//alert("slid");
34
});
35
36
});
37
38