Skip to content

Instantly share code, notes, and snippets.

View zurie's full-sized avatar
💭
I may be slow to respond.

Zurie zurie

💭
I may be slow to respond.
View GitHub Profile
@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
@zurie
zurie / SnippetFile
Created February 19, 2015 15:23
Default Plugin
//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
@zurie
zurie / SnippetFile
Created February 19, 2015 15:23
Animate Menu
(function($){
$.fn.extend({
//plugin name - animatemenu
animateMenu: function(options) {
//Settings list and the default values
var defaults = {
animatePadding: 60,
defaultPadding: 10,
evenColor: '#ccc',
@zurie
zurie / SnippetFile
Created February 19, 2015 15:23
Alert
alert("hello");
@zurie
zurie / SnippetFile
Created February 19, 2015 15:23
Lorem Ipsum
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.
@zurie
zurie / SnippetFile
Created February 19, 2015 15:23
Ready
$(function() {
// Handler for .ready() called.
});
@zurie
zurie / SnippetFile
Created February 19, 2015 15:23
window.load
$(window).load(function () {
// run code
});
@zurie
zurie / SnippetFile
Created February 19, 2015 15:23
last child
$(function(){
$("#nav li:last-child").addClass('last-child')
})
/* Main Navigation Hover*/
$(function () {
$('#header .topnav li a').bind('mouseenter mouseleave', function() {
$(this).parent().toggleClass('hover');
});
});
$('li')
.hover(function(event) {
$(this)[ (event.type == 'mouseenter') ? 'add' : 'remove') + 'Class' ]('test');
});