Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Viewport for iOS is updated

  • Loading branch information...
commit 32e7107e8d90fbbe18eabc9e36f372218185612b 1 parent 04c3429
@kalys kalys authored
Showing with 13 additions and 2 deletions.
  1. +1 −0  .gitignore
  2. +10 −0 public/mobile.js
  3. +2 −2 views/mobile.slim
View
1  .gitignore
@@ -0,0 +1 @@
+bin
View
10 public/mobile.js
@@ -22,6 +22,16 @@ $(document).ready(function() {
);
}
+ // When ready...
+ window.addEventListener("load",function() {
+ // Set a timeout...
+ setTimeout(function(){
+ // Hide the address bar!
+ window.scrollTo(0, 1);
+ }, 0);
+ });
+
+
$('#search').click(function(e) {
if (!distance) {
$.mobile.changePage('#route_missing_warning');
View
4 views/mobile.slim
@@ -2,9 +2,9 @@ doctype 5
html
head
title Сервис «Кайсы такси?». Показывает самую дешевую службу такси для выбранного маршрута.
- meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no"
+ meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=yes"
+ meta name="apple-mobile-web-app-capable" content="yes"
meta charset="utf-8"
- meta name="viewport" content="width=device-width, initial-scale=1"
link rel="stylesheet" href="http://code.jquery.com/mobile/1.0.1/jquery.mobile-1.0.1.min.css"
link rel="stylesheet" href="mobile.css"
Please sign in to comment.
Something went wrong with that request. Please try again.