Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
H
h5-base
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
new-sing
h5-base
Commits
799f9ee1
Commit
799f9ee1
authored
Jul 02, 2019
by
chenyishuai@singsingenglish.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
72
parent
18c7efab
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
4 deletions
+11
-4
video.vue
src/components/newLesson/video.vue
+11
-4
No files found.
src/components/newLesson/video.vue
View file @
799f9ee1
...
@@ -118,9 +118,16 @@
...
@@ -118,9 +118,16 @@
let
that
=
this
let
that
=
this
// console.log(document.documentElement.clientWidth)
// console.log(document.documentElement.clientWidth)
// console.log(Number(document.documentElement.clientWidth.replace('px','')))
// console.log(Number(document.documentElement.clientWidth.replace('px','')))
if
(
sessionStorage
.
getItem
(
'orientationchange'
)
==
1
){
// if(sessionStorage.getItem('orientationchange')==1){
console
.
log
(
sessionStorage
.
getItem
(
'orientationchange'
))
// console.log(sessionStorage.getItem('orientationchange'))
// this.orientationchange=true;
// }else{
// this.orientationchange=false;
// }
if
(
document
.
documentElement
.
clientWidth
>
document
.
documentElement
.
clientHeight
){
this
.
orientationchange
=
true
;
this
.
orientationchange
=
true
;
}
else
{
this
.
orientationchange
=
false
;
}
}
// this.orientationchange=sessionStorage.getItem('orientationchange');
// this.orientationchange=sessionStorage.getItem('orientationchange');
console
.
log
(
this
.
orientationchange
)
console
.
log
(
this
.
orientationchange
)
...
@@ -129,13 +136,13 @@
...
@@ -129,13 +136,13 @@
let
height
=
document
.
documentElement
.
clientHeight
let
height
=
document
.
documentElement
.
clientHeight
let
t
=
setTimeout
(
function
(){
let
t
=
setTimeout
(
function
(){
if
(
width
<
height
){
if
(
width
<
height
){
sessionStorage
.
setItem
(
'orientationchange'
,
1
);
//
sessionStorage.setItem('orientationchange', 1);
that
.
orientationchange
=
true
;
that
.
orientationchange
=
true
;
// console.log(that.orientationchange)
// console.log(that.orientationchange)
clearTimeout
(
t
)
clearTimeout
(
t
)
// return
// return
}
else
{
}
else
{
sessionStorage
.
setItem
(
'orientationchange'
,
0
);
//
sessionStorage.setItem('orientationchange', 0);
that
.
orientationchange
=
false
;
that
.
orientationchange
=
false
;
// console.log(that.orientationchange)
// console.log(that.orientationchange)
clearTimeout
(
t
)
clearTimeout
(
t
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment