mirror of
https://github.com/RustyRaptor/CanvasLoader.git
synced 2026-12-03 17:55:15 -07:00
- safeMode added to make high density VML mode rendering CPU sensible, - Optional parameters added to the constructor with [id] and [safeVML] parameters, - Autohide added, the loader instances don't start rendering until the show() method is called, - Minified file is updated, - Documentation is updated, - Example html file is updated
71 lines
2.2 KiB
HTML
71 lines
2.2 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<!--
|
|
|
|
Copyright (c) 2011 Róbert Pataki
|
|
|
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
of this software and associated documentation files (the "Software"), to deal
|
|
in the Software without restriction, including without limitation the rights
|
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
comyCles of the Software, and to permit persons to whom the Software is
|
|
furnished to do so, subject to the following conditions:
|
|
|
|
The above copyright notice and this permission notice shall be included in
|
|
all comyCles or substantial portions of the Software.
|
|
|
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
THE SOFTWARE.
|
|
|
|
----------------------------------------------------------------------------------------
|
|
|
|
Check out my GitHub: http://github.com/heartcode/
|
|
Send me an email: heartcode@robertpataki.com
|
|
Follow me on Twitter: http://twitter.com/#iHeartcode
|
|
Blog: http://heartcode.robertpataki.com
|
|
|
|
-->
|
|
<title>Heartcode Canvas loader</title>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
<meta name="language" content="en" />
|
|
<meta name="description" content="" />
|
|
<meta name="keywords" content="" />
|
|
<script src="js/heartcode-canvasloader-min.js"></script>
|
|
<style>
|
|
body, html {
|
|
margin:0;
|
|
padding:0;
|
|
}
|
|
.wrapper {
|
|
position:absolute;
|
|
width:60px;
|
|
height:60px;
|
|
left:50%;
|
|
top:50%;
|
|
margin-left:-30px;
|
|
margin-top:-30px;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class='wrapper'>
|
|
<div id='spinner'>
|
|
<script>
|
|
var cl = new CanvasLoader("spinner", {id: "canvasLoader", safeVML: true});
|
|
cl.setShape("spiral");
|
|
cl.setDiameter(60);
|
|
cl.setDensity(80);
|
|
cl.setSpeed(1);
|
|
cl.setFPS(24);
|
|
cl.show();
|
|
</script>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html> |