Quantcast
Channel: Javascript – Kaspars Dambis
Browsing latest articles
Browse All 9 View Live

jQuery Script for Loading More Posts

AKA Twitter, Facebook and Tumblr style. jQuery(document).ready(function($) { var $content = '#content'; var $nav_wrap = '.navigation'; var $anchor = '.navigation .alignleft a'; var $text = 'Load More';...

View Article



How to Embed Your YouTube Channel as a Playlist

Update: There is an undocumented ID of your channel playlist which is available in the current beta version of YouTube UI as described by Federico in the comments. For some reason YouTube doesn’t offer...

View Article

Enable WordPress Dashboard Quick Login

All of the web browsers today have input autocomplete or auto-fill feature built-in and chances are that you have your WordPress username and password stored in the browser and the input fields are...

View Article

AngularJS

AngularJS looks really impressive.

View Article

Image may be NSFW.
Clik here to view.

Instagram Slideshow with AngularJS

I first learned about AngularJS last friday so I spent the weekend exploring the amazing features and principles of Angular. For learning purposes I created Metrogram: Metrogram creates a slideshow out...

View Article


Add Unique Rel Attribute to Each Gallery Within a Post

Rel attributes are used by many gallery/slideshow scripts (thickbox, fancybox, colorbox) for grouping images into galleries. In my previous articles I explained how to add unique rel attributes to all...

View Article

Use Javascript to Change Viewport Width Depending on the Window Size

Sometimes for a responsive website you might want to apply the desktop stylesheet also on tablets and mobile devices in landscape mode. When using media queries to style a website based on the device...

View Article

Concatenate Assets Instead of Loading Conditionally

One of the most popular suggestions for improving website performance that I often see in the WordPress world goes something like this: Enqueue only the CSS and Javascript necessary for the particular...

View Article


Notes on Webpack Hot Module Replacement

It took me a few days to read through the relevant parts of the webpack and webpack-dev-server source code and figure out how to enable Webpack Hot Module Replacement for any project that doesn’t use...

View Article

Browsing latest articles
Browse All 9 View Live




Latest Images