From e8751fa215efe8d0d124df51a00bbf9daa66974d Mon Sep 17 00:00:00 2001 From: Senad Uka Date: Mon, 9 Dec 2013 03:23:49 +0100 Subject: [PATCH] initial commit --- .gitignore | 19 - .idea/.generators | 8 + .idea/.name | 1 + .idea/.rakeTasks | 7 + .idea/dataSources.ids | 6 + .idea/dataSources.xml | 12 + .idea/encodings.xml | 5 + .idea/misc.xml | 5 + .idea/modules.xml | 9 + .idea/rijeci.iml | 206 ++ .../runConfigurations/Development__rijeci.xml | 30 + .../runConfigurations/Production__rijeci.xml | 28 + .idea/runConfigurations/spec__rijeci.xml | 26 + .idea/runConfigurations/test__rijeci.xml | 28 + .idea/scopes/scope_settings.xml | 5 + .idea/vcs.xml | 7 + .idea/workspace.xml | 1049 ++++++ Gemfile | 49 + Gemfile.lock | 123 + LICENSE | 20 - README.md | 2 - README.rdoc | 28 + Rakefile | 6 + app/assets/images/.keep | 0 app/assets/javascripts/application.js | 16 + app/assets/javascripts/guesses.js.coffee | 3 + app/assets/javascripts/jquery.min.js | 4 + app/assets/javascripts/lodash.min.js | 42 + app/assets/javascripts/results.js.coffee | 3 + app/assets/javascripts/solutions.js.coffee | 3 + app/assets/javascripts/users.js.coffee | 3 + app/assets/stylesheets/application.css | 13 + app/assets/stylesheets/main.css | 324 ++ app/assets/stylesheets/normalize.css | 396 +++ app/assets/stylesheets/oxygen400.eot | Bin 0 -> 21070 bytes app/assets/stylesheets/oxygen400.ttf | Bin 0 -> 25596 bytes app/assets/stylesheets/oxygen400.woff | Bin 0 -> 23336 bytes app/assets/stylesheets/oxygen700.eot | Bin 0 -> 21728 bytes app/assets/stylesheets/oxygen700.ttf | Bin 0 -> 27552 bytes app/assets/stylesheets/oxygen700.woff | Bin 0 -> 23868 bytes app/controllers/application_controller.rb | 20 + app/controllers/concerns/.keep | 0 app/controllers/guesses_controller.rb | 34 + app/controllers/results_controller.rb | 45 + app/controllers/solutions_controller.rb | 37 + app/controllers/users_controller.rb | 12 + app/helpers/application_helper.rb | 2 + app/helpers/guesses_helper.rb | 2 + app/helpers/results_helper.rb | 2 + app/helpers/solutions_helper.rb | 2 + app/helpers/users_helper.rb | 2 + app/mailers/.keep | 0 app/models/.keep | 0 app/models/concerns/.keep | 0 app/models/concerns/formatable.rb | 10 + app/models/guess.rb | 3 + app/models/solution.rb | 3 + app/models/user.rb | 2 + app/views/guesses/index.html.erb | 9 + app/views/guesses/index.json.jbuilder | 4 + app/views/guesses/show.html.erb | 1 + app/views/guesses/show.json.jbuilder | 3 + app/views/layouts/application.html.erb | 28 + app/views/results/_form.html.erb | 25 + app/views/results/edit.html.erb | 6 + app/views/results/index.html.erb | 29 + app/views/results/index.json.jbuilder | 4 + app/views/results/new.html.erb | 5 + app/views/results/show.html.erb | 14 + app/views/results/show.json.jbuilder | 1 + app/views/solutions/index.html.erb | 11 + app/views/solutions/index.json.jbuilder | 4 + app/views/solutions/show.json.jbuilder | 1 + app/views/users/index.html.erb | 19 + bin/bundle | 3 + bin/rails | 4 + bin/rake | 4 + config.ru | 4 + config/application.rb | 31 + config/boot.rb | 4 + config/database.yml | 25 + config/environment.rb | 5 + config/environments/development.rb | 29 + config/environments/production.rb | 80 + config/environments/test.rb | 36 + config/initializers/backtrace_silencers.rb | 7 + .../initializers/filter_parameter_logging.rb | 4 + config/initializers/inflections.rb | 16 + config/initializers/mime_types.rb | 5 + config/initializers/rails_intelligence.rb | 7 + config/initializers/secret_token.rb | 12 + config/initializers/session_store.rb | 3 + config/initializers/wrap_parameters.rb | 14 + config/locales/en.yml | 23 + config/routes.rb | 64 + db/development.sqlite3 | Bin 0 -> 32768 bytes db/migrate/20131202062124_create_users.rb | 10 + db/migrate/20131204034931_create_results.rb | 10 + db/migrate/20131204054438_create_guesses.rb | 10 + db/migrate/20131206040324_create_solutions.rb | 11 + db/schema.rb | 45 + db/seeds.rb | 7 + lib/assets/.keep | 0 lib/tasks/.keep | 0 log/.keep | 0 log/development.log | 2945 +++++++++++++++++ public/404.html | 58 + public/422.html | 58 + public/500.html | 57 + public/favicon.ico | 0 public/robots.txt | 5 + test/controllers/.keep | 0 test/controllers/guesses_controller_test.rb | 49 + test/controllers/results_controller_test.rb | 49 + test/controllers/solutions_controller_test.rb | 49 + test/controllers/users_controller_test.rb | 49 + test/fixtures/.keep | 0 test/fixtures/guesses.yml | 9 + test/fixtures/results.yml | 9 + test/fixtures/solutions.yml | 11 + test/fixtures/users.yml | 9 + test/helpers/.keep | 0 test/helpers/guesses_helper_test.rb | 4 + test/helpers/results_helper_test.rb | 4 + test/helpers/solutions_helper_test.rb | 4 + test/helpers/users_helper_test.rb | 4 + test/integration/.keep | 0 test/mailers/.keep | 0 test/models/.keep | 0 test/models/guess_test.rb | 7 + test/models/result_test.rb | 7 + test/models/solution_test.rb | 7 + test/models/user_test.rb | 7 + test/test_helper.rb | 15 + .../guesses.css.scssc | Bin 0 -> 627 bytes .../results.css.scssc | Bin 0 -> 627 bytes .../scaffolds.css.scssc | Bin 0 -> 6428 bytes .../solutions.css.scssc | Bin 0 -> 631 bytes .../users.css.scssc | Bin 0 -> 623 bytes .../0047700ea779987f6a0536e0ffe7e50b | Bin 0 -> 432 bytes .../087bc964d7fbf2835191c01aeb2de9ef | Bin 0 -> 387 bytes .../0f37c24157481727506d5cee253b862b | Bin 0 -> 387 bytes .../10fcfbe6ebae11a40c8eac41939a1b9a | Bin 0 -> 1699 bytes .../13fe41fee1fe35b49d145bcc06610705 | Bin 0 -> 17879 bytes .../1bc7c900dde980b87724bb4e202703a4 | Bin 0 -> 391 bytes .../1e9125b3e03214fb5b81a11fec52bb66 | Bin 0 -> 16317 bytes .../2f5173deea6c795b8fdde723bb4b63af | Bin 0 -> 415356 bytes .../33aaef682369dc4512592dc7916d828b | Bin 0 -> 13713 bytes .../353b2429f9603474e08d9fd3c25e4256 | Bin 0 -> 273661 bytes .../357970feca3ac29060c1e3861e2c0953 | Bin 0 -> 17879 bytes .../386e9196dd0f9efdce6f92ce93a6d107 | Bin 0 -> 10242 bytes .../3f9170db678c4e1fdfa51752e5ec8e39 | Bin 0 -> 10005 bytes .../45aee25c5c1d95452d76a4f87ad35114 | Bin 0 -> 13713 bytes .../48a05d6e93e04dd9d51612a3fcf2f46b | Bin 0 -> 648 bytes .../4ad413f3e3326481d2f5f9327bbd0e12 | Bin 0 -> 428 bytes .../500148feaeeef317938376f4d6eba493 | Bin 0 -> 273661 bytes .../52ec48e9c89bcca208359440e9cebe62 | Bin 0 -> 640 bytes .../54da75a4f975617a5e964da777e63722 | Bin 0 -> 319 bytes .../5721518c3e00804cb4b6368ed7dfbe12 | Bin 0 -> 319 bytes .../5abacabd6ba99f72779081215d21869b | Bin 0 -> 19649 bytes .../5b4907b56378cc81ec961c24ad4a10eb | Bin 0 -> 7737 bytes .../6659bb7317146552d38728df6a6da31c | Bin 0 -> 325 bytes .../6731cd844b07acc86708ce39bc6bb83a | Bin 0 -> 319 bytes .../6c0f2a2c7346b84a92e2cb81473e251b | Bin 0 -> 632 bytes .../6d750e81221aab57891c927189815b73 | Bin 0 -> 387 bytes .../773954174f64e89d38451dd8e9092b04 | Bin 0 -> 19649 bytes .../801aab3195e8a9520d0ebd769de0446d | Bin 0 -> 325 bytes .../80f00ae2e1922cc9a70620780be9bc15 | Bin 0 -> 274026 bytes .../8287b99e425e9bdb3c49e6f6532170c4 | Bin 0 -> 687 bytes .../85ae64edf528ce6e981889f3f3c285d9 | Bin 0 -> 679 bytes .../8618cf35e48a1995329f3fcfea006ced | Bin 0 -> 695 bytes .../883fcfd6bdc0b9987d28e302cdccb5d6 | Bin 0 -> 15944 bytes .../92dbaf4ce94050174db723e5eeca00c6 | Bin 0 -> 387 bytes .../932077d56e270ee5f6064fc496fb7647 | Bin 0 -> 391 bytes .../9443a4df05e4cc865b708fd2f2b5b4d8 | Bin 0 -> 7984 bytes .../977ead1d20bc9f7e1c191bd4348f9e3a | Bin 0 -> 383 bytes .../981fdf59c6c819da5a85424ee749e704 | Bin 0 -> 383 bytes .../9a038be696cbcf0834d1639950b1946b | Bin 0 -> 93725 bytes .../ae3a952d6d3d42921dd513bbe53d34bc | Bin 0 -> 687 bytes .../b3613fef4562d2ab6f754e78ab7e9a45 | Bin 0 -> 15944 bytes .../b38cb25e6679c5b7e0c51ab0c16e5cd2 | Bin 0 -> 436 bytes .../b920c29f600dc1180696db79a2c8ae50 | Bin 0 -> 640 bytes .../bd3936370d0f952ada5774e2230046ed | Bin 0 -> 1442 bytes .../cd6137e659740e45ff55b6988b9c6750 | Bin 0 -> 319 bytes .../cffd775d018f68ce5dba1ee0d951a994 | Bin 0 -> 415356 bytes .../d41741c431040d30557864a6dcb69afc | Bin 0 -> 436 bytes .../d549fc4360368735251751c5cf164322 | Bin 0 -> 432 bytes .../d771ace226fc8215a3572e0aa35bb0d6 | Bin 0 -> 1691 bytes .../d78cd759a491d66339818255da05532c | Bin 0 -> 432 bytes .../d7b254982801ce8d5b406ea9716ceb5a | Bin 0 -> 7737 bytes .../deac032505916fe082eeb334b69f5950 | Bin 0 -> 386 bytes .../e2e8f7f4c2e46b20bbaa95d67e83c41e | Bin 0 -> 428 bytes .../e36b8fcf5914a3a6bf058abfe7367b19 | Bin 0 -> 10005 bytes .../e459168835a5f27b832ace20874f7c10 | Bin 0 -> 1442 bytes .../e480d73674d6e4e77f8b4911cef810b9 | Bin 0 -> 14090 bytes .../f391b64235b7ad17b81ab7754710ea1d | Bin 0 -> 93478 bytes .../f7cbd26ba1d28d48de824f0e94586655 | Bin 0 -> 3604 bytes .../f9dc6676c690fdd1156bf7fe1f055a50 | Bin 0 -> 386 bytes .../fb2c449fd65a421ab0343a2ec3358f14 | Bin 0 -> 93478 bytes .../fd7a15734013e24a3779ef20a7f3d281 | Bin 0 -> 432 bytes .../fdd0b729da4bef3d459b0856e70c416d | Bin 0 -> 19896 bytes tmp/pids/server.pid | 1 + vendor/assets/javascripts/.keep | 0 vendor/assets/stylesheets/.keep | 0 204 files changed, 6675 insertions(+), 41 deletions(-) delete mode 100644 .gitignore create mode 100644 .idea/.generators create mode 100644 .idea/.name create mode 100644 .idea/.rakeTasks create mode 100644 .idea/dataSources.ids create mode 100644 .idea/dataSources.xml create mode 100644 .idea/encodings.xml create mode 100644 .idea/misc.xml create mode 100644 .idea/modules.xml create mode 100644 .idea/rijeci.iml create mode 100644 .idea/runConfigurations/Development__rijeci.xml create mode 100644 .idea/runConfigurations/Production__rijeci.xml create mode 100644 .idea/runConfigurations/spec__rijeci.xml create mode 100644 .idea/runConfigurations/test__rijeci.xml create mode 100644 .idea/scopes/scope_settings.xml create mode 100644 .idea/vcs.xml create mode 100644 .idea/workspace.xml create mode 100644 Gemfile create mode 100644 Gemfile.lock delete mode 100644 LICENSE delete mode 100644 README.md create mode 100644 README.rdoc create mode 100644 Rakefile create mode 100644 app/assets/images/.keep create mode 100644 app/assets/javascripts/application.js create mode 100644 app/assets/javascripts/guesses.js.coffee create mode 100644 app/assets/javascripts/jquery.min.js create mode 100644 app/assets/javascripts/lodash.min.js create mode 100644 app/assets/javascripts/results.js.coffee create mode 100644 app/assets/javascripts/solutions.js.coffee create mode 100644 app/assets/javascripts/users.js.coffee create mode 100644 app/assets/stylesheets/application.css create mode 100644 app/assets/stylesheets/main.css create mode 100644 app/assets/stylesheets/normalize.css create mode 100644 app/assets/stylesheets/oxygen400.eot create mode 100644 app/assets/stylesheets/oxygen400.ttf create mode 100644 app/assets/stylesheets/oxygen400.woff create mode 100644 app/assets/stylesheets/oxygen700.eot create mode 100644 app/assets/stylesheets/oxygen700.ttf create mode 100644 app/assets/stylesheets/oxygen700.woff create mode 100644 app/controllers/application_controller.rb create mode 100644 app/controllers/concerns/.keep create mode 100644 app/controllers/guesses_controller.rb create mode 100644 app/controllers/results_controller.rb create mode 100644 app/controllers/solutions_controller.rb create mode 100644 app/controllers/users_controller.rb create mode 100644 app/helpers/application_helper.rb create mode 100644 app/helpers/guesses_helper.rb create mode 100644 app/helpers/results_helper.rb create mode 100644 app/helpers/solutions_helper.rb create mode 100644 app/helpers/users_helper.rb create mode 100644 app/mailers/.keep create mode 100644 app/models/.keep create mode 100644 app/models/concerns/.keep create mode 100644 app/models/concerns/formatable.rb create mode 100644 app/models/guess.rb create mode 100644 app/models/solution.rb create mode 100644 app/models/user.rb create mode 100644 app/views/guesses/index.html.erb create mode 100644 app/views/guesses/index.json.jbuilder create mode 100644 app/views/guesses/show.html.erb create mode 100644 app/views/guesses/show.json.jbuilder create mode 100644 app/views/layouts/application.html.erb create mode 100644 app/views/results/_form.html.erb create mode 100644 app/views/results/edit.html.erb create mode 100644 app/views/results/index.html.erb create mode 100644 app/views/results/index.json.jbuilder create mode 100644 app/views/results/new.html.erb create mode 100644 app/views/results/show.html.erb create mode 100644 app/views/results/show.json.jbuilder create mode 100644 app/views/solutions/index.html.erb create mode 100644 app/views/solutions/index.json.jbuilder create mode 100644 app/views/solutions/show.json.jbuilder create mode 100644 app/views/users/index.html.erb create mode 100755 bin/bundle create mode 100755 bin/rails create mode 100755 bin/rake create mode 100644 config.ru create mode 100644 config/application.rb create mode 100644 config/boot.rb create mode 100644 config/database.yml create mode 100644 config/environment.rb create mode 100644 config/environments/development.rb create mode 100644 config/environments/production.rb create mode 100644 config/environments/test.rb create mode 100644 config/initializers/backtrace_silencers.rb create mode 100644 config/initializers/filter_parameter_logging.rb create mode 100644 config/initializers/inflections.rb create mode 100644 config/initializers/mime_types.rb create mode 100644 config/initializers/rails_intelligence.rb create mode 100644 config/initializers/secret_token.rb create mode 100644 config/initializers/session_store.rb create mode 100644 config/initializers/wrap_parameters.rb create mode 100644 config/locales/en.yml create mode 100644 config/routes.rb create mode 100644 db/development.sqlite3 create mode 100644 db/migrate/20131202062124_create_users.rb create mode 100644 db/migrate/20131204034931_create_results.rb create mode 100644 db/migrate/20131204054438_create_guesses.rb create mode 100644 db/migrate/20131206040324_create_solutions.rb create mode 100644 db/schema.rb create mode 100644 db/seeds.rb create mode 100644 lib/assets/.keep create mode 100644 lib/tasks/.keep create mode 100644 log/.keep create mode 100644 log/development.log create mode 100644 public/404.html create mode 100644 public/422.html create mode 100644 public/500.html create mode 100644 public/favicon.ico create mode 100644 public/robots.txt create mode 100644 test/controllers/.keep create mode 100644 test/controllers/guesses_controller_test.rb create mode 100644 test/controllers/results_controller_test.rb create mode 100644 test/controllers/solutions_controller_test.rb create mode 100644 test/controllers/users_controller_test.rb create mode 100644 test/fixtures/.keep create mode 100644 test/fixtures/guesses.yml create mode 100644 test/fixtures/results.yml create mode 100644 test/fixtures/solutions.yml create mode 100644 test/fixtures/users.yml create mode 100644 test/helpers/.keep create mode 100644 test/helpers/guesses_helper_test.rb create mode 100644 test/helpers/results_helper_test.rb create mode 100644 test/helpers/solutions_helper_test.rb create mode 100644 test/helpers/users_helper_test.rb create mode 100644 test/integration/.keep create mode 100644 test/mailers/.keep create mode 100644 test/models/.keep create mode 100644 test/models/guess_test.rb create mode 100644 test/models/result_test.rb create mode 100644 test/models/solution_test.rb create mode 100644 test/models/user_test.rb create mode 100644 test/test_helper.rb create mode 100644 tmp/cache/assets/development/sass/ac4eea5b332d599a562f8f4df657f86ab45c73b9/guesses.css.scssc create mode 100644 tmp/cache/assets/development/sass/ac4eea5b332d599a562f8f4df657f86ab45c73b9/results.css.scssc create mode 100644 tmp/cache/assets/development/sass/ac4eea5b332d599a562f8f4df657f86ab45c73b9/scaffolds.css.scssc create mode 100644 tmp/cache/assets/development/sass/ac4eea5b332d599a562f8f4df657f86ab45c73b9/solutions.css.scssc create mode 100644 tmp/cache/assets/development/sass/ac4eea5b332d599a562f8f4df657f86ab45c73b9/users.css.scssc create mode 100644 tmp/cache/assets/development/sprockets/0047700ea779987f6a0536e0ffe7e50b create mode 100644 tmp/cache/assets/development/sprockets/087bc964d7fbf2835191c01aeb2de9ef create mode 100644 tmp/cache/assets/development/sprockets/0f37c24157481727506d5cee253b862b create mode 100644 tmp/cache/assets/development/sprockets/10fcfbe6ebae11a40c8eac41939a1b9a create mode 100644 tmp/cache/assets/development/sprockets/13fe41fee1fe35b49d145bcc06610705 create mode 100644 tmp/cache/assets/development/sprockets/1bc7c900dde980b87724bb4e202703a4 create mode 100644 tmp/cache/assets/development/sprockets/1e9125b3e03214fb5b81a11fec52bb66 create mode 100644 tmp/cache/assets/development/sprockets/2f5173deea6c795b8fdde723bb4b63af create mode 100644 tmp/cache/assets/development/sprockets/33aaef682369dc4512592dc7916d828b create mode 100644 tmp/cache/assets/development/sprockets/353b2429f9603474e08d9fd3c25e4256 create mode 100644 tmp/cache/assets/development/sprockets/357970feca3ac29060c1e3861e2c0953 create mode 100644 tmp/cache/assets/development/sprockets/386e9196dd0f9efdce6f92ce93a6d107 create mode 100644 tmp/cache/assets/development/sprockets/3f9170db678c4e1fdfa51752e5ec8e39 create mode 100644 tmp/cache/assets/development/sprockets/45aee25c5c1d95452d76a4f87ad35114 create mode 100644 tmp/cache/assets/development/sprockets/48a05d6e93e04dd9d51612a3fcf2f46b create mode 100644 tmp/cache/assets/development/sprockets/4ad413f3e3326481d2f5f9327bbd0e12 create mode 100644 tmp/cache/assets/development/sprockets/500148feaeeef317938376f4d6eba493 create mode 100644 tmp/cache/assets/development/sprockets/52ec48e9c89bcca208359440e9cebe62 create mode 100644 tmp/cache/assets/development/sprockets/54da75a4f975617a5e964da777e63722 create mode 100644 tmp/cache/assets/development/sprockets/5721518c3e00804cb4b6368ed7dfbe12 create mode 100644 tmp/cache/assets/development/sprockets/5abacabd6ba99f72779081215d21869b create mode 100644 tmp/cache/assets/development/sprockets/5b4907b56378cc81ec961c24ad4a10eb create mode 100644 tmp/cache/assets/development/sprockets/6659bb7317146552d38728df6a6da31c create mode 100644 tmp/cache/assets/development/sprockets/6731cd844b07acc86708ce39bc6bb83a create mode 100644 tmp/cache/assets/development/sprockets/6c0f2a2c7346b84a92e2cb81473e251b create mode 100644 tmp/cache/assets/development/sprockets/6d750e81221aab57891c927189815b73 create mode 100644 tmp/cache/assets/development/sprockets/773954174f64e89d38451dd8e9092b04 create mode 100644 tmp/cache/assets/development/sprockets/801aab3195e8a9520d0ebd769de0446d create mode 100644 tmp/cache/assets/development/sprockets/80f00ae2e1922cc9a70620780be9bc15 create mode 100644 tmp/cache/assets/development/sprockets/8287b99e425e9bdb3c49e6f6532170c4 create mode 100644 tmp/cache/assets/development/sprockets/85ae64edf528ce6e981889f3f3c285d9 create mode 100644 tmp/cache/assets/development/sprockets/8618cf35e48a1995329f3fcfea006ced create mode 100644 tmp/cache/assets/development/sprockets/883fcfd6bdc0b9987d28e302cdccb5d6 create mode 100644 tmp/cache/assets/development/sprockets/92dbaf4ce94050174db723e5eeca00c6 create mode 100644 tmp/cache/assets/development/sprockets/932077d56e270ee5f6064fc496fb7647 create mode 100644 tmp/cache/assets/development/sprockets/9443a4df05e4cc865b708fd2f2b5b4d8 create mode 100644 tmp/cache/assets/development/sprockets/977ead1d20bc9f7e1c191bd4348f9e3a create mode 100644 tmp/cache/assets/development/sprockets/981fdf59c6c819da5a85424ee749e704 create mode 100644 tmp/cache/assets/development/sprockets/9a038be696cbcf0834d1639950b1946b create mode 100644 tmp/cache/assets/development/sprockets/ae3a952d6d3d42921dd513bbe53d34bc create mode 100644 tmp/cache/assets/development/sprockets/b3613fef4562d2ab6f754e78ab7e9a45 create mode 100644 tmp/cache/assets/development/sprockets/b38cb25e6679c5b7e0c51ab0c16e5cd2 create mode 100644 tmp/cache/assets/development/sprockets/b920c29f600dc1180696db79a2c8ae50 create mode 100644 tmp/cache/assets/development/sprockets/bd3936370d0f952ada5774e2230046ed create mode 100644 tmp/cache/assets/development/sprockets/cd6137e659740e45ff55b6988b9c6750 create mode 100644 tmp/cache/assets/development/sprockets/cffd775d018f68ce5dba1ee0d951a994 create mode 100644 tmp/cache/assets/development/sprockets/d41741c431040d30557864a6dcb69afc create mode 100644 tmp/cache/assets/development/sprockets/d549fc4360368735251751c5cf164322 create mode 100644 tmp/cache/assets/development/sprockets/d771ace226fc8215a3572e0aa35bb0d6 create mode 100644 tmp/cache/assets/development/sprockets/d78cd759a491d66339818255da05532c create mode 100644 tmp/cache/assets/development/sprockets/d7b254982801ce8d5b406ea9716ceb5a create mode 100644 tmp/cache/assets/development/sprockets/deac032505916fe082eeb334b69f5950 create mode 100644 tmp/cache/assets/development/sprockets/e2e8f7f4c2e46b20bbaa95d67e83c41e create mode 100644 tmp/cache/assets/development/sprockets/e36b8fcf5914a3a6bf058abfe7367b19 create mode 100644 tmp/cache/assets/development/sprockets/e459168835a5f27b832ace20874f7c10 create mode 100644 tmp/cache/assets/development/sprockets/e480d73674d6e4e77f8b4911cef810b9 create mode 100644 tmp/cache/assets/development/sprockets/f391b64235b7ad17b81ab7754710ea1d create mode 100644 tmp/cache/assets/development/sprockets/f7cbd26ba1d28d48de824f0e94586655 create mode 100644 tmp/cache/assets/development/sprockets/f9dc6676c690fdd1156bf7fe1f055a50 create mode 100644 tmp/cache/assets/development/sprockets/fb2c449fd65a421ab0343a2ec3358f14 create mode 100644 tmp/cache/assets/development/sprockets/fd7a15734013e24a3779ef20a7f3d281 create mode 100644 tmp/cache/assets/development/sprockets/fdd0b729da4bef3d459b0856e70c416d create mode 100644 tmp/pids/server.pid create mode 100644 vendor/assets/javascripts/.keep create mode 100644 vendor/assets/stylesheets/.keep diff --git a/.gitignore b/.gitignore deleted file mode 100644 index 470ad2f..0000000 --- a/.gitignore +++ /dev/null @@ -1,19 +0,0 @@ -*.rbc -*.sassc -.sass-cache -capybara-*.html -.rspec -.rvmrc -/.bundle -/vendor/bundle -/log/* -/tmp/* -/db/*.sqlite3 -/public/system/* -/coverage/ -/spec/tmp/* -**.orig -rerun.txt -pickle-email-*.html -.project -config/initializers/secret_token.rb diff --git a/.idea/.generators b/.idea/.generators new file mode 100644 index 0000000..cfecd05 --- /dev/null +++ b/.idea/.generators @@ -0,0 +1,8 @@ + + diff --git a/.idea/.name b/.idea/.name new file mode 100644 index 0000000..86e8310 --- /dev/null +++ b/.idea/.name @@ -0,0 +1 @@ +rijeci \ No newline at end of file diff --git a/.idea/.rakeTasks b/.idea/.rakeTasks new file mode 100644 index 0000000..136435d --- /dev/null +++ b/.idea/.rakeTasks @@ -0,0 +1,7 @@ + + diff --git a/.idea/dataSources.ids b/.idea/dataSources.ids new file mode 100644 index 0000000..bdb72c1 --- /dev/null +++ b/.idea/dataSources.ids @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/.idea/dataSources.xml b/.idea/dataSources.xml new file mode 100644 index 0000000..a171b98 --- /dev/null +++ b/.idea/dataSources.xml @@ -0,0 +1,12 @@ + + + + + sqlite.xerial + org.sqlite.JDBC + jdbc:sqlite:$PROJECT_DIR$/db/development.sqlite3 + + + + + diff --git a/.idea/encodings.xml b/.idea/encodings.xml new file mode 100644 index 0000000..e206d70 --- /dev/null +++ b/.idea/encodings.xml @@ -0,0 +1,5 @@ + + + + + diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..bfb48aa --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,5 @@ + + + + + diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..36bec0d --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/.idea/rijeci.iml b/.idea/rijeci.iml new file mode 100644 index 0000000..c9990ce --- /dev/null +++ b/.idea/rijeci.iml @@ -0,0 +1,206 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/.idea/runConfigurations/Development__rijeci.xml b/.idea/runConfigurations/Development__rijeci.xml new file mode 100644 index 0000000..01b91c4 --- /dev/null +++ b/.idea/runConfigurations/Development__rijeci.xml @@ -0,0 +1,30 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/runConfigurations/Production__rijeci.xml b/.idea/runConfigurations/Production__rijeci.xml new file mode 100644 index 0000000..f09b8a8 --- /dev/null +++ b/.idea/runConfigurations/Production__rijeci.xml @@ -0,0 +1,28 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/runConfigurations/spec__rijeci.xml b/.idea/runConfigurations/spec__rijeci.xml new file mode 100644 index 0000000..9304924 --- /dev/null +++ b/.idea/runConfigurations/spec__rijeci.xml @@ -0,0 +1,26 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/runConfigurations/test__rijeci.xml b/.idea/runConfigurations/test__rijeci.xml new file mode 100644 index 0000000..b961257 --- /dev/null +++ b/.idea/runConfigurations/test__rijeci.xml @@ -0,0 +1,28 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/scopes/scope_settings.xml b/.idea/scopes/scope_settings.xml new file mode 100644 index 0000000..922003b --- /dev/null +++ b/.idea/scopes/scope_settings.xml @@ -0,0 +1,5 @@ + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..def6a6a --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/.idea/workspace.xml b/.idea/workspace.xml new file mode 100644 index 0000000..b52901b --- /dev/null +++ b/.idea/workspace.xml @@ -0,0 +1,1049 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1385869926577 + 1385869926577 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Gemfile b/Gemfile new file mode 100644 index 0000000..e2b69c4 --- /dev/null +++ b/Gemfile @@ -0,0 +1,49 @@ +source 'https://rubygems.org' + +# Bundle edge Rails instead: gem 'rails', github: 'rails/rails' +gem 'rails', '4.0.1' + +# Use sqlite3 as the database for Active Record +gem 'sqlite3' + +# Use SCSS for stylesheets +gem 'sass-rails', '~> 4.0.0' + +# Use Uglifier as compressor for JavaScript assets +gem 'uglifier', '>= 1.3.0' + +# Use CoffeeScript for .js.coffee assets and views +gem 'coffee-rails', '~> 4.0.0' + +# See https://github.com/sstephenson/execjs#readme for more supported runtimes +# gem 'therubyracer', platforms: :ruby + +# Use jquery as the JavaScript library +gem 'jquery-rails' + +# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks +gem 'turbolinks' + +# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder +gem 'jbuilder', '~> 1.2' + +group :doc do + # bundle exec rake doc:rails generates the API under doc/api. + gem 'sdoc', require: false +end + +gem 'rack-cors', :require => 'rack/cors' + +gem 'ridc' + +# Use ActiveModel has_secure_password +# gem 'bcrypt-ruby', '~> 3.1.2' + +# Use unicorn as the app server +# gem 'unicorn' + +# Use Capistrano for deployment +# gem 'capistrano', group: :development + +# Use debugger +# gem 'debugger', group: [:development, :test] diff --git a/Gemfile.lock b/Gemfile.lock new file mode 100644 index 0000000..870fb54 --- /dev/null +++ b/Gemfile.lock @@ -0,0 +1,123 @@ +GEM + remote: https://rubygems.org/ + specs: + actionmailer (4.0.1) + actionpack (= 4.0.1) + mail (~> 2.5.4) + actionpack (4.0.1) + activesupport (= 4.0.1) + builder (~> 3.1.0) + erubis (~> 2.7.0) + rack (~> 1.5.2) + rack-test (~> 0.6.2) + activemodel (4.0.1) + activesupport (= 4.0.1) + builder (~> 3.1.0) + activerecord (4.0.1) + activemodel (= 4.0.1) + activerecord-deprecated_finders (~> 1.0.2) + activesupport (= 4.0.1) + arel (~> 4.0.0) + activerecord-deprecated_finders (1.0.3) + activesupport (4.0.1) + i18n (~> 0.6, >= 0.6.4) + minitest (~> 4.2) + multi_json (~> 1.3) + thread_safe (~> 0.1) + tzinfo (~> 0.3.37) + arel (4.0.1) + atomic (1.1.14) + builder (3.1.4) + coffee-rails (4.0.1) + coffee-script (>= 2.2.0) + railties (>= 4.0.0, < 5.0) + coffee-script (2.2.0) + coffee-script-source + execjs + coffee-script-source (1.6.3) + erubis (2.7.0) + execjs (2.0.2) + hike (1.2.3) + i18n (0.6.5) + jbuilder (1.5.2) + activesupport (>= 3.0.0) + multi_json (>= 1.2.0) + jquery-rails (3.0.4) + railties (>= 3.0, < 5.0) + thor (>= 0.14, < 2.0) + json (1.8.1) + mail (2.5.4) + mime-types (~> 1.16) + treetop (~> 1.4.8) + mime-types (1.25.1) + minitest (4.7.5) + multi_json (1.8.2) + polyglot (0.3.3) + rack (1.5.2) + rack-cors (0.2.9) + rack-test (0.6.2) + rack (>= 1.0) + rails (4.0.1) + actionmailer (= 4.0.1) + actionpack (= 4.0.1) + activerecord (= 4.0.1) + activesupport (= 4.0.1) + bundler (>= 1.3.0, < 2.0) + railties (= 4.0.1) + sprockets-rails (~> 2.0.0) + railties (4.0.1) + actionpack (= 4.0.1) + activesupport (= 4.0.1) + rake (>= 0.8.7) + thor (>= 0.18.1, < 2.0) + rake (10.1.0) + rdoc (3.12.2) + json (~> 1.4) + ridc (0.0.5) + sass (3.2.12) + sass-rails (4.0.1) + railties (>= 4.0.0, < 5.0) + sass (>= 3.1.10) + sprockets-rails (~> 2.0.0) + sdoc (0.3.20) + json (>= 1.1.3) + rdoc (~> 3.10) + sprockets (2.10.1) + hike (~> 1.2) + multi_json (~> 1.0) + rack (~> 1.0) + tilt (~> 1.1, != 1.3.0) + sprockets-rails (2.0.1) + actionpack (>= 3.0) + activesupport (>= 3.0) + sprockets (~> 2.8) + sqlite3 (1.3.8) + thor (0.18.1) + thread_safe (0.1.3) + atomic + tilt (1.4.1) + treetop (1.4.15) + polyglot + polyglot (>= 0.3.1) + turbolinks (1.3.1) + coffee-rails + tzinfo (0.3.38) + uglifier (2.3.1) + execjs (>= 0.3.0) + json (>= 1.8.0) + +PLATFORMS + ruby + +DEPENDENCIES + coffee-rails (~> 4.0.0) + jbuilder (~> 1.2) + jquery-rails + rack-cors + rails (= 4.0.1) + ridc + sass-rails (~> 4.0.0) + sdoc + sqlite3 + turbolinks + uglifier (>= 1.3.0) diff --git a/LICENSE b/LICENSE deleted file mode 100644 index 7caf637..0000000 --- a/LICENSE +++ /dev/null @@ -1,20 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2013 senaduka - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to deal in -the Software without restriction, including without limitation the rights to -use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of -the Software, and to permit persons to whom the Software is furnished to do so, -subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN -CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/README.md b/README.md deleted file mode 100644 index e90b179..0000000 --- a/README.md +++ /dev/null @@ -1,2 +0,0 @@ -rijeci -====== diff --git a/README.rdoc b/README.rdoc new file mode 100644 index 0000000..dd4e97e --- /dev/null +++ b/README.rdoc @@ -0,0 +1,28 @@ +== README + +This README would normally document whatever steps are necessary to get the +application up and running. + +Things you may want to cover: + +* Ruby version + +* System dependencies + +* Configuration + +* Database creation + +* Database initialization + +* How to run the test suite + +* Services (job queues, cache servers, search engines, etc.) + +* Deployment instructions + +* ... + + +Please feel free to use a different markup language if you do not plan to run +rake doc:app. diff --git a/Rakefile b/Rakefile new file mode 100644 index 0000000..e589ee3 --- /dev/null +++ b/Rakefile @@ -0,0 +1,6 @@ +# Add your own tasks in files placed in lib/tasks ending in .rake, +# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake. + +require File.expand_path('../config/application', __FILE__) + +Rijeci::Application.load_tasks diff --git a/app/assets/images/.keep b/app/assets/images/.keep new file mode 100644 index 0000000..e69de29 diff --git a/app/assets/javascripts/application.js b/app/assets/javascripts/application.js new file mode 100644 index 0000000..d6925fa --- /dev/null +++ b/app/assets/javascripts/application.js @@ -0,0 +1,16 @@ +// This is a manifest file that'll be compiled into application.js, which will include all the files +// listed below. +// +// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts, +// or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path. +// +// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the +// compiled file. +// +// Read Sprockets README (https://github.com/sstephenson/sprockets#sprockets-directives) for details +// about supported directives. +// +//= require jquery +//= require jquery_ujs +//= require turbolinks +//= require_tree . diff --git a/app/assets/javascripts/guesses.js.coffee b/app/assets/javascripts/guesses.js.coffee new file mode 100644 index 0000000..24f83d1 --- /dev/null +++ b/app/assets/javascripts/guesses.js.coffee @@ -0,0 +1,3 @@ +# Place all the behaviors and hooks related to the matching controller here. +# All this logic will automatically be available in application.js. +# You can use CoffeeScript in this file: http://coffeescript.org/ diff --git a/app/assets/javascripts/jquery.min.js b/app/assets/javascripts/jquery.min.js new file mode 100644 index 0000000..50d1b22 --- /dev/null +++ b/app/assets/javascripts/jquery.min.js @@ -0,0 +1,4 @@ +/*! jQuery v1.9.0 | (c) 2005, 2012 jQuery Foundation, Inc. | jquery.org/license */(function(e,t){"use strict";function n(e){var t=e.length,n=st.type(e);return st.isWindow(e)?!1:1===e.nodeType&&t?!0:"array"===n||"function"!==n&&(0===t||"number"==typeof t&&t>0&&t-1 in e)}function r(e){var t=Tt[e]={};return st.each(e.match(lt)||[],function(e,n){t[n]=!0}),t}function i(e,n,r,i){if(st.acceptData(e)){var o,a,s=st.expando,u="string"==typeof n,l=e.nodeType,c=l?st.cache:e,f=l?e[s]:e[s]&&s;if(f&&c[f]&&(i||c[f].data)||!u||r!==t)return f||(l?e[s]=f=K.pop()||st.guid++:f=s),c[f]||(c[f]={},l||(c[f].toJSON=st.noop)),("object"==typeof n||"function"==typeof n)&&(i?c[f]=st.extend(c[f],n):c[f].data=st.extend(c[f].data,n)),o=c[f],i||(o.data||(o.data={}),o=o.data),r!==t&&(o[st.camelCase(n)]=r),u?(a=o[n],null==a&&(a=o[st.camelCase(n)])):a=o,a}}function o(e,t,n){if(st.acceptData(e)){var r,i,o,a=e.nodeType,u=a?st.cache:e,l=a?e[st.expando]:st.expando;if(u[l]){if(t&&(r=n?u[l]:u[l].data)){st.isArray(t)?t=t.concat(st.map(t,st.camelCase)):t in r?t=[t]:(t=st.camelCase(t),t=t in r?[t]:t.split(" "));for(i=0,o=t.length;o>i;i++)delete r[t[i]];if(!(n?s:st.isEmptyObject)(r))return}(n||(delete u[l].data,s(u[l])))&&(a?st.cleanData([e],!0):st.support.deleteExpando||u!=u.window?delete u[l]:u[l]=null)}}}function a(e,n,r){if(r===t&&1===e.nodeType){var i="data-"+n.replace(Nt,"-$1").toLowerCase();if(r=e.getAttribute(i),"string"==typeof r){try{r="true"===r?!0:"false"===r?!1:"null"===r?null:+r+""===r?+r:wt.test(r)?st.parseJSON(r):r}catch(o){}st.data(e,n,r)}else r=t}return r}function s(e){var t;for(t in e)if(("data"!==t||!st.isEmptyObject(e[t]))&&"toJSON"!==t)return!1;return!0}function u(){return!0}function l(){return!1}function c(e,t){do e=e[t];while(e&&1!==e.nodeType);return e}function f(e,t,n){if(t=t||0,st.isFunction(t))return st.grep(e,function(e,r){var i=!!t.call(e,r,e);return i===n});if(t.nodeType)return st.grep(e,function(e){return e===t===n});if("string"==typeof t){var r=st.grep(e,function(e){return 1===e.nodeType});if(Wt.test(t))return st.filter(t,r,!n);t=st.filter(t,r)}return st.grep(e,function(e){return st.inArray(e,t)>=0===n})}function p(e){var t=zt.split("|"),n=e.createDocumentFragment();if(n.createElement)for(;t.length;)n.createElement(t.pop());return n}function d(e,t){return e.getElementsByTagName(t)[0]||e.appendChild(e.ownerDocument.createElement(t))}function h(e){var t=e.getAttributeNode("type");return e.type=(t&&t.specified)+"/"+e.type,e}function g(e){var t=nn.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function m(e,t){for(var n,r=0;null!=(n=e[r]);r++)st._data(n,"globalEval",!t||st._data(t[r],"globalEval"))}function y(e,t){if(1===t.nodeType&&st.hasData(e)){var n,r,i,o=st._data(e),a=st._data(t,o),s=o.events;if(s){delete a.handle,a.events={};for(n in s)for(r=0,i=s[n].length;i>r;r++)st.event.add(t,n,s[n][r])}a.data&&(a.data=st.extend({},a.data))}}function v(e,t){var n,r,i;if(1===t.nodeType){if(n=t.nodeName.toLowerCase(),!st.support.noCloneEvent&&t[st.expando]){r=st._data(t);for(i in r.events)st.removeEvent(t,i,r.handle);t.removeAttribute(st.expando)}"script"===n&&t.text!==e.text?(h(t).text=e.text,g(t)):"object"===n?(t.parentNode&&(t.outerHTML=e.outerHTML),st.support.html5Clone&&e.innerHTML&&!st.trim(t.innerHTML)&&(t.innerHTML=e.innerHTML)):"input"===n&&Zt.test(e.type)?(t.defaultChecked=t.checked=e.checked,t.value!==e.value&&(t.value=e.value)):"option"===n?t.defaultSelected=t.selected=e.defaultSelected:("input"===n||"textarea"===n)&&(t.defaultValue=e.defaultValue)}}function b(e,n){var r,i,o=0,a=e.getElementsByTagName!==t?e.getElementsByTagName(n||"*"):e.querySelectorAll!==t?e.querySelectorAll(n||"*"):t;if(!a)for(a=[],r=e.childNodes||e;null!=(i=r[o]);o++)!n||st.nodeName(i,n)?a.push(i):st.merge(a,b(i,n));return n===t||n&&st.nodeName(e,n)?st.merge([e],a):a}function x(e){Zt.test(e.type)&&(e.defaultChecked=e.checked)}function T(e,t){if(t in e)return t;for(var n=t.charAt(0).toUpperCase()+t.slice(1),r=t,i=Nn.length;i--;)if(t=Nn[i]+n,t in e)return t;return r}function w(e,t){return e=t||e,"none"===st.css(e,"display")||!st.contains(e.ownerDocument,e)}function N(e,t){for(var n,r=[],i=0,o=e.length;o>i;i++)n=e[i],n.style&&(r[i]=st._data(n,"olddisplay"),t?(r[i]||"none"!==n.style.display||(n.style.display=""),""===n.style.display&&w(n)&&(r[i]=st._data(n,"olddisplay",S(n.nodeName)))):r[i]||w(n)||st._data(n,"olddisplay",st.css(n,"display")));for(i=0;o>i;i++)n=e[i],n.style&&(t&&"none"!==n.style.display&&""!==n.style.display||(n.style.display=t?r[i]||"":"none"));return e}function C(e,t,n){var r=mn.exec(t);return r?Math.max(0,r[1]-(n||0))+(r[2]||"px"):t}function k(e,t,n,r,i){for(var o=n===(r?"border":"content")?4:"width"===t?1:0,a=0;4>o;o+=2)"margin"===n&&(a+=st.css(e,n+wn[o],!0,i)),r?("content"===n&&(a-=st.css(e,"padding"+wn[o],!0,i)),"margin"!==n&&(a-=st.css(e,"border"+wn[o]+"Width",!0,i))):(a+=st.css(e,"padding"+wn[o],!0,i),"padding"!==n&&(a+=st.css(e,"border"+wn[o]+"Width",!0,i)));return a}function E(e,t,n){var r=!0,i="width"===t?e.offsetWidth:e.offsetHeight,o=ln(e),a=st.support.boxSizing&&"border-box"===st.css(e,"boxSizing",!1,o);if(0>=i||null==i){if(i=un(e,t,o),(0>i||null==i)&&(i=e.style[t]),yn.test(i))return i;r=a&&(st.support.boxSizingReliable||i===e.style[t]),i=parseFloat(i)||0}return i+k(e,t,n||(a?"border":"content"),r,o)+"px"}function S(e){var t=V,n=bn[e];return n||(n=A(e,t),"none"!==n&&n||(cn=(cn||st("