@@ -75,8 +117,13 @@
If you feel that we need another zone you can mine that too. Just select a name, a difficulty for domains in that zone, and hit "Mine zone".
+
Welcome to ALFIS!
ALFIS stands for Alternative Free Identity System.
It gives you an opportunity to create your own domains and use them in decentralized networks, store security certificates for browsers to trust without any centralized CA.
diff --git a/src/webview/scripts.js b/src/webview/scripts.js
index 939186c..7b19c17 100644
--- a/src/webview/scripts.js
+++ b/src/webview/scripts.js
@@ -40,7 +40,9 @@ function refresh_records_list() {
"
" +
"
" +
"
" +
- " " +
+ " " +
+ " " +
+ " " +
" " +
"
";
buf += text.replace("{1}", value.domain)
@@ -96,6 +98,28 @@ function onLoad() {
external.invoke(JSON.stringify({cmd: 'loaded'}));
}
+function openTab(element, tabName) {
+ // Declare all variables
+ var i, tabContent, tabLinks;
+
+ // Get all elements with class="content" and hide them
+ tabContent = document.getElementsByClassName("tab content");
+ for (i = 0; i < tabContent.length; i++) {
+ tabContent[i].className = "tab content is-hidden";
+ }
+
+ // Get all elements with class="tab" and remove the class "is-active"
+ tabLinks = document.getElementsByClassName("tab is-active");
+ for (i = 0; i < tabLinks.length; i++) {
+ tabLinks[i].className = "tab";
+ }
+
+ // Show the current tab, and add an "is-active" class to the button that opened the tab
+ document.getElementById(tabName).className = "tab content";
+ element.parentElement.className = "tab is-active";
+ refresh_records_list();
+}
+
function loadKey() {
external.invoke(JSON.stringify({cmd: 'loadKey'}));
}
diff --git a/src/webview/styles.css b/src/webview/styles.css
index 399fbb8..7f151f2 100644
--- a/src/webview/styles.css
+++ b/src/webview/styles.css
@@ -27,4 +27,20 @@
position: absolute;
bottom: 0px;
z-index: 9;
+}
+
+path {
+ fill: #4a4a4a;
+}
+
+.tabs > ul > li.is-active > a > span.icon > svg > path {
+ fill: #3273dc;
+}
+
+.control > span.icon > svg > path {
+ fill: #dbdbdb;
+}
+
+.is-danger > span.icon > svg > path {
+ fill: #f14668;
}
\ No newline at end of file