javascript - how can I get this a tag to go to the link exluding the following code -


i have awesome animation runs on page startup/entry when use page , stuff in website want have tag goes index.html page without cool animation... upset people using website. here tag:

<a href="index.html"><div id="logo-title"></div></a> 

and here code want link remove when clicked:

$(document).ready(function() {      settimeout(function() {        $("#loader-wrapper .loader-section, #textbit, #logo, #wrapper").hide("slow");         $("#wrapper").unwrap();     }, 10000);   }); 

how rid of code when link clicked same page?

found solution, check out here: http://transitiontest.comeze.com/test4/index.html

to achieve need use document.referrer check page user came from. if page same 1 viewing, animation not play.

in case like:

js

$(document).ready(function() {      var referrer =  document.referrer;      if (referrer == "............/index.html") {         // stuff          }     else {         settimeout(function() {             $("#loader-wrapper .loader-section, #textbit, #logo, #wrapper").hide("slow");              $("#wrapper").unwrap();         }, 10000);  }); 

Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -