From 8b1249ddc87d1a3b66beb289d54ab7f39e278dd8 Mon Sep 17 00:00:00 2001 From: dcore94 Date: Thu, 9 Feb 2023 17:40:09 +0100 Subject: [PATCH] tuned look and added context --- ccp/js/methodlistcontroller2.js | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/ccp/js/methodlistcontroller2.js b/ccp/js/methodlistcontroller2.js index aace1f3..b60c8bf 100644 --- a/ccp/js/methodlistcontroller2.js +++ b/ccp/js/methodlistcontroller2.js @@ -83,7 +83,7 @@ class CCPMethodList2 extends HTMLElement{ @@ -338,6 +341,11 @@ class CCPMethodList2 extends HTMLElement{ "in" : (e,d)=>d.keywords, apply : (e,d)=>{ e.alt = e.title = e.textContent = d } }, + { + target : "span[name=context]", + "in" : (e,d)=>d.metadata.filter(md=>md.role === "context"), + apply : (e,d)=>{ e.alt = e.title = e.textContent = d.title.replaceAll("%2F", "/") } + }, { target : "p[name=description]", apply : (e,d)=>{ e.textContent = d.description }