summaryrefslogtreecommitdiff
path: root/assets/js/zoom.js
blob: c8610d6118ddb3e9dc16fb9ac86350cebe3f037c (plain)
1
2
3
4
5
6
7
8
// Initialize medium zoom.
$(document).ready(function() {
  medium_zoom = mediumZoom('[data-zoomable]', {
    margin: 100,
    background: getComputedStyle(document.documentElement)
        .getPropertyValue('--global-bg-color') + 'ee',  // + 'ee' for trasparency.
  })
});