mikeflynn / egg.js Goto Github PK
View Code? Open in Web Editor NEWA simple javascript library to add easter eggs to web pages.
Home Page: https://mikeflynn.github.io/egg.js/
License: MIT License
A simple javascript library to add easter eggs to web pages.
Home Page: https://mikeflynn.github.io/egg.js/
License: MIT License
I was just wondering why you decided to use AddCode()
instead of addCode()
.
Hi, Mike.
Are there any demo pages that we can see?
Thx.
Hi @mikeflynn, I am the member of cdnjs, and we wants to host this repository. However, I found that that there is not any tag about this repository,
Could you help me add the version tag? Thanks!
Why would you put some things in addHook
and some things in the main callback? Why wouldn't you just omit the addHook
call and put it all inside the main callback?
Thanks!
Hi @mikeflynn,
I really like your plugin.
In my case, I would like to use this Egg only, if a jQuery Modal is opened. This already works fine.
$(document).on('opened', bullseye, function () {
var eggBullseyeLeft = new Egg();
eggBullseyeLeft
.addCode("left", function(){switchBullTab("left")}, 'eggBullseyeLeft')
.listen();
});
My problem is, that I don't want the Egg to be executed, when the modal is closed. I've tried to overwrite the var eggBullseyeLeft with an empty string or with an empty function like here:
$(document).on('closed', bullseye, function () {
var eggBullseyeLeft = new Egg();
eggBullseyeLeft
.addCode("left", function(){}, 'eggBullseyeLeft')
.listen();
});
But the original switchBullTab is still being triggered.
Can you please help me, how to remove the Egg?
Thank you very much for your effort.
Best regards,
Thomas
This doesn't fire.
new Egg("§", function() {
console.log('Pressed §');
}).listen();
Hi @mikeflynn
In bower.json say that it's MIT License, but package.json say it's ISC License.
Could you clarify which it is and, if possible, also add a LICENSE file ?
I tried entering the konami code on the demo site, and nothing happened.
I'm using ubuntu 16.04, chrome 58.0.3029.81 and a Swedish keyboard layout.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.