Archive for Category: Web

Useful Putty Commands

Navigate directories: cd .. cd / Change owner of a file/folder: chown chown -R Move a file: mv .ext / Move a directory: mv / / Change File/Folder Permissions: chmod 755 .ext Change Permission for...

Read More

jquery Countdown

Here’s a simple way to add a countdown to your website. Quick overview 1. Link these javascript libraries to your html page. <script src="http://https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script> <script src="http://cdn.rawgit.com/hilios/jQuery.countdown/2.0.4/dist/jquery.countdown.min.js"></script> 2. Add the following script to your page. <script type="text/javascript"> $('#jcountdown').countdown('2016/01/01 00:00:00', function(event)...

Read More

Switch CSS library simplified

Now let’s take a look at how to change stylesheet, and keep them the style there after reload using cookies. Quick overview 1. Include the latest version of jquery and include jquery.cookie.js found here. 2. Add html links <link...

Read More

Best useful WordPress plugins

Tags There are actually recommended, and popular plugins for WordPress. However there are so many out there, it can be hard to choose which one will work for what you need. I’ve compiled a list of...

Read More

Advance Google maps simplified

iframe {width:100%; height:300px;border:none;} So, let’s say you’d like to customize your own google maps, and insert it onto your website like the sample below, but you want to keep it as simple as possible without doing too much work....

Read More

Jquery truncate a paragraph

CSS: div {width:400px; margin:0 auto 20px;} Script: jQuery(function(){ var minimized_elements = $('.minimize'); var minimize_character_count = 150; minimized_elements.each(function(){ var t = $(this).text(); if(t.length < minimize_character_count ) return; $(this).html( t.slice(0,minimize_character_count )+'... More'+ ''+ t.slice(minimize_character_count ,t.length)+' Less' ); }); $('a.more', minimized_elements).click(function(event){ event.preventDefault();...

Read More