back to the template from sub template does not load contact

Rate this topic: Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.
GK User
Fri Aug 30, 2013 9:13 pm
Reply with quote
Report this post
see http://www.tumarbenelux.nl/

If you go to products by me en yours article, en go back with the menu to contacts or "over ons"
than it is not correct loaded, contact are not showed.

When you scroll down, they popup.

Best regards,

Perry
User avatar
Fresh Boarder

GK User
Tue Sep 03, 2013 4:07 pm
Reply with quote
Report this post
Hi,

I've tried to reproduce the problem but I cannot see any problem - could you provide more descriptive instruction how achieve the state with your problem?
User avatar
Administrator

GK User
Wed Sep 04, 2013 9:45 pm
Reply with quote
Report this post
Hi thanks for your investigation...

When you go to the site, you click on the button "onze producten". You see 4 products, take for example gist "second image in the center". You are directed to the description of the product. When you click in the menu "Over ons" (you go back to the first template, to the link http://www.tumarbenelux.nl/#gkBottom1). But nothing is showed, when you scroll a little bit they popup in the middle... It is also with the other menu items that are redirected to the intro/first template.

I hope you can reproduce the problem.


Best regards, Perry

Tested with IE9 and FF 23.01
User avatar
Fresh Boarder

GK User
Thu Sep 05, 2013 7:58 am
Reply with quote
Report this post
Now I understand - in this case I recommend to apply the following change:

please add at the end of js/gk.scripts.js file the following code:
Code: Select all
// animate on init
window.addEvent('load', function() {
   if(elementsToAnimate.length > 0) {      
      // get the necessary values and positions
      var currentPosition = window.getScroll().y;
      var windowHeight = window.getSize().y;
      // iterate throught the elements to animate
      if(elementsToAnimate.length) {
         for(var i = 0; i < elementsToAnimate.length; i++) {
            if(elementsToAnimate[i][2] < currentPosition + (windowHeight / 1.75)) {
               // create a handle to the element
               var element = elementsToAnimate[i][1];
               // check the animation type
               if(elementsToAnimate[i][0] == 'animation') {
                  gkAddClass(element, 'loaded', false);
                  // clean the array element
                  elementsToAnimate[i] = null;
               }
               // if there is a queue animation
               else if(elementsToAnimate[i][0] == 'queue_anim') {
                  element.getElements('.animate_queue_element').each(function(item, j) {
                     gkAddClass(item, 'loaded', j);
                  });
                  // clean the array element
                  elementsToAnimate[i] = null;
               }
            }
         }
         // clean the array
         elementsToAnimate = elementsToAnimate.clean();
      }
   }
});


it should helps :)
User avatar
Administrator

GK User
Thu Sep 05, 2013 12:55 pm
Reply with quote
Report this post
You are my god - hero! Thanks it fixed the problem!

Perry
User avatar
Fresh Boarder


cron