XFileSharing Pro - make invisible the download button while in the countdown
-
- Posts: 11
- Joined: May 03, 2012 2:28 pm
make invisible the download button while in the countdown
Sorry for the stupid question but I wanted to ask for your help to hide the download button during the countdown. thanks for the help
I see 2.0 does things a little different from 1.8 (which I'm on) so I didn't modify the jQuery already present in 2.0 and just created a entirely new countdown for the download button.
Put in download1.html roughly around line 132 after </Form>
Put in download1.html roughly around line 132 after </Form>
Code: Select all
<script>
$('#btn_download').hide();
var count=10;
countdown=setInterval (function()
{
if(count==0)
{
$('#btn_download').show()
}
count --
}
,1000);
</script>
-
- Posts: 11
- Joined: May 03, 2012 2:28 pm
cannot get it working please help me
my code
please post correct code
my code
Code: Select all
<TMPL_IF countdown>
<br><span id="countdown_str"><TMPL_VAR lang_wait> <span id="<TMPL_VAR rnd1>"><TMPL_VAR countdown></span> <TMPL_VAR lang_seconds></span>
</TMPL_IF>
<br>
<TMPL_IF direct_links>
<input type="hidden" name="down_direct" value="1">
<div class="rrd2">
<input type="submit" id="btn_download" value="<TMPL_VAR lang_create_link>">
</div>
<TMPL_ELSE>
<input type="hidden" name="down_script" value="1">
<div class="rrd2">
<input type="submit" id="btn_download" value="<TMPL_VAR lang_download_file>">
</div>
</TMPL_IF>
</TMPL_UNLESS>
</Form>
Code: Select all
<TMPL_IF countdown>
<br><span id="countdown_str"><TMPL_VAR lang_wait> <span id="<TMPL_VAR rnd1>"><TMPL_VAR countdown></span> <TMPL_VAR lang_seconds></span>
</TMPL_IF>
<br>
<TMPL_IF direct_links>
<input type="hidden" name="down_direct" value="1">
<div class="rrd2">
<input type="submit" id="btn_download" value="<TMPL_VAR lang_create_link>">
</div>
<TMPL_ELSE>
<input type="hidden" name="down_script" value="1">
<div class="rrd2">
<input type="submit" id="btn_download" value="<TMPL_VAR lang_download_file>">
</div>
</TMPL_IF>
</TMPL_UNLESS>
</Form>
<script>
$('#btn_download').hide();
var count=10;
countdown=setInterval (function()
{
if(count==0)
{
$('#btn_download').show()
}
count --
}
,1000);
</script>