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

代码块增加复制功能 #1684

Closed
myoss opened this issue May 26, 2017 · 20 comments
Closed

代码块增加复制功能 #1684

myoss opened this issue May 26, 2017 · 20 comments
Labels

Comments

@myoss
Copy link

myoss commented May 26, 2017

Expected behavior (预期行为)

期望代码块的右上角有一个复制按钮,类似 http://v3.bootcss.com/css/

Actual behavior (实际行为)

目前无

Steps to reproduce the behavior (重现步骤)

目前无

NexT Information

Add the ✔ sign before an item which is affected by this behavior.

NexT Version:

  • Master ✔
  • Latest Release
  • Old version -

NexT Scheme:

  • All schemes
  • Muse
  • Mist
  • Pisces ✔

Other Information (Like Browser, System, Screenshots)

@zhuzhuyule
Copy link
Contributor

zhuzhuyule commented May 26, 2017

just like this ?

@myoss
Copy link
Author

myoss commented May 26, 2017

是的,如何实现的呢

@zhuzhuyule
Copy link
Contributor

i used the clipboard.js !
the github : https://github.com/zenorocha/clipboard.js

@heliuphy
Copy link

@zhuzhuyule 请问鼠标放到左侧边栏后的动画效果怎么做出来的呀?

@zhuzhuyule
Copy link
Contributor

1.头像动画,css 实现
2.背景显示,js 实现
3.时钟,js实现
4.头像背景,canvas+js实现
@heliuphy 尽量本周内把我的代码都贴出来.

@heliuphy
Copy link

heliuphy commented May 31, 2017 via email

@Jan9th
Copy link

Jan9th commented May 31, 2017

关注中

@yafey
Copy link

yafey commented May 31, 2017

@zhuzhuyule 关注中

@chengxutianxia
Copy link

@zhuzhuyule 关注中,加油!

@xkcoding
Copy link

@zhuzhuyule mentioned

@zhuzhuyule
Copy link
Contributor

zhuzhuyule commented Jun 21, 2017

@myoss @heliuphy @Jan9th @yafey @bharals @xkcoding
复制功能已经写好 ,可以尝试了,有问题给我留言

HEXO优化之(二)----添加复制功能

@heliuphy
Copy link

heliuphy commented Jun 22, 2017 via email

@heliuphy
Copy link

@zhuzhuyule 没有\themes\next\layout\_custom\custom.swig这个文件呀?

@zhuzhuyule
Copy link
Contributor

zhuzhuyule commented Jun 22, 2017

@heliuphy 已经更新。
更新此处

感谢提出问题。

@heliuphy
Copy link

heliuphy commented Jun 23, 2017 via email

@ivan-nginx
Copy link
Collaborator

@myoss solved?

@anson2416
Copy link

这个功能很使用 👍

@tzy570978
Copy link

我的总是显示不出来复制按钮,和hexo 和next的版本有关系吗?

@wangxianh
Copy link

一直显示不成功,提示这个错误
Uncaught ReferenceError: Clipboard is not defined
at createCopyBtns (custom.js:31)
这是什么原因啊?

@ivan-nginx
Copy link
Collaborator

Feature already implemented in NexT v6.2.0


NexT is rebased into organization repo.
If you want new feature, fix, or support, create new in NexT v6.x repo (desirable in English).

There is instructions on English or Chinese how to update from v5.1.x to v 6.x

You also may read this for details.

Repository owner locked and limited conversation to collaborators Jun 17, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests