Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
baas-ide
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
guxukai
baas-ide
Commits
807fae65
Unverified
Commit
807fae65
authored
Oct 27, 2020
by
yann300
Committed by
GitHub
Oct 27, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #520 from ethereum/LianaHus-patch-2
removed logs and fixed bug in media panel
parents
80377406
41c8c976
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
landing-page.js
apps/remix-ide/src/app/ui/landing-page/landing-page.js
+1
-3
No files found.
apps/remix-ide/src/app/ui/landing-page/landing-page.js
View file @
807fae65
...
@@ -164,7 +164,6 @@ export class LandingPage extends ViewPlugin {
...
@@ -164,7 +164,6 @@ export class LandingPage extends ViewPlugin {
`
`
this
.
adjustMediaPanel
()
this
.
adjustMediaPanel
()
globalRegistry
.
get
(
'themeModule'
).
api
.
events
.
on
(
'themeChanged'
,
(
theme
)
=>
{
globalRegistry
.
get
(
'themeModule'
).
api
.
events
.
on
(
'themeChanged'
,
(
theme
)
=>
{
console
.
log
(
"theme is "
,
theme
.
quality
)
this
.
onThemeChanged
(
theme
.
quality
)
this
.
onThemeChanged
(
theme
.
quality
)
})
})
}
}
...
@@ -177,6 +176,7 @@ export class LandingPage extends ViewPlugin {
...
@@ -177,6 +176,7 @@ export class LandingPage extends ViewPlugin {
hideMediaPanel
(
e
)
{
hideMediaPanel
(
e
)
{
const
mediaPanelsTitle
=
document
.
getElementById
(
'remixIDEMediaPanelsTitle'
)
const
mediaPanelsTitle
=
document
.
getElementById
(
'remixIDEMediaPanelsTitle'
)
const
mediaPanels
=
document
.
getElementById
(
'remixIDEMediaPanels'
)
const
mediaPanels
=
document
.
getElementById
(
'remixIDEMediaPanels'
)
if
(
!
mediaPanelsTitle
||
!
mediaPanels
)
return
if
(
!
mediaPanelsTitle
.
contains
(
e
.
target
)
&&
!
mediaPanels
.
contains
(
e
.
target
))
{
if
(
!
mediaPanelsTitle
.
contains
(
e
.
target
)
&&
!
mediaPanels
.
contains
(
e
.
target
))
{
this
.
mediumPanel
.
classList
.
remove
(
'd-block'
)
this
.
mediumPanel
.
classList
.
remove
(
'd-block'
)
this
.
mediumPanel
.
classList
.
add
(
'd-none'
)
this
.
mediumPanel
.
classList
.
add
(
'd-none'
)
...
@@ -186,7 +186,6 @@ export class LandingPage extends ViewPlugin {
...
@@ -186,7 +186,6 @@ export class LandingPage extends ViewPlugin {
}
}
onThemeChanged
(
themeQuality
)
{
onThemeChanged
(
themeQuality
)
{
console
.
log
(
"themes in listener is"
,
themeQuality
)
let
twitterFrame
=
yo
`
let
twitterFrame
=
yo
`
<div class="px-2
${
css
.
media
}
">
<div class="px-2
${
css
.
media
}
">
<a class="twitter-timeline"
<a class="twitter-timeline"
...
@@ -204,7 +203,6 @@ export class LandingPage extends ViewPlugin {
...
@@ -204,7 +203,6 @@ export class LandingPage extends ViewPlugin {
}
}
showMediaPanel
(
e
)
{
showMediaPanel
(
e
)
{
console
.
log
(
e
)
if
(
e
.
target
.
id
===
'remixIDEHomeTwitterbtn'
)
{
if
(
e
.
target
.
id
===
'remixIDEHomeTwitterbtn'
)
{
this
.
mediumPanel
.
classList
.
remove
(
'd-block'
)
this
.
mediumPanel
.
classList
.
remove
(
'd-block'
)
this
.
mediumPanel
.
classList
.
add
(
'd-none'
)
this
.
mediumPanel
.
classList
.
add
(
'd-none'
)
...
...
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