  $(document).ready(function() {
  
	  // Detect ios 11_x_x affected  
	  // NEED TO BE UPDATED if new versions are affected
	  var ua = navigator.userAgent,
	  iOS = /iPad|iPhone|iPod/.test(ua),
	  iOS11 = /OS 11_0|OS 11_1|OS 11_2/.test(ua);
    
	  // ios 11 bug caret position
	  if ( iOS && iOS11 ) {
	      // Add CSS class to body
	      $("body").addClass("iosBugFixCaret");
	  }
  });
  
  </script>
  <style type="text/css">
       body.iosBugFixCaret.modal-open { position: fixed; widt