Removed dead code
This commit is contained in:
parent
b4894392cd
commit
2df6c80619
@ -93,44 +93,6 @@ $(function(){ldelim}
|
|||||||
{/if}
|
{/if}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
{if $id_lp == NULL}
|
|
||||||
<script type="text/javascript" src="{$js_dir}jquery-ui.min.js"></script>
|
|
||||||
<script type="text/javascript">{literal}
|
|
||||||
<!--
|
|
||||||
$(document).ready(function() {
|
|
||||||
var img_list = [{/literal}"{$img_dir}auth.jpg", "{$img_dir}auth2.jpg", "{$img_dir}auth3.jpg"{literal}];
|
|
||||||
|
|
||||||
var preload = new Array();
|
|
||||||
for(var i=0; i<img_list.length; i++) {
|
|
||||||
preload[i] = new Image();
|
|
||||||
preload[i].src = img_list[i];
|
|
||||||
}
|
|
||||||
|
|
||||||
$("#columns").css("background", "none");
|
|
||||||
|
|
||||||
for(var i=0; i<img_list.length; i++) {
|
|
||||||
$("<div id=\"bg_" + i + "\" class=\"background\" style=\"background : #333333 url('"+ img_list[i] +"') no-repeat left top; z-index: " + (-1 - i) + "; display: none;\" />").appendTo($("#columns"));
|
|
||||||
}
|
|
||||||
|
|
||||||
var current_bg = 0;
|
|
||||||
$("#columns > #bg_0").show();
|
|
||||||
|
|
||||||
function rotateBackground(index) {
|
|
||||||
if(index && index > img_list.length) {
|
|
||||||
index = false;
|
|
||||||
}
|
|
||||||
|
|
||||||
$("#columns > #bg_" + current_bg).fadeOut(600);
|
|
||||||
$("#columns > #bg_" + (index? index - 1: (current_bg == img_list.length - 1? 0: current_bg + 1))).fadeIn(600);
|
|
||||||
|
|
||||||
index? current_bg = (index - 1 < 0? img_list.length - 1: index - 1): (current_bg == img_list.length - 1? current_bg = 0: current_bg++);
|
|
||||||
}
|
|
||||||
|
|
||||||
var timer = setInterval(function() { rotateBackground(); }, 10000);
|
|
||||||
});
|
|
||||||
-->
|
|
||||||
{/literal}</script>
|
|
||||||
{/if}
|
|
||||||
|
|
||||||
{*<h1>{if !isset($email_create)}{l s='Log in'}{else}{l s='Create your account'}{/if}</h1>
|
{*<h1>{if !isset($email_create)}{l s='Log in'}{else}{l s='Create your account'}{/if}</h1>
|
||||||
{assign var='current_step' value='login'}
|
{assign var='current_step' value='login'}
|
||||||
|
Loading…
Reference in New Issue
Block a user