ThemeForest

Posts by cosmocoder

32 posts
  • Exclusive Author
  • Has been a member for 3-4 years
  • India
  • Referred between 50 and 99 users
  • Sold between 50 000 and 100 000 dollars
cosmocoder says

Please post this message in the item’s comments section. The Forums are not meant to be used as a support section.

32 posts
  • Exclusive Author
  • Has been a member for 3-4 years
  • India
  • Referred between 50 and 99 users
  • Sold between 50 000 and 100 000 dollars
cosmocoder says

I think the Responsive Measure jquery plugin does what you are looking for.

32 posts
  • Exclusive Author
  • Has been a member for 3-4 years
  • India
  • Referred between 50 and 99 users
  • Sold between 50 000 and 100 000 dollars
cosmocoder says

Please post your problem in the comments section of CCSlider, since the Forums is not a suitable place for this. You may also contact me through the message box in my profile page.

32 posts
  • Exclusive Author
  • Has been a member for 3-4 years
  • India
  • Referred between 50 and 99 users
  • Sold between 50 000 and 100 000 dollars
cosmocoder says

I see. But then the js will not be loaded in the template header but just above the plugin

No, the js files will not be loaded just anywhere in the page, if you set the last parameter to true in wp_enqueue_script() (http://codex.wordpress.org/Function_Reference/wp_enqueue_script) which will then enable the js files to be loaded just before the closing body tag, and which is actually a recommended practice.

32 posts
  • Exclusive Author
  • Has been a member for 3-4 years
  • India
  • Referred between 50 and 99 users
  • Sold between 50 000 and 100 000 dollars
cosmocoder says

If you are using a shortcode then you can detect the presence of the shortcode and then enqueue the scripts. See here for details (note there is an old version and updated version of the method) – http://scribu.net/wordpress/conditional-script-loading-revisited.html

The method to load css is not quite straightforward. One way is to add a an action to “the_posts” hook and look for the presence of the shortcode and if it is present then enqueue the css file. See here – http://beerpla.net/2010/01/13/wordpress-plugin-development-how-to-include-css-and-javascript-conditionally-and-only-when-needed-by-the-posts/. A clear disadvantage of this is that it will only work if your shortcode is used only in posts and not in other places like the sidebar.

32 posts
  • Exclusive Author
  • Has been a member for 3-4 years
  • India
  • Referred between 50 and 99 users
  • Sold between 50 000 and 100 000 dollars
cosmocoder says

Yes this is definitely a bug. Testing this in Firefox 10.0.2 on OSX Snow Leopard.

I also have found another bug in Firefox for Windows (maybe only Windows 7), and that is Canvas shadows do not work there. The shadows show up fine in Firefox for Mac.

32 posts
  • Exclusive Author
  • Has been a member for 3-4 years
  • India
  • Referred between 50 and 99 users
  • Sold between 50 000 and 100 000 dollars
cosmocoder says

You have floated your spans, so you should float your paragraph tags also. Further you should mention a width on them too so that they do not go below the span tags due to lack of space. For your case putting a width of 260px on the p tags works (by taking into account the total width of li tags and the width and margin-right on span tags). Also to prevent the li tags to collapse to zero height, since its children are floated, you should set width: 100%; overflow: hidden; on the li tags.

You already have done the black circles on the numbers very well. You can also use the pseudo-element :before for this purpose and do away with the spans altogether. Have a look at this tutorial – http://net.tutsplus.com/tutorials/html-css-techniques/quick-tip-how-to-keep-the-count-with-css/

32 posts
  • Exclusive Author
  • Has been a member for 3-4 years
  • India
  • Referred between 50 and 99 users
  • Sold between 50 000 and 100 000 dollars
cosmocoder says

It is definitely faster to use bitwise operators to round numbers than using native javascript functions such as Math.round or Math.ceil or Math.floor.

Check out this article which explores these techniques and how fast they are – http://sebleedelisle.com/2011/02/html5-canvas-sprite-optimisation/

In order to know how fast your method is compared to Math.ceil use jsPerf. But in the end how much better performance you are gaining depends on your application and the way it is coded.

32 posts
  • Exclusive Author
  • Has been a member for 3-4 years
  • India
  • Referred between 50 and 99 users
  • Sold between 50 000 and 100 000 dollars
cosmocoder says
cosmocoder said
KiaJavid said
cosmocoder said
Hi there, I would like to get an invite too :). You can have a look at my portfolio here http://codecanyon.net/user/cosmocoder/portfolio. You can contact me via my profile page.
Send me your email address ;)
If you too have a Forrst invite to give away, I would be grateful :). Here is my email address – cosmocoder at gmail.com

Thanks for the invite! Hope to see you in Forrst.

@RikdeVos I no longer need an invite. Consider some other deserving fellow. But I do hope to see you in Forrst.

32 posts
  • Exclusive Author
  • Has been a member for 3-4 years
  • India
  • Referred between 50 and 99 users
  • Sold between 50 000 and 100 000 dollars
cosmocoder says
KiaJavid said
cosmocoder said
Hi there, I would like to get an invite too :). You can have a look at my portfolio here http://codecanyon.net/user/cosmocoder/portfolio. You can contact me via my profile page.
Send me your email address ;)

If you too have a Forrst invite to give away, I would be grateful :). Here is my email address – cosmocoder at gmail.com

by
by
by
by
by