All files / javascripts standalone.js

0% Statements 0/11
100% Branches 0/0
0% Functions 0/1
0% Lines 0/11
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18                                   
const $ = window.$ = require('jquery');
/* eslint no-unused-vars: 0 */
const jQuery = window.jQuery = $;
const px = require('./modules/superset.js');
const utils = require('./modules/utils.js');
 
require('bootstrap');
 
const standaloneController = Object.assign(
  {}, utils.controllerInterface, { type: 'standalone' });
 
$(document).ready(function () {
  const data = $('.slice').data('slice');
  const slice = px.Slice(data, standaloneController);
  slice.render();
  slice.bindResizeToWindowResize();
});