mirror of https://gitlab.com/curben/blog
refactor: move inline cloudinary js into js file
to make way for CSR policy
This commit is contained in:
parent
47e7982432
commit
e7a6071d08
|
@ -10,11 +10,5 @@
|
||||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/fancybox/3.5.7/jquery.fancybox.min.css" data-sri-fallback="/fancybox/jquery.fancybox.min.css" integrity="sha384-Q8BgkilbsFGYNNiDqJm69hvDS7NCJWOodvfK/cwTyQD4VQA0qKzuPpvqNER1UC0F" crossorigin="anonymous">
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/fancybox/3.5.7/jquery.fancybox.min.css" data-sri-fallback="/fancybox/jquery.fancybox.min.css" integrity="sha384-Q8BgkilbsFGYNNiDqJm69hvDS7NCJWOodvfK/cwTyQD4VQA0qKzuPpvqNER1UC0F" crossorigin="anonymous">
|
||||||
<% } %>
|
<% } %>
|
||||||
|
|
||||||
<%/* Initialize cloudinary responsive function */%>
|
|
||||||
<script type="text/javascript">
|
|
||||||
const cl = cloudinary.Cloudinary.new({cloud_name: "curben"})
|
|
||||||
cl.responsive()
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<%/* javascript of Typing theme */%>
|
<%/* javascript of Typing theme */%>
|
||||||
<%- js('js/typing') %>
|
<%- js('js/typing') %>
|
||||||
|
|
|
@ -56,5 +56,9 @@
|
||||||
event.trigger.textContent = 'Copy'
|
event.trigger.textContent = 'Copy'
|
||||||
}, 2000)
|
}, 2000)
|
||||||
})
|
})
|
||||||
|
|
||||||
|
// Initialize Cloudinary responsive function
|
||||||
|
const cl = cloudinary.Cloudinary.new({cloud_name: "curben"})
|
||||||
|
cl.responsive()
|
||||||
})
|
})
|
||||||
})(jQuery)
|
})(jQuery)
|
||||||
|
|
Loading…
Reference in New Issue