Posts by Victor Pereira • 505 points
24 posts
-
1
votes1
answer301
viewsQ: Mysql structure in firebase/firestore
How to create a collection 1:1 and 1:n in firebase, as in the images, where I have company tables, city and categories, as would the relationship between them in the firestore, mainly the relation 1…
-
0
votes0
answers38
viewsQ: Restclient.post Angular 7
I’m trying to create a post like this, more in angular 7: get '/callback' do # get temporary GitHub code... session_code = request.env['rack.request.query_hash']['code'] # ... and POST it back to…
-
0
votes0
answers95
viewsQ: Error deploying Ionic 3
I’m trying to deploy in my app but this giving the image error, a blank project managed to deploy, more when I edit the screens of the app happens this error, so far I did nothing much, I only…
-
0
votes1
answer68
viewsQ: Remove a slide from a Swiper by class
I have the following Swiper: var swiperBanner = new Swiper('.swiper-container-banner', { slidesPerView: 1, speed: 1200, loop: true, grabCursor: true, freeMode: false, preventClicks: true, autoplay:…
-
0
votes3
answers393
viewsA: Generate an iframe from the youtube link with jquery
I found the answer: function getId(url) { var regExp = /^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|\&v=)([^#\&\?]*).*/; var match = url.match(regExp); if (match && match[2].length…
-
-1
votes3
answers393
viewsQ: Generate an iframe from the youtube link with jquery
I would like to generate a youtube iframe that I will return to a div as soon as the user paste the video link into a field, know create with php, more I would like to do with jquery, so already…
-
4
votes2
answers326
viewsQ: How to align a mosaic with CSS?
I have the following code: .exemplo { width: 800px; } img { width:100%; height: 100%; } .home-videos { /*@extend .col-md-3;*/ width: 200px; height: 150px; padding: 5px !important; box-sizing:…
-
1
votes1
answer437
viewsQ: Move an added file in the input file to a folder and pick up the path(url)
I have an input type file where I would like to move the file to a folder and take the path of that file to save to the database, using php, if possible I wanted to create a month and year hierarchy…
phpasked Victor Pereira 505 -
0
votes1
answer74
viewsQ: Redirect a url into a folder without displaying name
I have a local url: http://localhost/project/view/ and http://localhost/project/view/cadastro.php would like to have htaccess remove /view/, example: http://localhost/project or…
-
1
votes2
answers56
viewsA: Element update with Jquery with return from another script
This is an email sending by ajax/jquery, see if you can understand, it is very simple, this commented in the important lines: $(function() { $('#email').submit(function(ev) { ev.preventDefault();…
-
0
votes2
answers33
viewsA: Image with link is not opening the page
As you are using background elements, they do not take the image size, you need to set width and height for the elements, in the example below I put only the sizes and took the margins to show on…
-
0
votes3
answers767
viewsA: Remove attribute from a DIV only in mobile version
Use "window.innerWidth" it will pick up the total site size. $(document).ready(function() { var windowWidth = window.innerWidth; if(windowWidth <= 769) { $('.menu-mobile a').removeAttr('href'); }…
-
3
votes1
answer32
viewsA: Give Hide/Show items showing their contents
Is that your question? The "Children()" element is used to take direct children in jquery, I added a "$('ul.level0'). Hide();" to hide children who are not children. $('.level-top').on('click',…
-
1
votes1
answer622
viewsA: Increase space between words to occupy the width of the div?
It has the "Letter-Spacing" elements for width, the "line-height" for height and the "word-Spacing" for space in the words in css, I don’t know if that’s exactly what you want: p { letter-spacing:…
-
5
votes4
answers3300
viewsA: How to make Youtube embed responsive on the site, when opening want Width appear 100%
Take a look at this javascript/Jquery library, it’s used for responsive videos: http://fitvidsjs.com/ https://github.com/davatron5000/FitVids.js Only search about fitvids. For 100% video you add an…
-
0
votes1
answer143
viewsA: Form data is not sent with Event.preventDefault()
Try this, replace "Success" with "done" and add "fail", you can take the "action" from your form so when activating "Submit" it will have nowhere to go. $(document).ready(function() {…
-
0
votes2
answers128
viewsA: Code for javascript to display div only in one screen size x, Ex: pc
I just added the "window.innerWidth", it takes the full screen size. jQuery(document).ready(function($) { $(function(){ var nav = $('.objeto'); var window = window.innerWidth;…
javascriptanswered Victor Pereira 505 -
1
votes1
answer41
viewsA: How can I hide or show a div from one page to the other?
you can treat these messages by "GET" I’ll show you: in that part of your code puts something like: if ($conn->query($sql) === TRUE) { // Retornar para a página index e avisar o utilizador que…
-
1
votes2
answers190
viewsA: Problems with accentuation
Try to place a header before your html, like this: <?php header("Content-type: text/html; charset=utf-8"); setlocale(LC_TIME, 'pt_BR', 'pt_BR.utf-8', 'pt_BR.utf-8', 'portuguese');…
-
0
votes3
answers128
viewsA: Create a div at the top of the blog (wordpress) to float fixed while scrolling down
Look has a solution with jquery $(function(){ var nav = $('.classDiv'); $(window).scroll(function () { if ($(this).scrollTop() > 95) { nav.show(); } else { nav.hide(); } }); }); This code will…
-
1
votes3
answers121
viewsA: Interesting question about inheritance and polymorphism
From what I understand the operation in r is: int r = 10 + 100 + 500 + 1100; why: "obj1.metodoX()" is the first method of class a, where it returns 10; "obj2.metodoX()" is the first method of class…
-
10
votes1
answer418
viewsA: How to change another element with pure CSS?
You can do it like this: div { position: relative; } input { display: block; transition: top .3s, left .3s; position: relative; top: 17px; font-size: 12px; } label { transition: .2s linear;…
-
2
votes4
answers9608
viewsA: How to select more than one item in a Select Option
I believe you’ve found the solution you described: https://stackoverflow.com/questions/17714705/how-to-use-checkbox-inside-select-option Are checkbox within select. code: var expanded = false;…
-
7
votes4
answers9608
viewsA: How to select more than one item in a Select Option
You can create a normal select with the Multiple tag on shipping, where the user selects with Ctrl the multiple options in his select, when passed by post, will receive something like: <form…