I am using Basic-slider in my project http://basic-slider.com/ as a background slider. I want to make images resize according to different windows. I am using some code but don't know whether I am right or not, as I am not familiar with javascript and jquery
Original script provided was:-
<script class="secret-source">
jQuery(document).ready(function($) {
$('#banner-slide').bjqs({
animtype : 'slide',
height : 800,
width : 1349,
responsive : true,
randomstart : true
});
});
</script>
I modified it according to my requirement as below
<script class="secret-source">
jQuery(document).ready(function($) {
var h = screen.availHeight;
var w = screen.availWidth;
$('#banner-slide').bjqs({
animtype : 'slide',
height : h,
width : w,
responsive : true,
randomstart : true
});
});
</script>
It's not working and am not sure this code is proper or not.
Please can anyone help