Created
September 19, 2018 06:12
-
-
Save ohoroyoi/977980f28b4605f9d4d4bb90b15c796a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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