master
xaoxuu 4 years ago
parent d0920e784f
commit 90a1ad02b1
  1. 2
      _config.yml
  2. 2
      layout/_partial/scripts.ejs
  3. 6
      layout/_third-party/clipboard.ejs

@ -384,7 +384,7 @@ seo:
############################### Plugins ############################### ############################### Plugins ###############################
plugins: plugins:
# Required plugins: # Required plugins:
jquery: https://cdn.jsdelivr.net/npm/jquery@3.3/dist/jquery.min.js jquery: https://cdn.jsdelivr.net/npm/jquery@3.4/dist/jquery.min.js
######## Plugins to improve loading speed: ######## Plugins to improve loading speed:
# Preload (The menu's url must end with ‘/’) # Preload (The menu's url must end with ‘/’)

@ -35,7 +35,7 @@
</script> </script>
<% } %> <% } %>
<% if (theme.plugins.nodewaves && theme.plugins.nodewaves.js) { %> <% if (theme.plugins.nodewaves && theme.plugins.nodewaves.js) { %>
<%- js({src: theme.plugins.nodewaves.js, async: true }) %> <%- js({src: theme.plugins.nodewaves.js}) %>
<script type="text/javascript"> <script type="text/javascript">
$(function() { $(function() {
Waves.attach('.flat-btn', ['waves-button']); Waves.attach('.flat-btn', ['waves-button']);

@ -1,12 +1,6 @@
<script src="<%- theme.plugins.clipboard %>"></script> <script src="<%- theme.plugins.clipboard %>"></script>
<script> <script>
/*页面载入完成后,创建复制按钮*/
!function (e, t, a) { !function (e, t, a) {
/* code */
function on_success(){
let $btn = $('.highlight .code pre');
console.log($btn);
}
var initCopyCode = function(){ var initCopyCode = function(){
var copyHtml = ''; var copyHtml = '';
copyHtml += '<button class="btn-copy" data-clipboard-snippet="">'; copyHtml += '<button class="btn-copy" data-clipboard-snippet="">';

Loading…
Cancel
Save