Posts by Pbras • 570 points
34 posts
-
2
votes1
answer201
viewsA: How to centralize a jute list with Bullets?
Just add list-style-position: inside; The div who has the Bullets. .text-space{ display: flex; width: 500px; background: rgba(0,0,255,0.2); } .text-space>ul{ text-align: center; }…
-
1
votes2
answers62
viewsA: where I find these icons
That site is using Glyphicon as images: <span class="glyphicon glyphicon-off logo-small"></span> <span class="glyphicon glyphicon-heart logo-small"></span> <span…
-
2
votes2
answers113
viewsA: Keep gif for a while after removing the mouse
Response based on @Victorcarnaval To get an image of the same size you have to get a program like Photoshop and create a gif of the same size (which in this case is the attack animation). You can’t…
-
1
votes1
answer76
views -
0
votes2
answers55
viewsA: Set attributes in a single JS block
You can simplify attributes this way: document.getElementById("test").href = "http://www.cnn.com/"; document.getElementById("test").id= "novoID"; document.getElementById("test").required = false;…
javascriptanswered Pbras 570 -
1
votes2
answers185
viewsA: Adjustment of the canvas in css [closed]
Where Voce is placing the left, middle and right classes also put an id with the same example name: id="esquerda"; And insert the following script at the end of your file: <script>…
-
1
votes2
answers28
viewsQ: Adding 0.1 to a setInterval gives rounding problems
I have a setInterval running every second calling a function myTimer which adds 0.1 to a total value and shows on screen. É suposto ir 0.1->0.2->0.3->0.4->0.5->... But it’s going…
-
-1
votes3
answers45
viewsA: Pointer positioning
You’re doing the var print str but that var has no value at all so you’re printing a whitespace.
-
0
votes2
answers331
viewsA: php - Cast double with number_format
The function number_format() accepted only float, if you want to use double does everything with the double before you cut to the number of decimal places you want. $number = 50/3; //Fazer tudo o…
-
0
votes1
answer37
viewsA: Autoplay Cross-Browser
It shouldn’t work because you don’t have the file in your directory. horse.mp3 and horse.ogg should not exist, makes direct link: src="https://www.w3schools.com/tags/horse.ogg" and…
-
0
votes1
answer41
viewsA: Problems with events in JS
You have both radio buttons with the attribute checked tries to remove one of them. <div class="custom-control custom-radio"> <input type="radio" id="dinheiro" name="forma-de-pagamento"…
-
0
votes2
answers76
viewsA: Problems with getimagesize() PHP
Makes a vardump($fotoDir); and confirms whether $fotoDir is as string.
-
1
votes2
answers47
viewsA: How to include a file that is inside another folder on the same server
Try to include from the direct link. include(https:http://www.example.com/home/runcloud/webapps/domain1.com/plugins/meu-plugin/plugin.php'); changes the www.example.com/ for your website. or you can…
-
3
votes1
answer49
viewsQ: Add Class if it matches a pattern
I’m trying to get you to add a Class is an element through its ID if it is a certain kind of pattern. if (/^([0-9]{4}[\-]?[0-9]{3})$/.test('#codigoPost')) {…
-
0
votes1
answer54
views -
0
votes1
answer345
viewsA: What is the correct syntax to turn a variable into Bold or Color (PHP)?
You can put $tour_availability between a tag <b> to give only Bold: $tour_availability = '<b>'.$tour_availability.'</b>' To change the colors and other categories you should put…
-
1
votes1
answer582
viewsA: Enable form fields with JS with Radio Button
It should be something like this, then stick on the Divs with id="inv" and id="inv2" the inputs that you want to appear depending on the button that is pressed. $(function() {…
-
0
votes0
answers26
viewsQ: Is it possible to exchange the Index of a database table with the following?
One have a mysql table (tbl_test) that has a unique ID, name string and an int order. ID | Nome | Ordem 1 | name1 | 1 2 | name2 | 4 3 | name3 | 3 4 | name4 | 5 5 | name5 | 2 I wonder if it is…
-
1
votes3
answers159
viewsA: Doubt how to capture the character’s animation in Unity
You can do it using a if within another: if (Input.GetKey(KeyCode.LeftShift){ if((Input.GetKey ("w"))){ animationController.PlayAnimation (AnimationStates.RUN); } } or you can do with the and using…
-
0
votes2
answers626
viewsA: Resize photos from Bootstrap and Javascript
Squeal <div class="row col-md-6 col-md-offset-3"> for <div class="row col-md-12"> You’re using only 6 bootstrap 12 speakers, and countering that gets the blank.…
-
8
votes1
answer3207
viewsA: Back to top button only with CSS. Smooth scroll only with CSS is possible?
Yeah, just stick it in, scroll-behavior: smooth;in html. https://www.w3schools.com/howto/howto_css_smooth_scroll.asp If you don’t want to put in all the Scrolls on the page you can create a new css…
-
1
votes1
answer100
viewsA: src iframe error
The problem is in [src]="g.caminho", You shouldn’t pass paths like that. More information: https://angular.io/guide/security#xss…
-
0
votes1
answer221
viewsA: "Somarproduct" function of Excel, does not sum the total of two distinct items in relation to the list,?
SOMARPRODUCT treats non-numerical matrix entries as if they were zeroes. https://support.office.com/pt-br/article/fun%C3%A7%C3%A3o-somarproduto-16753e75-9f68-4874-94ac-4d2145a2fd2e Your column E…
-
0
votes2
answers249
viewsA: Truncate text and do not show unwanted characters with Rails
<%= truncate(sanitize service.description, length: 15, ) %> Breathes with the method sanitize(html, options = {})
ruby-on-railsanswered Pbras 570 -
-2
votes3
answers307
viewsA: transform result into an array so -Function select php
$array = array(); while($row = mysqli_fetch_array($executar)){ if($colunas!='*' AND $numerodecolunas>0 ){ for($l=0;$l<$numerodecolunas;$l++){ $array[$ii] =…
-
1
votes1
answer19
viewsA: Post Caurosel - I can’t edit CSS
If it’s the same as the demo:http://wordpress.teastudio.pl/category/product/wp-posts-carousel/ The img class is probably ". wp-posts-Carousel-image", so just change the CSS of that.…
-
0
votes2
answers335
viewsA: How to return a special character to a query
select * from PC_Tab410 where MesAno='08/2018' AND Nas_Rec='*' Where * is the character you want. I advise you to copy the same character from the database to that querry because of the formatting…
-
1
votes2
answers88
viewsA: Can you create variables within a block and use them later?
Variables a2 and d are places in that block and can not use outside because they are declared as local: local a2 = 2*a local d = sqrt(b^2 - 4*a*c) Variables x1 and x2 are global because it does not…
-
2
votes2
answers1393
viewsA: Loop problem with switch case
You got the opc = menu(); out of your do while. In other words, your variable opc does not update after each cycle stays the same and keeps the first value entered. Squeal: do { opc = menu();…
-
4
votes3
answers16658
viewsA: How to round up with Python?
Try to use the function math.ceil(). x = 10 x= x % 3 x = ceil(x)
-
0
votes2
answers464
viewsA: How to sound (beep)? - Xamarin Forms
The beep function is not compatible with Android platform. To run a warning sound on Android follow this guide.…
xamarin-formsanswered Pbras 570 -
0
votes2
answers157
viewsA: Sum of numbers from right to left
Use the rest of the division for 10: int resto= 20 % 10; //obtem o resto da divisão por 10 int valorSemDireita= 20 / 10; //Como é um inteiro vai retirar o nº da direita resultado= resto +…
-
0
votes2
answers137
viewsA: Very slow python code?? Access to Access database with pyodbc
It is very likely that the time it takes is of the querry query="SELECT * from Curvas_de_carga" Try to further restrict the search for querry using "Where", for example using a date to limit the…
-
0
votes1
answer52
viewsA: Help with logic in SELECT
Tries to put the player Ids you find when running the macthmaking script in an array $array players. array_push($array, $jogador->id); Then just check the array for duplicates. function…