summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKai Stevenson <kai@kaistevenson.com>2023-08-02 03:24:42 -0700
committerKai Stevenson <kai@kaistevenson.com>2023-08-02 03:24:42 -0700
commitc5ef1b6370d3229f52b292fa72c5b4700a77e32f (patch)
tree299e03f01a24a45a19a98b7e733d5e49e022342b
parente2a5476389ef350aed3857ccd5a5cafc51acbbbf (diff)
fixed dpi scaling
-rw-r--r--src/etc/employment/index.php12
-rw-r--r--src/etc/employment/techsupport.php29
-rw-r--r--src/phplatex.php4
-rw-r--r--src/writing/derivative.php2
4 files changed, 44 insertions, 3 deletions
diff --git a/src/etc/employment/index.php b/src/etc/employment/index.php
new file mode 100644
index 0000000..c41b29d
--- /dev/null
+++ b/src/etc/employment/index.php
@@ -0,0 +1,12 @@
+<?php
+$title = "Employment";
+require($_SERVER["DOCUMENT_ROOT"] . "/head.php");
+require($_SERVER["DOCUMENT_ROOT"] . "/header.php");
+?>
+<p>
+ This page is a list of things you could pay me to do. Isn't that fun?
+</p>
+<ul>
+ <li><h3><a href="techsupport.php">Tech Support</a></h3></li>
+</ul>
+<?php require($_SERVER["DOCUMENT_ROOT"] . "/footer.php"); ?>
diff --git a/src/etc/employment/techsupport.php b/src/etc/employment/techsupport.php
new file mode 100644
index 0000000..803778a
--- /dev/null
+++ b/src/etc/employment/techsupport.php
@@ -0,0 +1,29 @@
+<?php
+$title = "Tech Support";
+require($_SERVER["DOCUMENT_ROOT"] . "/head.php");
+require($_SERVER["DOCUMENT_ROOT"] . "/header.php");
+?>
+<p>
+ I've grown up around computers and am intimately familiar with the operation of all types of digital systems.
+ I'm always happy to help set up new computers, phones, and tablets, or to assist in resolving problems that
+ have emerged. I understand exactly how important your data is--whether that's
+ your photos, your writing, or your work--and I'm always willing to
+ be flexible in my approach to engineering a solution that fits your needs.
+</p>
+<p>
+ As a programmer, I have thousands of hours of experience with every facet of Windows, MacOS, and Linux computers--
+ I've built multiple computers for my own personal use, and I maintain server hardware on premises to run my services.
+</p>
+<h2>Examples</h2>
+<ul>
+ <li><p>Configuring cloud storage</p></li>
+ <li><p>Backing up photographs</p></li>
+ <li><p>Decluttering/improving performance of old computers</p></li>
+ <li><p>Tech education/explaining the optimal use of systems</p></li>
+ <li><p>Updating and maintaining Web sites</p></li>
+</ul>
+<h2>Contact</h2>
+<p>
+ Please contact me at kai@kaistevenson.com.
+</p>
+<?php require($_SERVER["DOCUMENT_ROOT"] . "/footer.php"); ?>
diff --git a/src/phplatex.php b/src/phplatex.php
index 4d2c60b..2b9f490 100644
--- a/src/phplatex.php
+++ b/src/phplatex.php
@@ -82,7 +82,7 @@ function texify($string,$dpi='90',$fore="",$back="",$extraprelude="",$trans=FALS
# check if image for that TeX in the cache, return img HTML if it exists
if (file_exists($heredir.'/lateximages/'.$hashfn.'.'.$imgfmt))
- return '<img style="'.$verticalalign.'" title="'.$stralt.'" alt="'.$stralt.'" src="/lateximages/'.$hashfn.'.'.$imgfmt.'">';
+ return '<img class="lateximage" style="'.$verticalalign.'" title="'.$stralt.'" alt="'.$stralt.'" srcset="/lateximages/'.$hashfn.'.'.$imgfmt.' 2x">';
# otherwise try to make and store:
@@ -134,6 +134,6 @@ function texify($string,$dpi='90',$fore="",$back="",$extraprelude="",$trans=FALS
copy($tfn.'.'.$imgfmt, $heredir.'/lateximages/'.$hashfn.'.'.$imgfmt);
# Clean up temporary files, and return link to just-created image
- return phplatex_cleantmp($tfn,$heredir).'<img style="'.$verticalalign.'" title="'.$stralt.'" alt="LaTeX formula: '.$stralt.'" src="/lateximages/'.$hashfn.'.'.$imgfmt.'">';
+ return phplatex_cleantmp($tfn,$heredir).'<img class="lateximage" style="'.$verticalalign.'" title="'.$stralt.'" alt="LaTeX formula: '.$stralt.'" srcset="/lateximages/'.$hashfn.'.'.$imgfmt.' 2x">';
}
?>
diff --git a/src/writing/derivative.php b/src/writing/derivative.php
index edf8071..aad4332 100644
--- a/src/writing/derivative.php
+++ b/src/writing/derivative.php
@@ -6,7 +6,7 @@ include($_SERVER["DOCUMENT_ROOT"] . "/phplatex.php");
require($_SERVER["DOCUMENT_ROOT"] . "/vars.php");
function tex($latex) {
global $c_fg, $c_bg;
- return texify($latex, 130, $c_fg, $c_bg, "", FALSE);
+ return texify($latex, 260, $c_fg, $c_bg, "", FALSE);
}
?>
<p>