added iPhone improvements

This commit is contained in:
Igor Zhukov 2014-02-10 21:37:49 +04:00
parent c82af8eb38
commit 59ed50113a
2 changed files with 7 additions and 1 deletions

View File

@ -2,7 +2,7 @@
<html lang="en" ng-app="myApp"><!-- ng-csp="" --> <html lang="en" ng-app="myApp"><!-- ng-csp="" -->
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, user-scalable=no">
<title>Webogram</title> <title>Webogram</title>
<link rel="stylesheet" href="vendor/angular/angular-csp.css"/> <link rel="stylesheet" href="vendor/angular/angular-csp.css"/>
<link rel="stylesheet" href="vendor/bootstrap/css/bootstrap.css?1"/> <link rel="stylesheet" href="vendor/bootstrap/css/bootstrap.css?1"/>

View File

@ -18,6 +18,12 @@ if (!window._osX) {
} }
$('body').addClass(window._retina ? 'is_2x' : 'is_1x'); $('body').addClass(window._retina ? 'is_2x' : 'is_1x');
$(window).on('load', function () {
setTimeout(function () {
window.scrollTo(0,1);
}, 0);
});
// Declare app level module which depends on filters, and services // Declare app level module which depends on filters, and services
angular.module('myApp', [ angular.module('myApp', [
'ngRoute', 'ngRoute',