Add this code to work
var w = $(document).width();if (w > 1024) {$(".show-desktop").show();$(".hide-desktop").hide();} else if (w > 768 && w < 1024) {$(".show-tablet").show();$(".hide-tablet").hide();} else if (w < 768) {$(".show-phone").show();$(".hide-phone").hide();}
Add this code to work
var w = $(document).width();
if (w > 1024) {
$(".show-desktop").show();
$(".hide-desktop").hide();
} else if (w > 768 && w < 1024) {
$(".show-tablet").show();
$(".hide-tablet").hide();
} else if (w < 768) {
$(".show-phone").show();
$(".hide-phone").hide();
}