Permalink
Find file
83ad86b Jan 3, 2014
299 lines (268 sloc) 7.13 KB
<?xml version="1.0" encoding="UTF-8"?>
<HTMLWidget name="Preloader" formatNumber="1"
localization="none" creator="Michael Chaize"
defaultWidth="200" defaultHeight="200"
isResizable="true">
<parameters>
<text name="myMessage" label="Message" defaultValue="Loading the page..." tooltip="This is the message that you'll display while the page is loading" />
<text name="colorFont" defaultValue="#DDDDDD" label="Font color" tooltip="Color of the text"/>
<text name="bgColor" defaultValue="#222222" label="Background color" tooltip="Background color of the preloader screen"/>
<number name="bgOpacity" min="0" max="1" step="0.1" snap="0.1" defaultValue="0.8" label="Opacity" tooltip="Set the opacity of the preloader (from 0 to 1)"/>
<text name="spinnerFirstColor" defaultValue="#E8FF00" label="Spinner Color" tooltip="Color of the spinner"/>
</parameters>
<headHTML >
<![CDATA[
<style>
body {
overflow: hidden;
}
#preloader {
position:fixed;
top:0;
left:0;
right:0;
bottom:0;
background-color:{param_bgColor}; /* change if the mask should have another color then white */
opacity:{param_bgOpacity};
//z-index:99; /* makes sure it stays on top */
}
#status {
width:200px;
height:50px;
position:absolute;
left:50%; /* centers the loading animation horizontally one the screen */
top:50%; /* centers the loading animation vertically one the screen */
margin-left:-100px;
margin-top:55px;
font-size:12px;
color:{param_colorFont};
text-align:center;
font-family:Verdana;
}
</style>
<style>
#floatingBarsG{
position:absolute;
left:50%; /* centers the loading animation horizontally one the screen */
top:50%; /* centers the loading animation vertically one the screen */
width:50px;
margin-left:-25px;
height:62px}
.blockG{
position:absolute;
background-color:{param_bgColor};
width:8px;
height:19px;
-moz-border-radius:7px 7px 0 0;
-moz-transform:scale(0.4);
-moz-animation-name:fadeG;
-moz-animation-duration:1.28s;
-moz-animation-iteration-count:infinite;
-moz-animation-direction:linear;
-webkit-border-radius:7px 7px 0 0;
-webkit-transform:scale(0.4);
-webkit-animation-name:fadeG;
-webkit-animation-duration:1.28s;
-webkit-animation-iteration-count:infinite;
-webkit-animation-direction:linear;
-ms-border-radius:7px 7px 0 0;
-ms-transform:scale(0.4);
-ms-animation-name:fadeG;
-ms-animation-duration:1.28s;
-ms-animation-iteration-count:infinite;
-ms-animation-direction:linear;
-o-border-radius:7px 7px 0 0;
-o-transform:scale(0.4);
-o-animation-name:fadeG;
-o-animation-duration:1.28s;
-o-animation-iteration-count:infinite;
-o-animation-direction:linear;
border-radius:7px 7px 0 0;
transform:scale(0.4);
animation-name:fadeG;
animation-duration:1.28s;
animation-iteration-count:infinite;
animation-direction:linear;
}
#rotateG_01{
left:0;
top:23px;
-moz-animation-delay:0.4800000000000001s;
-moz-transform:rotate(-90deg);
-webkit-animation-delay:0.4800000000000001s;
-webkit-transform:rotate(-90deg);
-ms-animation-delay:0.4800000000000001s;
-ms-transform:rotate(-90deg);
-o-animation-delay:0.4800000000000001s;
-o-transform:rotate(-90deg);
animation-delay:0.4800000000000001s;
transform:rotate(-90deg);
}
#rotateG_02{
left:6px;
top:8px;
-moz-animation-delay:0.64s;
-moz-transform:rotate(-45deg);
-webkit-animation-delay:0.64s;
-webkit-transform:rotate(-45deg);
-ms-animation-delay:0.64s;
-ms-transform:rotate(-45deg);
-o-animation-delay:0.64s;
-o-transform:rotate(-45deg);
animation-delay:0.64s;
transform:rotate(-45deg);
}
#rotateG_03{
left:21px;
top:2px;
-moz-animation-delay:0.8s;
-moz-transform:rotate(0deg);
-webkit-animation-delay:0.8s;
-webkit-transform:rotate(0deg);
-ms-animation-delay:0.8s;
-ms-transform:rotate(0deg);
-o-animation-delay:0.8s;
-o-transform:rotate(0deg);
animation-delay:0.8s;
transform:rotate(0deg);
}
#rotateG_04{
right:6px;
top:8px;
-moz-animation-delay:0.9600000000000002s;
-moz-transform:rotate(45deg);
-webkit-animation-delay:0.9600000000000002s;
-webkit-transform:rotate(45deg);
-ms-animation-delay:0.9600000000000002s;
-ms-transform:rotate(45deg);
-o-animation-delay:0.9600000000000002s;
-o-transform:rotate(45deg);
animation-delay:0.9600000000000002s;
transform:rotate(45deg);
}
#rotateG_05{
right:0;
top:23px;
-moz-animation-delay:1.12s;
-moz-transform:rotate(90deg);
-webkit-animation-delay:1.12s;
-webkit-transform:rotate(90deg);
-ms-animation-delay:1.12s;
-ms-transform:rotate(90deg);
-o-animation-delay:1.12s;
-o-transform:rotate(90deg);
animation-delay:1.12s;
transform:rotate(90deg);
}
#rotateG_06{
right:6px;
bottom:6px;
-moz-animation-delay:1.28s;
-moz-transform:rotate(135deg);
-webkit-animation-delay:1.28s;
-webkit-transform:rotate(135deg);
-ms-animation-delay:1.28s;
-ms-transform:rotate(135deg);
-o-animation-delay:1.28s;
-o-transform:rotate(135deg);
animation-delay:1.28s;
transform:rotate(135deg);
}
#rotateG_07{
bottom:0;
left:21px;
-moz-animation-delay:1.44s;
-moz-transform:rotate(180deg);
-webkit-animation-delay:1.44s;
-webkit-transform:rotate(180deg);
-ms-animation-delay:1.44s;
-ms-transform:rotate(180deg);
-o-animation-delay:1.44s;
-o-transform:rotate(180deg);
animation-delay:1.44s;
transform:rotate(180deg);
}
#rotateG_08{
left:6px;
bottom:6px;
-moz-animation-delay:1.6s;
-moz-transform:rotate(-135deg);
-webkit-animation-delay:1.6s;
-webkit-transform:rotate(-135deg);
-ms-animation-delay:1.6s;
-ms-transform:rotate(-135deg);
-o-animation-delay:1.6s;
-o-transform:rotate(-135deg);
animation-delay:1.6s;
transform:rotate(-135deg);
}
@-moz-keyframes fadeG{
0%{
background-color:{param_spinnerFirstColor}}
100%{
background-color:#FFFFFF}
}
@-webkit-keyframes fadeG{
0%{
background-color:{param_spinnerFirstColor}}
100%{
background-color:{param_bgColor}}
}
@-ms-keyframes fadeG{
0%{
background-color:{param_spinnerFirstColor}}
100%{
background-color:{param_bgColor}}
}
@-o-keyframes fadeG{
0%{
background-color:{param_spinnerFirstColor}}
100%{
background-color:{param_bgColor}}
}
@keyframes fadeG{
0%{
background-color:{param_spinnerFirstColor}}
100%{
background-color:{param_bgColor}}
}
</style>
]]>
</headHTML >
<pageItemHTML >
<![CDATA[
<div id="preloader">
<div id="floatingBarsG">
<div class="blockG" id="rotateG_01">
</div>
<div class="blockG" id="rotateG_02">
</div>
<div class="blockG" id="rotateG_03">
</div>
<div class="blockG" id="rotateG_04">
</div>
<div class="blockG" id="rotateG_05">
</div>
<div class="blockG" id="rotateG_06">
</div>
<div class="blockG" id="rotateG_07">
</div>
<div class="blockG" id="rotateG_08">
</div>
</div>
<div id="status">{param_myMessage}</div>
</div>
]]>
</pageItemHTML >
<bodyEndHTML>
<![CDATA[
<script type="text/javascript">
$(window).load(function() { // makes sure the whole site is loaded
$('#status').fadeOut(); // will first fade out the loading animation
$('#preloader').delay(200).fadeOut('slow'); // will fade out the white DIV that covers the website.
$('body').delay(200).css({'overflow':'visible'});
})
</script>
]]>
</bodyEndHTML>
</HTMLWidget>