Posts by iLeonardo Carvalho • 561 points
35 posts
-
0
votes1
answer11
viewsA: How to use Stylus lookup on an Object hash
I found a method using through interpolation, in case I modified for to send a value and insert into mixin type: baseTag(type) if type in $color border-color: $color[type].primary else error('Not a…
-
0
votes1
answer11
viewsQ: How to use Stylus lookup on an Object hash
There is a way to use the function lookup to apply hash objects within a for? I’m using it this way: $color= { $success: { bg: #4caf50, ... } , $error: { bg: #f44336, ... } , $warning: { bg:…
-
1
votes1
answer45
viewsQ: Object Keys of a JSON is saving the last value
People when I run Object Keys it captures the entire Object Array and updates the data of the component only not all and the output only comes the last Array value: var obj = { index: { path: "/",…
-
0
votes1
answer211
viewsQ: How to remove the first key that involves all values from a JSON
It is possible to remove the first key { } of a JSON and add in lines below (Enter), of each value? var obj = { "arvore": "/", "avo": "obadias", "pai": { "eu": "Leonardo" } } class Access { static…
-
1
votes1
answer29
viewsQ: Set a default value in Binding.value Vue Directive
People are creating a simple Directive and wanted to know how to put a value if the binding.value for undefined in a simpler way, much like the Vue Component in which you can set the defalut value?…
vue.jsasked iLeonardo Carvalho 561 -
1
votes1
answer39
viewsQ: Calculate using Math operations on LESS
I’m trying to add one number with a string and LESS is not interpreting as I wanted, see the example: @screen-sm: 768; @screen-md: 1024; .col-tablet(@rules) { @media (min-width: @screen-sm+'px') and…
lessasked iLeonardo Carvalho 561 -
0
votes2
answers188
viewsQ: How to Stop the Write On-Screen Effect with jQuery
People wanted to know a way to stop writing on the screen when you arrived at the last text within an array, I improved the code of the Simon Shahriveri see now the code rewritten in jQuery: 'use…
jqueryasked iLeonardo Carvalho 561 -
0
votes1
answer433
viewsQ: Place a function inside the ENV in the Dockerfile
I need to create a Variable that captures the Gateway from the Docker network interface, follow the command: RUN declare -x SERVER_IP=$(ip route|awk '/default/ { print $3 }') ENV…
dockerasked iLeonardo Carvalho 561 -
0
votes2
answers1138
viewsA: Capture the backgroundColor of an Element in jQuery
Watching that I’m inside VueJSincluding the jQuery within a component in "ready" Lifecycle, does not require the document ready, I made some tests if Vue was passing the Elements correctly and then…
jqueryanswered iLeonardo Carvalho 561 -
1
votes2
answers1138
viewsQ: Capture the backgroundColor of an Element in jQuery
I’m having a problem and I don’t know if it’s a bug, because jQuery isn’t capturing the background-color of the element passed by css(), I’m using an attribute data-color to configure the color of…
jqueryasked iLeonardo Carvalho 561 -
1
votes1
answer38
viewsQ: touchend as mouseleave not to activate onClick effects in jQuery
I have a problem regarding the click of touch whether he is still on top of the element or not (in this case the mouseleave) I modified a code already posted on the Problem capturing element…
jqueryasked iLeonardo Carvalho 561 -
0
votes1
answer276
viewsQ: Create an ISO in Docker and you don’t have it in the hub.Docker
I am in doubt about Docker, because I already use Vmware and virtualbox well, in this case I wanted to install a Firewall OPNsense and I realized I don’t have a container prepared in the Docker and…
dockerasked iLeonardo Carvalho 561 -
1
votes2
answers843
viewsQ: Insert into HTML and with Angularjs functions
People have problems when I insert one HTML containing a module ng, and when I click to run nothing happens. See Code: //HomeCtrl.js module.exports = function($scope) { // Create Note $scope.create…
angularjsasked iLeonardo Carvalho 561 -
1
votes2
answers2300
viewsA: How to make HTML/CSS code clean and optimized?
Well, maybe it’s good to start applying to the good programming practices that the W3C provides because with these practices it is possible to realize future maintenance and be interpreted by other…
-
1
votes1
answer329
viewsQ: What is the difference between the element and this in jQuery’s $.each function
During the development I am in doubt the correct use of some tools, among them is in the use in a $.each of jQuery the element and the this, take the example: $(document).ready(function() { var $app…
jqueryasked iLeonardo Carvalho 561 -
1
votes1
answer678
viewsQ: First search Element inside another Element if it exists in jQuery
I’m having a problem finding an Element within Another and checking if it is first element, see the structure: <div class="form-group"> <input type="text" id="teste1"…
jqueryasked iLeonardo Carvalho 561 -
0
votes1
answer40
viewsQ: Problem capturing element position when there is a scroll in jQuery
I’m having a problem when element is on the scroll browser and jQuery does not correctly capture the position, I created a simple Tab-bar and when the size is other past is placed the scroll and at…
jqueryasked iLeonardo Carvalho 561 -
0
votes0
answers268
viewsQ: Save a function value to a Global Variable in jQuery
with a problem in the development of a dropdown simple, I’m not able to take the value of a function to pass to others, the values I’m looking for are $target and dropdown which corresponds to the…
jqueryasked iLeonardo Carvalho 561 -
1
votes1
answer49
viewsA: Error in css content
The Value of content is an requested source? And if so, the correct use must be in :before or after of the element according to W3C. Example: #app { position: relative; background-color: #ddd;…
-
2
votes0
answers13
viewsQ: Add a Parent '&' to a variable using LESS
I have a problem but I do not know if it is possible, I’m wanting to edit some class putting a & follow the example: .bcolor(@prefix, @suffix) { .@{prefix}red@{suffix} { background-color: red; }…
lessasked iLeonardo Carvalho 561 -
3
votes0
answers299
viewsQ: Vue-html-Loader (Webpack+Vue-Loader) does not find images in the root folder
I’m having trouble attaching the images contained in src of HTML5 within a route taken in the vue-router, for the Webpack does not find the image at the root of the project, see the structure: C:. |…
-
4
votes1
answer477
viewsA: How to configure Require.JS
after many attempts I managed to solve the problem and I will be passing the tutorial to help those who are starting configure the Requirejs: First of all I changed the structure of the Project: C:.…
-
1
votes4
answers8186
viewsA: Mobile does not enable USB Debugging
In fact Samsung devices had the Kies but was discontinued and are old devices, try to download the new driver packages on this site: gogorapid.com on it I have already found the drivers of my Tab S…
androidanswered iLeonardo Carvalho 561 -
2
votes1
answer1956
viewsA: How do you copy the value of one DIV to another DIV with Javascript?
To create in Pure Javascript just follow this example: // Elemento com o Texto var elemento = document.getElementById('teste').innerHTML; // Escrevendo em outro Elemento var texto =…
-
2
votes3
answers807
viewsA: Force url forwarding with htaccess password
I do not think it good to create an htaccess file and in it have the user and its settings, then just copy and paste in the folders you want to block, because at a cost of processing the Web Server…
-
2
votes3
answers807
viewsA: Force url forwarding with htaccess password
Well depends on the Web Server, if it is the Apache you can put these settings in your VHOST: <Directory "/usr/local/apache2/htdocs/seusite.com/"> Options Indexes FollowSymLinks MultiViews…
-
4
votes1
answer477
viewsQ: How to configure Require.JS
Óla gente, I am in doubt of properly configuring the RequireJS, as I also have doubts about the organization of Trees to configure the baseUrl and so I’m going to demonstrate how I’m configuring: .…
-
-2
votes1
answer235
viewsQ: How to check Body Width every time you change Jquery Size
I was checking the size of body for $(window).resize but I realize that when starting the page initially the right size but does not apply to classes. Follows the Code:…
jqueryasked iLeonardo Carvalho 561 -
1
votes1
answer59
viewsQ: Create Multiple Events using Variables to Specify Event for Function in Jquery
I need to conduct tests for events Touch and Mouse in Jquery, and focused on reducing the cost of performing and trying to simplify the code to stay visible, simple and fast to handle choices,…
jqueryasked iLeonardo Carvalho 561 -
0
votes1
answer141
viewsQ: Decrease the Elements feature in the DOM applied in the Jquery that generates Ripple
Well I am with the effect of Ripple almost ready but I notice some bugs mainly to delete the effect after applying but it does not affect the execution but rather the Performance of the Browser,…
jqueryasked iLeonardo Carvalho 561 -
1
votes1
answer1108
viewsQ: CSS selector to modify TAG before or after inside the div
I’m in doubt when applying some styles to css. I wish to modify a tag using a div within it: header { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; display: flex;…
-
1
votes1
answer187
viewsQ: CSS selectors (H1 - H6 applying after p)
I’m in doubt of applying some effects to css. I tried with the following css selectors: h1+p, h2+p, h3+p, h4+p, h5+p, h6+p { margin: 0 0 0.75em 0; } h1~p, h2~p, h3~p, h4~p, h5~p, h6~p { margin: 0 0…
-
4
votes1
answer933
viewsQ: Convert $Scope to string in ng-model by Angularjs
I am in doubt, according to the tutorial of Angular the ng-model only accepts one $scope if he goes string, giving: Error: [ngModel:numfmt] expected `1234` to be a number Possible then convert to…
-
1
votes3
answers1211
viewsA: Data registration with Angularjs and PHP does not work
As you use ng-Ubmit on a specific location you can repurpose and summarize the code even in ng-model, I will pass on my way to create <form> with ng-submit with angular based on what you need:…
-
2
votes2
answers343
viewsQ: Error passing PHP Array to Angularjs by JSON
I am in doubt in a code that I am developing, I am passing a query in the Mysql database and I need this answer to return in JSON for Angularjs to understand and write in HTML. Follows the code:…