Separate css & js into text variants
Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
7
assets/js/common/tabs.js
Normal file
7
assets/js/common/tabs.js
Normal file
@@ -0,0 +1,7 @@
|
||||
function tabsInNewPage() {
|
||||
var links = document.getElementsByTagName("article")[0].querySelectorAll('a');
|
||||
var a = new RegExp('/' + window.location.host + '/');
|
||||
links.forEach(link => !a.test(link.href) && link.setAttribute("target", "_blank"));
|
||||
}
|
||||
|
||||
tabsInNewPage();
|
@@ -1,9 +1,3 @@
|
||||
function tabsInNewPage() {
|
||||
var links = document.getElementsByTagName("article")[0].querySelectorAll('a');
|
||||
var a = new RegExp('/' + window.location.host + '/');
|
||||
links.forEach(link => !a.test(link.href) && link.setAttribute("target", "_blank"));
|
||||
}
|
||||
|
||||
function tableOfContents() {
|
||||
var elements = document.getElementsByClassName('kg-toggle-card');
|
||||
|
||||
@@ -27,6 +21,4 @@ function tableOfContents() {
|
||||
}
|
||||
}
|
||||
|
||||
tabsInNewPage();
|
||||
tableOfContents();
|
||||
pagination(true);
|
1
assets/js/text/main.js
Normal file
1
assets/js/text/main.js
Normal file
@@ -0,0 +1 @@
|
||||
pagination(true);
|
Reference in New Issue
Block a user