Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Make JS just about work

  • Loading branch information...
commit c340a95387713b41f850c4a2fa8d2bd0cc8dfcfa 1 parent 7ad77af
@ConradIrwin authored
Showing with 7 additions and 34,390 deletions.
  1. +1 −0  app/assets/javascripts/application.js
  2. +5 −5 app/assets/javascripts/kde.js.coffee
  3. 0  {old/components/d3 → app/assets/javascripts/lib}/d3.js
  4. 0  {old/components/jquery → app/assets/javascripts/lib}/jquery.js
  5. 0  {old/components/science.js → app/assets/javascripts/lib}/science.v1.js
  6. +0 −24 app/assets/javascripts/orig/bisect.js
  7. +0 −159 app/assets/javascripts/orig/index.js
  8. +0 −265 app/assets/javascripts/orig/kde.js
  9. +0 −5 app/assets/javascripts/orig/sample.js
  10. +1 −1  config/routes.rb
  11. +0 −13 old/client/index.html
  12. +0 −37 old/components/bootstrap/.gitignore
  13. +0 −3  old/components/bootstrap/.travis.yml
  14. +0 −75 old/components/bootstrap/CONTRIBUTING.md
  15. +0 −176 old/components/bootstrap/LICENSE
  16. +0 −101 old/components/bootstrap/Makefile
  17. +0 −112 old/components/bootstrap/README.md
  18. +0 −20 old/components/bootstrap/component.json
  19. +0 −10 old/components/bootstrap/composer.json
  20. +0 −1,092 old/components/bootstrap/docs/assets/css/bootstrap-responsive.css
  21. +0 −6,039 old/components/bootstrap/docs/assets/css/bootstrap.css
  22. +0 −1,064 old/components/bootstrap/docs/assets/css/docs.css
  23. BIN  old/components/bootstrap/docs/assets/ico/apple-touch-icon-114-precomposed.png
  24. BIN  old/components/bootstrap/docs/assets/ico/apple-touch-icon-144-precomposed.png
  25. BIN  old/components/bootstrap/docs/assets/ico/apple-touch-icon-57-precomposed.png
  26. BIN  old/components/bootstrap/docs/assets/ico/apple-touch-icon-72-precomposed.png
  27. BIN  old/components/bootstrap/docs/assets/ico/favicon.ico
  28. BIN  old/components/bootstrap/docs/assets/ico/favicon.png
  29. BIN  old/components/bootstrap/docs/assets/img/bootstrap-mdo-sfmoma-01.jpg
  30. BIN  old/components/bootstrap/docs/assets/img/bootstrap-mdo-sfmoma-02.jpg
  31. BIN  old/components/bootstrap/docs/assets/img/bootstrap-mdo-sfmoma-03.jpg
  32. BIN  old/components/bootstrap/docs/assets/img/bs-docs-bootstrap-features.png
  33. BIN  old/components/bootstrap/docs/assets/img/bs-docs-masthead-pattern.png
  34. BIN  old/components/bootstrap/docs/assets/img/bs-docs-responsive-illustrations.png
  35. BIN  old/components/bootstrap/docs/assets/img/bs-docs-twitter-github.png
  36. BIN  old/components/bootstrap/docs/assets/img/example-sites/8020select.png
  37. BIN  old/components/bootstrap/docs/assets/img/example-sites/adoptahydrant.png
  38. BIN  old/components/bootstrap/docs/assets/img/example-sites/breakingnews.png
  39. BIN  old/components/bootstrap/docs/assets/img/example-sites/fleetio.png
  40. BIN  old/components/bootstrap/docs/assets/img/example-sites/gathercontent.png
  41. BIN  old/components/bootstrap/docs/assets/img/example-sites/jshint.png
  42. BIN  old/components/bootstrap/docs/assets/img/example-sites/kippt.png
  43. BIN  old/components/bootstrap/docs/assets/img/example-sites/soundready.png
  44. BIN  old/components/bootstrap/docs/assets/img/examples/bootstrap-example-carousel.png
  45. BIN  old/components/bootstrap/docs/assets/img/examples/bootstrap-example-fluid.jpg
  46. BIN  old/components/bootstrap/docs/assets/img/examples/bootstrap-example-hero.jpg
  47. BIN  old/components/bootstrap/docs/assets/img/examples/bootstrap-example-marketing-narrow.png
  48. BIN  old/components/bootstrap/docs/assets/img/examples/bootstrap-example-signin.png
  49. BIN  old/components/bootstrap/docs/assets/img/examples/bootstrap-example-starter.jpg
  50. BIN  old/components/bootstrap/docs/assets/img/examples/bootstrap-example-sticky-footer.png
  51. BIN  old/components/bootstrap/docs/assets/img/examples/browser-icon-chrome.png
  52. BIN  old/components/bootstrap/docs/assets/img/examples/browser-icon-firefox.png
  53. BIN  old/components/bootstrap/docs/assets/img/examples/browser-icon-safari.png
  54. BIN  old/components/bootstrap/docs/assets/img/examples/slide-01.jpg
  55. BIN  old/components/bootstrap/docs/assets/img/examples/slide-02.jpg
  56. BIN  old/components/bootstrap/docs/assets/img/examples/slide-03.jpg
  57. BIN  old/components/bootstrap/docs/assets/img/glyphicons-halflings-white.png
  58. BIN  old/components/bootstrap/docs/assets/img/glyphicons-halflings.png
  59. BIN  old/components/bootstrap/docs/assets/img/grid-baseline-20px.png
  60. BIN  old/components/bootstrap/docs/assets/img/less-logo-large.png
  61. BIN  old/components/bootstrap/docs/assets/img/responsive-illustrations.png
  62. +0 −106 old/components/bootstrap/docs/assets/js/README.md
  63. +0 −154 old/components/bootstrap/docs/assets/js/application.js
  64. +0 −117 old/components/bootstrap/docs/assets/js/bootstrap-affix.js
  65. +0 −99 old/components/bootstrap/docs/assets/js/bootstrap-alert.js
  66. +0 −105 old/components/bootstrap/docs/assets/js/bootstrap-button.js
  67. +0 −185 old/components/bootstrap/docs/assets/js/bootstrap-carousel.js
  68. +0 −167 old/components/bootstrap/docs/assets/js/bootstrap-collapse.js
  69. +0 −161 old/components/bootstrap/docs/assets/js/bootstrap-dropdown.js
  70. +0 −245 old/components/bootstrap/docs/assets/js/bootstrap-modal.js
  71. +0 −114 old/components/bootstrap/docs/assets/js/bootstrap-popover.js
  72. +0 −162 old/components/bootstrap/docs/assets/js/bootstrap-scrollspy.js
  73. +0 −144 old/components/bootstrap/docs/assets/js/bootstrap-tab.js
  74. +0 −287 old/components/bootstrap/docs/assets/js/bootstrap-tooltip.js
  75. +0 −60 old/components/bootstrap/docs/assets/js/bootstrap-transition.js
  76. +0 −323 old/components/bootstrap/docs/assets/js/bootstrap-typeahead.js
  77. +0 −2,159 old/components/bootstrap/docs/assets/js/bootstrap.js
  78. +0 −6 old/components/bootstrap/docs/assets/js/bootstrap.min.js
  79. +0 −30 old/components/bootstrap/docs/assets/js/google-code-prettify/prettify.css
  80. +0 −28 old/components/bootstrap/docs/assets/js/google-code-prettify/prettify.js
  81. +0 −342 old/components/bootstrap/docs/assets/js/holder/holder.js
  82. +0 −2  old/components/bootstrap/docs/assets/js/jquery.js
  83. +0 −2,193 old/components/bootstrap/docs/base-css.html
  84. +0 −44 old/components/bootstrap/docs/build/index.js
  85. +0 −6 old/components/bootstrap/docs/build/package.json
  86. +0 −2,606 old/components/bootstrap/docs/components.html
  87. +0 −514 old/components/bootstrap/docs/customize.html
  88. +0 −452 old/components/bootstrap/docs/examples/carousel.html
  89. +0 −154 old/components/bootstrap/docs/examples/fluid.html
  90. +0 −126 old/components/bootstrap/docs/examples/hero.html
  91. +0 −172 old/components/bootstrap/docs/examples/marketing-alternate.html
  92. +0 −137 old/components/bootstrap/docs/examples/marketing-narrow.html
  93. +0 −94 old/components/bootstrap/docs/examples/signin.html
  94. +0 −79 old/components/bootstrap/docs/examples/starter-template.html
  95. +0 −124 old/components/bootstrap/docs/examples/sticky-footer.html
  96. +0 −290 old/components/bootstrap/docs/extend.html
  97. +0 −368 old/components/bootstrap/docs/getting-started.html
  98. +0 −221 old/components/bootstrap/docs/index.html
  99. +0 −1,759 old/components/bootstrap/docs/javascript.html
  100. +0 −602 old/components/bootstrap/docs/scaffolding.html
  101. +0 −151 old/components/bootstrap/docs/templates/layout.mustache
  102. +0 −2,080 old/components/bootstrap/docs/templates/pages/base-css.mustache
  103. +0 −2,485 old/components/bootstrap/docs/templates/pages/components.mustache
  104. +0 −393 old/components/bootstrap/docs/templates/pages/customize.mustache
  105. +0 −169 old/components/bootstrap/docs/templates/pages/extend.mustache
  106. +0 −247 old/components/bootstrap/docs/templates/pages/getting-started.mustache
  107. +0 −100 old/components/bootstrap/docs/templates/pages/index.mustache
  108. +0 −1,639 old/components/bootstrap/docs/templates/pages/javascript.mustache
  109. +0 −485 old/components/bootstrap/docs/templates/pages/scaffolding.mustache
  110. BIN  old/components/bootstrap/img/glyphicons-halflings-white.png
  111. BIN  old/components/bootstrap/img/glyphicons-halflings.png
  112. +0 −12 old/components/bootstrap/js/.jshintrc
  113. +0 −117 old/components/bootstrap/js/bootstrap-affix.js
  114. +0 −99 old/components/bootstrap/js/bootstrap-alert.js
  115. +0 −105 old/components/bootstrap/js/bootstrap-button.js
  116. +0 −185 old/components/bootstrap/js/bootstrap-carousel.js
  117. +0 −167 old/components/bootstrap/js/bootstrap-collapse.js
  118. +0 −161 old/components/bootstrap/js/bootstrap-dropdown.js
  119. +0 −245 old/components/bootstrap/js/bootstrap-modal.js
  120. +0 −114 old/components/bootstrap/js/bootstrap-popover.js
  121. +0 −162 old/components/bootstrap/js/bootstrap-scrollspy.js
  122. +0 −144 old/components/bootstrap/js/bootstrap-tab.js
  123. +0 −287 old/components/bootstrap/js/bootstrap-tooltip.js
  124. +0 −60 old/components/bootstrap/js/bootstrap-transition.js
  125. +0 −323 old/components/bootstrap/js/bootstrap-typeahead.js
  126. +0 −56 old/components/bootstrap/js/tests/index.html
  127. +0 −63 old/components/bootstrap/js/tests/phantom.js
  128. +0 −14 old/components/bootstrap/js/tests/server.js
  129. +0 −25 old/components/bootstrap/js/tests/unit/bootstrap-affix.js
  130. +0 −62 old/components/bootstrap/js/tests/unit/bootstrap-alert.js
  131. +0 −102 old/components/bootstrap/js/tests/unit/bootstrap-button.js
Sorry, we could not display the entire diff because too many files (2,000) changed.
View
1  app/assets/javascripts/application.js
@@ -12,4 +12,5 @@
//
//= require jquery
//= require jquery_ujs
+//= require_tree ./lib
//= require_tree .
View
10 app/assets/javascripts/kde.js.coffee
@@ -46,12 +46,12 @@ science.stats.distribution.kde = ->
log = false
resolution = 100
kde.bandwidth = (x) ->
- return underlying.bandwidth() unless arguments_.length
+ return underlying.bandwidth() unless arguments.length
underlying.bandwidth x
kde
kde.kernel = (x) ->
- return underlying.kernel() unless arguments_.length
+ return underlying.kernel() unless arguments.length
underlying.kernel x
kde
@@ -61,7 +61,7 @@ science.stats.distribution.kde = ->
# * An array of numbers.
#
kde.sample = (x) ->
- return sample unless arguments_.length
+ return sample unless arguments.length
sample = x
cache = {}
underlying.sample logSample()
@@ -80,7 +80,7 @@ science.stats.distribution.kde = ->
# * [1] http://www.ebyte.it/library/docs/math04a/PdfChangeOfCoordinates04.html
#
kde.log = (x) ->
- return log unless arguments_.length
+ return log unless arguments.length
log = x
cache = {}
underlying.sample logSample()
@@ -96,7 +96,7 @@ science.stats.distribution.kde = ->
# * pixels in the graph so that the curve looks smooth.
#
kde.resolution = (x) ->
- return resolution unless arguments_.length
+ return resolution unless arguments.length
resolution = x
cache = {}
kde
View
0  old/components/d3/d3.js → app/assets/javascripts/lib/d3.js
File renamed without changes
View
0  old/components/jquery/jquery.js → app/assets/javascripts/lib/jquery.js
File renamed without changes
View
0  old/components/science.js/science.v1.js → app/assets/javascripts/lib/science.v1.js
File renamed without changes
View
24 app/assets/javascripts/orig/bisect.js
@@ -1,24 +0,0 @@
-/* Binary search within an array.
- *
- * Returns the first index at which 'f' returns false.
- *
- * e.g. to find the index of 3 in array:
- * science.bisect(array, function (x) { return x < 3;})
- *
- * Taken from http://hg.python.org/cpython/file/2.7/Lib/bisect.py
- */
-science.bisect = function (array, f) {
- var lo = 0, hi = array.length, mid;
-
- while (lo < hi) {
- mid = Math.floor((lo + hi) / 2);
-
- if (f(array[mid])) {
- lo = mid + 1;
- } else {
- hi = mid;
- }
- }
-
- return lo;
-};
View
159 app/assets/javascripts/orig/index.js
@@ -1,159 +0,0 @@
-(function () {
- $(function () {
- var height = 400, width = 600;
-
- function cdf(data) {
- var kde = science.stats.distribution.kde().sample(data).resolution(200);
-
- var x;
- if (kde.feelsLogarithmic()) {
- kde.log(true);
- x = d3.scale.log();
- } else {
- x = d3.scale.linear();
- }
- x.clamp(true).domain([data[0], data[data.length - 1]]).range([40, width]).nice();
- var axisTicks = x.ticks(10);
- var y = d3.scale.linear().domain([1, 0]).range([40, height]);
- var yk = d3.scale.linear().domain([kde.max(), 0]).range([40, height]);
-
- var viz = d3.select('#cdf').style('width', width).style('height', height)
- .append('svg:svg').attr('width', 40 + width).attr('height', height + 40).attr('class', 'viz')
- .append('svg:g');
-
- viz.selectAll('line.ydivisions.strong').data([0, 1]).enter().append('svg:line')
- .attr('class', 'ydivisions strong')
- .attr('x1', x(axisTicks[0])).attr('x2', x(axisTicks[axisTicks.length - 1]))
- .attr('y1', y).attr('y2', y);
-
- viz.selectAll('line.ydivisions.weak').data(d3.range(0, 1, 0.25)).enter().append('svg:line')
- .attr('class', 'ydivisions weak')
- .attr('x1', x(axisTicks[0])).attr('x2', x(axisTicks[axisTicks.length - 1]))
- .attr('y1', y).attr('y2', y);
-
- viz.selectAll('line.xdivisions').data(axisTicks).enter().append('svg:line')
- .attr('class', function (d, i) {
- if (i === 0 || d.toString().match(/^10*$/) || i === axisTicks.length - 1) {
- return 'xdivisions strong';
- } else {
- return 'xdivisions weak';
- }
- })
- .attr('y1', y(0)).attr('y2', y(1))
- .attr('x1', x).attr('x2', x);
-
- viz.selectAll('text.xticklabels').data(axisTicks).enter().append('svg:text')
- .attr('class', 'xticklabels')
- .text(function (d, i) {
- if (i === 0 || d.toString().match(/^10*$/) || i === axisTicks.length - 1) {
- return d;
- } else {
- return "";
- }
- })
- .attr('x', x)
- .attr('y', height + 15);
-
- viz.selectAll('text.xtitle').data([0]).enter().append('svg:text')
- .attr('class', 'xtitle')
- .text("Email size (kb)")
- .attr('x', 40 + width / 2)
- .attr('y', height + 30);
-
- viz.selectAll('text.ytitle').data([0]).enter().append('svg:text')
- .attr('class', 'ytitle')
- .text('Probability')
- .attr('transform', 'rotate(270 30 ' + (40 + height / 2) + ')')
- .attr('x', 20)
- .attr('y', 40 + height / 2);
-
- viz.selectAll('text.y2title').data([0]).enter().append('svg:text')
- .attr('class', 'y2title')
- .text('Count so far')
- .attr('transform', 'rotate(90 ' + (width + 10) + ' ' + (40 + height / 2) + ')')
- .attr('x', width + 10)
- .attr('y', 40 + height / 2);
-
- viz.selectAll('path.pdf').data([kde.pdf()]).enter().append('svg:path')
- .attr('class', 'pdf')
- .attr('d', d3.svg.line().x(function (d) {
- return x(d[0]);
- }).y(function (d) {
- return yk(d[1]);
- }));
-
- viz.selectAll('path.cdf').data([kde.cdf()]).enter().append('svg:path')
- .attr('class', 'cdf')
- .attr('d', d3.svg.line().x(function (d) {
- return x(d[0]);
- }).y(function (d) { return y(d[1]); }));
-
- viz.selectAll('circle.mode').data([kde.mode()]).enter().append('svg:circle')
- .attr('class', 'mode')
- .attr('r', 4)
- .attr('cx', x)
- .attr('cy', function (d) { return yk(kde(d)); });
-
- viz.selectAll('circle.expectation').data([kde.expectation()]).enter().append('svg:circle')
- .attr('class', 'expectation')
- .attr('r', 4)
- .attr('cx', x)
- .attr('cy', function () { return y(0.25); });
-
- viz.selectAll('circle.percentile').data(kde.qf()).enter().append('svg:circle')
- .attr('class', 'percentile')
- .attr('r', 4)
- .attr('cx', function (d) { return x(d[0]); })
- .attr('cy', function (d) { return y(d[1]); });
-
- viz.selectAll('line.fugi').data([0]).enter().append('svg:line')
- .attr('class', 'fugi')
- .attr('y1', y(0)).attr('y2', y(1))
- .attr('x1', x).attr('x2', x);
-
- viz.selectAll('circle.fugired').data([0]).enter().append('svg:circle')
- .attr('class', 'fugired')
- .attr('r', 5)
- .attr('cx', 0)
- .attr('cy', 0);
-
- viz.selectAll('circle.fugiblue').data([0]).enter().append('svg:circle')
- .attr('class', 'fugiblue')
- .attr('r', 5)
- .attr('cx', 0)
- .attr('cy', 0);
-
- var $svg = $(viz[0][0]).closest('svg');
-
- $svg.mousemove(function (e) {
- var pos = x.invert(e.clientX - 10);
- if (pos < axisTicks[0]) {
- pos = axisTicks[0];
- } else if (pos > axisTicks[axisTicks.length - 1]) {
- pos = axisTicks[axisTicks.length - 1];
- }
- $svg.find('line.fugi').attr('x1', x(pos)).attr('x2', x(pos));
- $svg.find('.fugired, .fugiblue').attr('cx', x(pos));
- $svg.find('.fugiblue').attr('cy', yk(kde(pos)));
- $svg.find('.fugired').attr('cy', y(kde.inverseQuantile(pos)));
- }).mouseover(function () {
- $svg.find('line.fugi').show();
- }).mouseout(function () {
- $svg.find('line.fugi').hide();
- });
- }
-
- window.emails = window.emails.filter(function (x) { return x !== 0; });
-
- window.normal = window.normal.map(Number).filter(function (x) { return x !== 0; }).sort(d3.ascending);
-
- window.faithful = window.faithful.sort(d3.ascending);
-// cdf(window.faithful);
- window.foo = [1, 2];
- cdf(window.emails);
- cdf(window.normal);
- cdf(window.files);
- cdf(window.faithful);
- cdf(window.foo);
- });
-}).call(this);
View
265 app/assets/javascripts/orig/kde.js
@@ -1,265 +0,0 @@
-// TODO: figure out http://www.umiacs.umd.edu/labs/cvl/pirl/vikas/Software/optimal_bw/optimal_bw_code.htm
-science.stats.distribution.kde = function () {
-
- var underlying = science.stats.kde(),
- sample = [],
- cache = {},
- log = false,
- resolution = 100;
-
- function delog(x) {
- return log ? Math.exp(x) : x;
- }
-
- function enlog(x) {
- return log ? Math.log(x) : x;
- }
-
- function logSample() {
- if (!cache.log) {
- cache.log = log ? sample.map(function (x) {
- return Math.log(x);
- }) : sample;
- }
- return cache.log;
- }
-
- // Return the KDE as an array of [x, probability-density] pairs.
- function quantized() {
- if (!cache.quantized) {
- var first = logSample()[0],
- last = logSample()[logSample().length - 1],
- step = (last - first) / resolution,
- calculated = underlying(d3.range(first, last, step));
-
- // Ensure KDE function hits the axis.
- // (this is necessary to calculate expectation correctly)
-
- while (calculated[0][1] > 1e-3) {
- first -= step;
- calculated.unshift(underlying([first])[0]);
- }
-
- while (calculated[calculated.length - 1][1] > 1e-3) {
- last += step;
- calculated.push(underlying([last])[0]);
- }
-
-
- calculated.unshift([first, 0]);
- calculated.push([last, 0]);
-
- cache.quantized = calculated;
- }
- return cache.quantized;
- }
-
- function delogKde() {
- if (log) {
- return quantized().map(function (d) { return [Math.exp(d[0]), d[1]]; });
- } else {
- return quantized();
- }
- }
-
- function kde(x) {
- return underlying([enlog(x)])[0][1];
- }
-
- kde.bandwidth = function (x) {
- if (!arguments.length) { return underlying.bandwidth(); }
- underlying.bandwidth(x);
- return kde;
- };
-
- kde.kernel = function (x) {
- if (!arguments.length) { return underlying.kernel(); }
- underlying.kernel(x);
- return kde;
- };
-
- /* The samples from which to derive the KDE.
- *
- * An array of numbers.
- */
- kde.sample = function (x) {
- if (!arguments.length) { return sample; }
-
- sample = x;
- cache = {};
- underlying.sample(logSample());
- return kde;
- };
-
- /* Whether to perform KDE on the log of the samples instead of the samples themselves
- *
- * The main reason to set this is that the symmetrical kernel used by default will
- * give very bizarre results if the data distribution is not locally symmetrical,
- * however it also interacts with the resolution parameter so that the resolution will
- * appear uniform when plotted on a log-graph.
- *
- * If you set this you should plot the KDE function on a log-graph (and vice-versa).
- *
- * [1] http://www.ebyte.it/library/docs/math04a/PdfChangeOfCoordinates04.html
- */
- kde.log = function (x) {
- if (!arguments.length) { return log; }
-
- log = x;
- cache = {};
- underlying.sample(logSample());
- return kde;
- };
-
- /* How many samples will be used.
- *
- * This effects the number of points returned by kde() with no arguments,
- * and (to a small amount) the accuracy of the estimate provided by .expectation().
- *
- * You probably want to set this to the same order of magnitude as the number of
- * pixels in the graph so that the curve looks smooth.
- */
- kde.resolution = function (x) {
- if (!arguments.length) { return resolution; }
-
- resolution = x;
- cache = {};
- return kde;
- };
-
- /* The 'mode' of the kde.
- *
- * This is the highest point of the probability density function; intuitively the value
- * around which samples tend to cluster. (e.g. most files are 4kb)
- *
- * (The more usual definition of mode as 'the value that occurs most often' falls
- * apart a bit when you have continuous data as the chances of the same exact value
- * occuring more than once is negligable).
- *
- * http://en.wikipedia.org/wiki/Mode_(statistics)
- */
- kde.mode = function () {
- var max = -Infinity,
- kde = quantized(),
- ret;
-
- kde.forEach(function (d) {
- if (d[1] > max) {
- max = d[1];
- ret = d[0];
- }
- });
-
- return delog(ret);
- };
-
- /* The 'expectation' of the kde.
- *
- * This is the first moment of the data; and corresponds to most people's intuitive
- * value for 'average'. (e.g. a typical file is 32kb, size = 32kb * number of files)
- *
- * (The arithmetic mean is often used in place of expectation, as they're roughly
- * equivalent for symmetrical distributions. The expectation degrades more gracefully
- * when the data is very skewed).
- *
- * http://en.wikipedia.org/wiki/Expected_value
- */
- kde.expectation = function () {
- var accum = 0,
- kde = quantized(),
- a, b;
-
- for (var i = 0; i < kde.length - 1; i++) {
- a = kde[i];
- b = kde[i + 1];
-
- // integrate(x * f(x))
- // => sum the area of all quadrilaterals of size d
- accum += (b[0] - a[0]) * (a[0] * a[1] + b[0] * b[1]) / 2;
- }
-
- return delog(accum);
- };
-
- /* The 'median' of the data.
- *
- * Half the data is smaller than the median, the other half is bigger.
- * (e.g. half of all files are smaller than 16kb)
- */
- kde.median = function () {
- return kde.percentile(0.5);
- };
-
- kde.max = function () {
- return kde(kde.mode());
- };
-
- kde.quantile = function (q) {
-
- var index = q * (sample.length - 1),
- lo = Math.floor(index),
- hi = Math.ceil(index);
-
- if (lo === hi || hi >= sample.length) {
- return sample[lo];
- } else {
- return sample[lo] + (index - lo) * (sample[hi] - sample[lo]) / (hi - lo);
- }
- };
-
- kde.inverseQuantile = function (x) {
- var // sample[lo] < x <= sample[hi]
- hi = science.bisect(sample, function (d) {
- return d < x;
- }),
- lo = hi - 1;
-
- if (hi === sample.length) {
- return 1;
- } else if (hi === 0) {
- return 0;
- } else {
- return (lo + (hi - lo) * (x - sample[lo]) / (sample[hi] - sample[lo])) / (sample.length - 1);
- }
- };
-
- // The probability density function as an array of [x, y] pairs.
- kde.pdf = function () {
- return delogKde();
- };
-
- // Some quartiles as an array of [x, y] pairs.
- kde.qf = function () {
- var ys = [0, 0.01, 0.1, 0.25, 0.5, 0.75, 0.9, 0.99, 1];
-
- return ys.map(function (y) {
- return [kde.quantile(y), y];
- });
- };
-
- // The cumulative probability function as an array of [x, y] pairs
- kde.cdf = function () {
- if (!cache.cdf) {
- cache.cdf = sample.map(function (x, i) {
- return [x, i / (sample.length - 1)];
- });
- }
- return cache.cdf;
- };
-
- kde.feelsLogarithmic = function () {
- var tenth = kde.quantile(0.1),
- fiftieth = kde.quantile(0.5),
- ninetieth = kde.quantile(0.9);
-
- // if 50% of the data takes up <10% of the graph, it's logarithmic
- if ((fiftieth - tenth) / (ninetieth - tenth) < 0.2) {
- return true;
- } else {
- return false;
- }
- };
-
- return kde;
-
-};
View
5 app/assets/javascripts/orig/sample.js
0 additions, 5 deletions not shown
View
2  config/routes.rb
@@ -48,7 +48,7 @@
# You can have the root of your site routed with "root"
# just remember to delete public/index.html.
- # root :to => 'welcome#index'
+ root :to => 'plots#index'
# See how all your routes lay out with "rake routes"
View
13 old/client/index.html
@@ -1,13 +0,0 @@
-<script src="/components/jquery/jquery.js"></script>
-<script src="/components/d3/d3.js"></script>
-<script src="/components/science.js/science.v1.js"></script>
-<script src="/js/sample.js"></script>
-<script src="/js/bisect.js"></script>
-<script src="/js/kde.js"></script>
-<script src="/js/index.js"></script>
-<style>
- @import url("/css/index.css");
-</style>
-<textarea></textarea>
-
-<div id="cdf"></div>
View
37 old/components/bootstrap/.gitignore
@@ -1,37 +0,0 @@
-# Numerous always-ignore extensions
-*.diff
-*.err
-*.orig
-*.log
-*.rej
-*.swo
-*.swp
-*.zip
-*.vi
-*~
-*.sass-cache
-
-# OS or Editor folders
-.DS_Store
-._*
-Thumbs.db
-.cache
-.project
-.settings
-.tmproj
-*.esproj
-nbproject
-*.sublime-project
-*.sublime-workspace
-
-# Komodo
-*.komodoproject
-.komodotools
-
-# Folders to ignore
-.hg
-.svn
-.CVS
-.idea
-node_modules
-dist
View
3  old/components/bootstrap/.travis.yml
@@ -1,3 +0,0 @@
-language: node_js
-node_js:
- - 0.6
View
75 old/components/bootstrap/CONTRIBUTING.md
@@ -1,75 +0,0 @@
-# Contributing to Bootstrap
-
-Looking to contribute something to Bootstrap? **Here's how you can help.**
-
-
-
-## Reporting issues
-
-We only accept issues that are bug reports or feature requests. Bugs must be isolated and reproducible problems that we can fix within the Bootstrap core. Please read the following guidelines before opening any issue.
-
-1. **Search for existing issues.** We get a lot of duplicate issues, and you'd help us out a lot by first checking if someone else has reported the same issue. Moreover, the issue may have already been resolved with a fix available.
-2. **Create an isolated and reproducible test case.** Be sure the problem exists in Bootstrap's code with a [reduced test cases](http://css-tricks.com/reduced-test-cases/) that should be included in each bug report.
-3. **Include a live example.** Make use of jsFiddle or jsBin to share your isolated test cases.
-4. **Share as much information as possible.** Include operating system and version, browser and version, version of Bootstrap, customized or vanilla build, etc. where appropriate. Also include steps to reproduce the bug.
-
-
-
-## Key branches
-
-- `master` is the latest, deployed version.
-- `gh-pages` is the hosted docs (not to be used for pull requests).
-- `*-wip` is the official work in progress branch for the next release.
-
-
-
-## Notes on the repo
-
-As of v2.0.0, Bootstrap's documentation is powered by Mustache templates and built via `make` before each commit and release. This was done to enable internationalization (translation) in a future release by uploading our strings to the [Twitter Translation Center](http://translate.twttr.com/). Any edits to the docs should be first done in the Mustache files and then recompiled into the HTML.
-
-
-
-## Pull requests
-
-- Try to submit pull requests against the latest `*-wip` branch for easier merging
-- Any changes to the docs must be made to the Mustache templates, not just the compiled HTML pages
-- CSS changes must be done in .less files first, never just the compiled files
-- If modifying the .less files, always recompile and commit the compiled files bootstrap.css and bootstrap.min.css
-- Try not to pollute your pull request with unintended changes--keep them simple and small
-- Try to share which browsers your code has been tested in before submitting a pull request
-
-
-
-## Coding standards: HTML
-
-- Two spaces for indentation, never tabs
-- Double quotes only, never single quotes
-- Always use proper indentation
-- Use tags and elements appropriate for an HTML5 doctype (e.g., self-closing tags)
-
-
-
-## Coding standards: CSS
-
-- Adhere to the [Recess CSS property order](http://markdotto.com/2011/11/29/css-property-order/)
-- Multiple-line approach (one property and value per line)
-- Always a space after a property's colon (.e.g, `display: block;` and not `display:block;`)
-- End all lines with a semi-colon
-- For multiple, comma-separated selectors, place each selector on it's own line
-- Attribute selectors, like `input[type="text"]` should always wrap the attribute's value in double quotes, for consistency and safety (see this [blog post on unquoted attribute values](http://mathiasbynens.be/notes/unquoted-attribute-values) that can lead to XSS attacks).
-
-
-
-## Coding standards: JS
-
-- No semicolons
-- Comma first
-- 2 spaces (no tabs)
-- strict mode
-- "Attractive"
-
-
-
-## License
-
-By contributing your code, you agree to license your contribution under the terms of the APLv2: https://github.com/twitter/bootstrap/blob/master/LICENSE
View
176 old/components/bootstrap/LICENSE
@@ -1,176 +0,0 @@
- Apache License
- Version 2.0, January 2004
- http://www.apache.org/licenses/
-
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
-
- 1. Definitions.
-
- "License" shall mean the terms and conditions for use, reproduction,
- and distribution as defined by Sections 1 through 9 of this document.
-
- "Licensor" shall mean the copyright owner or entity authorized by
- the copyright owner that is granting the License.
-
- "Legal Entity" shall mean the union of the acting entity and all
- other entities that control, are controlled by, or are under common
- control with that entity. For the purposes of this definition,
- "control" means (i) the power, direct or indirect, to cause the
- direction or management of such entity, whether by contract or
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
- outstanding shares, or (iii) beneficial ownership of such entity.
-
- "You" (or "Your") shall mean an individual or Legal Entity
- exercising permissions granted by this License.
-
- "Source" form shall mean the preferred form for making modifications,
- including but not limited to software source code, documentation
- source, and configuration files.
-
- "Object" form shall mean any form resulting from mechanical
- transformation or translation of a Source form, including but
- not limited to compiled object code, generated documentation,
- and conversions to other media types.
-
- "Work" shall mean the work of authorship, whether in Source or
- Object form, made available under the License, as indicated by a
- copyright notice that is included in or attached to the work
- (an example is provided in the Appendix below).
-
- "Derivative Works" shall mean any work, whether in Source or Object
- form, that is based on (or derived from) the Work and for which the
- editorial revisions, annotations, elaborations, or other modifications
- represent, as a whole, an original work of authorship. For the purposes
- of this License, Derivative Works shall not include works that remain
- separable from, or merely link (or bind by name) to the interfaces of,
- the Work and Derivative Works thereof.
-
- "Contribution" shall mean any work of authorship, including
- the original version of the Work and any modifications or additions
- to that Work or Derivative Works thereof, that is intentionally
- submitted to Licensor for inclusion in the Work by the copyright owner
- or by an individual or Legal Entity authorized to submit on behalf of
- the copyright owner. For the purposes of this definition, "submitted"
- means any form of electronic, verbal, or written communication sent
- to the Licensor or its representatives, including but not limited to
- communication on electronic mailing lists, source code control systems,
- and issue tracking systems that are managed by, or on behalf of, the
- Licensor for the purpose of discussing and improving the Work, but
- excluding communication that is conspicuously marked or otherwise
- designated in writing by the copyright owner as "Not a Contribution."
-
- "Contributor" shall mean Licensor and any individual or Legal Entity
- on behalf of whom a Contribution has been received by Licensor and
- subsequently incorporated within the Work.
-
- 2. Grant of Copyright License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- copyright license to reproduce, prepare Derivative Works of,
- publicly display, publicly perform, sublicense, and distribute the
- Work and such Derivative Works in Source or Object form.
-
- 3. Grant of Patent License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- (except as stated in this section) patent license to make, have made,
- use, offer to sell, sell, import, and otherwise transfer the Work,
- where such license applies only to those patent claims licensable
- by such Contributor that are necessarily infringed by their
- Contribution(s) alone or by combination of their Contribution(s)
- with the Work to which such Contribution(s) was submitted. If You
- institute patent litigation against any entity (including a
- cross-claim or counterclaim in a lawsuit) alleging that the Work
- or a Contribution incorporated within the Work constitutes direct
- or contributory patent infringement, then any patent licenses
- granted to You under this License for that Work shall terminate
- as of the date such litigation is filed.
-
- 4. Redistribution. You may reproduce and distribute copies of the
- Work or Derivative Works thereof in any medium, with or without
- modifications, and in Source or Object form, provided that You
- meet the following conditions:
-
- (a) You must give any other recipients of the Work or
- Derivative Works a copy of this License; and
-
- (b) You must cause any modified files to carry prominent notices
- stating that You changed the files; and
-
- (c) You must retain, in the Source form of any Derivative Works
- that You distribute, all copyright, patent, trademark, and
- attribution notices from the Source form of the Work,
- excluding those notices that do not pertain to any part of
- the Derivative Works; and
-
- (d) If the Work includes a "NOTICE" text file as part of its
- distribution, then any Derivative Works that You distribute must
- include a readable copy of the attribution notices contained
- within such NOTICE file, excluding those notices that do not
- pertain to any part of the Derivative Works, in at least one
- of the following places: within a NOTICE text file distributed
- as part of the Derivative Works; within the Source form or
- documentation, if provided along with the Derivative Works; or,
- within a display generated by the Derivative Works, if and
- wherever such third-party notices normally appear. The contents
- of the NOTICE file are for informational purposes only and
- do not modify the License. You may add Your own attribution
- notices within Derivative Works that You distribute, alongside
- or as an addendum to the NOTICE text from the Work, provided
- that such additional attribution notices cannot be construed
- as modifying the License.
-
- You may add Your own copyright statement to Your modifications and
- may provide additional or different license terms and conditions
- for use, reproduction, or distribution of Your modifications, or
- for any such Derivative Works as a whole, provided Your use,
- reproduction, and distribution of the Work otherwise complies with
- the conditions stated in this License.
-
- 5. Submission of Contributions. Unless You explicitly state otherwise,
- any Contribution intentionally submitted for inclusion in the Work
- by You to the Licensor shall be under the terms and conditions of
- this License, without any additional terms or conditions.
- Notwithstanding the above, nothing herein shall supersede or modify
- the terms of any separate license agreement you may have executed
- with Licensor regarding such Contributions.
-
- 6. Trademarks. This License does not grant permission to use the trade
- names, trademarks, service marks, or product names of the Licensor,
- except as required for reasonable and customary use in describing the
- origin of the Work and reproducing the content of the NOTICE file.
-
- 7. Disclaimer of Warranty. Unless required by applicable law or
- agreed to in writing, Licensor provides the Work (and each
- Contributor provides its Contributions) on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
- implied, including, without limitation, any warranties or conditions
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
- PARTICULAR PURPOSE. You are solely responsible for determining the
- appropriateness of using or redistributing the Work and assume any
- risks associated with Your exercise of permissions under this License.
-
- 8. Limitation of Liability. In no event and under no legal theory,
- whether in tort (including negligence), contract, or otherwise,
- unless required by applicable law (such as deliberate and grossly
- negligent acts) or agreed to in writing, shall any Contributor be
- liable to You for damages, including any direct, indirect, special,
- incidental, or consequential damages of any character arising as a
- result of this License or out of the use or inability to use the
- Work (including but not limited to damages for loss of goodwill,
- work stoppage, computer failure or malfunction, or any and all
- other commercial damages or losses), even if such Contributor
- has been advised of the possibility of such damages.
-
- 9. Accepting Warranty or Additional Liability. While redistributing
- the Work or Derivative Works thereof, You may choose to offer,
- and charge a fee for, acceptance of support, warranty, indemnity,
- or other liability obligations and/or rights consistent with this
- License. However, in accepting such obligations, You may act only
- on Your own behalf and on Your sole responsibility, not on behalf
- of any other Contributor, and only if You agree to indemnify,
- defend, and hold each Contributor harmless for any liability
- incurred by, or claims asserted against, such Contributor by reason
- of your accepting any such warranty or additional liability.
-
- END OF TERMS AND CONDITIONS
View
101 old/components/bootstrap/Makefile
@@ -1,101 +0,0 @@
-BOOTSTRAP = ./docs/assets/css/bootstrap.css
-BOOTSTRAP_LESS = ./less/bootstrap.less
-BOOTSTRAP_RESPONSIVE = ./docs/assets/css/bootstrap-responsive.css
-BOOTSTRAP_RESPONSIVE_LESS = ./less/responsive.less
-DATE=$(shell date +%I:%M%p)
-CHECK=\033[32m✔\033[39m
-HR=\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#
-
-
-#
-# BUILD DOCS
-#
-
-build:
- @echo "\n${HR}"
- @echo "Building Bootstrap..."
- @echo "${HR}\n"
- @jshint js/*.js --config js/.jshintrc
- @jshint js/tests/unit/*.js --config js/.jshintrc
- @echo "Running JSHint on javascript... ${CHECK} Done"
- @recess --compile ${BOOTSTRAP_LESS} > ${BOOTSTRAP}
- @recess --compile ${BOOTSTRAP_RESPONSIVE_LESS} > ${BOOTSTRAP_RESPONSIVE}
- @echo "Compiling LESS with Recess... ${CHECK} Done"
- @node docs/build
- @cp img/* docs/assets/img/
- @cp js/*.js docs/assets/js/
- @cp js/tests/vendor/jquery.js docs/assets/js/
- @echo "Compiling documentation... ${CHECK} Done"
- @cat js/bootstrap-transition.js js/bootstrap-alert.js js/bootstrap-button.js js/bootstrap-carousel.js js/bootstrap-collapse.js js/bootstrap-dropdown.js js/bootstrap-modal.js js/bootstrap-tooltip.js js/bootstrap-popover.js js/bootstrap-scrollspy.js js/bootstrap-tab.js js/bootstrap-typeahead.js js/bootstrap-affix.js > docs/assets/js/bootstrap.js
- @uglifyjs docs/assets/js/bootstrap.js -nc > docs/assets/js/bootstrap.min.tmp.js
- @echo "/**\n* Bootstrap.js v2.2.2 by @fat & @mdo\n* Copyright 2012 Twitter, Inc.\n* http://www.apache.org/licenses/LICENSE-2.0.txt\n*/" > docs/assets/js/copyright.js
- @cat docs/assets/js/copyright.js docs/assets/js/bootstrap.min.tmp.js > docs/assets/js/bootstrap.min.js
- @rm docs/assets/js/copyright.js docs/assets/js/bootstrap.min.tmp.js
- @echo "Compiling and minifying javascript... ${CHECK} Done"
- @echo "\n${HR}"
- @echo "Bootstrap successfully built at ${DATE}."
- @echo "${HR}\n"
- @echo "Thanks for using Bootstrap,"
- @echo "<3 @mdo and @fat\n"
-
-#
-# RUN JSHINT & QUNIT TESTS IN PHANTOMJS
-#
-
-test:
- jshint js/*.js --config js/.jshintrc
- jshint js/tests/unit/*.js --config js/.jshintrc
- node js/tests/server.js &
- phantomjs js/tests/phantom.js "http://localhost:3000/js/tests"
- kill -9 `cat js/tests/pid.txt`
- rm js/tests/pid.txt
-
-#
-# CLEANS THE ROOT DIRECTORY OF PRIOR BUILDS
-#
-
-clean:
- rm -r bootstrap
-
-#
-# BUILD SIMPLE BOOTSTRAP DIRECTORY
-# recess & uglifyjs are required
-#
-
-bootstrap:
- mkdir -p bootstrap/img
- mkdir -p bootstrap/css
- mkdir -p bootstrap/js
- cp img/* bootstrap/img/
- recess --compile ${BOOTSTRAP_LESS} > bootstrap/css/bootstrap.css
- recess --compress ${BOOTSTRAP_LESS} > bootstrap/css/bootstrap.min.css
- recess --compile ${BOOTSTRAP_RESPONSIVE_LESS} > bootstrap/css/bootstrap-responsive.css
- recess --compress ${BOOTSTRAP_RESPONSIVE_LESS} > bootstrap/css/bootstrap-responsive.min.css
- cat js/bootstrap-transition.js js/bootstrap-alert.js js/bootstrap-button.js js/bootstrap-carousel.js js/bootstrap-collapse.js js/bootstrap-dropdown.js js/bootstrap-modal.js js/bootstrap-tooltip.js js/bootstrap-popover.js js/bootstrap-scrollspy.js js/bootstrap-tab.js js/bootstrap-typeahead.js js/bootstrap-affix.js > bootstrap/js/bootstrap.js
- uglifyjs bootstrap/js/bootstrap.js -nc > bootstrap/js/bootstrap.min.tmp.js
- echo "/*!\n* Bootstrap.js by @fat & @mdo\n* Copyright 2012 Twitter, Inc.\n* http://www.apache.org/licenses/LICENSE-2.0.txt\n*/" > bootstrap/js/copyright.js
- cat bootstrap/js/copyright.js bootstrap/js/bootstrap.min.tmp.js > bootstrap/js/bootstrap.min.js
- rm bootstrap/js/copyright.js bootstrap/js/bootstrap.min.tmp.js
-
-#
-# MAKE FOR GH-PAGES 4 FAT & MDO ONLY (O_O )
-#
-
-gh-pages: bootstrap docs
- rm -f docs/assets/bootstrap.zip
- zip -r docs/assets/bootstrap.zip bootstrap
- rm -r bootstrap
- rm -f ../bootstrap-gh-pages/assets/bootstrap.zip
- node docs/build production
- cp -r docs/* ../bootstrap-gh-pages
-
-#
-# WATCH LESS FILES
-#
-
-watch:
- echo "Watching less files..."; \
- watchr -e "watch('less/.*\.less') { system 'make' }"
-
-
-.PHONY: docs watch gh-pages
View
112 old/components/bootstrap/README.md
@@ -1,112 +0,0 @@
-# [Twitter Bootstrap v2.2.2](http://twitter.github.com/bootstrap) [![Build Status](https://secure.travis-ci.org/twitter/bootstrap.png)](http://travis-ci.org/twitter/bootstrap)
-
-Bootstrap is a sleek, intuitive, and powerful front-end framework for faster and easier web development, created and maintained by [Mark Otto](http://twitter.com/mdo) and [Jacob Thornton](http://twitter.com/fat).
-
-To get started, checkout http://getbootstrap.com!
-
-
-
-## Quick start
-
-Three quick start options are available:
-
-* [Download the latest release](https://github.com/twitter/bootstrap/zipball/master).
-* Clone the repo: `git clone git://github.com/twitter/bootstrap.git`.
-* Install with Twitter's [Bower](http://twitter.github.com/bower): `bower install bootstrap`.
-
-
-
-## Versioning
-
-For transparency and insight into our release cycle, and for striving to maintain backward compatibility, Bootstrap will be maintained under the Semantic Versioning guidelines as much as possible.
-
-Releases will be numbered with the following format:
-
-`<major>.<minor>.<patch>`
-
-And constructed with the following guidelines:
-
-* Breaking backward compatibility bumps the major (and resets the minor and patch)
-* New additions without breaking backward compatibility bumps the minor (and resets the patch)
-* Bug fixes and misc changes bumps the patch
-
-For more information on SemVer, please visit http://semver.org/.
-
-
-
-## Bug tracker
-
-Have a bug or a feature request? [Please open a new issue](https://github.com/twitter/bootstrap/issues). Before opening any issue, please search for existing issues and read the [Issue Guidelines](https://github.com/necolas/issue-guidelines), written by [Nicolas Gallagher](https://github.com/necolas/).
-
-
-
-## Community
-
-Keep track of development and community news.
-
-* Follow [@twbootstrap on Twitter](http://twitter.com/twbootstrap).
-* Read and subscribe to the [The Official Twitter Bootstrap Blog](http://blog.getbootstrap.com).
-* Have a question that's not a feature request or bug report? [Ask on the mailing list.](http://groups.google.com/group/twitter-bootstrap)
-* Chat with fellow Bootstrappers in IRC. On the `irc.freenode.net` server, in the `##twitter-bootstrap` channel.
-
-
-
-## Developers
-
-We have included a makefile with convenience methods for working with the Bootstrap library.
-
-+ **dependencies**
-Our makefile depends on you having recess, connect, uglify.js, and jshint installed. To install, just run the following command in npm:
-
-```
-$ npm install recess connect uglify-js jshint -g
-```
-
-+ **build** - `make`
-Runs the recess compiler to rebuild the `/less` files and compiles the docs pages. Requires recess and uglify-js. <a href="http://twitter.github.com/bootstrap/extend.html#compiling">Read more in our docs &raquo;</a>
-
-+ **test** - `make test`
-Runs jshint and qunit tests headlessly in [phantomjs](http://code.google.com/p/phantomjs/) (used for ci). Depends on having phantomjs installed.
-
-+ **watch** - `make watch`
-This is a convenience method for watching just Less files and automatically building them whenever you save. Requires the Watchr gem.
-
-
-
-## Contributing
-
-Please submit all pull requests against *-wip branches. If your pull request contains JavaScript patches or features, you must include relevant unit tests. All HTML and CSS should conform to the [Code Guide](http://github.com/mdo/code-guide), maintained by [Mark Otto](http://github.com/mdo).
-
-Thanks!
-
-
-
-## Authors
-
-**Mark Otto**
-
-+ http://twitter.com/mdo
-+ http://github.com/mdo
-
-**Jacob Thornton**
-
-+ http://twitter.com/fat
-+ http://github.com/fat
-
-
-
-## Copyright and license
-
-Copyright 2012 Twitter, Inc.
-
-Licensed under the Apache License, Version 2.0 (the "License");
-you may not use this work except in compliance with the License.
-You may obtain a copy of the License in the LICENSE file, or at:
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
View
20 old/components/bootstrap/component.json
@@ -1,20 +0,0 @@
-{
- "name": "bootstrap",
- "version": "2.2.2",
- "main": [
- "./docs/assets/js/bootstrap.js",
- "./docs/assets/css/bootstrap.css"
- ],
- "dependencies": {
- "jquery": "~1.8.0"
- },
- "gitHead": "9376a7c221a64c2bf508d02ea2ccd85748d10fcc",
- "readme": "# [Twitter Bootstrap v2.2.2](http://twitter.github.com/bootstrap) [![Build Status](https://secure.travis-ci.org/twitter/bootstrap.png)](http://travis-ci.org/twitter/bootstrap)\n\nBootstrap is a sleek, intuitive, and powerful front-end framework for faster and easier web development, created and maintained by [Mark Otto](http://twitter.com/mdo) and [Jacob Thornton](http://twitter.com/fat).\n\nTo get started, checkout http://getbootstrap.com!\n\n\n\n## Quick start\n\nThree quick start options are available:\n\n* [Download the latest release](https://github.com/twitter/bootstrap/zipball/master).\n* Clone the repo: `git clone git://github.com/twitter/bootstrap.git`.\n* Install with Twitter's [Bower](http://twitter.github.com/bower): `bower install bootstrap`.\n\n\n\n## Versioning\n\nFor transparency and insight into our release cycle, and for striving to maintain backward compatibility, Bootstrap will be maintained under the Semantic Versioning guidelines as much as possible.\n\nReleases will be numbered with the following format:\n\n`<major>.<minor>.<patch>`\n\nAnd constructed with the following guidelines:\n\n* Breaking backward compatibility bumps the major (and resets the minor and patch)\n* New additions without breaking backward compatibility bumps the minor (and resets the patch)\n* Bug fixes and misc changes bumps the patch\n\nFor more information on SemVer, please visit http://semver.org/.\n\n\n\n## Bug tracker\n\nHave a bug or a feature request? [Please open a new issue](https://github.com/twitter/bootstrap/issues). Before opening any issue, please search for existing issues and read the [Issue Guidelines](https://github.com/necolas/issue-guidelines), written by [Nicolas Gallagher](https://github.com/necolas/).\n\n\n\n## Community\n\nKeep track of development and community news.\n\n* Follow [@twbootstrap on Twitter](http://twitter.com/twbootstrap).\n* Read and subscribe to the [The Official Twitter Bootstrap Blog](http://blog.getbootstrap.com).\n* Have a question that's not a feature request or bug report? [Ask on the mailing list.](http://groups.google.com/group/twitter-bootstrap)\n* Chat with fellow Bootstrappers in IRC. On the `irc.freenode.net` server, in the `##twitter-bootstrap` channel.\n\n\n\n## Developers\n\nWe have included a makefile with convenience methods for working with the Bootstrap library.\n\n+ **dependencies**\nOur makefile depends on you having recess, connect, uglify.js, and jshint installed. To install, just run the following command in npm:\n\n```\n$ npm install recess connect uglify-js jshint -g\n```\n\n+ **build** - `make`\nRuns the recess compiler to rebuild the `/less` files and compiles the docs pages. Requires recess and uglify-js. <a href=\"http://twitter.github.com/bootstrap/extend.html#compiling\">Read more in our docs &raquo;</a>\n\n+ **test** - `make test`\nRuns jshint and qunit tests headlessly in [phantomjs](http://code.google.com/p/phantomjs/) (used for ci). Depends on having phantomjs installed.\n\n+ **watch** - `make watch`\nThis is a convenience method for watching just Less files and automatically building them whenever you save. Requires the Watchr gem.\n\n\n\n## Contributing\n\nPlease submit all pull requests against *-wip branches. If your pull request contains JavaScript patches or features, you must include relevant unit tests. All HTML and CSS should conform to the [Code Guide](http://github.com/mdo/code-guide), maintained by [Mark Otto](http://github.com/mdo).\n\nThanks!\n\n\n\n## Authors\n\n**Mark Otto**\n\n+ http://twitter.com/mdo\n+ http://github.com/mdo\n\n**Jacob Thornton**\n\n+ http://twitter.com/fat\n+ http://github.com/fat\n\n\n\n## Copyright and license\n\nCopyright 2012 Twitter, Inc.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this work except in compliance with the License.\nYou may obtain a copy of the License in the LICENSE file, or at:\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n",
- "readmeFilename": "README.md",
- "_id": "bootstrap@2.2.2",
- "description": "Bootstrap is a sleek, intuitive, and powerful front-end framework for faster and easier web development, created and maintained by [Mark Otto](http://twitter.com/mdo) and [Jacob Thornton](http://twitter.com/fat).",
- "repository": {
- "type": "git",
- "url": "git://github.com/twitter/bootstrap.git"
- }
-}
View
10 old/components/bootstrap/composer.json
@@ -1,10 +0,0 @@
-{
- "name": "twitter/bootstrap"
- , "description": "Sleek, intuitive, and powerful front-end framework for faster and easier web development."
- , "keywords": ["bootstrap", "css"]
- , "homepage": "http://twitter.github.com/bootstrap/"
- , "author": "Twitter Inc."
- , "license": "Apache-2.0"
- , "target-dir": "twitter/bootstrap"
-
-}
View
1,092 old/components/bootstrap/docs/assets/css/bootstrap-responsive.css
@@ -1,1092 +0,0 @@
-/*!
- * Bootstrap Responsive v2.2.2
- *
- * Copyright 2012 Twitter, Inc
- * Licensed under the Apache License v2.0
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Designed and built with all the love in the world @twitter by @mdo and @fat.
- */
-
-@-ms-viewport {
- width: device-width;
-}
-
-.clearfix {
- *zoom: 1;
-}
-
-.clearfix:before,
-.clearfix:after {
- display: table;
- line-height: 0;
- content: "";
-}
-
-.clearfix:after {
- clear: both;
-}
-
-.hide-text {
- font: 0/0 a;
- color: transparent;
- text-shadow: none;
- background-color: transparent;
- border: 0;
-}
-
-.input-block-level {
- display: block;
- width: 100%;
- min-height: 30px;
- -webkit-box-sizing: border-box;
- -moz-box-sizing: border-box;
- box-sizing: border-box;
-}
-
-.hidden {
- display: none;
- visibility: hidden;
-}
-
-.visible-phone {
- display: none !important;
-}
-
-.visible-tablet {
- display: none !important;
-}
-
-.hidden-desktop {
- display: none !important;
-}
-
-.visible-desktop {
- display: inherit !important;
-}
-
-@media (min-width: 768px) and (max-width: 979px) {
- .hidden-desktop {
- display: inherit !important;
- }
- .visible-desktop {
- display: none !important ;
- }
- .visible-tablet {
- display: inherit !important;
- }
- .hidden-tablet {
- display: none !important;
- }
-}
-
-@media (max-width: 767px) {
- .hidden-desktop {
- display: inherit !important;
- }
- .visible-desktop {
- display: none !important;
- }
- .visible-phone {
- display: inherit !important;
- }
- .hidden-phone {
- display: none !important;
- }
-}
-
-@media (min-width: 1200px) {
- .row {
- margin-left: -30px;
- *zoom: 1;
- }
- .row:before,
- .row:after {
- display: table;
- line-height: 0;
- content: "";
- }
- .row:after {
- clear: both;
- }
- [class*="span"] {
- float: left;
- min-height: 1px;
- margin-left: 30px;
- }
- .container,
- .navbar-static-top .container,
- .navbar-fixed-top .container,
- .navbar-fixed-bottom .container {
- width: 1170px;
- }
- .span12 {
- width: 1170px;
- }
- .span11 {
- width: 1070px;
- }
- .span10 {
- width: 970px;
- }
- .span9 {
- width: 870px;
- }
- .span8 {
- width: 770px;
- }
- .span7 {
- width: 670px;
- }
- .span6 {
- width: 570px;
- }
- .span5 {
- width: 470px;
- }
- .span4 {
- width: 370px;
- }
- .span3 {
- width: 270px;
- }
- .span2 {
- width: 170px;
- }
- .span1 {
- width: 70px;
- }
- .offset12 {
- margin-left: 1230px;
- }
- .offset11 {
- margin-left: 1130px;
- }
- .offset10 {
- margin-left: 1030px;
- }
- .offset9 {
- margin-left: 930px;
- }
- .offset8 {
- margin-left: 830px;
- }
- .offset7 {
- margin-left: 730px;
- }
- .offset6 {
- margin-left: 630px;
- }
- .offset5 {
- margin-left: 530px;
- }
- .offset4 {
- margin-left: 430px;
- }
- .offset3 {
- margin-left: 330px;
- }
- .offset2 {
- margin-left: 230px;
- }
- .offset1 {
- margin-left: 130px;
- }
- .row-fluid {
- width: 100%;
- *zoom: 1;
- }
- .row-fluid:before,
- .row-fluid:after {
- display: table;
- line-height: 0;
- content: "";
- }
- .row-fluid:after {
- clear: both;
- }
- .row-fluid [class*="span"] {
- display: block;
- float: left;
- width: 100%;
- min-height: 30px;
- margin-left: 2.564102564102564%;
- *margin-left: 2.5109110747408616%;
- -webkit-box-sizing: border-box;
- -moz-box-sizing: border-box;
- box-sizing: border-box;
- }
- .row-fluid [class*="span"]:first-child {
- margin-left: 0;
- }
- .row-fluid .controls-row [class*="span"] + [class*="span"] {
- margin-left: 2.564102564102564%;
- }
- .row-fluid .span12 {
- width: 100%;
- *width: 99.94680851063829%;
- }
- .row-fluid .span11 {
- width: 91.45299145299145%;
- *width: 91.39979996362975%;
- }
- .row-fluid .span10 {
- width: 82.90598290598291%;
- *width: 82.8527914166212%;
- }
- .row-fluid .span9 {
- width: 74.35897435897436%;
- *width: 74.30578286961266%;
- }
- .row-fluid .span8 {
- width: 65.81196581196582%;
- *width: 65.75877432260411%;
- }
- .row-fluid .span7 {
- width: 57.26495726495726%;
- *width: 57.21176577559556%;
- }
- .row-fluid .span6 {
- width: 48.717948717948715%;
- *width: 48.664757228587014%;
- }
- .row-fluid .span5 {
- width: 40.17094017094017%;
- *width: 40.11774868157847%;
- }
- .row-fluid .span4 {
- width: 31.623931623931625%;
- *width: 31.570740134569924%;
- }
- .row-fluid .span3 {
- width: 23.076923076923077%;
- *width: 23.023731587561375%;
- }
- .row-fluid .span2 {
- width: 14.52991452991453%;
- *width: 14.476723040552828%;
- }
- .row-fluid .span1 {
- width: 5.982905982905983%;
- *width: 5.929714493544281%;
- }
- .row-fluid .offset12 {
- margin-left: 105.12820512820512%;
- *margin-left: 105.02182214948171%;
- }
- .row-fluid .offset12:first-child {
- margin-left: 102.56410256410257%;
- *margin-left: 102.45771958537915%;
- }
- .row-fluid .offset11 {
- margin-left: 96.58119658119658%;
- *margin-left: 96.47481360247316%;
- }
- .row-fluid .offset11:first-child {
- margin-left: 94.01709401709402%;
- *margin-left: 93.91071103837061%;
- }
- .row-fluid .offset10 {
- margin-left: 88.03418803418803%;
- *margin-left: 87.92780505546462%;
- }
- .row-fluid .offset10:first-child {
- margin-left: 85.47008547008548%;
- *margin-left: 85.36370249136206%;
- }
- .row-fluid .offset9 {
- margin-left: 79.48717948717949%;
- *margin-left: 79.38079650845607%;
- }
- .row-fluid .offset9:first-child {
- margin-left: 76.92307692307693%;
- *margin-left: 76.81669394435352%;
- }
- .row-fluid .offset8 {
- margin-left: 70.94017094017094%;
- *margin-left: 70.83378796144753%;
- }
- .row-fluid .offset8:first-child {
- margin-left: 68.37606837606839%;
- *margin-left: 68.26968539734497%;
- }
- .row-fluid .offset7 {
- margin-left: 62.393162393162385%;
- *margin-left: 62.28677941443899%;
- }
- .row-fluid .offset7:first-child {
- margin-left: 59.82905982905982%;
- *margin-left: 59.72267685033642%;
- }
- .row-fluid .offset6 {
- margin-left: 53.84615384615384%;
- *margin-left: 53.739770867430444%;
- }
- .row-fluid .offset6:first-child {
- margin-left: 51.28205128205128%;
- *margin-left: 51.175668303327875%;
- }
- .row-fluid .offset5 {
- margin-left: 45.299145299145295%;
- *margin-left: 45.1927623204219%;
- }
- .row-fluid .offset5:first-child {
- margin-left: 42.73504273504273%;
- *margin-left: 42.62865975631933%;
- }
- .row-fluid .offset4 {
- margin-left: 36.75213675213675%;
- *margin-left: 36.645753773413354%;
- }
- .row-fluid .offset4:first-child {
- margin-left: 34.18803418803419%;
- *margin-left: 34.081651209310785%;
- }
- .row-fluid .offset3 {
- margin-left: 28.205128205128204%;
- *margin-left: 28.0987452264048%;
- }
- .row-fluid .offset3:first-child {
- margin-left: 25.641025641025642%;
- *margin-left: 25.53464266230224%;
- }
- .row-fluid .offset2 {
- margin-left: 19.65811965811966%;
- *margin-left: 19.551736679396257%;
- }
- .row-fluid .offset2:first-child {
- margin-left: 17.094017094017094%;
- *margin-left: 16.98763411529369%;
- }
- .row-fluid .offset1 {
- margin-left: 11.11111111111111%;
- *margin-left: 11.004728132387708%;
- }
- .row-fluid .offset1:first-child {
- margin-left: 8.547008547008547%;
- *margin-left: 8.440625568285142%;
- }
- input,
- textarea,
- .uneditable-input {
- margin-left: 0;
- }
- .controls-row [class*="span"] + [class*="span"] {
- margin-left: 30px;
- }
- input.span12,
- textarea.span12,
- .uneditable-input.span12 {
- width: 1156px;
- }
- input.span11,
- textarea.span11,
- .uneditable-input.span11 {
- width: 1056px;
- }
- input.span10,
- textarea.span10,
- .uneditable-input.span10 {
- width: 956px;
- }
- input.span9,
- textarea.span9,
- .uneditable-input.span9 {
- width: 856px;
- }
- input.span8,
- textarea.span8,
- .uneditable-input.span8 {
- width: 756px;
- }
- input.span7,
- textarea.span7,
- .uneditable-input.span7 {
- width: 656px;
- }
- input.span6,
- textarea.span6,
- .uneditable-input.span6 {
- width: 556px;
- }
- input.span5,
- textarea.span5,
- .uneditable-input.span5 {
- width: 456px;
- }
- input.span4,
- textarea.span4,
- .uneditable-input.span4 {
- width: 356px;
- }
- input.span3,
- textarea.span3,
- .uneditable-input.span3 {
- width: 256px;
- }
- input.span2,
- textarea.span2,
- .uneditable-input.span2 {
- width: 156px;
- }
- input.span1,
- textarea.span1,
- .uneditable-input.span1 {
- width: 56px;
- }
- .thumbnails {
- margin-left: -30px;
- }
- .thumbnails > li {
- margin-left: 30px;
- }
- .row-fluid .thumbnails {
- margin-left: 0;
- }
-}
-
-@media (min-width: 768px) and (max-width: 979px) {
- .row {
- margin-left: -20px;
- *zoom: 1;
- }
- .row:before,
- .row:after {
- display: table;
- line-height: 0;
- content: "";
- }
- .row:after {
- clear: both;
- }
- [class*="span"] {
- float: left;
- min-height: 1px;
- margin-left: 20px;
- }
- .container,
- .navbar-static-top .container,
- .navbar-fixed-top .container,
- .navbar-fixed-bottom .container {
- width: 724px;
- }
- .span12 {
- width: 724px;
- }
- .span11 {
- width: 662px;
- }
- .span10 {
- width: 600px;
- }
- .span9 {
- width: 538px;
- }
- .span8 {
- width: 476px;
- }
- .span7 {
- width: 414px;
- }
- .span6 {
- width: 352px;
- }
- .span5 {
- width: 290px;
- }
- .span4 {
- width: 228px;
- }
- .span3 {
- width: 166px;
- }
- .span2 {
- width: 104px;
- }
- .span1 {
- width: 42px;
- }
- .offset12 {
- margin-left: 764px;
- }
- .offset11 {
- margin-left: 702px;
- }
- .offset10 {
- margin-left: 640px;
- }
- .offset9 {
- margin-left: 578px;
- }
- .offset8 {
- margin-left: 516px;
- }
- .offset7 {
- margin-left: 454px;
- }
- .offset6 {
- margin-left: 392px;
- }
- .offset5 {
- margin-left: 330px;
- }
- .offset4 {
- margin-left: 268px;
- }
- .offset3 {
- margin-left: 206px;
- }
- .offset2 {
- margin-left: 144px;
- }
- .offset1 {
- margin-left: 82px;
- }
- .row-fluid {
- width: 100%;
- *zoom: 1;
- }
- .row-fluid:before,
- .row-fluid:after {
- display: table;
- line-height: 0;
- content: "";
- }
- .row-fluid:after {
- clear: both;
- }
- .row-fluid [class*="span"] {
- display: block;
- float: left;
- width: 100%;
- min-height: 30px;
- margin-left: 2.7624309392265194%;
- *margin-left: 2.709239449864817%;
- -webkit-box-sizing: border-box;
- -moz-box-sizing: border-box;
- box-sizing: border-box;
- }
- .row-fluid [class*="span"]:first-child {
- margin-left: 0;
- }
- .row-fluid .controls-row [class*="span"] + [class*="span"] {
- margin-left: 2.7624309392265194%;
- }
- .row-fluid .span12 {
- width: 100%;
- *width: 99.94680851063829%;
- }
- .row-fluid .span11 {
- width: 91.43646408839778%;
- *width: 91.38327259903608%;
- }
- .row-fluid .span10 {
- width: 82.87292817679558%;
- *width: 82.81973668743387%;
- }
- .row-fluid .span9 {
- width: 74.30939226519337%;
- *width: 74.25620077583166%;
- }
- .row-fluid .span8 {
- width: 65.74585635359117%;
- *width: 65.69266486422946%;
- }
- .row-fluid .span7 {
- width: 57.18232044198895%;
- *width: 57.12912895262725%;
- }
- .row-fluid .span6 {
- width: 48.61878453038674%;
- *width: 48.56559304102504%;
- }
- .row-fluid .span5 {
- width: 40.05524861878453%;
- *width: 40.00205712942283%;
- }
- .row-fluid .span4 {
- width: 31.491712707182323%;
- *width: 31.43852121782062%;
- }
- .row-fluid .span3 {
- width: 22.92817679558011%;
- *width: 22.87498530621841%;
- }
- .row-fluid .span2 {
- width: 14.3646408839779%;
- *width: 14.311449394616199%;
- }
- .row-fluid .span1 {
- width: 5.801104972375691%;
- *width: 5.747913483013988%;
- }
- .row-fluid .offset12 {
- margin-left: 105.52486187845304%;
- *margin-left: 105.41847889972962%;
- }
- .row-fluid .offset12:first-child {
- margin-left: 102.76243093922652%;
- *margin-left: 102.6560479605031%;
- }
- .row-fluid .offset11 {
- margin-left: 96.96132596685082%;
- *margin-left: 96.8549429881274%;
- }
- .row-fluid .offset11:first-child {
- margin-left: 94.1988950276243%;
- *margin-left: 94.09251204890089%;
- }
- .row-fluid .offset10 {
- margin-left: 88.39779005524862%;
- *margin-left: 88.2914070765252%;
- }
- .row-fluid .offset10:first-child {
- margin-left: 85.6353591160221%;
- *margin-left: 85.52897613729868%;
- }
- .row-fluid .offset9 {
- margin-left: 79.8342541436464%;
- *margin-left: 79.72787116492299%;
- }
- .row-fluid .offset9:first-child {
- margin-left: 77.07182320441989%;
- *margin-left: 76.96544022569647%;
- }
- .row-fluid .offset8 {
- margin-left: 71.2707182320442%;
- *margin-left: 71.16433525332079%;
- }
- .row-fluid .offset8:first-child {
- margin-left: 68.50828729281768%;
- *margin-left: 68.40190431409427%;
- }
- .row-fluid .offset7 {
- margin-left: 62.70718232044199%;
- *margin-left: 62.600799341718584%;
- }
- .row-fluid .offset7:first-child {
- margin-left: 59.94475138121547%;
- *margin-left: 59.838368402492065%;
- }
- .row-fluid .offset6 {
- margin-left: 54.14364640883978%;
- *margin-left: 54.037263430116376%;
- }
- .row-fluid .offset6:first-child {
- margin-left: 51.38121546961326%;
- *margin-left: 51.27483249088986%;
- }
- .row-fluid .offset5 {
- margin-left: 45.58011049723757%;
- *margin-left: 45.47372751851417%;
- }
- .row-fluid .offset5:first-child {
- margin-left: 42.81767955801105%;
- *margin-left: 42.71129657928765%;
- }
- .row-fluid .offset4 {
- margin-left: 37.01657458563536%;
- *margin-left: 36.91019160691196%;
- }
- .row-fluid .offset4:first-child {
- margin-left: 34.25414364640884%;
- *margin-left: 34.14776066768544%;
- }
- .row-fluid .offset3 {
- margin-left: 28.45303867403315%;
- *margin-left: 28.346655695309746%;
- }
- .row-fluid .offset3:first-child {
- margin-left: 25.69060773480663%;
- *margin-left: 25.584224756083227%;
- }
- .row-fluid .offset2 {
- margin-left: 19.88950276243094%;
- *margin-left: 19.783119783707537%;
- }
- .row-fluid .offset2:first-child {
- margin-left: 17.12707182320442%;
- *margin-left: 17.02068884448102%;
- }
- .row-fluid .offset1 {
- margin-left: 11.32596685082873%;
- *margin-left: 11.219583872105325%;
- }
- .row-fluid .offset1:first-child {
- margin-left: 8.56353591160221%;
- *margin-left: 8.457152932878806%;
- }
- input,
- textarea,
- .uneditable-input {
- margin-left: 0;
- }
- .controls-row [class*="span"] + [class*="span"] {
- margin-left: 20px;
- }
- input.span12,
- textarea.span12,
- .uneditable-input.span12 {
- width: 710px;
- }
- input.span11,
- textarea.span11,
- .uneditable-input.span11 {
- width: 648px;
- }
- input.span10,
- textarea.span10,
- .uneditable-input.span10 {
- width: 586px;
- }
- input.span9,
- textarea.span9,
- .uneditable-input.span9 {
- width: 524px;
- }
- input.span8,
- textarea.span8,
- .uneditable-input.span8 {
- width: 462px;
- }
- input.span7,
- textarea.span7,
- .uneditable-input.span7 {
- width: 400px;
- }
- input.span6,
- textarea.span6,
- .uneditable-input.span6 {
- width: 338px;
- }
- input.span5,
- textarea.span5,
- .uneditable-input.span5 {
- width: 276px;
- }
- input.span4,
- textarea.span4,
- .uneditable-input.span4 {
- width: 214px;
- }
- input.span3,
- textarea.span3,
- .uneditable-input.span3 {
- width: 152px;
- }
- input.span2,
- textarea.span2,
- .uneditable-input.span2 {
- width: 90px;
- }
- input.span1,
- textarea.span1,
- .uneditable-input.span1 {
- width: 28px;
- }
-}
-
-@media (max-width: 767px) {
- body {
- padding-right: 20px;
- padding-left: 20px;
- }
- .navbar-fixed-top,
- .navbar-fixed-bottom,
- .navbar-static-top {
- margin-right: -20px;
- margin-left: -20px;
- }
- .container-fluid {
- padding: 0;
- }
- .dl-horizontal dt {
- float: none;
- width: auto;
- clear: none;
- text-align: left;
- }
- .dl-horizontal dd {
- margin-left: 0;
- }
- .container {
- width: auto;
- }
- .row-fluid {
- width: 100%;
- }
- .row,
- .thumbnails {
- margin-left: 0;
- }
- .thumbnails > li {
- float: none;
- margin-left: 0;
- }
- [class*="span"],
- .uneditable-input[class*="span"],
- .row-fluid [class*="span"] {
- display: block;
- float: none;
- width: 100%;
- margin-left: 0;
- -webkit-box-sizing: border-box;
- -moz-box-sizing: border-box;
- box-sizing: border-box;
- }
- .span12,
- .row-fluid .span12 {
- width: 100%;
- -webkit-box-sizing: border-box;
- -moz-box-sizing: border-box;
- box-sizing: border-box;
- }
- .row-fluid [class*="offset"]:first-child {
- margin-left: 0;
- }
- .input-large,
- .input-xlarge,
- .input-xxlarge,
- input[class*="span"],
- select[class*="span"],
- textarea[class*="span"],
- .uneditable-input {
- display: block;
- width: 100%;
- min-height: 30px;
- -webkit-box-sizing: border-box;
- -moz-box-sizing: border-box;
- box-sizing: border-box;
- }
- .input-prepend input,
- .input-append input,
- .input-prepend input[class*="span"],
- .input-append input[class*="span"] {
- display: inline-block;
- width: auto;
- }
- .controls-row [class*="span"] + [class*="span"] {
- margin-left: 0;
- }
- .modal {
- position: fixed;
- top: 20px;
- right: 20px;
- left: 20px;
- width: auto;
- margin: 0;
- }
- .modal.fade {
- top: -100px;
- }
- .modal.fade.in {
- top: 20px;
- }
-}
-
-@media (max-width: 480px) {
- .nav-collapse {
- -webkit-transform: translate3d(0, 0, 0);
- }
- .page-header h1 small {
- display: block;
- line-height: 20px;
- }
- input[type="checkbox"],
- input[type="radio"] {
- border: 1px solid #ccc;
- }
- .form-horizontal .control-label {
- float: none;
- width: auto;
- padding-top: 0;
- text-align: left;
- }
- .form-horizontal .controls {
- margin-left: 0;
- }
- .form-horizontal .control-list {
- padding-top: 0;
- }
- .form-horizontal .form-actions {
- padding-right: 10px;
- padding-left: 10px;
- }
- .media .pull-left,
- .media .pull-right {
- display: block;
- float: none;
- margin-bottom: 10px;
- }
- .media-object {
- margin-right: 0;
- margin-left: 0;
- }
- .modal {
- top: 10px;
- right: 10px;
- left: 10px;
- }
- .modal-header .close {
- padding: 10px;
- margin: -10px;
- }
- .carousel-caption {
- position: static;
- }
-}
-
-@media (max-width: 979px) {
- body {
- padding-top: 0;
- }
- .navbar-fixed-top,
- .navbar-fixed-bottom {
- position: static;
- }
- .navbar-fixed-top {
- margin-bottom: 20px;
- }
- .navbar-fixed-bottom {
- margin-top: 20px;
- }
- .navbar-fixed-top .navbar-inner,
- .navbar-fixed-bottom .navbar-inner {
- padding: 5px;
- }
- .navbar .container {
- width: auto;
- padding: 0;
- }
- .navbar .brand {
- padding-right: 10px;
- padding-left: 10px;
- margin: 0 0 0 -5px;
- }
- .nav-collapse {
- clear: both;
- }
- .nav-collapse .nav {
- float: none;
- margin: 0 0 10px;
- }
- .nav-collapse .nav > li {
- float: none;
- }
- .nav-collapse .nav > li > a {
- margin-bottom: 2px;
- }
- .nav-collapse .nav > .divider-vertical {
- display: none;
- }
- .nav-collapse .nav .nav-header {
- color: #777777;
- text-shadow: none;
- }
- .nav-collapse .nav > li > a,
- .nav-collapse .dropdown-menu a {
- padding: 9px 15px;
- font-weight: bold;
- color: #777777;
- -webkit-border-radius: 3px;
- -moz-border-radius: 3px;
- border-radius: 3px;
- }
- .nav-collapse .btn {
- padding: 4px 10px 4px;
- font-weight: normal;
- -webkit-border-radius: 4px;
- -moz-border-radius: 4px;
- border-radius: 4px;
- }
- .nav-collapse .dropdown-menu li + li a {
- margin-bottom: 2px;
- }
- .nav-collapse .nav > li > a:hover,
- .nav-collapse .dropdown-menu a:hover {
- background-color: #f2f2f2;
- }
- .navbar-inverse .nav-collapse .nav > li > a,
- .navbar-inverse .nav-collapse .dropdown-menu a {
- color: #999999;
- }
- .navbar-inverse .nav-collapse .nav > li > a:hover,
- .navbar-inverse .nav-collapse .dropdown-menu a:hover {
- background-color: #111111;
- }
- .nav-collapse.in .btn-group {
- padding: 0;
- margin-top: 5px;
- }
- .nav-collapse .dropdown-menu {
- position: static;
- top: auto;
- left: auto;
- display: none;
- float: none;
- max-width: none;
- padding: 0;
- margin: 0 15px;
- background-color: transparent;
- border: none;
- -webkit-border-radius: 0;
- -moz-border-radius: 0;
- border-radius: 0;
- -webkit-box-shadow: none;
- -moz-box-shadow: none;
- box-shadow: none;
- }
- .nav-collapse .open > .dropdown-menu {
- display: block;
- }
- .nav-collapse .dropdown-menu:before,
- .nav-collapse .dropdown-menu:after {
- display: none;
- }
- .nav-collapse .dropdown-menu .divider {
- display: none;
- }
- .nav-collapse .nav > li > .dropdown-menu:before,
- .nav-collapse .nav > li > .dropdown-menu:after {
- display: none;
- }
- .nav-collapse .navbar-form,
- .nav-collapse .navbar-search {
- float: none;
- padding: 10px 15px;
- margin: 10px 0;
- border-top: 1px solid #f2f2f2;
- border-bottom: 1px solid #f2f2f2;
- -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 0 rgba(255, 255, 255, 0.1);
- -moz-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 0 rgba(255, 255, 255, 0.1);
- box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 0 rgba(255, 255, 255, 0.1);
- }
- .navbar-inverse .nav-collapse .navbar-form,
- .navbar-inverse .nav-collapse .navbar-search {
- border-top-color: #111111;
- border-bottom-color: #111111;
- }
- .navbar .nav-collapse .nav.pull-right {
- float: none;
- margin-left: 0;
- }
- .nav-collapse,
- .nav-collapse.collapse {
- height: 0;
- overflow: hidden;
- }
- .navbar .btn-navbar {
- display: block;
- }
- .navbar-static .navbar-inner {
- padding-right: 10px;
- padding-left: 10px;
- }
-}
-
-@media (min-width: 980px) {
- .nav-collapse.collapse {
- height: auto !important;
- overflow: visible !important;
- }
-}
View
6,039 old/components/bootstrap/docs/assets/css/bootstrap.css
0 additions, 6,039 deletions not shown
View