Skip to content

Commit

Permalink
add pre-built forest-min.js
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewgryan committed May 15, 2020
1 parent ed8505c commit 842af3a
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions forest/static/forest-min.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
(function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){
const helloWorld = () => "Hello, World!"


// Populate variable options from dataset value
const link_selects = function(dataset_select, variable_select, source) {
let label = dataset_select.value;
if (label !== "") {
let index = source.data['datasets'].indexOf(label)
let defaults = ["Please specify"];
variable_select.options = defaults.concat(
source.data['variables'][index]);
}
}


module.exports = {
helloWorld,
link_selects
}

},{}],2:[function(require,module,exports){
window.forest = require('./forest')


},{"./forest":1}]},{},[2]);

0 comments on commit 842af3a

Please sign in to comment.