Friday, May 19, 2017
window.onload
var $ = jQuery.noConflict();
jQuery(document).ready(function ($) {
window.onload = function () {
setTimeout(function () {
var windowsize = $(window).width();
//alert(windowsize);
if (windowsize < 1100 && windowsize >1000) {
// if the window is greater than 1021 wide and less than 1025then turn on jScrollPane..
$('#engine_box .gbTab_holder li').css("cssText", "width: 15% !important;");
console.log('by default change the tab width');
}
else {
$('#engine_box .gbTab_holder li').css("width","");
console.log('set to default width then it is not ipad pro by defauly');
}
$(window).resize(function() {
windowsize = $(window).width();
// alert('changed screen');
if (windowsize < 1100 && windowsize > 1000) {
// if the window is greater than 1021 wide and less than 1025then turn on jScrollPane..
$('#engine_box .gbTab_holder li').css("cssText", "width: 15% !important;");
console.log('changed screen after change the tab width');
}
else {
$('#engine_box .gbTab_holder li').css("width","");
console.log('set to default width then it is not ipad pro by defauly');
}
});
}, 4000);
};
});
Subscribe to:
Posts (Atom)