Posts by Luiz Felipe • 106 points
6 posts
-
0
votes2
answers459
viewsA: Modify breakpoint of navbar
I just removed the property display:none !important of .navbar-collapse.collapse and solved. You removing the class .navbar-collapse would have problems in the layout. Look how it looked: nav…
-
2
votes2
answers177
viewsA: Smooth height change
The height does not decrease smooth because only the navbar was with 2s Transition. Class .test was not changing the Nav style, was changing other tags within the Nav (like the container and the…
-
3
votes5
answers3553
viewsA: Only get a part of a url
Use the function split() of Javascript, thus: NOTE: The example will print an Alert Undefined because there is no url with parameter "? ip=", but test with its url that will work. <!doctype…
javascriptanswered Luiz Felipe 106 -
1
votes1
answer116
viewsA: Change Class according to ID
Use the jQuery date function to pick up the data-bind value and check with the number, like this: <!doctype html> <html> <head> <meta charset="utf-8"> <meta…
-
0
votes5
answers273
viewsA: Taking html class with PHP variable in javascript
So, if your js is inline, you can use php inside the script tag, see how: <!doctype html> <html> <head> <meta charset="utf-8"> <meta name="description" content="">…
-
-1
votes1
answer81
viewsA: Working with Mysql/PHP dates
There is a key that is being closed too much, that would be the problem? try this: <?php $data2 = new DateTime($result['validade']); $data1 = new DateTime(); $intervalo = $data1->diff($data2);…