Answer the question
In order to leave comments, you need to log in
Clients are asking for a portfolio. Are there any options on how to put a site in the public domain without paying for hosting?
There is a ready-made site made from 0. I have it in the C drive and nowhere else. My only option is to crumple it into an archive and upload it to dropbox. Well, so that you click on the link and go to the site, while not paying for the host?
Answer the question
In order to leave comments, you need to log in
I don't understand either, but I have some vague doubts about your arrow functions as class members, although it seems to be quite legal. And if you trace this._timeoutId before clearTimeout(this._timeoutId); ? What if it's null?
Why this happens, I did not understand, but the solution was to change the approach. Zayuzal asynchronous)
export function delay<T>(ms: number, value?: T): Promise<T> {
return new Promise((resolve) => setTimeout(() => resolve(value), ms));
}
import { injectable } from 'inversify';
import { TimerCallback, ITimer, DelayCalculator } from '../types/timer';
import { delay } from '../../../helpers/delay';
@injectable()
export default class Timer implements ITimer {
private readonly _startDelay: number;
private _enable: boolean;
private counter: number = 0;
constructor(
private _delay: number,
private _nextDelay: DelayCalculator,
private _callback?: TimerCallback,
) {
this._startDelay = _delay;
}
public setCallback = (callback: TimerCallback): void => {
this._callback = callback;
}
public enable = (): void => {
if (!this._callback) {
throw Error('Callback is required for the Timer!');
}
this._enable = true;
this._tick();
}
public disable = (): void => {
if (!this._enable) {
console.warn('You trying to disable timer which is not enabled.');
return;
}
this._enable = false;
}
public reset = (): void => {
this.disable();
this._delay = this._startDelay;
}
private _tick = async (): Promise<void> => {
await delay(this._delay);
if (this._enable) {
this._callback();
this._delay = this._nextDelay(this._delay);
await this._tick();
}
}
}
set up a web server on your computer (from ready-made assemblies: denwer, xampp, openserver, etc.), upload the project to the web server, drop the customer's IP and you're done, for beauty, you can take another domain with no-ip
If you have layout, Github Pages will do (google it)
If you have programming - Github
If you have turnkey sites - videos on Youtube, full screens on a blog / portfolio site, for example, as I posted non-programming examples
of work https://maksfedorov. ru/blog/all/oformlenie-plastin...
If you don't have money for hosting for 190 rubles, find them
To be honest, I've never come across any free hosting, I don't understand the motivation to use them, and is this even possible? I advise you to take the bar higher and also not to look for homeless options ...
Take free hosting on Hostinger, for example. I xs, who else has them, but you can google.
True, they also ask for a little money for registration once a year, something like 100 rubles, I think.
Free and paid hosting is like a bus and a business taxi. The result is the same, but the convenience and representativeness are different. If you use free hosting for your portfolio, what will a potential client think? "He doesn't have a couple of bucks for decent hosting? It's either a scam or a scam."
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question