E
E
Eli_sh2016-09-11 13:24:16
JavaScript
Eli_sh, 2016-09-11 13:24:16

What can be done on one page with JavaScript?

I'm just learning web development. I can safely make up an adaptive one-pager. But what about JS , it is required everywhere, but I just can’t understand in which places it needs to be applied. The carousel can also be done with CSS. Is it just for popups?
What can and should be done in LP using JavaScript?

Answer the question

In order to leave comments, you need to log in

8 answer(s)
D
Dark Hole, 2016-09-11
@abyrkov

Really stupid question.
For user, server and DOM interaction.
For example, using CSS and HTML, you can’t react to a button click in any way, you can’t send a request to the server, and you can’t add new styles after the page is loaded.
In short, what is needed for what:
HTML - for the base.
CSS is for styling.
JS - for everything else

S
Sergey, 2016-09-11
Protko @Fesor

Try to implement a toaster without a backend (for example on firebase) as a single line application. Or any other web application. And estimate what will be there in JS (essentially everything).

S
sim3x, 2016-09-11
@sim3x

Table with values: sorting by fields, reaction to a click on a position with the output of additional information
According to the table, build a chart
By clicking, change to a chart of a different type

H
hoarywolf, 2016-09-11
@hoarywolf

Firstly, one-pagers are not always LPs.
It can be a full-fledged site, with prices, product descriptions, etc., where everything will be loaded by ajax.
Well, try without JS to compose an LP like this gardenestudio.com.br/index.php

U
utyfua, 2016-09-11
@utyfua

Everywhere the interactivity of the site is welcomed, but it is desirable to make it possible to work without js at all.
A real example: there is a website, more than 50% from phones (well, at least 25% in general from push-buttons) and losing them for the sake of purely interactivity is stupid
Facts (Google Analytics):b99d53b4e0e74bfabd0124d031301dce.png

P
Pavel Novikov, 2016-09-15
@paulfcdd

I strongly advise you to get rid of your idea that you "I can safely lay out a responsive one-pager" and continue to study web development further.

C
Cube, 2016-09-11
@liveunit

Anything, literally. If you want to do something, but run into the limitations of html5/css3, then you can do it with js. As I understand it, your question is "what to do", not "how to do it".

A
Artem, 2016-09-11
@proudmore

I don’t know about you, but when it came time for me to use js, I somehow immediately understood this. If you can do without js, then great. and js for the sake of js, such a solution.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question