Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Воронков Валерий
/
krystalvpn
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit 9dd725cc
authored
2023-04-25 10:23:48 +0300
by
xcoder
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
VPN-45 1. липнет текст, где первая картинка.
1 parent
19ea9703
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
8 deletions
index.js
style.css
index.js
View file @
9dd725c
...
@@ -40,7 +40,12 @@ window.addEventListener("resize", () => {
...
@@ -40,7 +40,12 @@ window.addEventListener("resize", () => {
console
.
log
(
"localStorage is not supported"
);
console
.
log
(
"localStorage is not supported"
);
}
}
setOriented
(
position
);
if
(
mobileCheck
()
&&
window
.
innerWidth
<=
1023
)
{
setOriented
(
position
);
}
else
{
setOriented
(
"Portrait"
);
}
});
});
function
do_download
()
{
function
do_download
()
{
...
@@ -234,9 +239,6 @@ let portrait = window.matchMedia("(orientation: portrait)");
...
@@ -234,9 +239,6 @@ let portrait = window.matchMedia("(orientation: portrait)");
portrait
.
addEventListener
(
"change"
,
function
(
e
)
{
portrait
.
addEventListener
(
"change"
,
function
(
e
)
{
if
(
e
.
matches
)
{
if
(
e
.
matches
)
{
// Portrait mode
console
.
log
(
"Portrait mode"
);
try
{
try
{
localStorage
.
setItem
(
key
,
JSON
.
stringify
(
"Portrait"
));
localStorage
.
setItem
(
key
,
JSON
.
stringify
(
"Portrait"
));
}
catch
(
error
)
{
}
catch
(
error
)
{
...
@@ -245,9 +247,6 @@ portrait.addEventListener("change", function (e) {
...
@@ -245,9 +247,6 @@ portrait.addEventListener("change", function (e) {
setOriented
(
"Portrait"
);
setOriented
(
"Portrait"
);
}
else
{
}
else
{
// Landscape
console
.
log
(
"Landscape"
);
try
{
try
{
localStorage
.
setItem
(
key
,
JSON
.
stringify
(
"Landscape"
));
localStorage
.
setItem
(
key
,
JSON
.
stringify
(
"Landscape"
));
}
catch
(
error
)
{
}
catch
(
error
)
{
...
@@ -312,7 +311,7 @@ function mobileCheck() {
...
@@ -312,7 +311,7 @@ function mobileCheck() {
check
=
true
;
check
=
true
;
})(
navigator
.
userAgent
||
navigator
.
vendor
||
window
.
opera
);
})(
navigator
.
userAgent
||
navigator
.
vendor
||
window
.
opera
);
var
sizeCheck
=
(
window
.
innerWidth
<=
800
)
&&
(
window
.
innerHeight
<=
600
)
;
var
sizeCheck
=
(
window
.
innerWidth
<=
800
)
&&
(
window
.
innerHeight
<=
600
)
;
return
check
||
sizeCheck
;
return
check
||
sizeCheck
;
}
}
\ No newline at end of file
\ No newline at end of file
style.css
View file @
9dd725c
...
@@ -594,6 +594,7 @@ hr.delimeter {
...
@@ -594,6 +594,7 @@ hr.delimeter {
background-color
:
#23003f
;
background-color
:
#23003f
;
border
:
none
;
border
:
none
;
overflow
:
hidden
;
}
}
@media
screen
and
(
max-width
:
980px
)
{
@media
screen
and
(
max-width
:
980px
)
{
...
@@ -611,6 +612,8 @@ hr.delimeter {
...
@@ -611,6 +612,8 @@ hr.delimeter {
align-items
:
flex-start
;
align-items
:
flex-start
;
margin-left
:
20px
;
background-color
:
#23003f
;
background-color
:
#23003f
;
border
:
none
;
border
:
none
;
}
}
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment