<%if(typeof(req.datas)!=="undefined"){%> <% function jsjs(inp){ inp = pagename(inp); return "javascript: var d = document,w = window,e = w.getSelection,k = d.getSelection,x = d.selection,s = (e ? e() : (k) ? k() : (x ? x.createRange().text : 0)),f = 'https://bookmark.iske.dk/bookmarker/"+inp+"',l = d.location,e = encodeURIComponent,p = '?v=3&u=' + e(l.href) + '&t=' + e(d.title) + '&s=' + e(s),u = f + p;a = function() {if (!w.open(u, 't', 'toolbar=0,resizable=0,status=1,width=450,height=430')) l.href = u;};if (/Firefox/.test(navigator.userAgent)) setTimeout(a, 0);else a();void(0)"; } function exta(inp){ var a = inp.split("_"); if(a.length>1){ var dom = a.shift(); var url =""+dom + "/" + a.join(""); return ''+url+''; }else{ var url = 'pad.aa.bloggen.dk/p/'+inp; return ''+inp+''; } } function pagename(ll){ var line = ll.split(" ").shift(); var uu = req.lib.url.parse(line); var name = (uu.hostname?uu.hostname+"":"")+uu.pathname; name = name.replace(/\//g,"_"); return name ; console.log(uu); if(line.indexOf(":")>-1 || line.indexOf("/")>-1 || line.indexOf("?") >-1){ } return line; } function pagetitle(line){ return line.split(" ").slice(1).join(" ") || line; } function pagenametourl(pagename){ if(pagename.indexOf("_")>-1){ // return "//"+pagename.replace(/_/g,"/"); return 'https://pad.aa.bloggen.dk/p/'+pagename; } return pagename } function jsjsbut(line){ return ''+line+''; } %> <%req.datas.map(jsjsbut).join(" ")%>
<%}%>