Questions tagged as 'javascript'

2
answers

How to prevent an image from loading on the mobile?

I'm trying to prevent certain images from loading on mobile, they all have display: none but I know they will load by default, does anyone know any alternative not is using background-image ?     
asked by 30.01.2017 / 19:34
1
answer

Sort a column of a table alphabetically

I have the following table and its code and I want to sort the table alphabetically so as to get "AC / BD / IC" instead of what is. //javascriptparaadicionarelementosfunctionadicionar(){vardisciplina=localStorage.setItem("Disciplina",documen...
asked by 07.12.2016 / 12:53
1
answer

Show banner in site footer

I would like to show a fixed banner in the footer of my site, however I want him to follow the site's content conforms for rolling the site for downloaded or up, I could already show the banner, evil was unable to get him to accompany the page....
asked by 30.01.2017 / 19:22
2
answers

putting parcel value into dynamically created input

I have the following code: Total: <input type="text" class="form-control" id="total" name="total" value="220,00" disabled="disabled"> Data: <input type="text" class="form-control data" id="datavenda" name="datavenda" value="07/12...
asked by 07.12.2016 / 23:19
1
answer

How can I search only address through google maps?

Here is an example in javascript: function initAutocomplete() { var map = new google.maps.Map(document.getElementById('map'), { center: {lat: -33.8688, lng: 151.2195}, zoom: 13, mapTypeId: google.maps.MapTypeI...
asked by 19.01.2017 / 04:06
1
answer

Add or reduce a value in .top when clicking the link for ID

I have a jQuery function that does a smooth scrolling on the page by clicking the ID link. $(function() { $('a[href*="#"]:not([href="#"])').click(function() { if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'')...
asked by 19.01.2017 / 06:14
1
answer

onClick on dynamically created components React

I have a user-defined component called <Match> that is dynamically created inside another <Event> component. But putting an onClick on the component throws an exception. How to solve the problem, being that for e...
asked by 30.11.2016 / 14:54
1
answer

How do I get the video size from the path?

Please follow the image below: Thevideosizeiswithin"context" (Path: context > Files : FileList > 0: File > size) How do I get the size of the video from the path above?     
asked by 30.11.2016 / 19:19
1
answer

Change header text according to open page [closed]

I need to change the header text every time I change pages. Could someone help me ?? /     
asked by 01.12.2016 / 19:33
1
answer

JS - display elements on the screen from an object

I need to mount a questionnaire on the screen with questions and alternatives brought from a database, it is possible to mount the screen with label and radiobuttons without putting a foreach in html , but using Jav...
asked by 01.12.2016 / 15:11