Initial: static site migrated from S3
This commit is contained in:
32
blog/wp-content/themes/componentowl/javascripts/theme.js
Normal file
32
blog/wp-content/themes/componentowl/javascripts/theme.js
Normal file
@@ -0,0 +1,32 @@
|
||||
(function($) {
|
||||
|
||||
$(document).ready(function() {
|
||||
|
||||
$(".d-menu li").each(function() {
|
||||
var $this = $(this);
|
||||
var dropdown = $this.find(".dropdown");
|
||||
if (dropdown.size() == 1) {
|
||||
$this.hover(function() {
|
||||
$this.addClass("with-dropdown-hover");
|
||||
dropdown.show();
|
||||
}, function() {
|
||||
$this.removeClass("with-dropdown-hover");
|
||||
dropdown.hide();
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
$("input.inline-label").each(function() {
|
||||
$(this).data("initial_value", $(this).val());
|
||||
});
|
||||
$("input.inline-label").focus(function() {
|
||||
var el = $(this);
|
||||
el.addClass("inline-label-focus");
|
||||
if (el.val() == el.data("initial_value")) {
|
||||
el.val("");
|
||||
}
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
})(jQuery);
|
||||
Reference in New Issue
Block a user