Posts by Diego Vieira • 3,782 points
87 posts
-
2
votes1
answer89
viewsA: How to execute one at a time items from a sequence array using Promise - Javascript
You can expect the return of each trial. I did it as follows, using the async and await, so the loop in the array will await the return of your file for each item. const durations = [10000, 5000,…
-
0
votes2
answers70
viewsA: Fadein and Fadeout in sequence
No need to use JS for this type of animation, as you can see in the example below you can apply dynamically or hard-coded delay for each item, using the attribute Animation-delay. This attribute…
-
1
votes2
answers76
viewsA: Difference between element.class{} and element . class{}
When you use the following expression in your CSS, i.e.. .minhaClasse .subClasse { ... } It occurs as follows: Element > Element, as the image below describes. When expressed in this way,…
-
-1
votes2
answers887
viewsA: Align items in css grid
I took your code and made the following change: In your class .soon I switched to flex and repositioned the element to the end of the block. html, body{ margin: 0; padding: 0; box-sizing:…
-
2
votes2
answers38
viewsA: Doubt about site pagination component
The name of the component you are looking for is called Breadcrumb. Also known as Structural navigation. Structural navigation is a technique used in user interfaces to provide them with a…
-
1
votes2
answers41
viewsA: Doubts with this function
It is the same function, but written in different ways, what situation should I use one function with parameters and another not? You should use a function with parameters when this function…
-
4
votes1
answer137
viewsA: What is the difference between export, set and edit . bash_profile?
First you better understand how the terminal works, I will explain below what actually happens in a very simple way. When you use the EXPORT or the SET directly in the terminal/console, the values…
-
1
votes2
answers112
viewsA: How to run a subconsultation on LINQ C#?
It would be something similar to this, it would help if you had the objects, variables or part of your code to better contextualize in your scenario. // SELECT filhoID FROM relacoesobjeto WHERE…
-
0
votes1
answer26
viewsA: do not remove if first line html java
Just add this in your delete method, a small check of how many tr exist. $(table).delegate( '.tr_clone_del', 'click', function () { if($('.tr_clone').length > 1) { var thisRow =…
-
0
votes1
answer232
viewsA: sort with Angualrjs / orderby by a field that will be created later
Follow the solution to your problem. In addition to putting the ng-init put a variable called $scope.predicate with the field you want to filter. Because it is a nested field, that is, child of the…
-
1
votes2
answers1231
viewsA: CSS3 Transform Skew (one corner)
I think you can do it this way, the only problem I see is the question of responsiveness. .div2 { background:#3498db; height: 80px; width: 250px; position:relative; } .div2:after {…
-
6
votes1
answer88
viewsA: Fill in the bar?
It’s quite simple, Rigger responsible for the animation in its code is the hover, ie, will only run the animation when passing the mouse. To do while the page opens, just create a keyframe. I also…
-
4
votes4
answers613
viewsA: Change the position of a <li> to the first position
I created an example based on what I understood about your inquiry, see if the code below matches your need. $(document).ready(function(){ let opcoes = $('.opcoes'); let opcoesItems =…
-
4
votes2
answers765
viewsA: Help with jQuery. on calculation of plots!
I made an example based on your fields of how you should behave. I basically used two variables to compare the entered value and store the lowest occurrence between the plots. I also added an Array…
-
0
votes3
answers1020
viewsA: How to send data from a form received from an ng-repeat with Angularjs
How did you do the ng-repeat in your array, each object within this array will have unique values. All you need to do is send via POST your collection which is moviments.data. I set the example…
-
8
votes2
answers91
viewsA: How to shorten the process of creating an array without the need to write all indexes?
You can use the function array_fill, this function returns a filled array. $meuArray = array_fill(0, 20, NULL); Where in this array all spaces will be filled by null.…
-
2
votes4
answers1249
viewsA: What is the <canvas> tag for?
HTML5 Canvas focuses on drawing/image processing with 2D and 3D context Definition by @Gabriel Gartz Basically they are geometric shapes but it is also composed by images (sprites), the best example…
-
1
votes1
answer510
viewsA: Object alignment with Bootstrap
Just use as in the code below. You must use the class .row to separate into lines in the grid system. Try following as in the bootstrap documentation. <div id="accordion-opcoes"> <div…
-
2
votes3
answers614
viewsA: What happens to three-digit hexadecimal colors?
It’s simple, read it like this. Para #000 - RGB Para #000000 - RRGGBB
-
2
votes2
answers413
viewsA: Is it recommended to use the TFS for those who are starting and have a simple project?
TFS is more than a versioning tool, you can use it to manage the entire project and other projects. You will be able to use Kanban to organize tasks and various other methods to help organize. Such…
team-foundation-serveranswered Diego Vieira 3,782 -
2
votes1
answer1350
viewsA: Site redirected to Nginx page
This is happening because on the Nginx server it is treating as server name only the www.tagon8.com address.. To fix the error just put in the server name the following. server { listen 80;…
nginxanswered Diego Vieira 3,782 -
1
votes2
answers1081
viewsA: Pick Selected Element from UL
You can adapt this code to your need. //Aqui pegamos todos os elementos que possui a classe '.file' var items = document.querySelectorAll('.file'); //Depois no loop adicionamos o evento para cada…
-
4
votes3
answers1368
viewsA: How to make a burger menu open from right to left?
I believe adding the position in right:0 and the translate in 100% your problem will be solved, as suggested also by @Brunoromualdo, put the position in fixed. var menu =…
-
0
votes1
answer98
viewsA: Dealing with JSON differences because of previous versions
Do you already work with versioning right? Then you already have the solution in hand. What I recommend is to indicate and use a pattern when making changes to the API, you can use Semantic…
-
2
votes3
answers1728
viewsA: How to recover information from database by id on Ionic?
If you are passing the ID through the route, just retrieve it as follows in your controller. app.controller('ListaDistritos', ['$rootScope', '$http', '$stateParams', function($rootScope, $http,…
-
0
votes5
answers511
viewsA: Problem with footer on mobile sites
I believe that this structure can solve your problem. In this structure basically the div wrapper causes the footer is always pulled to the bottom of the page, regardless of the content of the page.…
-
2
votes3
answers1823
viewsA: How to implement spinner loanding in Angularjs?
You may be using this module angular-loading-bar it is very easy to implement and modify. It certainly meets your need. It works as follows, all service requisition $http it will "capture" and will…
-
4
votes3
answers242
viewsA: Show list of 6 in 6 items
The idea is to make each menu option (<li>) has a fixed size for both width and height. Obviously it can do this dynamically and cause the jQuery take the amounts and make due accounts in the…
jqueryanswered Diego Vieira 3,782 -
7
votes2
answers1341
viewsA: How to make a menu that has a geometric figure in the center and is responsive?
I built this example following the bootstrap structure. Analyze and place according to your need. I created a div calling for .trapezoid-search and within a input[type=text] <header> <nav…
-
6
votes2
answers225
viewsA: How do I get the files pulled from the root of the site?
You can set in two ways 1º - using "/" before links. Ex.: <img src="/images/uploads/upload-10-50-100.png" alt="" /> 2º - Create a domain with your scripts, images and css. Ex.: <img…
phpanswered Diego Vieira 3,782 -
2
votes2
answers90
viewsA: How can I add a tagname(data-state) to my Hidden input with attr?
To add an attribute you can do it in two different ways. 1º using jQuery.attr() $('.elemento').attr('data-state', 'valor'); 2º using jQuery.data() $('.elemento').data('state', 'valor');…
jqueryanswered Diego Vieira 3,782 -
2
votes3
answers780
viewsA: JSON data capture with PHP
If you have the string already stored in a variable just use the function json_decode of PHP. This function will convert the string to JSON for a array. Then staying that way $parseObj =…
-
4
votes3
answers49868
viewsA: Overwrite image with a DIV
See below some possibilities of how to do. Option 1 Using a div with an image in background. Demo html, body { height: 100%; min-height: 100% } .background { background:…
cssanswered Diego Vieira 3,782 -
3
votes1
answer1119
viewsA: How to create a Cascading Dropdown?
Do as follows, below is an example with a table with the following structure clientes(ClienteID, Nome, Telefone) Controller var clientes = (select u in model.clientes ......).ToList();…
-
2
votes4
answers10036
viewsA: Apply color to font in element clicked only with CSS
I don’t know how to keep the color only with CSS after clicking, however, to keep the color after the click should be a link and the selector would be :visited To set the color when clicked would…
cssanswered Diego Vieira 3,782 -
2
votes1
answer85
viewsA: Problem with AJAX
Do it like this, it can work in two ways. The first is by making the action just return to partial view, that is, the view without the master page (_Layout.cshtml). Controller (First form) public…
-
1
votes1
answer607
viewsA: Pick up complete array with Angularjs
Just do it this way HTML <div ng-controller="myCtrl"> <input type="text" ng-model="item.title" list="comicstitle" /> <select id="comicstitle" ng-model="item.titles"> <option…
-
3
votes2
answers3463
viewsA: Attach elements to the footer of the div
I created a small structure for you to understand how it works. HTML <ul> <li> <div class="footer"> <h2>Titulo</h2> <span>Info</span> </div>…
cssanswered Diego Vieira 3,782 -
2
votes1
answer290
viewsA: Media Queries works on smartphones but not in resolution for tablet
I made an example with your code and also some adjustments in CSS (specification of minimum and maximum sizes). #formulario { background:#000; } @media (max-width: 480px ) { #formulario { width:…
css3answered Diego Vieira 3,782 -
6
votes3
answers2635
viewsA: How to put my ASP.NET site online
By file extension I can notice that the structure is of a MVC C#, all you need is a Windows hosting with Net Framework support. As our friend above said, .cshtml has not only HTML the same is…
asp.net-mvcanswered Diego Vieira 3,782 -
6
votes4
answers12028
viewsA: How to get height of a div by jQuery?
utilize setTimeout in your code so that time of the same render and run. setTimeout(function() { var alturaDivTxt2 = $('.slide-txt').height(); var autoH2 = $(".autoH-banner").height(); var…
-
5
votes2
answers526
viewsA: What is two-factor authentication?
Basically reinforce security and know if you are yourself. "Two-factor authentication provides enhanced security because requires the user to meet two authentication criteria: a combination of…
-
1
votes2
answers4814
viewsA: Foreach within a cshtml(view) from a controller
Just by reinforcing, you can pass the object in two ways to the view public ActionResult minhaAcao { List<ObjetoModel> objeto = (from u in objetos select u).toList(); return View(objeto); }…
-
1
votes3
answers6532
viewsA: How to detect click on Chrome Back/Next/Reload buttons
Following the response of @Rowaraujo not possible, but you can use refresh event. window.onbeforeunload = function(e) { return 'Evento disparado!!'; }; Follow an example: DEMO…
-
2
votes2
answers1762
viewsA: How to create a responsive pricing chart?
You could be adapting this model to your liking, using the same structure. DEMO - JSFIDDLE…
-
2
votes2
answers8189
viewsA: Responsive logo that works on all browsers using CSS3 and Bootstrap
In bootstrap there are some helpers that can serve you very well during the development of the project, and at the moment you can use the class .img-Responsive. This class will treat "automatically"…
-
12
votes5
answers36368
viewsA: Take value from an attribute in td
To use a "custom" attribute you must use the data-, set an example for you to understand better. HTML <table> <tr> <td data-nome="Lorem Ipsum">Nome attr data-</td>…
jqueryanswered Diego Vieira 3,782 -
1
votes1
answer138
viewsA: Remove magnifying glass from search in Webkit
Reset to the input[type=search] CSS input[type=search]::-webkit-search-cancel-button, input[type=search]::-webkit-search-decoration, input[type=search]::-webkit-search-results-button,…
-
1
votes1
answer75
viewsA: Popular combo with ajax call
To receive and update via Ajax, do so HTML <table> <tr> <td> <label for="descricao">Descrição:</label> </td> <td> <input type="text" id="descricao"…
-
3
votes1
answer74
viewsA: Warp Shadow - CSS
I believe what you’re looking for is this HTML <div class="box boxColor shadow_box"> Warp Shadow <span class="warp"></span> </div> CSS .box { padding-top: 50px;…