This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@font-face { | |
font-family: 'open_sans'; | |
font-weight: 700; | |
src: url('../fonts/opensans-bold-webfont.eot'); | |
} | |
@font-face { | |
font-family: 'open_sans'; | |
src: url(data:application/x-font-woff;charset=utf-8;base64,d09GRgABAAAAAF8cABMAAAAAq+AAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAABqAAAABwAAAAcZJgAsUdERUYAAAHEAAAAHgAAACABFwAER1BPUwAAAeQAAAAgAAAAIGyRdI9HU1VCAAACBAAAAGMAAAB4ebN61k9TLzIAAAJoAAAAYAAAAGCiSZvkY21hcAAAAsgAAAGIAAAB4uXMQipjdnQgAAAEUAAAADAAAAAwDu4TqmZwZ20AAASAAAABsQAAAmVTtC+nZ2FzcAAABjQAAAAIAAAACAAAABBnbHlmAAAGPAAAUC4AAJeA5x/k1WhlYWQAAFZsAAAAMwAAADYE2vCgaGhlYQAAVqAAAAAeAAAAJBAGBpBobXR4AABWwAAAAisAAAOmGPdMNGxvY2EAAFjsAAABzAAAAdYSHu2YbWF4cAAAWrgAAAAgAAAAIAIHAaFuYW1lAABa2AAAAdUAAAP4dukSG3Bvc3QAAFywAAAB7QAAAuUaeDKocHJlcAAAXqAAAAB0AAAAiOUtDl93ZWJmAABfFAAAAAYAAAAGlcNS8gAAAAEAAAAAzD2izwAAAADJQhegAAAAAM8YRkF42mNgZGBg4ANiCQYQYGJgBMKXQMwC5jEAAA5NARwAAAABAAAACgAcAB4AAWxhdG4ACAAEAAAAAP//AAAAAAAAeNoljD0KgDAUg79qB3ESR6fODs5eQagUvEEnEYqTZ/bnFBqV8PIREh4GKGnpMSluKwUV2Ri8o5rCKIf75l2ZtMxRPX/CSi8LXffR6lNNg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//You need an anonymous function to wrap around your function to avoid conflict | |
(function($){ | |
//Attach this new method to jQuery | |
$.fn.extend({ | |
//This is where you write your plugin's name | |
pluginname: function() { | |
//Iterate over the current set of matched elements |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function($){ | |
$.fn.extend({ | |
//plugin name - animatemenu | |
animateMenu: function(options) { | |
//Settings list and the default values | |
var defaults = { | |
animatePadding: 60, | |
defaultPadding: 10, | |
evenColor: '#ccc', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alert("hello"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam blandit, est ac vehicula commodo, dui nisl ornare metus, eget feugiat ligula mauris nec urna. Quisque tempus hendrerit arcu a cursus. Vestibulum eleifend ultricies mollis. Praesent eleifend, arcu eu dignissim pellentesque, augue eros ultricies diam, non facilisis leo leo quis mi. Nullam sed tortor eget eros cursus aliquam in eget lacus. Aenean id orci urna, ac sollicitudin dolor. Morbi scelerisque blandit purus, ornare vehicula eros ullamcorper quis. Praesent vitae consectetur elit. Nunc quam lectus, cursus eleifend sodales vel, viverra vitae dui. | |
In id metus et lectus viverra congue. Vestibulum nunc ante, euismod id tristique id, condimentum sit amet diam. Integer pellentesque eleifend sagittis. Ut et odio dui, nec dictum justo. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc eu dui eget erat rutrum pellentesque ac vel metus. Fusce elit justo, pulvinar vel mollis ut, viverra ac tellus. Vivamus id diam dictum velit fermentum mattis. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(function() { | |
// Handler for .ready() called. | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(window).load(function () { | |
// run code | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(function(){ | |
$("#nav li:last-child").addClass('last-child') | |
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Main Navigation Hover*/ | |
$(function () { | |
$('#header .topnav li a').bind('mouseenter mouseleave', function() { | |
$(this).parent().toggleClass('hover'); | |
}); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('li') | |
.hover(function(event) { | |
$(this)[ (event.type == 'mouseenter') ? 'add' : 'remove') + 'Class' ]('test'); | |
}); |
OlderNewer