Questions tagged as 'javascript'

1
answer

How to Set Max Height and Exact Position of a Button on a DIV on Page

   I would like to know how to put the red X button on top of the div How are you? HowIwantyoutostay: Currentlytheclassofmybuttonislikethis:position:absolute;top:9%;right:2%;Whenputtingthisclass:top:-9%;right:2%;width:24px;height:24px;...
asked by 02.01.2018 / 14:18
1
answer

JavaScript API issues

I'm developing an application that involves music, and for ease of development, I'm using the RetroJS API. But I can not use it. The following errors appear in the Console: <html><head><scriptsrc="src/Chord.js"></scrip...
asked by 03.01.2018 / 12:12
1
answer

Get Values from Cloned Fields Created Through JQUERY UI

Good morning everyone. This is a work I am trying to do. This code creates clones of the componestes, so they can be dragged to a certain location (they can be dragged by clicking on the blue border). But I have a problem getting the values from...
asked by 26.01.2018 / 17:15
1
answer

Owl Carousel how to use? HTML5 CSS3

Well, I started to follow the tutorial on how to make a carousel because I'm trying to make my HTML5 / CSS3 page have a carousel of 4 items per slide, so I saw this plugin's only way since I did not find another place to learn how. In the case, I...
asked by 29.01.2018 / 00:41
1
answer

Appear table after field fill and button pressed

I have the following table: <table width="100%" class="table table-bordered table-hover table-responsive table-striped" id="empenho_solicitante"> <thead> <tr> <th>Empenho</th>...
asked by 19.12.2017 / 15:36
1
answer

Pass input parameter to function

I ran into a problem, to pass the value of my input to my function without using v-model . I know it works that way <Input @click="func" /> func(val){ alert(val) } But I can not pass another parameter, eg: <Input @c...
asked by 21.12.2017 / 17:44
1
answer

pause navigator.getUserMedia

How do I pause the camera and microphone stream within the getUserMedia method? I have my code like this: navigator.getUserMedia({ video: true, audio: true }, function (MediaStream) { var video = document.querySelector('...
asked by 12.12.2017 / 14:37
1
answer

Create a Scroll that goes up and down Javascript

Hello! I made a scroll with javascript . After clicking a button it goes up and another one goes down. But I did not like to leave 2. I would like to use a single button to go to the top and another pro end . The Code: $(document...
asked by 11.12.2017 / 22:44
1
answer

Get attribute with JS

I'm trying to make a product cart, and that's fine, it's already working, beautiful thing, but, as always, there are problems, I'm kind of new to JS, so I'm picking up a lot, HTML <button class="add-to-cart" data-price="25.99">...
asked by 13.12.2017 / 02:06
1
answer

JavaScript - Limit number of pages in pagination

I have a script where I show all the pages of a table, for example, < < 1 2 3 4 5 6 7 8 9 10 11 12 13 > > However, I need to limit the display of the pages and I can not. Could someone help me? < < Start 1 2 3 4 5 End...
asked by 13.12.2017 / 11:53