mirror of
https://github.com/shoelace-style/webawesome.git
synced 2026-01-12 12:09:26 +00:00
Intercept dropdown clicks for demos
This commit is contained in:
@@ -121,6 +121,11 @@
|
||||
$(this).addClass('current');
|
||||
}
|
||||
});
|
||||
|
||||
// Intercept dropdown clicks for the demo
|
||||
$('.dropdown').on('select', function(event) {
|
||||
event.preventDefault();
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<script async defer src="https://buttons.github.io/buttons.js"></script>
|
||||
|
||||
@@ -106,6 +106,11 @@
|
||||
$(this).addClass('current');
|
||||
}
|
||||
});
|
||||
|
||||
// Intercept dropdown clicks for the demo
|
||||
$('.dropdown').on('select', function(event) {
|
||||
event.preventDefault();
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<script async defer src="https://buttons.github.io/buttons.js"></script>
|
||||
|
||||
@@ -150,6 +150,11 @@
|
||||
$(this).addClass('current');
|
||||
}
|
||||
});
|
||||
|
||||
// Intercept dropdown clicks for the demo
|
||||
$('.dropdown').on('select', function(event) {
|
||||
event.preventDefault();
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<script async defer src="https://buttons.github.io/buttons.js"></script>
|
||||
|
||||
@@ -111,6 +111,11 @@
|
||||
$(this).addClass('current');
|
||||
}
|
||||
});
|
||||
|
||||
// Intercept dropdown clicks for the demo
|
||||
$('.dropdown').on('select', function(event) {
|
||||
event.preventDefault();
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<script async defer src="https://buttons.github.io/buttons.js"></script>
|
||||
|
||||
@@ -207,6 +207,11 @@
|
||||
$(this).addClass('current');
|
||||
}
|
||||
});
|
||||
|
||||
// Intercept dropdown clicks for the demo
|
||||
$('.dropdown').on('select', function(event) {
|
||||
event.preventDefault();
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<script async defer src="https://buttons.github.io/buttons.js"></script>
|
||||
|
||||
@@ -234,6 +234,11 @@ PRINT "SHOELACE IS AWESOME"
|
||||
$(this).addClass('current');
|
||||
}
|
||||
});
|
||||
|
||||
// Intercept dropdown clicks for the demo
|
||||
$('.dropdown').on('select', function(event) {
|
||||
event.preventDefault();
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<script async defer src="https://buttons.github.io/buttons.js"></script>
|
||||
|
||||
@@ -148,6 +148,11 @@
|
||||
$(this).addClass('current');
|
||||
}
|
||||
});
|
||||
|
||||
// Intercept dropdown clicks for the demo
|
||||
$('.dropdown').on('select', function(event) {
|
||||
event.preventDefault();
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<script async defer src="https://buttons.github.io/buttons.js"></script>
|
||||
|
||||
@@ -234,6 +234,11 @@ $('#my-dropdown').removeClass('active');
|
||||
$(this).addClass('current');
|
||||
}
|
||||
});
|
||||
|
||||
// Intercept dropdown clicks for the demo
|
||||
$('.dropdown').on('select', function(event) {
|
||||
event.preventDefault();
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<script async defer src="https://buttons.github.io/buttons.js"></script>
|
||||
|
||||
@@ -183,6 +183,11 @@
|
||||
$(this).addClass('current');
|
||||
}
|
||||
});
|
||||
|
||||
// Intercept dropdown clicks for the demo
|
||||
$('.dropdown').on('select', function(event) {
|
||||
event.preventDefault();
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<script async defer src="https://buttons.github.io/buttons.js"></script>
|
||||
|
||||
@@ -645,6 +645,11 @@
|
||||
$(this).addClass('current');
|
||||
}
|
||||
});
|
||||
|
||||
// Intercept dropdown clicks for the demo
|
||||
$('.dropdown').on('select', function(event) {
|
||||
event.preventDefault();
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<script async defer src="https://buttons.github.io/buttons.js"></script>
|
||||
|
||||
@@ -341,6 +341,11 @@
|
||||
$(this).addClass('current');
|
||||
}
|
||||
});
|
||||
|
||||
// Intercept dropdown clicks for the demo
|
||||
$('.dropdown').on('select', function(event) {
|
||||
event.preventDefault();
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<script async defer src="https://buttons.github.io/buttons.js"></script>
|
||||
|
||||
@@ -128,6 +128,11 @@
|
||||
$(this).addClass('current');
|
||||
}
|
||||
});
|
||||
|
||||
// Intercept dropdown clicks for the demo
|
||||
$('.dropdown').on('select', function(event) {
|
||||
event.preventDefault();
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<script async defer src="https://buttons.github.io/buttons.js"></script>
|
||||
|
||||
@@ -116,6 +116,11 @@
|
||||
$(this).addClass('current');
|
||||
}
|
||||
});
|
||||
|
||||
// Intercept dropdown clicks for the demo
|
||||
$('.dropdown').on('select', function(event) {
|
||||
event.preventDefault();
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<script async defer src="https://buttons.github.io/buttons.js"></script>
|
||||
|
||||
@@ -164,6 +164,11 @@
|
||||
$(this).addClass('current');
|
||||
}
|
||||
});
|
||||
|
||||
// Intercept dropdown clicks for the demo
|
||||
$('.dropdown').on('select', function(event) {
|
||||
event.preventDefault();
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<script async defer src="https://buttons.github.io/buttons.js"></script>
|
||||
|
||||
@@ -206,6 +206,11 @@
|
||||
$(this).addClass('current');
|
||||
}
|
||||
});
|
||||
|
||||
// Intercept dropdown clicks for the demo
|
||||
$('.dropdown').on('select', function(event) {
|
||||
event.preventDefault();
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<script async defer src="https://buttons.github.io/buttons.js"></script>
|
||||
|
||||
@@ -232,6 +232,11 @@
|
||||
$(this).addClass('current');
|
||||
}
|
||||
});
|
||||
|
||||
// Intercept dropdown clicks for the demo
|
||||
$('.dropdown').on('select', function(event) {
|
||||
event.preventDefault();
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<script async defer src="https://buttons.github.io/buttons.js"></script>
|
||||
|
||||
@@ -175,6 +175,11 @@
|
||||
$(this).addClass('current');
|
||||
}
|
||||
});
|
||||
|
||||
// Intercept dropdown clicks for the demo
|
||||
$('.dropdown').on('select', function(event) {
|
||||
event.preventDefault();
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<script async defer src="https://buttons.github.io/buttons.js"></script>
|
||||
|
||||
@@ -237,6 +237,11 @@
|
||||
$(this).addClass('current');
|
||||
}
|
||||
});
|
||||
|
||||
// Intercept dropdown clicks for the demo
|
||||
$('.dropdown').on('select', function(event) {
|
||||
event.preventDefault();
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<script async defer src="https://buttons.github.io/buttons.js"></script>
|
||||
|
||||
@@ -303,6 +303,11 @@ mar-[t|r|b|l|x|y]-[0|xs|sm|md|lg|xl]
|
||||
$(this).addClass('current');
|
||||
}
|
||||
});
|
||||
|
||||
// Intercept dropdown clicks for the demo
|
||||
$('.dropdown').on('select', function(event) {
|
||||
event.preventDefault();
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<script async defer src="https://buttons.github.io/buttons.js"></script>
|
||||
|
||||
@@ -99,6 +99,11 @@
|
||||
$(this).addClass('current');
|
||||
}
|
||||
});
|
||||
|
||||
// Intercept dropdown clicks for the demo
|
||||
$('.dropdown').on('select', function(event) {
|
||||
event.preventDefault();
|
||||
});
|
||||
});
|
||||
</script>
|
||||
{{#each scripts}}
|
||||
|
||||
Reference in New Issue
Block a user