Thanks for your reply. However, why does it work without a trigger module in the video? When I plug it into my laptop, it doesn't.
PD/QC chargers expecting voltage request with data packets over USB data line. If you don't request voltage, it just provide you with 5V. Laptop has PD trigger inside, this is how it requests high voltage from PD/QC charger. It cannot be done with resistors. It requires to send/receive datapackets in order to implement PD protocol to request proper voltage from charger.
In short it works in the following way:
1) Device is connected to charger
2) Charger provides 5V by default
3) Device send request packet to get supported charge protocols from charger
4) Charger responds with a list of protocol that it supports
5) Device requests one of supported voltage
6) Charger switch voltage to requested one (if it supports it)
Also note that a fan can be designed for different voltage. Some fan is designed for 5V and can work from USB with no needs for additional circuit. But if your fan is 9 or 12V, you're needs PD trigger module, as I mentioned before.
You can use this PD trigger module, it allows to setup desired voltage with micro switches:
https://www.aliexpress.com/item/1005003828144045.htmlBut note, USB port should support PD charge and should support requested voltage in order to provide voltage that you setup on PD trigger. Usual USB port with no PD protocol support cannot provide more than 5V.
Also note that most of 24W PD chargers with USB-A port don't support voltage above 12V.