|
3 | 3 | <head> |
4 | 4 | <meta charset="utf-8"> |
5 | 5 | <meta http-equiv="X-UA-Compatible" content="IE=edge"> |
6 | | - <meta name="generator" content="MarkBind 5.5.2"> |
7 | | - <meta name="viewport" content="width=device-width, initial-scale=1"><title>MarkBind - Page not found</title> <link rel="stylesheet" href="/markbind/css/bootstrap.min.css"><link rel="stylesheet" href="/markbind/css/codeblock-light.min.css"><link rel="stylesheet" href="/markbind/css/markbind.min.css"><link rel="stylesheet" href="/plugins/markbind-plugin-anchors/markbind-plugin-anchors.css"><link rel="stylesheet" href="/plugins/markbind-plugin-tree/markbind-plugin-tree.css"><link rel="icon" href="/favicon.ico"></head> |
| 6 | + <meta name="generator" content="MarkBind 5.5.3"> |
| 7 | + <meta name="viewport" content="width=device-width, initial-scale=1"><title>MarkBind - Page not found</title> <link rel="stylesheet" href="/markbind/css/bootstrap.min.css"><link rel="stylesheet" href="/markbind/css/codeblock-light.min.css"><link rel="stylesheet" href="/markbind/css/markbind.min.css"><link rel="stylesheet" href="/plugins/web3Form/web-3-form.css"><link rel="stylesheet" href="/plugins/dataTable/datatables.min.css"><link rel="stylesheet" href="/plugins/dataTable/datatables-additional.css"><link rel="stylesheet" href="/plugins/markbind-plugin-anchors/markbind-plugin-anchors.css"><link rel="stylesheet" href="/plugins/markbind-plugin-tree/markbind-plugin-tree.css"><link rel="icon" href="/favicon.ico"></head> |
8 | 8 | <script> |
9 | 9 | const baseUrl = '' |
10 | 10 | </script> |
|
18 | 18 | <script> |
19 | 19 | MarkBind.setupWithSearch() |
20 | 20 | </script> |
| 21 | + <script> |
| 22 | + function toggleCodeBlockWrap(element) { |
| 23 | + const pre = element.parentElement.parentElement; |
| 24 | + const classList = pre.querySelector('code').classList; |
| 25 | + if (classList.contains('wrap')) { |
| 26 | + classList.remove('wrap'); |
| 27 | + } else { |
| 28 | + classList.add('wrap') |
| 29 | + } |
| 30 | + } |
| 31 | + </script> |
| 32 | + |
| 33 | + <script> |
| 34 | + function submitForm(element) { |
| 35 | + event.preventDefault(); |
| 36 | + const formData = new FormData(element); |
| 37 | + const formProps = Object.fromEntries(formData); |
| 38 | + const json = JSON.stringify(formProps); |
| 39 | + const submitButton = element.querySelector('button[type="submit"]'); |
| 40 | + const submitButtonText = submitButton.innerText; |
| 41 | + submitButton.innerText = 'Please wait...' |
| 42 | + fetch('https://api.web3forms.com/submit', { |
| 43 | + method: 'POST', |
| 44 | + headers: { |
| 45 | + 'Content-Type': 'application/json', |
| 46 | + 'Accept': 'application/json' |
| 47 | + }, |
| 48 | + body: json, |
| 49 | + }) |
| 50 | + .then(async (response) => { |
| 51 | + if (response.status == 200) { |
| 52 | + alert('Form submitted! Thank you for your response'); |
| 53 | + } else { |
| 54 | + alert('Error submitting form! Please try again later.'); |
| 55 | + } |
| 56 | + }) |
| 57 | + .catch(error => { |
| 58 | + alert('Error submitting form! Please try again later.'); |
| 59 | + }) |
| 60 | + .finally(() => { |
| 61 | + submitButton.innerText = submitButtonText; |
| 62 | + }) |
| 63 | + } |
| 64 | + </script> |
21 | 65 | <script> |
22 | 66 | function copyCodeBlock(element) { |
23 | 67 | const pre = element.parentElement.parentElement; |
|
33 | 77 | document.body.removeChild(textElement); |
34 | 78 | } |
35 | 79 | </script> |
| 80 | + <script src="/plugins/dataTable/datatables.min.js"></script> |
| 81 | + |
| 82 | + <script> |
| 83 | + function getTableOptions(el) { |
| 84 | + const options = {}; |
| 85 | + if ($(el).hasClass('sortable-table')) { |
| 86 | + options.searching = false; |
| 87 | + options.paging = false; |
| 88 | + options.info = false; |
| 89 | + } else if ($(el).hasClass('searchable-table')) { |
| 90 | + options.ordering = false; |
| 91 | + options.paging = false; |
| 92 | + options.info = false; |
| 93 | + options.dom = '<"row"<"col-sm-12"f>>' + '<"row"<"col-sm-12"t>>'; |
| 94 | + } else if ($(el).hasClass('sortable-searchable-table')) { |
| 95 | + options.paging = false; |
| 96 | + options.info = false; |
| 97 | + options.dom = '<"row"<"col-sm-12"f>>' + '<"row"<"col-sm-12"t>>'; |
| 98 | + } |
| 99 | + return options; |
| 100 | + } |
| 101 | + |
| 102 | + Vue.directive('datatable', { |
| 103 | + inserted: function(el, binding) { |
| 104 | + const options = binding.value || {}; |
| 105 | + const tableOptions = getTableOptions(el); |
| 106 | + $(el).DataTable({ ...tableOptions, ...options }); |
| 107 | + } |
| 108 | + }); |
| 109 | + |
| 110 | + document.addEventListener('DOMContentLoaded', function() { |
| 111 | + $('table.sortable-table, table.searchable-table, table.sortable-searchable-table').each(function() { |
| 112 | + const options = getTableOptions(this); |
| 113 | + $(this).DataTable(options); |
| 114 | + }); |
| 115 | + }); |
| 116 | + </script> |
| 117 | + |
| 118 | + <script type="module"> |
| 119 | + import mermaid from 'https://unpkg.com/mermaid@10/dist/mermaid.esm.min.mjs'; |
| 120 | + document.addEventListener('DOMContentLoaded', () => { |
| 121 | + mermaid.initialize({}); |
| 122 | + Vue.directive('mermaid', { |
| 123 | + inserted: function(el) { |
| 124 | + mermaid.run({ |
| 125 | + nodes: [el] |
| 126 | + }); |
| 127 | + } |
| 128 | + }); |
| 129 | + }); |
| 130 | + </script> |
36 | 131 | </html> |
0 commit comments