|
|
@@ -3,41 +3,4 @@
|
|
|
angular.module('app').controller('WebController', ['$scope', function($scope) {
|
|
|
//lxtalkClient.Invoke('{FB60F992-A0FD-47B3-AAA7-E80DF209C5A4}', '_Register', '', $scope);
|
|
|
|
|
|
-<<<<<<< HEAD
|
|
|
- !(function(win, doc) {
|
|
|
- function setFontSize() {
|
|
|
- var baseFontSize = 100;
|
|
|
- var baseWidth = 320;
|
|
|
- var clientWidth = document.documentElement.clientWidth || window.innerWidth;
|
|
|
- var innerWidth = Math.max(Math.min(clientWidth, 480), 320);
|
|
|
-
|
|
|
- var rem = 100;
|
|
|
-
|
|
|
- if (innerWidth > 362 && innerWidth <= 375) {
|
|
|
- rem = Math.floor(innerWidth / baseWidth * baseFontSize * 0.9);
|
|
|
- }
|
|
|
-
|
|
|
- if (innerWidth > 375) {
|
|
|
- rem = Math.floor(innerWidth / baseWidth * baseFontSize * 0.84);
|
|
|
- }
|
|
|
-
|
|
|
- window.__baseREM = rem;
|
|
|
- document.querySelector('html').style.fontSize = rem + 'px';
|
|
|
- }
|
|
|
- var evt = 'onorientationchange' in win ? 'orientationchange' : 'resize';
|
|
|
- var timer = null;
|
|
|
- win.addEventListener(evt, function() {
|
|
|
- clearTimeout(timer);
|
|
|
- timer = setTimeout(setFontSize, 300);
|
|
|
- }, false);
|
|
|
- win.addEventListener("pageshow", function(e) {
|
|
|
- if (e.persisted) {
|
|
|
- clearTimeout(timer);
|
|
|
- timer = setTimeout(setFontSize, 300);
|
|
|
- }
|
|
|
- }, false);
|
|
|
- setFontSize();
|
|
|
- }(window, document));
|
|
|
-=======
|
|
|
->>>>>>> a5ba2a00e4550ae8d24dad60f592454caf4690a0
|
|
|
}]);
|