Posts by tinos • 526 points
14 posts
-
2
votes3
answers523
viewsA: Call post on the page that is shown
$(function () { $(document).on('click','.effect-goliath', effectgoliath); function effectgoliath(e){ $this = $(this); //$this.siblings('.post-single').css('display','none');…
-
1
votes2
answers250
viewsA: Redirecting of permalinks
add Rules to categories: add_action( 'init', 'nz_add_category_rules' ); function nz_add_category_rules() { $categories = get_categories( 'post' ); $cat_slug = array(); foreach ( $categories as $cat…
-
3
votes2
answers141
viewsA: fade in/ fade out is not executed
Your problem is just lack of attention when typing to the functions fadeIn() and fadeOut(). That’s why your Alert didn’t work. Try firebug for firefox! $(document).ready(function () { console.log(…
-
3
votes3
answers7373
viewsA: How to Rotate an Image in the Background?
Using only css with keyframes (experimental phase) (https://developer.mozilla.org/en-US/docs/Web/CSS/@keyframes) can use jqueryrotate plugin (https://code.google.com/p/jqueryrotate/)…
-
2
votes1
answer1013
viewsA: How to search for users in the database without select option
You can use this jquery plugin([http://loopj.com/jquery-tokeninput][1]) as follows: Include jQuery and the plugin in head: <script type="text/javascript"…
-
2
votes1
answer1607
viewsA: Trigger for a Select
Unable to use a Trigger for a select. Maybe Voce could use a SELECT FOR UPDATE like this SELECT * FROM Conversa FOR UPDATE; UPDATE Conversa SET statusConversa = 1;…
-
2
votes2
answers196
viewsA: Solution for screen transition
(http://jsfiddle.net/NadirZenith/ocopr9kb/1/) can use this jquery script that scrolls to the anchor on the same page $('a[href*=#]:not([href=#])').click(function() { if…
-
1
votes1
answer125
viewsA: Responsive fixed menu
in your style sheet: @media (max-width: 600px) { .menu { position: relative; } } where the max-width is the maximum length where these rules apply, in which case the menu above 600px will no longer…
-
5
votes4
answers1357
viewsA: Margin in percentage is relative to what?
It is relative to the upper block length. #yellow { width: 300px; height: 100px; background-color: yellow; border-bottom: 2px solid black; } .red { width: 50%; height: 25px; background-color: red;…
-
5
votes2
answers2526
viewsA: What is [QSA] and similar for in Rewriterule?
These "operators" are called 'flags' of mod_rewrite apache Here’s a list of them (http://httpd.apache.org/docs/2.4/rewrite/flags.html) [QSA] stands for Query String Append. Keeps the same query…
-
2
votes3
answers446
viewsA: How to let a div 'Fixed' be limited by a main div?
You can use the jquery plugin Sticky-Kit. Sticky-kit fixes the elements on the page when the user scrolls so that this element is always visible. With it just select an element and apply a function:…
-
1
votes1
answer68
viewsA: Wordpress menus
if that’s what I understood Voce can use this code (jquery) $(function() { $('a[href*=#]:not([href=#])').click(function() { if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'')…
-
1
votes2
answers245
viewsA: Show error in field instead of flash/notice
Using the form helpers <%= form_for @post |f| %> <% @post.errors[:title].join(", ") %> <%= f.text_field :title %> <%= f.submit "Create" %> <% end %> error fields have…
-
2
votes4
answers14935
views