Tag Archives: Javascript / Jquery

Javascript Microframeworks

29 Jan

microframeworks

Micro-frameworks are definitely the pocketknives of the JavaScript
library world: short, sweet, to the point. And at 5k and under,
micro-frameworks are very very portable. A micro-framework does one
thing and one thing only — and does it well. No cruft, no featuritis,
no feature creep, no excess anywhere.

CoffeeScript solves your Javascript problems

26 Jan

CoffeeScript solves your Javascript problems

Sam Stephenson speaking at the Future of Web Apps London 2011 runs through how to write cleaner and faster JavaScript with CoffeeScript and where this is leading in the future.

HTML, CSS, JS Instant documentation

7 Dec

Screen Shot 2011-12-06 at 8.56.27 PM

Very handy online web development documentation

Free CoffeeScript Book

17 Jun

coffeescript

Found this nice coffeescript book through the podcast of Jason Seifer (javascriptshow.com). This was my first reference to coffeescript and I have to say that is really easy to learn and makes you write super clean code. Coffeescript compiles down to Javascript and the syntax was inspired by Ruby and Python.

Pure CSS alternatives to Javascript

19 May

Pure CSS Speech Bubbles

A list of good alternatives if you want to substitute Javascript with CSS. They’re not meant to replace them for better execution but as an alternative if you want to get something very similar by just coding in CSS. Maybe you want to fall back to CSS for those users that have Javascript disabled.

via. speckyboy

Easy zoom in a picture with jQuery

15 May

tree

A simple jQuery script that zooms into an image after 1 second.
check out the demo here

THE CSS
We define a masked area of 200×200 and an absolute position of the main picture to create
a viewport

1
2
3
4
5
6
7
8
9
10
11
12
13
#window {
    width: 200px;
    height: 200px;
    overflow: hidden;
    position: relative;
}
 
#window img {
    width: 500px;
    position: absolute;
    top: -150px;
    left: -300px;
}

THE HTML

1
2
3
    <div id="window">
        <img src="http://ufomuffin.com/files/etc/tree.jpg">
    </div>

THE JQUERY
We wait a second using delay(1000) and then we use the animate function from jQuery to change the width of the image creating a zoom effect. Notice that at the same time we’re going to the positions top: -150 and , left: -300 to position the viewport in a specific region.

1
2
3
4
5
6
7
8
$(document).ready(function() {
        $('#window img').delay(1000).animate({width: 800}, 800, function() {
          $(this).css({
            top: '-150px',
            left: '-300px'
          })
        })
});

The Whole Thing

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>Jquery Zoom / UFOMUFFIN.COM</title>
 
<style>
 
  #window {
    width: 200px;
    height: 200px;
    overflow: hidden;
    position: relative;
}
 
#window img {
    width: 500px;
    position: absolute;
    top: -150px;
    left: -300px;
}
 
</style>
 
 
 
</head>
<body>
 
    <div id="window">
        <img src="http://ufomuffin.com/files/etc/tree.jpg">
    </div>
 
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js"></script>
	<script>
	$(document).ready(function() {
			$('#window img').delay(1000).animate({width: 800}, 800, function() {
			  $(this).css({
				top: '-150px',
				left: '-300px'
			  })
			})
	});
	</script>
</body>
</html>

A solid foundation to the basics of JQUERY

23 Mar

jquery

If you’re new to JQuery, please take the time to read this article by Mike Gleason. He takes a different approach explaining the foundations, how it works (visual approach), compares it to other frameworks, and he even goes in to what AJAX is. Not your usual JQuery tutorial, recommended.

Write cross-platform Mobile Applications in HTML5!

23 Feb

Screen shot 2011-02-23 at 10.45.57 AM
  • MVC
  • HTML5
  • JavaScript-all development cycle
  • Offline support (automatic cache manifest generation)
  • Rich User Interfaces
  • DataProvider for local and remote storage persistence
  • Internationalization (i18n)
  • Open Source (MIT License)
  • NodeJS based build tools (called Espresso)

Jquery deconstructed

2 Feb

Jquery

Great map of jquery with code examples

The Javascript Programming Language

1 Jan

An excellent presentation from Douglas Crockford, including 4 videos
more videos

Free Javascript Book

12 Dec

51lo7VtDuLL._SS500_

Eloquent JavaScript is a book providing an introduction to the JavaScript programming language and programming in general.

Corkboard

3 Dec

notes

html5 + javascript + CSS3

Javascript 101 – The Audio Course

30 Nov

jscover

http://addyosmani.com/blog/javascript-101-free-course/

Crush any website with browser asteroids

28 Sep

Screen shot 2010-09-28 at 6.21.17 PM

Drag the bookmarklet to your bookmarks bar or a tab and start having some fun on other pages too! (via erkie.github)

Loop through selected elements using jQuery

4 Jan

jquery_iterate

A very simple method to obtain the href value from an unordered list, using JQUERY. (more…)