Files
fuelux/assets/js/placard-examples.js
Stephen Williams ac6c6fa6d8 replace http references w/ https
(excludes *vendor*,*.yml,*.md)
2020-05-27 15:14:27 -04:00

32 lines
761 B
JavaScript

/*!
* JavaScript for Fuel UX's docs - Placard Examples
* Copyright 2011-2014 ExactTarget, Inc.
* Licensed under the Creative Commons Attribution 3.0 Unported License. For
* details, see https://creativecommons.org/licenses/by/3.0/.
*/
define(function (require) {
var jquery = require('jquery');
require('bootstrap');
require('fuelux');
// PLACARD
$('#btnPlacardEnable').click(function () {
$('#myPlacard1').placard('enable');
});
$('#btnPlacardDisable').click(function () {
$('#myPlacard1').placard('disable');
});
$('#btnPlacardDestroy').click(function () {
var markup = $('#myPlacard1').placard('destroy');
console.log(markup);
$(this).closest('.section').append(markup);
$('#myPlacard1').placard({
edit: true
});
});
});