"Waiting for..." modal dialog with progress bar for Bootstrap.
See this plugin in action:rocket:: http://bootsnipp.com/snippets/featured/quotwaiting-forquot-modal-dialog
You can install this module with bower bower install bootstrap-waitingfor and include the files from build directory.
You can install this module with npm npm install --save bootstrap-waitingfor and include it as shown:
const waitingDialog = require('bootstrap-waitingfor');
In your javascript code write something like this:
waitingDialog.show('I\'m waiting');
setTimeout(function () {
waitingDialog.hide();
}, 1000);
If you want to change the appearance of the modal, you can pass additional options:
waitingDialog.show('I\'m waiting', {
dialogSize: 'm',
progressType: 'success'
});
setTimeout(function () {
waitingDialog.hide();
}, 1000);
possible options for dialogSize are
* sm - small
* m - normal
* lg - large
possible options for progressType are
* success
* danger
* warning
* info
:fire:Before:fire: making a pull request do the following steps:
gulpgulp doesn't return any errorstest/run.html in your favorite browserSetting up the environment:
Node.jsnpm install -g bowernpm install -g gulpnpm installbower install:sunflower:You should only modify files inside src or test directories!:sunflower: Files in the build directory are generated automatically after running gulp.
HTML page example:
<html>
<head>
<meta charset="utf-8">
<title>boostrap-waitingfor</title>
<link href="https://github.com/ehpc/bootstrap-waitingfor/raw/1.2.9/bower_components/bootstrap/dist/css/bootstrap.css" rel="stylesheet" />
<link href="https://github.com/ehpc/bootstrap-waitingfor/raw/1.2.9/bower_components/bootstrap/dist/css/bootstrap-theme.css" rel="stylesheet" />
</head>
<body>
<script src="https://github.com/ehpc/bootstrap-waitingfor/raw/1.2.9/bower_components/jquery/dist/jquery.min.js"></script>
<script src="https://github.com/ehpc/bootstrap-waitingfor/raw/1.2.9/bower_components/bootstrap/dist/js/bootstrap.min.js"></script>
<script src="https://github.com/ehpc/bootstrap-waitingfor/raw/1.2.9/build/bootstrap-waitingfor.js"></script>
</body>
</html>
$ claude mcp add bootstrap-waitingfor \
-- python -m otcore.mcp_server <graph>