| 1 |
|
// Sidebar collapser |
| 2 |
|
$(document).ready(function(){ |
| 3 |
|
|
| 4 |
|
$("div#side-icon").bind('click', function() { |
| 5 |
|
var divwidth = $(this).parent().css('width'); |
| 6 |
|
if (divwidth == '800px') { |
| 7 |
|
$(this).parent().animate({ width: '1000px'}, {queue:false,duration:350}); |
| 8 |
|
$(this).addClass('open'); |
| 9 |
|
} else { |
| 10 |
|
$(this).parent().animate({ width: '800px'}, {queue:false,duration:350}); |
| 11 |
|
$(this).removeClass('open'); |
| 12 |
|
} |
| 13 |
|
}); |
| 14 |
|
// Search box in sidebar following view | block follow viewport |
| 15 |
|
$('#sidebar').scrollFollow({ |
| 16 |
|
speed: 500, |
| 17 |
|
offset: 40, |
| 18 |
|
container: 'border' |
| 19 |
|
}); |
| 20 |
|
|
| 21 |
|
|
| 22 |
|
}); |