Mobile browser check

  //$(‘#content-body’).html($(window).height());
    //$(‘#content-body’).html($(window).width());
    //$(window).on(‘resize’, function () {
    //    if (window.innerWidth > 425) {
    //        $(‘#etiketContentBaslik’).html(“<i class=’icon-pie_chart’></i> Etiket Yazdırma Seçenekleri”);
    //        $(‘#etiketContentBilgi’).html(“<i class=’icon-insert-template’></i> Etiket Boyutları”);
    //    }
    //});
    var mobilMi = (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent));
    if (mobilMi) {
        $(‘#btnPrint’).css(‘Display’, ‘none’);
        $(‘#etiketSec’).css(‘Display’, ‘none’);
    }
    else {
        $(‘#btnPrint’).css(‘Display’, ‘block’);
        $(‘#etiketSec’).css(‘Display’, ‘block’);
    }
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: