kaniosrn-j
6/27/2017 - 6:45 PM

select_mobile_width.js

// only for mobile width
  if ((screen.width<650)) {
    $(".sys_user-nav-mobile").hide(); //hide the nav on load if on smaller screens
    $('.sys_datepicker').attr('type', 'date'); //use the device date picker only on mobile
// Add input types for mobile users
    $('.email').attr('type', 'email');
    $('.sys_timesubelement input').attr('type', 'number');
    $("label:contains('Phone')" ).next().find('input').attr('type', 'tel');
    $('.dateITA').attr('type', 'date');
    $("label:contains('Website')" ).next().find('input').attr('type', 'url');
    $('.sys_events-search-control.sys_modular-search-control').appendTo('.sys_events'); // Move shared events search to bottom on mobile
}