-
-
Save cinghaman/670ae1e551c0149d07d6de471b4d8930 to your computer and use it in GitHub Desktop.
On MouseOver change text logo with random text
This file contains hidden or 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
<script> | |
jQuery(document).ready(function(t) { | |
var o = t("#logo"), | |
n = !1, | |
s = ["make some noise", "make magic happen", "make yourself heard", "make time for you", "make history", "make it count", "make a bold move", "make mama some money", "make me a drank", "make that hotline bling", "make it rain", "make a difference", "make your dreams real", "make your move", "make it outfuckingstanding", "make it outstanding", "make mashed potatoes", "make connections", "make guacamole", "make your art", "make’m want more", "make success inevitable", "make a leap of faith", "make someone laugh", "make silly faces", "make misteaks mistakes often", "make work you love", "make money, change the world", "make dreams come true", "make peace", "make weird art", "make poo jokes", "make a ruckus", "make coffee", "make more art", "make it simple", "make the internet kinder", "make yourself proud", "make time for what matters", "make fart noises", "make memories", "make some magic", "make make-believe", "make work into play", "make new things", "make banana pancakes", "make it dirty", "make it matter", "make your soul happy", "make new friends", "make it happen", "make it unforgettable", "making meaning"], | |
r = 'make <span style="text-decoration: line-through;">misteaks</span> mistakes often.', | |
a = "make misteaks mistakes often.", | |
l = function(t) { | |
if (n === !1) { | |
o.off(), n = Math.floor(Math.random() * s.length); | |
var e = s[n]; | |
c(e) | |
} | |
}, | |
d = function(t) { | |
c("marie forleo") | |
}; | |
e() ? t("#page-front-page").length > 0 && i() : o.on("mouseenter", l).on("mouseleave", d); | |
var c = function(t) { | |
if (o.html() == r && o.html(a), o.html().length > 2) { | |
o.html(o.html().slice(0, -2) + "."); | |
setTimeout(function() { | |
c(t) | |
}, 5) | |
} else p(t, 1) | |
}, | |
p = function(t, e) { | |
if (e < t.length) { | |
o.html(o.html().slice(0, -1) + t.charAt(e) + "."), e += 1; | |
setTimeout(function() { | |
p(t, e) | |
}, 5) | |
} else o.html() == a && o.html(r), n = !1, o.on("mouseenter", l).on("mouseleave", d) | |
} | |
})(jQuery) | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment