Posts by Thiago Jem • 399 points
15 posts
-
4
votes2
answers479
viewsQ: How to make a dynamic meta descripition in Angularjs?
How to do to the description, who is in a Array in the controller, is rendered to the <meta name="description" content="{{metadescription}}"> , which is in index.html, and can appear…
-
1
votes2
answers972
viewsA: How to index on google sites that use javascript?
Actually indexing content in Ajax gives a lot 'headache', after many months researching I found some ways, I’m still in the process of testing, but, I’m already seeing good results... you may be…
-
1
votes2
answers264
viewsA: How to return the specific element, when using multiple custom share buttons on the same page, using querySelectorAll?
In addition to @Sergio’s reply I needed to add the event.stopImmediatePropagation(); (that keeps the rest of the handlers from running and prevents the event from bubbling the DOM tree.), Because, I…
-
1
votes2
answers264
viewsQ: How to return the specific element, when using multiple custom share buttons on the same page, using querySelectorAll?
This custom Facebook share button works great when you put only one button on each page. (This is an excellent way to make Ajax and Javascript projects traceable to search engines and social…
-
0
votes2
answers331
viewsA: Synchronize objects of the same Array with the index of different pages
I posted the doubt in the github of the creator of the directive, he guided me, and started to work round. Change the method on controller, to look for the index of array based on the objeto…
-
1
votes2
answers331
viewsQ: Synchronize objects of the same Array with the index of different pages
Use the angular-bootstrap-lightbox, which serves to show magnified images by clicking on they. I put the images on different pages, using the ng-repeat and the custom filter| filterBy: ['id']: ''",…
-
-4
votes1
answer440
viewsQ: Multiple buttons share from facebook, twitter and G+ on the same page
I have a page that contains multiple posts and need to put individual share buttons on each post. Take an example: In this site we can see the scenario similar to what I want to do…
-
0
votes2
answers525
viewsA: How to place url dynamically to facebook comment boxes, specific to each page
After a few days trying to find the solution the savior of our souls, Jesus Christ, directed me ( not so much to find the solution but rather to take the opportunity to praise him). These codes are…
-
0
votes2
answers525
viewsQ: How to place url dynamically to facebook comment boxes, specific to each page
Lí in a reply that in php we can do like this: <div class="fb-comments" data-href="<?php echo $url; ?>" data-width="687" data-numposts="7" data-colorscheme="light"></div> <?php…
-
0
votes1
answer1038
viewsQ: How to implement a search engine on a site that is in a Node.js environment
I made a site in the environment Node.js, using Express, template engine Jade, The problem is that the search engine (search engine) I have ready is in PHP, I do not know if I can run it in Node…
-
0
votes3
answers7312
viewsQ: How to count page views on a website
I would like to implement a page views counter on my site, present a numerical reference on the site, and use this data to perform a ranking of most accessed articles/post and automatically insert a…
-
8
votes11
answers97880
viewsA: Center image vertically within a div
Although it has been some time since this question was asked; I will be showing an easy way to center images using flex-box, to help those in need. Enter a class in div and tag img within the div,…
-
2
votes1
answer658
viewsQ: Selector or Script to assign different content to elements with the same class
We can assign a title (attribute title), to an element marked in HTML, which has this class, thus: $(".title-texto").attr("title", $(".title-texto").text()); Example of HTML markup with only one…
-
0
votes1
answer256
viewsQ: cycle2 plugin does not work when using api(). html
When I mark in html it works normally, when I write in my jQuery sheet using the api (). html doesn’t work, I’m guessing it’s because of the date-written in the div, how I could make it work?…
-
10
votes4
answers13342
viewsQ: Multiple lines of text or code with method ". html()"
When using the jQuery method .html() to apply multiple lines of text or HTML code to an element, the same error: Example in Jsfiddle $(function(){ $( '.qualquerClasse' ).html( ' conteúdo de 3 linhas…