Browse Source

added iPhone improvements

master
Igor Zhukov 10 years ago
parent
commit
59ed50113a
  1. 2
      app/index.html
  2. 6
      app/js/app.js

2
app/index.html

@ -2,7 +2,7 @@ @@ -2,7 +2,7 @@
<html lang="en" ng-app="myApp"><!-- ng-csp="" -->
<head>
<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>
<link rel="stylesheet" href="vendor/angular/angular-csp.css"/>
<link rel="stylesheet" href="vendor/bootstrap/css/bootstrap.css?1"/>

6
app/js/app.js

@ -18,6 +18,12 @@ if (!window._osX) { @@ -18,6 +18,12 @@ if (!window._osX) {
}
$('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
angular.module('myApp', [
'ngRoute',

Loading…
Cancel
Save