From 9a0034e61e4f285b406aafd49d2f5daea708d9e5 Mon Sep 17 00:00:00 2001 From: tarikjaber <55803936+tarikjaber@users.noreply.github.com> Date: Sat, 4 Mar 2023 00:14:37 -0500 Subject: [PATCH] Update performance --- .github/CODEOWNERS | 2 ++ index.html | 8 ++++---- index.js | 6 ++++++ styles.css | 2 +- 4 files changed, 13 insertions(+), 5 deletions(-) create mode 100644 .github/CODEOWNERS diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS new file mode 100644 index 0000000..8cc0c95 --- /dev/null +++ b/.github/CODEOWNERS @@ -0,0 +1,2 @@ +# Remove Expect-CT header +/.well-known/* -expect-ct diff --git a/index.html b/index.html index 2536a01..e0cad1d 100644 --- a/index.html +++ b/index.html @@ -5,10 +5,10 @@ - Convert Code to PDF: Free Online Tool + Convert Code to PDF Online: Free Tool for Programming Languages + content="Convert code to PDF online for free with our tool that supports multiple programming languages and syntax highlighting themes. Get started now!"> @@ -25,7 +25,7 @@ - + @@ -39,7 +39,7 @@

Code to PDF - GitHub + GitHub Contribution Icon

diff --git a/index.js b/index.js index 30698f8..3a276e1 100644 --- a/index.js +++ b/index.js @@ -12,6 +12,12 @@ let selectedTheme = localStorage.getItem('theme') || 'github-dark'; let codeText = localStorage.getItem('code') || 'console.log("Hello World")'; // Set up the initial state +document.addEventListener('securitypolicyviolation', function (event) { + if (event.violatedDirective === 'expect-ct') { + event.preventDefault(); + } +}); + themeStylesheet.setAttribute('href', getStylesheet(selectedTheme)); themeSelector.value = selectedTheme; code.classList.add('hljs', `language-${selectedLanguage}`); diff --git a/styles.css b/styles.css index ca41649..ac145e6 100644 --- a/styles.css +++ b/styles.css @@ -38,7 +38,7 @@ input { button { border-width: 0; - background-color: dodgerblue; + background-color: #006ed9; color: white; padding: 6px; min-width: 120px;