From 3de6641b71c352730a714787028a6ae741fdac1f Mon Sep 17 00:00:00 2001 From: Jordan Scales Date: Wed, 22 Jul 2015 13:42:37 -0400 Subject: [PATCH] v0.0.9 build --- build/tota11y.js | 1231 +++++++++++++++++++++++------------------- build/tota11y.min.js | 18 +- package.json | 2 +- 3 files changed, 684 insertions(+), 567 deletions(-) diff --git a/build/tota11y.js b/build/tota11y.js index 9a029458..5e746507 100644 --- a/build/tota11y.js +++ b/build/tota11y.js @@ -9,7 +9,7 @@ * Released under the MIT license * http://github.com/Khan/tota11y/blob/master/LICENSE.txt * - * Date: 2015-07-20 + * Date: 2015-07-22 * */ /******/ (function(modules) { // webpackBootstrap @@ -61,395 +61,150 @@ \******************/ /***/ function(module, exports, __webpack_require__) { - /** - * The entry point for tota11y. - * - * Builds and mounts the toolbar. - */ - - // Require the base tota11y styles right away so they can be overwritten - "use strict"; - - var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })(); - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - __webpack_require__(/*! ./less/tota11y.less */ 3); - - var $ = __webpack_require__(/*! jquery */ 7); - - var plugins = __webpack_require__(/*! ./plugins */ 8); - var toolbarTemplate = __webpack_require__(/*! ./templates/toolbar.handlebars */ 45); - - // Chrome Accessibility Developer Tools - required once as a global - __webpack_require__(/*! script!./~/accessibility-developer-tools/dist/js/axs_testing.js */ 46); - - var Toolbar = (function () { - function Toolbar() { - _classCallCheck(this, Toolbar); - } - - _createClass(Toolbar, [{ - key: "appendTo", - value: function appendTo($el) { - var $toolbar = $(toolbarTemplate()); - $el.append($toolbar); - - $toolbar.find(".tota11y-toolbar-toggle").click(function (e) { - e.preventDefault(); - e.stopPropagation(); - $toolbar.toggleClass("tota11y-expanded"); - }); - - // Attach each plugin - var $pluginsContainer = $toolbar.find(".tota11y-plugins"); - plugins.forEach(function (plugin) { - // Mount the plugin to the list - plugin.appendTo($pluginsContainer); - }); - } - }]); - - return Toolbar; - })(); - - $(function () { - // Attach the global `axs` object from Accessibility Developer Tools to $ - $.axs = axs; - - var bar = new Toolbar(); - - // TODO: Make this customizable - bar.appendTo($("body")); - }); - -/***/ }, -/* 1 */, -/* 2 */, -/* 3 */ -/*!***************************!*\ - !*** ./less/tota11y.less ***! - \***************************/ -/***/ function(module, exports, __webpack_require__) { - - // style-loader: Adds some css to the DOM by adding a