Skip to content

ericqweinstein/konami-cljs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Konami-CLJS

Codeship Status for ericqweinstein/konami-cljs

About

Konami-CLJS is a little library that enables the Konami code on your site. It's more or less a port of Konami-JS to ClojureScript. Unlike the original, it does not (yet) support mobile touch events.

Installation

[org.clojars.eqw/konami-cljs "0.1.0-SNAPSHOT"]

Requirements

  • Clojure 1.7+
  • ClojureScript 1.7.122+

Examples

(ns example.core
 (:require [konami-cljs :refer [konami]]))

;; Like Konami-JS, the function takes a string...
(konami "http://www.example.com")

;; ...or a callback to execute.
(konami #(js/alert "INFINITE LIVES"))

Contributing

  1. Branch (λ git checkout -b fancy-new-feature)
  2. Commit (λ git commit -m "Fanciness!")
  3. Lint && test (λ lein run-tests)
  4. Push (λ git push origin fancy-new-feature)
  5. Ye Olde Pulle Request

License

Copyright © 2015 Eric Weinstein. Distributed under the MIT license (see LICENSE).

About

A little Konami code library in ClojureScript.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published