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:
# 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:
# Preload (The menu's url must end with ‘/’)

@ -35,7 +35,7 @@
</script>
<% } %>
<% 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">
$(function() {
Waves.attach('.flat-btn', ['waves-button']);

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

Loading…
Cancel
Save