Posts by periotto • 106 points
7 posts
-
0
votes0
answers3
viewsQ: Save build folder of a React project running with Docker
I already have a React project running on Docker, but I need to deploy it to S3 So I don’t have a server where I can run Docker. The process I do today is to run npm run build on my machine,…
-
1
votes1
answer467
viewsA: Generate multiple . js files with webpack
I use within webpack.config a function to grab all the files at the root of my folder //get js Files in folder let getFiles = (paths)=>{ let ret = {}; paths.forEach((path)=>{ let fileName =…
-
3
votes2
answers1301
viewsA: CSS condition with jQuery, e.g.: if div1 is visible the div2 will also be
Since you are using jQuery you can use the toggle() $("#esconde").on('click', function(){ $("#botao,#parcelamento").toggle('slow') }); <script…
-
2
votes1
answer67
viewsA: Loops do not keep values
Every time the code executes the loop, it under-writes the values try so: public static void main(String[] args) { int x; double percentual=0.005, ValorSaida, ValorPercentual=0;…
-
0
votes3
answers777
viewsA: Sum amount of repeated PHP variables
Dude I had a similar problem and I solved it like this: for ($i = 0; $i < count($array); $i++) { if (isset($array[$i])) { $nome = $array[$i]["nome"]//o nome do produto //assim ele passa por todos…
-
1
votes2
answers135
viewsA: Checkbox with dependencies
You can check with the is(':checked') from jquery which quantity was selected and only set it in its array for(){//percorrendo todos os ingredientes if($("#input").is(':checked')){…
-
2
votes2
answers1206
views