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;