Posts by Rodolfo .Freire • 104 points
13 posts
-
0
votes1
answer109
viewsA: Error message - Parse error: syntax error
The correct use is as follows function usagilabs_category(){ $category = get_the_category(); echo '<a href="'. esc_url(home_url( '/anime/' ) . esc_attr( $category[0]->slug )) .'" title="see…
-
1
votes2
answers31
viewsA: jQuery doubt all elements are affected by the function
if angleDown and angleUp are daughters of the accordeonTitle just call from within the click function $('.fa-Angle-up',this). toggleClass('Id'); but without seeing the html there is no helping much.…
jqueryanswered Rodolfo .Freire 104 -
1
votes2
answers46
viewsA: Script via Link requires double click the first time it is requested
possibly it is pq is doing wrong in the call of Fc, $(Document). ready is equivalent to window.onload, sure to look like this $(document).ready(function(){ function res() {…
-
0
votes4
answers1660
viewsA: Function js to run at a given time
the language does not give this type of freedom even because it is very rare to use, what you can do is take the hour:minute:second at the time the page is loaded, calculate how many ms are left for…
-
0
votes2
answers413
viewsA: Border of different colors
Using border-right-color and border-left-color for vertical and border-bottom-color and border-top-color for them you control better what color of each border. The distance between the text and the…
-
0
votes2
answers55
viewsA: Link to access pages
You can dynamically load product properties via ajax or use a front-end framework. The easiest way is to load the data dynamically through ajax, because you do not learn from night to day a…
-
1
votes1
answer50
viewsA: Open.js file when Mediaquery is larger than 1024px
You can take the screen size by window.screen.width or window.innerWidth and if it is smaller you can add the js file. ex: function desktop(){ if(window.screen.width >= 1024){ var sc =…
-
0
votes1
answer241
viewsA: What is the best way to integrate Laravel with angular 2?
It will depend on how you structure your project, what it will do, how much interaction it will have. For a medium/large project it is good to use in the public folder and separate in the same way…
-
0
votes1
answer86
viewsA: Angular JS error var Undefined
$scope.convertMd5 = function (string) { // retorna string em md5 return $http({ method: 'POST', url: '../assets/php/client/Users.php', data: {ref: 'convert-md5', str: string}, dataType: 'html', });…
angularjsanswered Rodolfo .Freire 104 -
0
votes3
answers843
viewsA: How to extract a specific text from a string via Javascript
for the answer text.substr((text.search(/r:/)+2)) to the question text.substr((text.search(/p:/)+2),(text.search(/r:/)-2))
-
2
votes2
answers2987
viewsA: Load js function automatically and for various Ivs
You can use onload on any element in html as you can see But you don’t have just this medium for it. To catch the child element, first you have to know which element <div id="a" class=""…
-
0
votes1
answer246
viewsA: How to run a javascript referencing a button ID?
var btn1 = document.querySelector("#mostrarcampo"); btn1.addEventListener('click',function(e){ document.querySelector("#extratres").style.display = 'block'; }); This does the same as the…
-
0
votes2
answers81
viewsA: DO NOT show Alert messeger when reloading the page
If I understand what is happening is that you used a form with the method post and for the page on which it was sent try to reload itla, if what I understood this correct this is a browser action…