mirror of
https://github.com/tuxis-ie/nsedit.git
synced 2025-06-07 00:47:00 +03:00
Merge commit '7f7c9b378f
' as 'jquery-ui'
This commit is contained in:
commit
0115f4500d
629 changed files with 341074 additions and 0 deletions
28
jquery-ui/demos/progressbar/default.html
Normal file
28
jquery-ui/demos/progressbar/default.html
Normal file
|
@ -0,0 +1,28 @@
|
|||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>jQuery UI Progressbar - Default functionality</title>
|
||||
<link rel="stylesheet" href="../../themes/base/all.css">
|
||||
<script src="../../external/jquery/jquery.js"></script>
|
||||
<script src="../../ui/core.js"></script>
|
||||
<script src="../../ui/widget.js"></script>
|
||||
<script src="../../ui/progressbar.js"></script>
|
||||
<link rel="stylesheet" href="../demos.css">
|
||||
<script>
|
||||
$(function() {
|
||||
$( "#progressbar" ).progressbar({
|
||||
value: 37
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div id="progressbar"></div>
|
||||
|
||||
<div class="demo-description">
|
||||
<p>Default determinate progress bar.</p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
115
jquery-ui/demos/progressbar/download.html
Normal file
115
jquery-ui/demos/progressbar/download.html
Normal file
|
@ -0,0 +1,115 @@
|
|||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>jQuery UI Progressbar - Download Dialog</title>
|
||||
<link rel="stylesheet" href="../../themes/base/all.css">
|
||||
<script src="../../external/jquery/jquery.js"></script>
|
||||
<script src="../../ui/core.js"></script>
|
||||
<script src="../../ui/widget.js"></script>
|
||||
<script src="../../ui/progressbar.js"></script>
|
||||
<script src="../../ui/mouse.js"></script>
|
||||
<script src="../../ui/draggable.js"></script>
|
||||
<script src="../../ui/button.js"></script>
|
||||
<script src="../../ui/position.js"></script>
|
||||
<script src="../../ui/dialog.js"></script>
|
||||
<link rel="stylesheet" href="../demos.css">
|
||||
<script>
|
||||
$(function() {
|
||||
var progressTimer,
|
||||
progressbar = $( "#progressbar" ),
|
||||
progressLabel = $( ".progress-label" ),
|
||||
dialogButtons = [{
|
||||
text: "Cancel Download",
|
||||
click: closeDownload
|
||||
}],
|
||||
dialog = $( "#dialog" ).dialog({
|
||||
autoOpen: false,
|
||||
closeOnEscape: false,
|
||||
resizable: false,
|
||||
buttons: dialogButtons,
|
||||
open: function() {
|
||||
progressTimer = setTimeout( progress, 2000 );
|
||||
},
|
||||
beforeClose: function() {
|
||||
downloadButton.button( "option", {
|
||||
disabled: false,
|
||||
label: "Start Download"
|
||||
});
|
||||
}
|
||||
}),
|
||||
downloadButton = $( "#downloadButton" )
|
||||
.button()
|
||||
.on( "click", function() {
|
||||
$( this ).button( "option", {
|
||||
disabled: true,
|
||||
label: "Downloading..."
|
||||
});
|
||||
dialog.dialog( "open" );
|
||||
});
|
||||
|
||||
progressbar.progressbar({
|
||||
value: false,
|
||||
change: function() {
|
||||
progressLabel.text( "Current Progress: " + progressbar.progressbar( "value" ) + "%" );
|
||||
},
|
||||
complete: function() {
|
||||
progressLabel.text( "Complete!" );
|
||||
dialog.dialog( "option", "buttons", [{
|
||||
text: "Close",
|
||||
click: closeDownload
|
||||
}]);
|
||||
$(".ui-dialog button").last().focus();
|
||||
}
|
||||
});
|
||||
|
||||
function progress() {
|
||||
var val = progressbar.progressbar( "value" ) || 0;
|
||||
|
||||
progressbar.progressbar( "value", val + Math.floor( Math.random() * 3 ) );
|
||||
|
||||
if ( val <= 99 ) {
|
||||
progressTimer = setTimeout( progress, 50 );
|
||||
}
|
||||
}
|
||||
|
||||
function closeDownload() {
|
||||
clearTimeout( progressTimer );
|
||||
dialog
|
||||
.dialog( "option", "buttons", dialogButtons )
|
||||
.dialog( "close" );
|
||||
progressbar.progressbar( "value", false );
|
||||
progressLabel
|
||||
.text( "Starting download..." );
|
||||
downloadButton.focus();
|
||||
}
|
||||
});
|
||||
</script>
|
||||
<style>
|
||||
#progressbar {
|
||||
margin-top: 20px;
|
||||
}
|
||||
|
||||
.progress-label {
|
||||
font-weight: bold;
|
||||
text-shadow: 1px 1px 0 #fff;
|
||||
}
|
||||
|
||||
.ui-dialog-titlebar-close {
|
||||
display: none;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div id="dialog" title="File Download">
|
||||
<div class="progress-label">Starting download...</div>
|
||||
<div id="progressbar"></div>
|
||||
</div>
|
||||
<button id="downloadButton">Start Download</button>
|
||||
|
||||
<div class="demo-description">
|
||||
<p>Download dialog progressbar demo.</p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
BIN
jquery-ui/demos/progressbar/images/pbar-ani.gif
Normal file
BIN
jquery-ui/demos/progressbar/images/pbar-ani.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.3 KiB |
53
jquery-ui/demos/progressbar/indeterminate.html
Normal file
53
jquery-ui/demos/progressbar/indeterminate.html
Normal file
|
@ -0,0 +1,53 @@
|
|||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>jQuery UI Progressbar - Indeterminate Value</title>
|
||||
<link rel="stylesheet" href="../../themes/base/all.css">
|
||||
<script src="../../external/jquery/jquery.js"></script>
|
||||
<script src="../../ui/core.js"></script>
|
||||
<script src="../../ui/widget.js"></script>
|
||||
<script src="../../ui/progressbar.js"></script>
|
||||
<link rel="stylesheet" href="../demos.css">
|
||||
<script>
|
||||
$(function() {
|
||||
$( "#progressbar" ).progressbar({
|
||||
value: false
|
||||
});
|
||||
$( "button" ).on( "click", function( event ) {
|
||||
var target = $( event.target ),
|
||||
progressbar = $( "#progressbar" ),
|
||||
progressbarValue = progressbar.find( ".ui-progressbar-value" );
|
||||
|
||||
if ( target.is( "#numButton" ) ) {
|
||||
progressbar.progressbar( "option", {
|
||||
value: Math.floor( Math.random() * 100 )
|
||||
});
|
||||
} else if ( target.is( "#colorButton" ) ) {
|
||||
progressbarValue.css({
|
||||
"background": '#' + Math.floor( Math.random() * 16777215 ).toString( 16 )
|
||||
});
|
||||
} else if ( target.is( "#falseButton" ) ) {
|
||||
progressbar.progressbar( "option", "value", false );
|
||||
}
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<style>
|
||||
#progressbar .ui-progressbar-value {
|
||||
background-color: #ccc;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div id="progressbar"></div>
|
||||
<button id="numButton">Random Value - Determinate</button>
|
||||
<button id="falseButton">Indeterminate</button>
|
||||
<button id="colorButton">Random Color</button>
|
||||
|
||||
<div class="demo-description">
|
||||
<p>Indeterminate progress bar and switching between determinate and indeterminate styles.</p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
18
jquery-ui/demos/progressbar/index.html
Normal file
18
jquery-ui/demos/progressbar/index.html
Normal file
|
@ -0,0 +1,18 @@
|
|||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>jQuery UI Progressbar Demos</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<ul>
|
||||
<li><a href="default.html">Default functionality</a></li>
|
||||
<li><a href="indeterminate.html">Indeterminate</a></li>
|
||||
<li><a href="label.html">Custom Labels</a></li>
|
||||
<li><a href="download.html">Download Dialog</a></li>
|
||||
</ul>
|
||||
|
||||
</body>
|
||||
</html>
|
61
jquery-ui/demos/progressbar/label.html
Normal file
61
jquery-ui/demos/progressbar/label.html
Normal file
|
@ -0,0 +1,61 @@
|
|||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>jQuery UI Progressbar - Custom Label</title>
|
||||
<link rel="stylesheet" href="../../themes/base/all.css">
|
||||
<script src="../../external/jquery/jquery.js"></script>
|
||||
<script src="../../ui/core.js"></script>
|
||||
<script src="../../ui/widget.js"></script>
|
||||
<script src="../../ui/progressbar.js"></script>
|
||||
<link rel="stylesheet" href="../demos.css">
|
||||
<style>
|
||||
.ui-progressbar {
|
||||
position: relative;
|
||||
}
|
||||
.progress-label {
|
||||
position: absolute;
|
||||
left: 50%;
|
||||
top: 4px;
|
||||
font-weight: bold;
|
||||
text-shadow: 1px 1px 0 #fff;
|
||||
}
|
||||
</style>
|
||||
<script>
|
||||
$(function() {
|
||||
var progressbar = $( "#progressbar" ),
|
||||
progressLabel = $( ".progress-label" );
|
||||
|
||||
progressbar.progressbar({
|
||||
value: false,
|
||||
change: function() {
|
||||
progressLabel.text( progressbar.progressbar( "value" ) + "%" );
|
||||
},
|
||||
complete: function() {
|
||||
progressLabel.text( "Complete!" );
|
||||
}
|
||||
});
|
||||
|
||||
function progress() {
|
||||
var val = progressbar.progressbar( "value" ) || 0;
|
||||
|
||||
progressbar.progressbar( "value", val + 2 );
|
||||
|
||||
if ( val < 99 ) {
|
||||
setTimeout( progress, 80 );
|
||||
}
|
||||
}
|
||||
|
||||
setTimeout( progress, 2000 );
|
||||
});
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div id="progressbar"><div class="progress-label">Loading...</div></div>
|
||||
|
||||
<div class="demo-description">
|
||||
<p>Custom updated label demo.</p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue