-
Ctrl + V it!
facebook icons I was going to recreate then didn't
-
Add and Remove class on Click JS
It is indented properly in file didn't paste properly here. and thanks
-
Add and Remove class on Click JS
Getting Uncaught TypeError: Cannot call method 'match' of undefined using this code function hasClass(ele,cls) { return ele.className.match(new RegExp('(\\s|^)'+cls+'(\\s|$)'));}function addClass(ele,cls) { if (!hasClass(ele,cls)) ele.className += " "+cls;}function removeClass(ele,cls) { if (hasClass(ele,cls)) { [/font] var reg = new RegExp('(\\s|^)'+cls+'(\\s|$)'); ele.className=ele.className.replace(reg,' '); }} share = document.getElementById("share"); share.onclick = function(){if(hasClass('#icons','hidden')) { removeClass('#icons', 'hidden'); addClass('#icons','visible');} else {[/font] removeClass('#icons', 'visible'); addClass('#icons','hidden');} };
- Add and Remove class on Click JS
-
Add and Remove class on Click JS
I have this JQuery code jQuery("#share").click(function(){ if( jQuery('#icons').is('.hidden') ) { jQuery('#icons').removeClass('hidden'); jQuery('#icons').addClass('visible'); } else { jQuery('#icons').removeClass('visible'); jQuery('#icons').addClass('hidden'); } }); But I want to translate it to Vanilla JS ( all will become clear in a few days ) Thanks
-
Putting the static page using an article in the homepage
put that in your themes index.php <?php if(is_front_page() && is_category('2')) //loop in here }?> Should work
-
Web Design.. Getting my 'back' into it..
Or just redesign and code well known sites
-
Next web fad?
I'm starting to see grungey sites appear more often and colours that work together that arn't always black/dark grey on light grey/white.
-
Ticky One - Div not to make browser scroll
Add x-overflow: hidden; To the body
-
Image Mapping
Or use CSS sprites
-
Web design elements that anger you
On centre aligned text if you use it right it can work like alot of things
-
Jotform.com suspended by US secret service
Both Work for me but I'm in the EU might have just blocked American IPs
-
More Dribbble Invite Contests!
Once I get an invite spare ill make one
-
Zerply
Not yet but I just set it up and left it alone to be honest
-
Rate your hosting service
I use host Ireland mainly because a Guy in support gave me it for free cos I'm friends with his daughter haven't had a problem yet though