refactor: move inline cloudinary js into js file

to make way for CSR policy
This commit is contained in:
curben 2019-05-21 10:49:30 +09:30
parent 47e7982432
commit e7a6071d08
2 changed files with 4 additions and 6 deletions

View File

@ -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">
<% } %>
<%/* Initialize cloudinary responsive function */%>
<script type="text/javascript">
const cl = cloudinary.Cloudinary.new({cloud_name: "curben"})
cl.responsive()
</script>
<%/* javascript of Typing theme */%>
<%- js('js/typing') %>

View File

@ -56,5 +56,9 @@
event.trigger.textContent = 'Copy'
}, 2000)
})
// Initialize Cloudinary responsive function
const cl = cloudinary.Cloudinary.new({cloud_name: "curben"})
cl.responsive()
})
})(jQuery)