From 4a83bb1a6d5bee0892c294467618bd66b88535a7 Mon Sep 17 00:00:00 2001
From: David Luevano Alvarado <david@luevano.xyz>
Date: Sat, 5 Jun 2021 22:41:32 -0600
Subject: prettify css add support for wrap images and img/art grids

---
 static/scripts/theme.js | 10 ++++++++++
 1 file changed, 10 insertions(+)

(limited to 'static/scripts')

diff --git a/static/scripts/theme.js b/static/scripts/theme.js
index 489060f..1a425d5 100644
--- a/static/scripts/theme.js
+++ b/static/scripts/theme.js
@@ -21,6 +21,7 @@ window.onload = () => {
       href = href.replace('dark.css', 'light.css');
       theme.setAttribute('href', href);
 
+      /*
       let code_theme = document.getElementById('code-theme-css');
 
       let code_href;
@@ -29,6 +30,7 @@ window.onload = () => {
         code_href = code_href.replace('solarized-dark.min.css', 'solarized-light.min.css');
         code_theme.setAttribute('href', code_href);
       }
+      */
     }
   }
 
@@ -50,31 +52,39 @@ function toggleTheme(){
   let theme = document.getElementById('theme-css');
   let href = theme.getAttribute('href');
 
+  /*
   let code_theme = document.getElementById('code-theme-css');
   let code_href;
   if (code_theme !== null){
     code_href = code_theme.getAttribute('href');
   }
+  */
 
   if(href.endsWith('dark.css')){
     href = href.replace('dark.css', 'light.css');
+    /*
     if (code_theme !== null){
       code_href = code_href.replace('solarized-dark.min.css', 'solarized-light.min.css');
     }
+    */
   }
   else if (href.endsWith('light.css')){
     href = href.replace('light.css', 'dark.css');
+    /*
     if (code_theme !== null){
       code_href = code_href.replace('solarized-light.min.css', 'solarized-dark.min.css');
     }
+    */
   }
   else{
     console.log('Wrong replacement.');
   }
 
   theme.setAttribute('href', href);
+  /*
   if (code_theme !== null){
     code_theme.setAttribute('href', code_href);
   }
+  */
   setTheme();
 }
-- 
cgit v1.2.3-70-g09d2