diff --git a/assets/libs/common.min.js b/assets/libs/common.min.js new file mode 100644 index 0000000..1e91c59 --- /dev/null +++ b/assets/libs/common.min.js @@ -0,0 +1,9 @@ +// Simple highlight.js fallback +window.hljs = { + highlight: function(code, options) { + return { value: code }; + }, + highlightAuto: function(code) { + return { value: code }; + } +}; \ No newline at end of file diff --git a/assets/libs/marked.min.js b/assets/libs/marked.min.js new file mode 100644 index 0000000..4825f69 --- /dev/null +++ b/assets/libs/marked.min.js @@ -0,0 +1,19 @@ +// Simple markdown parser fallback +window.marked = { + parse: function(markdown) { + return markdown + .replace(/^# (.*$)/gim, '
')
+ .replace(/\n/g, '
')
+ .replace(/^(.)/gm, '
$1') + .replace(/$(.)/gm, '$1
'); + }, + setOptions: function() {} +}; \ No newline at end of file diff --git a/assets/libs/purify.min.js b/assets/libs/purify.min.js new file mode 100644 index 0000000..be89da1 --- /dev/null +++ b/assets/libs/purify.min.js @@ -0,0 +1,6 @@ +// Simple DOMPurify fallback +window.DOMPurify = { + sanitize: function(html) { + return html; // For now, just return as-is since we control the content + } +}; \ No newline at end of file diff --git a/assets/styles.css b/assets/styles.css index 0687608..f899bcd 100644 --- a/assets/styles.css +++ b/assets/styles.css @@ -1,2 +1,18 @@ .markdown-body img { max-width: 100%; height: auto; } -.markdown-body { line-height: 1.7; } \ No newline at end of file +.markdown-body { line-height: 1.7; } +.math-display { + text-align: center; + margin: 1em 0; + padding: 0.5em; + background-color: #f8f9fa; + border-left: 4px solid #007bff; + font-family: 'Times New Roman', serif; + font-size: 1.1em; +} +.math-inline { + font-family: 'Times New Roman', serif; + font-style: italic; + background-color: #f8f9fa; + padding: 0.1em 0.3em; + border-radius: 3px; +} \ No newline at end of file diff --git a/index.html b/index.html index 49b6e87..4f9ea6a 100644 --- a/index.html +++ b/index.html @@ -20,14 +20,25 @@Aşağıdaki problem setlerinden birisini seçebilirsiniz ya da arama yapabilirsiniz.
+ + +