A
A
Andrey Baranichenko2014-02-26 00:10:42
Bootstrap
Andrey Baranichenko, 2014-02-26 00:10:42

How to connect scrollspy plugin from twitter bootstrap?

In general, does this beast work normally for someone? Yesterday I smoked manuals all night and didn’t really find anything, in principle, I implemented everything by other methods, it was just too lazy to reinvent the wheel if there is a built-in function. If someone used it please throw the code, I wonder how it was launched

Answer the question

In order to leave comments, you need to log in

6 answer(s)
Y
Yuri Lobanov, 2014-02-26
@iiil

What's so difficult? It works fine on bootstrap site.

A
Andrey Baranichenko, 2014-02-26
@burick

And you try, I didn’t manage to bend it, and the question was for those who used it, but apparently you don’t belong to those)

Y
Yuri Lobanov, 2014-02-26
@iiil

jsfiddle.net/iiil/ruABR
Here, I blinded it in 5 minutes, sorry for the messy layout - I did it cleanly so that you can see the scrollspy work.
No, I'm not trolling. In all seriousness - nothing complicated, just attentiveness.

A
Andrey Baranichenko, 2014-02-26
@burick

O_o yes, it works, damn it, but I stupidly don’t want to add class = "active", I don’t even know why, maybe the assembly is not the latest, thanks for showing that it works, there will be time to figure out why I don’t want to, at the moment I solved everything by other methods, but it became very interesting what exactly my problem was, and the main thing is that the scripts of the left did not have its own current, though the menu is not his, but it's not critical, the selectors are indicated ... thanks again, I'll definitely look , just why invent something else if everything is already there and you just need to sort it out

D
DevMan, 2015-05-22
@NooBiToo

line:
array:

var fruits = document.getElementById("input").value;
fruits = fruits.split(' ');

PS delimiter in split tweak to fit your needs.

D
Dmitry Shinkar, 2015-05-22
@DeadCowsDontMoo

I just wanted to write something like "where's the actual array?" but I got ahead of myself...)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question