Skip to content
This repository was archived by the owner on Jan 1, 2025. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
*.pyc

# Logs and databases #
######################
*.log

# OS generated files #
######################
.DS_Store*
ehthumbs.db
Icon?
Thumbs.db
22 changes: 11 additions & 11 deletions examples/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,18 @@
$("#stale").fancydropdown({
return_false: false
});

$(document).fancydropdown({
return_false: true
});
});
</script>

</head>
<body>

<div id="container">

<div id="stale">
<div class="fancydropdown">
<h3>My Dropdown</h3>
Expand All @@ -34,12 +34,12 @@ <h3>My Dropdown</h3>
<li><a href="http://thoughtandtheory.com/">Thought + Theory</a></li>
<li><a href="http://emprnt.com/">EMPRNT</a></li>
<li><a href="http://weareonlyhuman.com/">Only Human</a></li>
<li><a href="http://techcrunch.com/">Techcrunch</a></li>
<li><a href="http://techcrunch.com/">Techcrunch</a></li>
</ul>
</div>
</div>


<div class="fancydropdown two">
<h3>My Other Dropdown</h3>
<ul>
Expand All @@ -48,12 +48,12 @@ <h3>My Other Dropdown</h3>
<li><a href="http://thoughtandtheory.com/">Thought + Theory</a></li>
<li class="fancydropdown_selected"><a href="http://emprnt.com/">EMPRNT</a></li>
<li><a href="http://weareonlyhuman.com/">Only Human</a></li>
<li><a href="http://techcrunch.com/">Techcrunch</a></li>
<li><a href="http://techcrunch.com/">Techcrunch</a></li>
</ul>
</div>


</div>

</body>
</html>
22 changes: 11 additions & 11 deletions examples/index_nostyle.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,18 @@
$("#stale").fancydropdown({
return_false: false
});

$(document).fancydropdown({
return_false: true
});
});
</script>

</head>
<body>

<div id="container">

<div id="stale">
<div class="fancydropdown">
<h3>My Dropdown</h3>
Expand All @@ -33,12 +33,12 @@ <h3>My Dropdown</h3>
<li><a href="http://thoughtandtheory.com/">Thought + Theory</a></li>
<li><a href="http://emprnt.com/">EMPRNT</a></li>
<li><a href="http://weareonlyhuman.com/">Only Human</a></li>
<li><a href="http://techcrunch.com/">Techcrunch</a></li>
<li><a href="http://techcrunch.com/">Techcrunch</a></li>
</ul>
</div>
</div>


<div class="fancydropdown two">
<h3>My Other Dropdown</h3>
<ul>
Expand All @@ -47,12 +47,12 @@ <h3>My Other Dropdown</h3>
<li><a href="http://thoughtandtheory.com/">Thought + Theory</a></li>
<li><a href="http://emprnt.com/">EMPRNT</a></li>
<li><a href="http://weareonlyhuman.com/">Only Human</a></li>
<li><a href="http://techcrunch.com/">Techcrunch</a></li>
<li><a href="http://techcrunch.com/">Techcrunch</a></li>
</ul>
</div>


</div>

</body>
</html>
8 changes: 4 additions & 4 deletions examples/scripts/jquery.js
Original file line number Diff line number Diff line change
Expand Up @@ -582,7 +582,7 @@ jQuery.extend = jQuery.fn.extend = function() {

// Recurse if we're merging object values
if ( deep && copy && typeof copy == "object" && !copy.nodeType )
target[ name ] = jQuery.extend( deep,
target[ name ] = jQuery.extend( deep,
// Never move original objects, clone them
src || ( copy.length != null ? [ ] : { } )
, copy );
Expand Down Expand Up @@ -2882,7 +2882,7 @@ jQuery.extend({

if ( xml && data.documentElement.tagName == "parsererror" )
throw "parsererror";

// Allow a pre-filtering function to sanitize the response
if( filter )
data = filter( data, type );
Expand Down Expand Up @@ -3469,7 +3469,7 @@ jQuery.fn.extend({
parentOffset = /^body|html$/i.test(offsetParent[0].tagName) ? { top: 0, left: 0 } : offsetParent.offset();

// Subtract element margins
// note: when an element has margin: auto the offsetLeft and marginLeft
// note: when an element has margin: auto the offsetLeft and marginLeft
// are the same in Safari causing offset.left to incorrectly be 0
offset.top -= num( this, 'marginTop' );
offset.left -= num( this, 'marginLeft' );
Expand Down Expand Up @@ -3500,7 +3500,7 @@ jQuery.fn.extend({
// Create scrollLeft and scrollTop methods
jQuery.each( ['Left', 'Top'], function(i, name) {
var method = 'scroll' + name;

jQuery.fn[ method ] = function(val) {
if (!this[0]) return;

Expand Down
6 changes: 3 additions & 3 deletions examples/stylesheets/fancydropdown.css
Original file line number Diff line number Diff line change
Expand Up @@ -31,19 +31,19 @@ a { color: #333; }
.fancydropdown.two a {
width: 193px;
}

.fancydropdown ul li {
font-size: 80%;
display: inline;
float: left;
}
.fancydropdown ul li a {
.fancydropdown ul li a {
display: inline;
float: left;
text-indent: 10px;
padding: 5px 0;
width: 210px; }

.fancydropdown ul li a:hover {
background: #24b6db;
color: #fff;
Expand Down