prvi
This commit is contained in:
57
ZpcBulletinBoard/wwwroot/lib/spin/example/jquery.html
Normal file
57
ZpcBulletinBoard/wwwroot/lib/spin/example/jquery.html
Normal file
@@ -0,0 +1,57 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>spin.js</title>
|
||||
<style type="text/css">
|
||||
body {
|
||||
font-family: Helvetica, Arial, sans-serif;
|
||||
font-size: 16px;
|
||||
}
|
||||
.preview {
|
||||
background: #aaa;
|
||||
color: black;
|
||||
width: 220px;
|
||||
height: 220px;
|
||||
margin: 0 20px;
|
||||
float: left;
|
||||
border-radius: 10px;
|
||||
}
|
||||
#preview2 {
|
||||
background: #666;
|
||||
color: red;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div id="preview1" class="preview"></div>
|
||||
<div id="preview2" class="preview"></div>
|
||||
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
|
||||
<script src="../spin.js"></script>
|
||||
<script>
|
||||
$.fn.spin = function(opts) {
|
||||
this.each(function() {
|
||||
var $this = $(this),
|
||||
data = $this.data();
|
||||
|
||||
if (data.spinner) {
|
||||
data.spinner.stop();
|
||||
delete data.spinner;
|
||||
}
|
||||
if (opts !== false) {
|
||||
data.spinner = new Spinner($.extend({color: $this.css('color')}, opts)).spin(this);
|
||||
}
|
||||
});
|
||||
return this;
|
||||
};
|
||||
$('#preview1').spin();
|
||||
$('#preview2').spin({color: '#fff'});
|
||||
|
||||
//Remove spinner upon click
|
||||
$('.preview').click(function() {
|
||||
$(this).spin(false);
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
31
ZpcBulletinBoard/wwwroot/lib/spin/example/modernizr.html
Normal file
31
ZpcBulletinBoard/wwwroot/lib/spin/example/modernizr.html
Normal file
@@ -0,0 +1,31 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>spin.js</title>
|
||||
<script src="modernizr.js"></script>
|
||||
<style type="text/css">
|
||||
body {
|
||||
font-family: Helvetica, Arial, sans-serif;
|
||||
font-size: 16px;
|
||||
}
|
||||
#preview {
|
||||
background: #aaa;
|
||||
color: black;
|
||||
width: 220px;
|
||||
height: 220px;
|
||||
margin: 0 20px;
|
||||
float: left;
|
||||
border-radius: 10px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<section id="preview"></section>
|
||||
|
||||
<script src="../spin.js"></script>
|
||||
<script>
|
||||
new Spinner().spin(document.getElementById('preview'));
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
1265
ZpcBulletinBoard/wwwroot/lib/spin/example/modernizr.js
Normal file
1265
ZpcBulletinBoard/wwwroot/lib/spin/example/modernizr.js
Normal file
File diff suppressed because it is too large
Load Diff
61
ZpcBulletinBoard/wwwroot/lib/spin/example/positioning.html
Normal file
61
ZpcBulletinBoard/wwwroot/lib/spin/example/positioning.html
Normal file
@@ -0,0 +1,61 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>spin.js</title>
|
||||
<style type="text/css">
|
||||
body {
|
||||
font-family: Helvetica, Arial, sans-serif;
|
||||
font-size: 16px;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
}
|
||||
div {
|
||||
|
||||
border-radius: 10px;
|
||||
}
|
||||
#target1 {
|
||||
background: #aaa url(../assets/crosshair.gif) center center no-repeat;
|
||||
width: 99px;
|
||||
height: 99px;
|
||||
padding: 15px;
|
||||
}
|
||||
#target2 {
|
||||
background: #bbb url(../assets/crosshair.gif) center center no-repeat;
|
||||
width: 99px;
|
||||
height: 99px;
|
||||
padding: 15px;
|
||||
}
|
||||
#target3 {
|
||||
background: #ccc url(../assets/crosshair.gif) center center no-repeat;
|
||||
width: 99px;
|
||||
height: 99px;
|
||||
padding: 15px;
|
||||
}
|
||||
#target4 {
|
||||
background: #ddd url(../assets/crosshair.gif) center center no-repeat;
|
||||
padding: 15px;
|
||||
width: 350px;
|
||||
height: 99px;
|
||||
padding: 50px;
|
||||
}
|
||||
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div id="target1"></div>
|
||||
<div id="target2"></div>
|
||||
<div id="target3"></div>
|
||||
<div id="target4"><img src="../assets/browsers.png" style="position:relative;top:16px;left:-5px"></div>
|
||||
|
||||
<script src="../spin.js"></script>
|
||||
|
||||
<script>
|
||||
Spinner({radius: 10, length: 40}).spin(document.getElementById('target1'));
|
||||
Spinner({radius: 40, length: 10}).spin(document.getElementById('target2'));
|
||||
Spinner({top: 0, left: 0}).spin(document.getElementById('target3'));
|
||||
Spinner({radius: 30, length: 0, width: 10, color: '#C40000', trail: 40}).spin(document.getElementById('target4'));
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
74
ZpcBulletinBoard/wwwroot/lib/spin/example/settings.html
Normal file
74
ZpcBulletinBoard/wwwroot/lib/spin/example/settings.html
Normal file
@@ -0,0 +1,74 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>spin.js</title>
|
||||
<style type="text/css">
|
||||
body {
|
||||
font-family: Helvetica, Arial, sans-serif;
|
||||
font-size: 16px;
|
||||
}
|
||||
label {
|
||||
display: inline-block;
|
||||
width: 70px;
|
||||
line-height: 25px;
|
||||
}
|
||||
#preview {
|
||||
background: #333;
|
||||
color: #fff;
|
||||
width: 220px;
|
||||
height: 220px;
|
||||
margin: 0 20px;
|
||||
float: left;
|
||||
border-radius: 10px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div id="preview"></div>
|
||||
<form>
|
||||
<label>Lines:</label><input type="range" name="lines" min="5" max="16" step="2" value="12"><br>
|
||||
<label>Length:</label><input type="range" name="length" min="0" max="30" value="7"><br>
|
||||
<label>Width:</label><input type="range" name="width" min="2" max="20" value="4"><br>
|
||||
<label>Radius:</label><input type="range" name="radius" min="0" max="40" value="10"><br>
|
||||
<label>Rotate:</label><input type="range" name="rotate" min="0" max="90" value="0"><br>
|
||||
<label>Trail:</label><input type="range" name="trail" min="10" max="100" value="60"><br>
|
||||
<label>Speed:</label><input type="range" name="speed" min="0.5" max="2.2" step="0.1" value="1"><br>
|
||||
<label>Shadow:</label><input type="checkbox" name="shadow"><br>
|
||||
<label>Hwaccel:</label><input type="checkbox" name="hwaccel"><br>
|
||||
</form>
|
||||
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
|
||||
<script src="../spin.js"></script>
|
||||
<script>
|
||||
$.fn.spin = function(opts) {
|
||||
this.each(function() {
|
||||
var $this = $(this),
|
||||
data = $this.data();
|
||||
|
||||
if (data.spinner) {
|
||||
data.spinner.stop();
|
||||
delete data.spinner;
|
||||
}
|
||||
if (opts !== false) {
|
||||
data.spinner = new Spinner($.extend({color: $this.css('color')}, opts)).spin(this);
|
||||
}
|
||||
});
|
||||
return this;
|
||||
};
|
||||
function update() {
|
||||
var opts = {};
|
||||
$('input[min]').each(function() {
|
||||
opts[this.name] = parseFloat(this.value);
|
||||
});
|
||||
$('input:checkbox').each(function() {
|
||||
opts[this.name] = this.checked;
|
||||
});
|
||||
$('#preview').spin(opts);
|
||||
}
|
||||
$('input[min]').change(update);
|
||||
$('input:checkbox').click(update);
|
||||
update();
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user