Xah Talk Show 2024-01-21 Ep532 What Happens When You Blog for 25 Years
- write a command that moves a file in a website, to another dir
- Conic Sections
- JavaScript in Depth
- Visual CSS
- CSS: 2D Transform
- JS: Map Object Tutorial
- HTML Video Tag
- CSS: Text Over Image
;; write a command that moves a file in a website, to another dir ;; suppose u need to move the file named a/x.html to ../b/x.html ;; need to be sure the file do not already exist in the new dir. ;; two things u need to do ;; 1. change all links in the file x.html, so they still work ;; 2. go thru all files in your domain dir, check every file that has link to x.html, change all the links ;; suppose we want to move ;; c:/Users/xah/web/xahlee_info/js/css_2d_transform.html ;; to the dir ;; c:/Users/xah/web/xahlee_info/css/ ;; how to change the link ;; find all html tags that contains a link. examples ;; <link rel="stylesheet" href="../lbasic.css" /> ;; <a href="index.html"> ;; <img src="i/alice-cheshire.png" alt="Cheshire cat" width="432" height="626" /> ;; secondly, for each link path, there are many variations ;; <a href="index.html"> ;; <a href="./index.html"> ;; <a href="../index.html"> ;; <a href="../i/index.html"> ;; <a href="http://xahlee.info/index.html"> ;; c:/Users/xah/web/xahlee_info/index.html