Skip to content

Instantly share code, notes, and snippets.

@ohoroyoi
Created September 19, 2018 06:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ohoroyoi/977980f28b4605f9d4d4bb90b15c796a to your computer and use it in GitHub Desktop.
Save ohoroyoi/977980f28b4605f9d4d4bb90b15c796a to your computer and use it in GitHub Desktop.
const animatedBounce = function({ selector = ".ohoroyoi", ...rest } = {}) {
$(selector).addClass('animated bounce');
return Promise.resolve(true);
}
const makeChosen = function({ selector = "#ohoroyoi_table", ...rest } = {}) {
$(selector).chosen({
width: "100%"
});
return Promise.resolve(true);
}
async function bounceWindow() {
await animatedBounce()
await makeChosen()
}
bounceWindow()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment