fixing static paths to absolute, fixing csp script blueimp
This commit is contained in:
14
static/init.js
Normal file
14
static/init.js
Normal file
@@ -0,0 +1,14 @@
|
||||
$(
|
||||
function(){
|
||||
console.log("init loaded")
|
||||
})
|
||||
$(function (){
|
||||
document.getElementById('links').onclick = function(event) {
|
||||
event = event || window.event
|
||||
var target = event.target || event.srcElement,
|
||||
link = target.src ? target.parentNode : target,
|
||||
options = { index: link, event: event },
|
||||
links = this.getElementsByTagName('a')
|
||||
blueimp.Gallery(links, options)
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user