Commit 65f783eb authored by Sergey Serov's avatar Sergey Serov

site and its English version

parent cd801318
This diff is collapsed.
This diff is collapsed.
<!DOCTYPE html><html lang=ru><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1"><!--[if IE]><link rel="icon" type="image/png" href="favicon.png"/><![endif]--><link rel=stylesheet href=https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css><title>АО "АНЦ"</title><link href=css/app.2f1c9e15.css rel=preload as=style><link href=js/app.919f0336.js rel=preload as=script><link href=js/chunk-vendors.fd958138.js rel=preload as=script><link href=css/app.2f1c9e15.css rel=stylesheet><link rel=icon type=image/png sizes=32x32 href=img/icons/favicon-32x32.png><link rel=icon type=image/png sizes=16x16 href=img/icons/favicon-16x16.png><link rel=manifest href=manifest.json><meta name=theme-color content=#4DBA87><meta name=apple-mobile-web-app-capable content=no><meta name=apple-mobile-web-app-status-bar-style content=default><meta name=apple-mobile-web-app-title content=site><link rel=apple-touch-icon href=img/icons/apple-touch-icon-152x152.png><link rel=mask-icon href=img/icons/safari-pinned-tab.svg color=#4DBA87><meta name=msapplication-TileImage content=img/icons/msapplication-icon-144x144.png><meta name=msapplication-TileColor content=#000000></head><body><noscript><strong>We're sorry but site doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id=app></div><script src=js/chunk-vendors.fd958138.js></script><script src=js/app.919f0336.js></script></body></html>
\ No newline at end of file
<!DOCTYPE html><html lang=ru><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1"><!--[if IE]><link rel="icon" type="image/png" href="favicon.png"/><![endif]--><link rel=stylesheet href=https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css><title>АО "АНЦ"</title><link href=css/app.8a594eea.css rel=preload as=style><link href=js/app.a58e2584.js rel=preload as=script><link href=js/chunk-vendors.c0253383.js rel=preload as=script><link href=css/app.8a594eea.css rel=stylesheet><link rel=icon type=image/png sizes=32x32 href=img/icons/favicon-32x32.png><link rel=icon type=image/png sizes=16x16 href=img/icons/favicon-16x16.png><link rel=manifest href=manifest.json><meta name=theme-color content=#4DBA87><meta name=apple-mobile-web-app-capable content=no><meta name=apple-mobile-web-app-status-bar-style content=default><meta name=apple-mobile-web-app-title content=site><link rel=apple-touch-icon href=img/icons/apple-touch-icon-152x152.png><link rel=mask-icon href=img/icons/safari-pinned-tab.svg color=#4DBA87><meta name=msapplication-TileImage content=img/icons/msapplication-icon-144x144.png><meta name=msapplication-TileColor content=#000000></head><body><noscript><strong>We're sorry but site doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id=app></div><script src=js/chunk-vendors.c0253383.js></script><script src=js/app.a58e2584.js></script></body></html>
\ No newline at end of file
This diff is collapsed.
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
This diff is collapsed.
self.__precacheManifest = [
{
"revision": "ca4029d5d9959c02fcc8",
"url": "css/app.2f1c9e15.css"
"revision": "bc5c06060671c4ba259f",
"url": "css/app.8a594eea.css"
},
{
"revision": "ca4029d5d9959c02fcc8",
"url": "js/app.919f0336.js"
"revision": "bc5c06060671c4ba259f",
"url": "js/app.a58e2584.js"
},
{
"revision": "98b2956152c9ac78fea5",
"url": "js/chunk-vendors.fd958138.js"
"revision": "31155f06b4b60fa1b4b1",
"url": "js/chunk-vendors.c0253383.js"
},
{
"revision": "962d788ebbca71ed276537d8da81324c",
......@@ -35,6 +35,10 @@ self.__precacheManifest = [
"revision": "524d720f3f670bd38785447ca9c4b395",
"url": "fonts/9114.524d720f.OTF"
},
{
"revision": "e823d9f3693b249f47a936b32b09135f",
"url": "fonts/noah-bold.e823d9f3.otf"
},
{
"revision": "b3a03c81d435e0b0c9a74454d98251af",
"url": "img/planet.b3a03c81.png"
......@@ -52,7 +56,7 @@ self.__precacheManifest = [
"url": "img/Logo_circle.92069ed4.png"
},
{
"revision": "f78a2d61ba706f378178598c250abadb",
"revision": "227338436410ee6cbe9dd0dac2e8bb48",
"url": "index.html"
},
{
......
......@@ -14,7 +14,7 @@
importScripts("https://storage.googleapis.com/workbox-cdn/releases/3.6.3/workbox-sw.js");
importScripts(
"precache-manifest.8aae99f9e1a98ad29838ed57ef5a7f10.js"
"precache-manifest.a513d373b3764f0b81265f9b62be4df6.js"
);
workbox.core.setCacheNameDetails({prefix: "site"});
......
......@@ -9,10 +9,10 @@
</transition>
<div class="WidthNavigation TitlesNavigation col-sm-9 col-md-9 col-lg-7">
<div class="menu">
<router-link class="navig" to="/" exact><span>Главная</span></router-link>
<router-link class="navig" to="/product"><span>Оборудование</span></router-link>
<router-link class="navig" to="/files"><span>Услуги</span></router-link>
<router-link class="navig" to="/contact"><span>Контакты</span></router-link>
<router-link class="navig" to="/" exact><span> {{page.home}} </span></router-link>
<router-link class="navig" to="/product"><span> {{page.product}} </span></router-link>
<router-link class="navig" to="/files"><span> {{page.file}} </span></router-link>
<router-link class="navig" to="/contact"><span> {{page.contact}} </span></router-link>
</div>
<div id="lang">
<span :class="[{ active: (select === 'Russia') }]" @click="SelectLang('Russia')">Ru</span>
......@@ -206,18 +206,40 @@ export default {
return {
mobile: false,
select: 'Russia',
activeClass: 'active'
activeClass: 'active',
page: [],
text:[{
Russia:{
home:'Главная',
product:'Оборудование',
file:'Услуги',
contact:'Контакты',
},
English:{
home:'Home',
product:'Equipment',
file:'Services',
contact:'Contact',
},
}]
}
},
created(){
this.Before();
},
methods: {
Up: function () {
this.$refs.page.move(1)
},
Before: function () {
this.mobile = this.$parent.mobile
this.mobile = this.$parent.mobile;
this.select = this.$parent.lang;
this.page = this.text[0][this.select];
},
SelectLang (lang) {
this.select = lang
this.$refs.page.SelectLang(lang)
this.select = lang;
this.page = this.text[0][this.select];
}
}
}
......
......@@ -7,7 +7,7 @@
<img class="img_on_main" src="../imgMain/pict/Earth.png" />
</div>
<div class="title">
<p id="title_text">{{Title}}</p>
<p id="title_text">{{page.Title}}</p>
</div>
</div>
......@@ -21,7 +21,7 @@
<div id="about" class="item">
<div class="row">
<div class="about_block col-sm-10 col-md-8 col-lg-11 col-xl-6">
<p id="about_title">{{About}}</p>
<p id="about_title">{{page.About}}</p>
<div class="row about_mini_block">
<div style="margin: 0 auto; margin-bottom: 10px;" class="col-sm-9 col-md-12 col-lg-4">
<div class="about_fon_block">
......@@ -31,7 +31,7 @@
</div>
<div class="about_text">
<p>
{{about_list[0].text}}
{{page.about_list[0].text}}
</p>
</div>
</div>
......@@ -45,7 +45,7 @@
</div>
<div class="about_text">
<p>
{{about_list[1].text}}
{{page.about_list[1].text}}
</p>
</div>
</div>
......@@ -59,7 +59,7 @@
</div>
<div class="about_text">
<p>
{{about_list[2].text}}
{{page.about_list[2].text}}
</p>
</div>
</div>
......@@ -79,11 +79,11 @@
<div id="info_block" class="col-sm-12 col-md-12 col-lg-8 col-xl-6">
<div id="info_mini_block">
<div id="info_title">
<p>{{info}}</p>
<p>{{page.info}}</p>
</div>
<div id="info_list">
<ul id="information">
<li v-for="info in info_list">
<li v-for="info in page.info_list">
<span class="info_list_title">
{{info.title}}
</span><br>
......@@ -100,7 +100,7 @@
<div class="row" id="telescope">
<div class="col-sm-12 col-md-12 col-lg-12 teleskopes_info">
<p>
{{info_telescope}}
{{page.info_telescope}}
</p>
</div>
</div>
......@@ -123,19 +123,19 @@
</div>
<div class="mount_text">
<p class="title_mount">
{{mount1_title}}
{{page.mount1_title}}
</p>
<p>
{{mount1_alternative.title}}:<br>{{mount1_alternative.value}}
{{page.mount1_alternative.title}}:<br>{{page.mount1_alternative.value}}
</p>
<p>
{{mount1_region.title}}:<br>{{mount1_region.value}}
{{page.mount1_region.title}}:<br>{{page.mount1_region.value}}
</p>
<p>
{{mount1_place.title}}:<br>
{{mount1_place.value1}}<br>
{{mount1_place.value2}}<br>
{{mount1_place.value3}}<br>
{{page.mount1_place.title}}:<br>
{{page.mount1_place.value1}}<br>
{{page.mount1_place.value2}}<br>
{{page.mount1_place.value3}}<br>
</p>
</div>
</div>
......@@ -156,7 +156,7 @@
<div id="img_planet"><img src="../source/planet.png" alt=""></div>
<div id="text_planet">
<p>
{{text_planet}}
{{page.text_planet}}
</p>
</div>
</div>
......@@ -169,16 +169,16 @@
</div>
<div class="mount_text">
<p class="title_mount">
{{mount2_title}}
{{page.mount2_title}}
</p>
<p>
{{mount2_region.title}}:<br>{{mount2_region.value}}
{{page.mount2_region.title}}:<br>{{page.mount2_region.value}}
</p>
<p>
{{mount2_place.title}}:<br>
{{mount2_place.value1}}<br>
{{mount2_place.value2}}<br>
{{mount2_place.value3}}<br>
{{page.mount2_place.title}}:<br>
{{page.mount2_place.value1}}<br>
{{page.mount2_place.value2}}<br>
{{page.mount2_place.value3}}<br>
</p>
</div>
</div>
......@@ -198,7 +198,7 @@
<div id="footer_position">
<div class="footer">
<span>
{{footer_tel_mail}}
<a :href="'tel:'+page.footer_tel">{{page.footer_tel}}</a> / <a :href="'mailto:'+page.footer_mail">{{page.footer_mail}}</a>
</span>
</div>
<div class="footer img">
......@@ -206,7 +206,7 @@
</div>
<div class="footer">
<span>
{{footer_address}}
{{page.footer_address}}
</span>
</div>
</div>
......@@ -658,15 +658,28 @@
padding: 30px;
/* margin-left: calc(0.04 * 100% + 12px); */
}
#main #footer span a{
text-decoration: none;
color: white;
transition: all 0.3s;
}
#main #footer span a:hover{
color: #00aeff;
}
</style>
<script>
export default {
name: 'app',
name: 'app',
data () {
return {
publicPath: process.env.BASE_URL,
page: [],
select: '',
text:[
{
Russia:{
Title: 'Мы видим весь мусор в космосе!',
About: 'Акционерное общество "Астрономический Научный Центр" образовано в 2011 году и является специализированным российским предприятием, ориентированным на:',
about_list: [
......@@ -742,8 +755,94 @@ export default {
},
text_planet: 'АО "АНЦ" имеет собственные обсерватории, размещенные в Карачаево-Черсессии ( гора Шидзатмаз ) и в районе г. Благовещенск Амурской области',
footer_tel_mail: ' +7 (495) 641 51 35 / info@ancprotek.ru ',
footer_mail: 'info@ancprotek.ru',
footer_tel: ' +7 (495) 641 51 35',
footer_address: 'Россия, Москва, шоссе Энтузиастов, 56с25'
},
English:{
Title: 'We see all the garbage in space!',
About: 'Joint-stock company "Astronomical Scientific Center" was founded in 2011 and is a specialized Russian enterprise focused on:',
about_list: [
{
img: '../source/About_one.png',
text: 'The creation and operation of automated opto-electronic surveillance systems for space objects ( artificial and natural origin )'
},
{
img: '../source/About_two.png',
text: 'Creation of automated systems of processing of information about space objects carrying out orbital flight, related to the startup of construction elements, fragments of their destruction'
},
{
img: '../source/About_three.png',
text: 'Assessment of the space situation at the trajectory of the launch and orbital motion of spacecraft in the interests of satellite operators'
}
],
info: 'optical-electronic devices of JSC "ANC" can simultaneously observe space objects. The full area of the sphere is 41252.97 sq degrees',
info_list: [
{
title: 'With a penetration of up to 14m',
text_one: 'the total field of view 285789 sq degrees',
text_two: 'during the day, the coverage area is 6.9 space sphere'
},
{
title: 'With penetration to 15.5 m',
text_one: 'the total field of view 38604 square degrees (with an aperture 30, 40, 50, 65 cm)',
text_two: '0.9 of the total area of the sphere'
},
{
title: 'With a penetration of up to 17m',
text_one: 'the total field of view 18291 square degrees (with an aperture 40, 50, 65 cm)',
text_two: '0.4 of the total area of the sphere'
},
{
title: 'With a penetration of up to 18.5 m',
text_one: 'the total field of view 8712 sq degrees (aperture 50, 65 cm)',
text_two: '0.2 of the total area of the sphere'
}
],
info_telescope: 'JSC "ANC" manages the operation 51 aperture telescope from 19cm up to 65cm, posted at 14 observatories',
base_title: 'Экспериментальная база АО "АНЦ"',
mount1_title: 'Mount Shidzhadmaz',
mount1_alternative:
{
title: 'Alternative:',
value: 'Gora Shidzhadmaz'
},
mount1_region:
{
title: 'Region',
value: 'The Republic Of Karachay-Cherkessia'
},
mount1_place:
{
title: 'Location:',
value1: 'Latitude (n) 43°43’50”',
value2: 'Longitude (e) 42°39’40”',
value3: 'Height above sea level: 1908(m)'
},
mount2_title: 'Blagoveshchensky district',
mount2_region:
{
title: 'Region',
value: 'Amur oblast, Blagoveshchensk R-n, Grebski SEL'
},
mount2_place:
{
title: 'Location:',
value1: 'Latitude (n) 50°07’37”',
value2: 'Longitude (e) 127°43’20”',
value3: 'Time zone: UTC+9'
},
text_planet: ' JSC "ANC" has its own Observatory, located in Karachay-of Cherkessii ( mount Sigsetmask ) and in the area of Blagoveshchensk, Amur region',
footer_mail: 'info@ancprotek.ru',
footer_tel: ' +7 (495) 641 51 35',
footer_address: 'Russia, Moscow, shosse Entuziastov, 56с25'
}
}
],
}
},
created: function () {
......@@ -751,10 +850,17 @@ export default {
},
methods: {
Before: function () {
this.mobile = this.$parent.mobile
this.mobile = this.$parent.mobile;
this.select = this.$parent.select;
this.page = this.text[0][this.select];
},
SelectLang (lang) {
this.page = this.text[0][lang];
console.log(lang);
}
},
watch: {
}
},
}
</script>
import Vue from 'vue'
import App from './App.vue'
import router from './router'
import Vue from "vue";
import App from "./App.vue";
import router from "./router";
var VueScrollTo = require('vue-scrollto')
Vue.use(VueScrollTo)
var VueScrollTo = require("vue-scrollto");
Vue.use(VueScrollTo);
Vue.config.productionTip = false
Vue.config.productionTip = false;
new Vue({
router,
data: {
mobile: false,
first: true
first: true,
lang: 'English'
},
created: function () {
this.Before()
created: function() {
this.Before();
},
methods: {
Up: function () {
this.$refs.page.move(1)
Up: function() {
this.$refs.page.move(1);
},
isMobileOrTablet: function () {
isMobileOrTablet: function() {
var check = false;
(function (a) { if (/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(a) || /1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(a.substr(0, 4)))check = true })(navigator.userAgent || navigator.vendor || window.opera)
return check
(function(a) {
if (
/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(
a
) ||
/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(
a.substr(0, 4)
)
)
check = true;
})(navigator.userAgent || navigator.vendor || window.opera);
return check;
},
Before: function () {
Lang: function() {
var userLang = navigator.language || navigator.userLanguage;
var language = this.categorize(userLang);
switch (language) {
case "English":
this.lang = "English";
break;
case "Russia":
this.lang = "Russia";
break;
}
},
categorize: function(string) {
if (string.includes("en") || string.includes("US")) {
return "English";
}
if (
string.includes("ru") ||
string.includes("RU") ||
string.includes("Ru")
) {
return "Russia";
}
return "English"
},
Before: function() {
this.Lang();
if (this.isMobileOrTablet()) {
this.mobile = true
this.mobile = true;
// код для мобильных устройств
} else {
// код для обычных устройств
......@@ -35,4 +72,4 @@ new Vue({
}
},
render: h => h(App)
}).$mount('#app')
}).$mount("#app");
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment