Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code-Highlight in Slides does not disploy properly on Chrome. #218

Closed
4 tasks done
Magolor opened this issue Aug 7, 2019 · 9 comments
Closed
4 tasks done

Code-Highlight in Slides does not disploy properly on Chrome. #218

Magolor opened this issue Aug 7, 2019 · 9 comments

Comments

@Magolor
Copy link

Magolor commented Aug 7, 2019

I want to create a new issue

Melody Information

Melody Version: v1.5.6

Platform: Windows

Browser: Chrome

Expected behavior

Black background and Code Highlighting are Expected.

Actual behavior

While the background is transparent and there is no Highlighting(No matter what language is used).

Tested on different computers, none of them is displaying well.

The whole page is here.

Steps to reproduce the behavior

I temporarily put the .md file of this page at here

Feature Request


@Molunerfinn
Copy link
Owner

OK, the problem will be solved soon.

@Molunerfinn
Copy link
Owner

Molunerfinn commented Aug 8, 2019

After using your markdown file, I can't reproduce your situation:

image

image

@Molunerfinn
Copy link
Owner

I found that your blog's hljs has something different:

image

the hljs.initHighlighting.called is undefined while the right value is true:

image

So your blog's hljs wasn't called. That's wried.

@Molunerfinn
Copy link
Owner

OK, you can change to the branch fix-218 to see if the fix can solve your problem.

cd hexo-theme-melody
git fetch
git checkout fix-218

@Molunerfinn
Copy link
Owner

if the fix can solve your problem, then the branch will be merged to dev branch.

@Magolor
Copy link
Author

Magolor commented Aug 8, 2019

if the fix can solve your problem, then the branch will be merged to dev branch.

Sorry, not working.

Well, this problem happens only on Chrome but not IE or Edge. And while running on localhost its behavior is expected(even on Chrome).

@Molunerfinn
Copy link
Owner

So something happened when deploying online. Maybe the PWA plugin?
You can remove some plugins settings to see what happened.
And you can change the time to more than 0 (for example 1000 means 1s)to see if it could help:

https://github.com/Molunerfinn/hexo-theme-melody/blob/fix-218/layout/includes/slide/script.pug#L34

@Molunerfinn
Copy link
Owner

Sorry but your page is not the newest:
image
image
The newest code is the following:

image

@Magolor
Copy link
Author

Magolor commented Aug 8, 2019

Sorry but your page is not the newest:
image
image
The newest code is the following:

image

Fixed! Thank you so much!

Sorry for my silly mistake.

Molunerfinn added a commit that referenced this issue Jan 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants