This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
dry_run = ARGV.delete('--dry-run') | |
force = ARGV.delete('--force') | |
if ARGV.empty? | |
puts <<-USAGE | |
minify, swiftly concat and minify JavaScript files from the command line | |
Pass a single argument to create a .min.js version: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Displays overlay with "Please wait" text. Based on bootstrap modal. Contains animated progress bar. | |
*/ | |
function showPleaseWait() { | |
if (document.querySelector("#pleaseWaitDialog") == null) { | |
var modalLoading = '<div class="modal" id="pleaseWaitDialog" data-backdrop="static" data-keyboard="false" role="dialog">\ | |
<div class="modal-dialog">\ | |
<div class="modal-content">\ | |
<div class="modal-header">\ | |
<h4 class="modal-title">Please wait...</h4>\ |