Animation not showing
Responsive Joomla events template to create conference, festival and other big-name event website.
Rate this topic: 1.00 out of 6 based on 1 vote(s)
- GK User
- Mon Dec 30, 2013 9:43 am
- Reply with quote
- Report this post
Hi. The animation on the guitar, map and ticket button is not working. I have tried replacing the code with the standard code that is found in the documentations of the template.
I have also installed the ''Image Show GK4'' on position ''header''. Its animation is showing great in firefox, but looks ugly in chrome and safari. Internet explorer I have not tested. Could you please help with these issues?
My site is: peaceconference.no
I have also installed the ''Image Show GK4'' on position ''header''. Its animation is showing great in firefox, but looks ugly in chrome and safari. Internet explorer I have not tested. Could you please help with these issues?
My site is: peaceconference.no
-
- Gold Boarder
- teitbite
- Tue Dec 31, 2013 3:55 am
- Reply with quote
- Report this post
hi
I can see that there is a javascript syntax error in file loaded from http://static.bufferapp.com/js/button.js , please try to disable it and see if it's the case here.
I can see that there is a javascript syntax error in file loaded from http://static.bufferapp.com/js/button.js , please try to disable it and see if it's the case here.
-
- Moderator
- GK User
- Tue Dec 31, 2013 1:48 pm
- Reply with quote
- Report this post
Could you let me know how to disable it? What to change in which file?
-
- Gold Boarder
- teitbite
- Wed Jan 01, 2014 12:52 pm
- Reply with quote
- Report this post
Hi
I'm sorry, but I do not know which extensions is loading it, this is not a standard file which comes with template. My guess would be it's the social buttons module.
I'm sorry, but I do not know which extensions is loading it, this is not a standard file which comes with template. My guess would be it's the social buttons module.
-
- Moderator
- GK User
- Wed Jan 01, 2014 3:25 pm
- Reply with quote
- Report this post
You said:
I asked:
Then you said:
I don't understand what you mean. Could you please calrify? It is a standard html module that comes with the template.
I can see that there is a javascript syntax error in file loaded from http://static.bufferapp.com/js/button.js , please try to disable it and see if it's the case here.
I asked:
Could you let me know how to disable it? What to change in which file?
Then you said:
I'm sorry, but I do not know which extensions is loading it, this is not a standard file which comes with template. My guess would be it's the social buttons module.
I don't understand what you mean. Could you please calrify? It is a standard html module that comes with the template.
-
- Gold Boarder
- teitbite
- Thu Jan 02, 2014 6:28 pm
- Reply with quote
- Report this post
Hi
I'm only guessing it's some extra module for social buttons since the default one which came with template is not loading http://static.bufferapp.com/js/button.js file.
But I'm starting to thing we are looking at 2 different site. If I'm not mistaken You've send me an access to a second page as well regarding Your other question. Am I right. Can You clear it for me as well and tell me what site is this question related with and send me an access to it?
I'm only guessing it's some extra module for social buttons since the default one which came with template is not loading http://static.bufferapp.com/js/button.js file.
But I'm starting to thing we are looking at 2 different site. If I'm not mistaken You've send me an access to a second page as well regarding Your other question. Am I right. Can You clear it for me as well and tell me what site is this question related with and send me an access to it?
-
- Moderator
- GK User
- Fri Jan 03, 2014 4:03 pm
- Reply with quote
- Report this post
Yes I think you are mixing between two sites. This one is the FEST template and the site is: My site is: peaceconference.no
You can use the same login details on both sites.
You can use the same login details on both sites.
-
- Gold Boarder
- teitbite
- Sun Jan 05, 2014 4:18 am
- Reply with quote
- Report this post
Hi
Yes. Sorry for that. But i can see even more errors here ;/ just look:
I think the extension responsible for it is this social buttons bar at left side, but I only think that because of similar names I do not know this extention at all. Please try to disable it to see if errors will dissapear.
Yes. Sorry for that. But i can see even more errors here ;/ just look:
- Code: Select all
"NetworkError: 404 Not Found - https://ajax.googleapis.com/ajax/libs/jqueryui/1.9/themes/base/jquery-ui.css"
jquery-ui.css
"NetworkError: 404 Not Found - https://ajax.googleapis.com/ajax/libs/jqueryui/1.9/jquery-ui.min.js"
jquery-ui.min.js
ReferenceError: jQuery is not defined
jQuery(function() {
tabs-state.js (wiersz 11)
"NetworkError: 404 Not Found - https://ajax.googleapis.com/ajax/libs/jqueryui/1.9/jquery-ui.min.js"
jquery-ui.min.js
Invalid App Id: Must be a number or numeric string representing the application id.
all.js (wiersz 56)
FB.getLoginStatus() called before calling FB.init().
all.js (wiersz 56)
4:15:45.975 CSI/tbsd_
4:15:45.977 CSI/_tbnd
postmessage data invalid json:
SyntaxError: JSON.parse: unexpected character
...in(",\n"+gap)+"\n"+o+"}":"{"+u.join(",")+"}";gap=o;return i}}if(typeof Date.prot...
button.js (wiersz 1)
postmessage data invalid json:
SyntaxError: JSON.parse: unexpected character
...in(",\n"+gap)+"\n"+o+"}":"{"+u.join(",")+"}";gap=o;return i}}if(typeof Date.prot...
button.js (wiersz 1)
GET https://apis.google.com/_/scs/apps-static/_/js/k...RSTMnsd_LEnL5hPwEnreDnt7ZDuiu3A/cb=gapi.loaded_0
200 OK
513ms
fastbu...1962826 (wiersz 37)
GET https://apis.google.com/_/scs/apps-static/_/js/k...RSTPV3j-xcVi6EGCV5JnaTiWgJ9y00A/cb=gapi.loaded_1
200 OK
696ms
fastbu...1962826 (wiersz 37)
Nieoczekiwana wartość xMidYmid meet podczas przetwarzania atrybutu preserveAspectRatio.
...\["\\\/b-u]/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE]...
rs=AIt...ZDuiu3A (wiersz 50)
Nieoczekiwana wartość xMidYmid meet podczas przetwarzania atrybutu preserveAspectRatio.
2
postmessage data invalid json:
SyntaxError: JSON.parse: unexpected character
...in(",\n"+gap)+"\n"+o+"}":"{"+u.join(",")+"}";gap=o;return i}}if(typeof Date.prot...
button.js (wiersz 1)
postmessage data invalid json:
SyntaxError: JSON.parse: unexpected character
...in(",\n"+gap)+"\n"+o+"}":"{"+u.join(",")+"}";gap=o;return i}}if(typeof Date.prot...
button.js (wiersz 1)
postmessage data invalid json:
SyntaxError: JSON.parse: unexpected character
...in(",\n"+gap)+"\n"+o+"}":"{"+u.join(",")+"}";gap=o;return i}}if(typeof Date.prot...
button.js (wiersz 1)
postmessage data invalid json:
SyntaxError: JSON.parse: unexpected character
...in(",\n"+gap)+"\n"+o+"}":"{"+u.join(",")+"}";gap=o;return i}}if(typeof Date.prot...
button.js (wiersz 1)
postmessage data invalid json:
SyntaxError: JSON.parse: unexpected character
...in(",\n"+gap)+"\n"+o+"}":"{"+u.join(",")+"}";gap=o;return i}}if(typeof Date.prot...
button.js (wiersz 1)
postmessage message type required
2
button.js (wiersz 1)
postmessage data invalid json:
SyntaxError: JSON.parse: unexpected character
...in(",\n"+gap)+"\n"+o+"}":"{"+u.join(",")+"}";gap=o;return i}}if(typeof Date.prot...
button.js (wiersz 1)
postmessage data invalid json:
SyntaxError: JSON.parse: unexpected character
...in(",\n"+gap)+"\n"+o+"}":"{"+u.join(",")+"}";gap=o;return i}}if(typeof Date.prot...
button.js (wiersz 1)
postmessage data invalid json:
SyntaxError: JSON.parse: unexpected character
...in(",\n"+gap)+"\n"+o+"}":"{"+u.join(",")+"}";gap=o;return i}}if(typeof Date.prot...
button.js (wiersz 1)
postmessage data invalid json:
SyntaxError: JSON.parse: unexpected character
...in(",\n"+gap)+"\n"+o+"}":"{"+u.join(",")+"}";gap=o;return i}}if(typeof Date.prot...
button.js (wiersz 1)
postmessage message type required
4
button.js (wiersz 1)
postmessage data invalid json:
SyntaxError: JSON.parse: unexpected character
...in(",\n"+gap)+"\n"+o+"}":"{"+u.join(",")+"}";gap=o;return i}}if(typeof Date.prot...
button.js (wiersz 1)
postmessage data invalid json:
SyntaxError: JSON.parse: unexpected character
...in(",\n"+gap)+"\n"+o+"}":"{"+u.join(",")+"}";gap=o;return i}}if(typeof Date.prot...
button.js (wiersz 1)
postmessage message type required
6
button.js (wiersz 1)
postmessage data invalid json:
SyntaxError: JSON.parse: unexpected character
...in(",\n"+gap)+"\n"+o+"}":"{"+u.join(",")+"}";gap=o;return i}}if(typeof Date.prot...
button.js (wiersz 1)
postmessage data invalid json:
SyntaxError: JSON.parse: unexpected character
...in(",\n"+gap)+"\n"+o+"}":"{"+u.join(",")+"}";gap=o;return i}}if(typeof Date.prot...
button.js (wiersz 1)
postmessage data invalid json:
SyntaxError: JSON.parse: unexpected character
...in(",\n"+gap)+"\n"+o+"}":"{"+u.join(",")+"}";gap=o;return i}}if(typeof Date.prot...
button.js (wiersz 1)
postmessage data invalid json:
SyntaxError: JSON.parse: unexpected character
...in(",\n"+gap)+"\n"+o+"}":"{"+u.join(",")+"}";gap=o;return i}}if(typeof Date.prot...
button.js (wiersz 1)
postmessage data invalid json:
SyntaxError: JSON.parse: unexpected character
...in(",\n"+gap)+"\n"+o+"}":"{"+u.join(",")+"}";gap=o;return i}}if(typeof Date.prot...
button.js (wiersz 1)
postmessage data invalid json:
SyntaxError: JSON.parse: unexpected character
...in(",\n"+gap)+"\n"+o+"}":"{"+u.join(",")+"}";gap=o;return i}}if(typeof Date.prot...
button.js (wiersz 1)
postmessage message type required
8
button.js (wiersz 1)
postmessage data invalid json:
SyntaxError: JSON.parse: unexpected character
...in(",\n"+gap)+"\n"+o+"}":"{"+u.join(",")+"}";gap=o;return i}}if(typeof Date.prot...
button.js (wiersz 1)
postmessage data invalid json:
SyntaxError: JSON.parse: unexpected character
...in(",\n"+gap)+"\n"+o+"}":"{"+u.join(",")+"}";gap=o;return i}}if(typeof Date.prot...
button.js (wiersz 1)
postmessage data invalid json:
SyntaxError: JSON.parse: unexpected character
...in(",\n"+gap)+"\n"+o+"}":"{"+u.join(",")+"}";gap=o;return i}}if(typeof Date.prot...
button.js (wiersz 1)
postmessage data invalid json:
SyntaxError: JSON.parse: unexpected character
...in(",\n"+gap)+"\n"+o+"}":"{"+u.join(",")+"}";gap=o;return i}}if(typeof Date.prot...
button.js (wiersz 1)
GET https://apis.google.com/_/scs/apps-static/_/js/k...RSTMnsd_LEnL5hPwEnreDnt7ZDuiu3A/cb=gapi.loaded_0
200 OK
847ms
fastbu...0662552 (wiersz 37)
GET https://apis.google.com/_/scs/apps-static/_/js/k...RSTPV3j-xcVi6EGCV5JnaTiWgJ9y00A/cb=gapi.loaded_1
200 OK
1.11s
fastbu...0662552 (wiersz 37)
postmessage data invalid json:
SyntaxError: JSON.parse: unexpected character
...in(",\n"+gap)+"\n"+o+"}":"{"+u.join(",")+"}";gap=o;return i}}if(typeof Date.prot...
button.js (wiersz 1)
postmessage data invalid json:
SyntaxError: JSON.parse: unexpected character
...in(",\n"+gap)+"\n"+o+"}":"{"+u.join(",")+"}";gap=o;return i}}if(typeof Date.prot...
button.js (wiersz 1)
postmessage data invalid json:
SyntaxError: JSON.parse: unexpected character
...in(",\n"+gap)+"\n"+o+"}":"{"+u.join(",")+"}";gap=o;return i}}if(typeof Date.prot...
button.js (wiersz 1)
postmessage data invalid json:
SyntaxError: JSON.parse: unexpected character
...in(",\n"+gap)+"\n"+o+"}":"{"+u.join(",")+"}";gap=o;return i}}if(typeof Date.prot...
button.js (wiersz 1)
postmessage message type required
2
button.js (wiersz 1)
Nieoczekiwana wartość xMidYmid meet podczas przetwarzania atrybutu preserveAspectRatio.
...\["\\\/b-u]/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE]...
rs=AIt...ZDuiu3A (wiersz 50)
Nieoczekiwana wartość xMidYmid meet podczas przetwarzania atrybutu preserveAspectRatio.
2
postmessage data invalid json:
SyntaxError: JSON.parse: unexpected character
...in(",\n"+gap)+"\n"+o+"}":"{"+u.join(",")+"}";gap=o;return i}}if(typeof Date.prot...
button.js (wiersz 1)
postmessage data invalid json:
SyntaxError: JSON.parse: unexpected character
...in(",\n"+gap)+"\n"+o+"}":"{"+u.join(",")+"}";gap=o;return i}}if(typeof Date.prot...
button.js (wiersz 1)
postmessage message type required
6
button.js (wiersz 1)
postmessage data invalid json:
SyntaxError: JSON.parse: unexpected character
...in(",\n"+gap)+"\n"+o+"}":"{"+u.join(",")+"}";gap=o;return i}}if(typeof Date.prot...
button.js (wiersz 1)
postmessage data invalid json:
SyntaxError: JSON.parse: unexpected character
...in(",\n"+gap)+"\n"+o+"}":"{"+u.join(",")+"}";gap=o;return i}}if(typeof Date.prot...
button.js (wiersz 1)
postmessage message type required
6
button.js (wiersz 1)
postmessage data invalid json:
SyntaxError: JSON.parse: unexpected character
...in(",\n"+gap)+"\n"+o+"}":"{"+u.join(",")+"}";gap=o;return i}}if(typeof Date.prot...
button.js (wiersz 1)
postmessage data invalid json:
SyntaxError: JSON.parse: unexpected character
...in(",\n"+gap)+"\n"+o+"}":"{"+u.join(",")+"}";gap=o;return i}}if(typeof Date.prot...
button.js (wiersz 1)
postmessage data invalid json:
SyntaxError: JSON.parse: unexpected character
...in(",\n"+gap)+"\n"+o+"}":"{"+u.join(",")+"}";gap=o;return i}}if(typeof Date.prot...
button.js (wiersz 1)
postmessage data invalid json:
SyntaxError: JSON.parse: unexpected character
...in(",\n"+gap)+"\n"+o+"}":"{"+u.join(",")+"}";gap=o;return i}}if(typeof Date.prot...
button.js (wiersz 1)
postmessage data invalid json:
SyntaxError: JSON.parse: unexpected character
...in(",\n"+gap)+"\n"+o+"}":"{"+u.join(",")+"}";gap=o;return i}}if(typeof Date.prot...
button.js (wiersz 1)
postmessage data invalid json:
SyntaxError: JSON.parse: unexpected character
...in(",\n"+gap)+"\n"+o+"}":"{"+u.join(",")+"}";gap=o;return i}}if(typeof Date.prot...
button.js (wiersz 1)
GET https://fbstatic-a.akamaihd.net/rsrc.php/v2/yW/r/hdFXjfevjgH.js
200 OK
290ms
like.p...idth=55 (wiersz 524)
postmessage message type required
2
button.js (wiersz 1)
postmessage data invalid json:
SyntaxError: JSON.parse: unexpected character
...in(",\n"+gap)+"\n"+o+"}":"{"+u.join(",")+"}";gap=o;return i}}if(typeof Date.prot...
button.js (wiersz 1)
postmessage data invalid json:
SyntaxError: JSON.parse: unexpected character
...in(",\n"+gap)+"\n"+o+"}":"{"+u.join(",")+"}";gap=o;return i}}if(typeof Date.prot...
button.js (wiersz 1)
postmessage message type required
54
button.js (wiersz 1)
I think the extension responsible for it is this social buttons bar at left side, but I only think that because of similar names I do not know this extention at all. Please try to disable it to see if errors will dissapear.
-
- Moderator
- GK User
- Sun Jan 05, 2014 10:53 am
- Reply with quote
- Report this post
Will these errors make the site slower or create other problems?
I tried disabling the sharebar on the left side, nothing changed.
I tried disabling the sharebar on the left side, nothing changed.
-
- Gold Boarder
- teitbite
- Wed Jan 08, 2014 2:46 am
- Reply with quote
- Report this post
Hi
I do not know what this errors can cause because I do not know what the code was made for.
Please send me an acces to joomla panel of this site, but please put site url in the message as well. I've oppened a wrong site again ;/
I do not know what this errors can cause because I do not know what the code was made for.
Please send me an acces to joomla panel of this site, but please put site url in the message as well. I've oppened a wrong site again ;/
-
- Moderator
- GK User
- Wed Jan 08, 2014 8:25 pm
- Reply with quote
- Report this post
Hi, I have sent you the details now. Thanks for helping.
-
- Gold Boarder
- teitbite
- Fri Jan 10, 2014 4:46 am
- Reply with quote
- Report this post
Hi
I've disabled "System - JoomShareBar Pro - Ultimate Social Sharing" plugin and as suspected it's causing all this javascript errors I've mentioned. Anyway it haven't fixed the problem. But now I can see that the issue is with script. Please try update /js folder in template with the newest version and if this will not help please send me an access to ftp I'll check why style is created as [object Object] instead of real value.
I've disabled "System - JoomShareBar Pro - Ultimate Social Sharing" plugin and as suspected it's causing all this javascript errors I've mentioned. Anyway it haven't fixed the problem. But now I can see that the issue is with script. Please try update /js folder in template with the newest version and if this will not help please send me an access to ftp I'll check why style is created as [object Object] instead of real value.
-
- Moderator
- GK User
- Sat Jan 11, 2014 8:42 pm
- Reply with quote
- Report this post
Hi. Thanks for helping. I updated the folder but nothing is different. I am sending you ftp access on PM.
-
- Gold Boarder
- teitbite
- Sun Jan 12, 2014 7:09 am
- Reply with quote
- Report this post
Hi
An access You've send me is not working. I see this message when trying to logg in to ftp:
An access You've send me is not working. I see this message when trying to logg in to ftp:
530 Login incorrect. Please contact your web hosting service provider for assistance.
-
- Moderator
- GK User
- Sun Jan 12, 2014 4:24 pm
- Reply with quote
- Report this post
Can you please try again. I just checked it and it is working for me.
-
- Gold Boarder
- teitbite
- Tue Jan 14, 2014 6:38 am
- Reply with quote
- Report this post
Hi
I've tried, but unfortunatelly could not fix the script. Anyway I've fixed all the mentioned earlier errors in process I'm sendint it to programmer. They should be able to help.
I've tried, but unfortunatelly could not fix the script. Anyway I've fixed all the mentioned earlier errors in process I'm sendint it to programmer. They should be able to help.
-
- Moderator
- teitbite
- Mon Jan 27, 2014 12:35 am
- Reply with quote
- Report this post
Hi
Programmers reply. I had to disable social buttons plugin so they can see the problem with animation. Please keep it like that for a while.
Programmers reply. I had to disable social buttons plugin so they can see the problem with animation. Please keep it like that for a while.
-
- Moderator
- teitbite
- Sun Feb 02, 2014 1:20 pm
- Reply with quote
- Report this post
Hi
Yes. Please check the site. I have implemented a fix suggested by programmers just now.
Yes. Please check the site. I have implemented a fix suggested by programmers just now.
-
- Moderator
- GK User
- Sun Feb 02, 2014 7:07 pm
- Reply with quote
- Report this post
The animation is the same.
-
- Gold Boarder
- teitbite
- Mon Feb 03, 2014 11:38 am
- Reply with quote
- Report this post
Hi
Ok. Sending this again to programmers.At least the [object Object] problem is fixed as I can see now.
Ok. Sending this again to programmers.At least the [object Object] problem is fixed as I can see now.
-
- Moderator
- teitbite
- Wed Feb 19, 2014 10:29 am
- Reply with quote
- Report this post
Hi
I'm very sorry, but we need more time. I've exchanged couple of idea about solution with programmers, but still no result for the animation of a ticket box. I will give one more chance for the fix and if it will not work I'll overwrite it with a new animation script.
I'm very sorry, but we need more time. I've exchanged couple of idea about solution with programmers, but still no result for the animation of a ticket box. I will give one more chance for the fix and if it will not work I'll overwrite it with a new animation script.
-
- Moderator
- GK User
- Fri Feb 21, 2014 10:19 am
- Reply with quote
- Report this post
Ok, thanks. But you make any other changes in the template? Suddenly right now I noticed that my template background and logo has been changed to the standard ones with the template.
-
- Gold Boarder
- teitbite
- Mon Feb 24, 2014 6:14 pm
- Reply with quote
- Report this post
Hi
Och, sorry. I have updated template to the latest version since I've noticed there was a newer one and was hoping to fix the issue with that. Please just rename the _gk_fest to gk_fest to restore the old version in /templates folder.
Och, sorry. I have updated template to the latest version since I've noticed there was a newer one and was hoping to fix the issue with that. Please just rename the _gk_fest to gk_fest to restore the old version in /templates folder.
-
- Moderator
- teitbite
- Tue Feb 25, 2014 11:06 am
- Reply with quote
- Report this post
Hi
I got a new js file to replace but looks like it's even worse now There is no animation for none of the elements. Anyway I need to leave it to show to programmers. I think we are getting close and the problem is an unneccessary { } in style="" attribute. This should be finished today.
I got a new js file to replace but looks like it's even worse now There is no animation for none of the elements. Anyway I need to leave it to show to programmers. I think we are getting close and the problem is an unneccessary { } in style="" attribute. This should be finished today.
-
- Moderator
- teitbite
- Tue Feb 25, 2014 8:02 pm
- Reply with quote
- Report this post
Hi
I cannot access Your ftp server anymore, but I think it's a right solution. Please try replace the file /js/gk.script.js with this content:
I cannot access Your ftp server anymore, but I think it's a right solution. Please try replace the file /js/gk.script.js with this content:
- Code: Select all
/**
* jQuery Cookie plugin
*
* Copyright (c) 2010 Klaus Hartl (stilbuero.de)
* Dual licensed under the MIT and GPL licenses:
* http://www.opensource.org/licenses/mit-license.php
* http://www.gnu.org/licenses/gpl.html
*
*/
jQuery.noConflict();
jQuery.cookie = function (key, value, options) {
// key and at least value given, set cookie...
if (arguments.length > 1 && String(value) !== "[object Object]") {
options = jQuery.extend({}, options);
if (value === null || value === undefined) {
options.expires = -1;
}
if (typeof options.expires === 'number') {
var days = options.expires, t = options.expires = new Date();
t.setDate(t.getDate() + days);
}
value = String(value);
return (document.cookie = [
encodeURIComponent(key), '=',
options.raw ? value : encodeURIComponent(value),
options.expires ? '; expires=' + options.expires.toUTCString() : '', // use expires attribute, max-age is not supported by IE
options.path ? '; path=' + options.path : '',
options.domain ? '; domain=' + options.domain : '',
options.secure ? '; secure' : ''
].join(''));
}
// key and possibly options given, get cookie...
options = value || {};
var result, decode = options.raw ? function (s) { return s; } : decodeURIComponent;
return (result = new RegExp('(?:^|; )' + encodeURIComponent(key) + '=([^;]*)').exec(document.cookie)) ? decode(result[1]) : null;
};
/**
*
* Template scripts
*
**/
// onDOMLoadedContent event
jQuery(document).ready(function() {
// smooth anchor scrolling
if(jQuery('#gkStyleArea')){
jQuery('#gkStyleArea').find('a').each(function(i, element){
jQuery(element).click(function(e){
e.preventDefault();
e.stopPropagation();
changeStyle(i+1);
});
});
jQuery('#gkBackgrounds').find('a').each(function(i, element){
element.addEvent('click',function(e){
e.preventDefault();
e.stopPropagation();
changeBg(i+1);
});
});
}
// font-size switcher
if(jQuery('#gkTools') && jQuery('#gkMainbody')) {
var current_fs = 100;
jQuery('#gkMainbody').css('font-size', current_fs+"%");
jQuery('#gkToolsInc').click(function(e){
e.stopPropagation();
e.preventDefault();
if(current_fs 70) {
jQuery('#gkMainbody').animate({ 'font-size': (current_fs - 10) + "%"}, 200);
current_fs -= 10;
}
});
}
// K2 font-size switcher fix
if(jQuery('#fontIncrease') && jQuery('.itemIntroText')) {
jQuery('#fontIncrease').click(function() {
jQuery('.itemIntroText').attr('class', 'itemIntroText largerFontSize');
});
jQuery('#fontDecrease').click( function() {
jQuery('.itemIntroText').attr('class', 'itemIntroText smallerFontSize');
});
}
// Tablet menu button
if(jQuery('#gkTabletMenu') && jQuery('#gkInset')) {
jQuery('#gkTabletMenu').click( function() {
jQuery('#gkInset').toggleClass('visible');
});
}
// login popup
if(jQuery('#gkPopupLogin')) {
var popup_overlay = jQuery('#gkPopupOverlay');
popup_overlay.css({'display': 'block'});
popup_overlay.fadeOut();
jQuery('#gkPopupLogin').css({'display': 'block', 'opacity': 0, 'height' : 0});
var opened_popup = null;
var popup_login = null;
var popup_login_h = null;
var popup_login_fx = null;
if(jQuery('#gkPopupLogin') && jQuery('#btnLogin')) {
popup_login = jQuery('#gkPopupLogin');
popup_login.css('display', 'block');
popup_login_h = popup_login.find('.gkPopupWrap').outerHeight();
jQuery('#btnLogin').click( function(e) {
e.preventDefault();
e.stopPropagation();
popup_overlay.fadeIn('slow');
popup_login.css({'opacity':1, 'height': popup_login_h});
opened_popup = 'login';
(function() {
if(jQuery('#modlgn-username')) {
jQuery('#modlgn-username').focus();
}
}).delay(600);
});
}
popup_overlay.click( function() {
if(opened_popup == 'login') {
popup_overlay.fadeOut('slow');
popup_login.css({
'opacity' : 0,
'height' : 0
});
}
});
}
// Function to change styles
function changeStyle(style){
var file1 = $GK_TMPL_URL+'/css/style'+style+'.css';
var file2 = $GK_TMPL_URL+'/css/typography/typography.style'+style+'.css';
var file3 = $GK_TMPL_URL+'/css/typography/typography.iconset.style'+style+'.css';
jQuery('head').append('');
jQuery('head').append('');
jQuery('head').append('');
jQuery.cookie('gk_fest_j30_style', style, { expires: 365, path: '/' });
}
});
// Template animations
Array.prototype.shuffle = function() {
var len = this.length;
var i = len;
while (i--) {
var p = parseInt(Math.random()*len);
var t = this[i];
this[i] = this[p];
this[p] = t;
}
};
jQuery(document).ready(function() {
var animations = [];
jQuery('.gk-animation').each(function(i, el) {
animations.push(new GKAnimation(el));
});
if(jQuery('.gk-sponsors').length > 0) {
var sponsorsLoaded = false;
jQuery(window).bind('scroll', function(e) {
if(!sponsorsLoaded) {
var currentPosition = window.getScroll().y;
var sponsorsWrap = jQuery('.gk-sponsors');
if(currentPosition + jQuery(window).height() - 200 >= sponsorsWrap.offset().top) {
var elements = [];
for(var i = 0; i 00' + dtext + '
00' + htext + '
00' + mtext + '
00' + stext + '
');
};
// function used to tick the counter ;-)
GKCounter.prototype.tick = function() {
// create the new date object
var d = new Date();
// calculate the current date timestamp
var current = Date.UTC(d.getFullYear(), d.getMonth(), d.getDate(), d.getHours(), d.getMinutes(), d.getSeconds());
//
// calculate the difference between the dates
//
var diff = this.final - current;
// if the difference is smaller than 1 second - then the counting was ended
if(diff ' + this.finalText + '');
};
var GKAnimateSponsorLogo = function(logo, i) {
setTimeout(function() {
logo = jQuery(logo);
logo.addClass('active');
}, i * 65);
};
var GKAnimateSponsor = function(sponsorsArray, elements, j) {
(function() {
var sponsor = sponsorsArray[elements[j]];
sponsor.addClass('active');
}).delay(j * 50);
};
function GKAnimation(element) {
this.elements = null;
this.elementsProperties = [];
this.wrapper = null;
this.wrapperArea = null;
this.wrapperHeight = null;
this.wrapperWrap = null;
this.initialize(element);
};
GKAnimation.prototype.initialize = function(element) {
// set the main parallax wrapper
this.wrapper = jQuery(element);
// set the wrapper height
this.wrapperHeight = this.wrapper.attr('data-height').toInt();
// set the wrapper wrap
this.wrapperWrap = this.wrapper.find('div').first();
// show the area
this.show();
};
// Show the parallax area
GKAnimation.prototype.show = function() {
var $this = this;
this.wrapper.addClass('loaded');
this.wrapperWrap.css('overflow', 'visible');
// set the elements
this.initElements();
this.wrapperWrap.animate(
{'height': this.wrapperHeight}, 300, function() {
$this.wrapper.addClass('displayed');
});
};
// Initialize the objects inside parallax area
GKAnimation.prototype.initElements = function() {
var elements = this.wrapperWrap.children();
var animationStack = [];
//
elements.each(function(i, element) {
//
element = jQuery(element)
var delay = element.attr('data-delay') || 500;
var start = JSON.decode(element.attr('data-start'));
var end = JSON.decode(element.attr('data-end'));
var time = element.attr('data-time') || 500;
//
element.attr('style',JSON.stringify(start).replace(/\"/gm, "").replace(/\{/gm,"").replace(/\}/gm,"").replace(/\,/gm,";"));
//
animationStack.push([element, end, time, delay]);
});
//
var $this = this;
//
animationStack.each(function(animation, i){
$this.gkanimate(animation);
});
};
// Animation function connected with the onScroll Window event
GKAnimation.prototype.gkanimate = function(animation) {
(function() {
if(animation[1] != null) {
jQuery.each(animation[1], function(key, element) {
var options = {};
options[key] = element;
jQuery(animation[0]).animate(options, animation[2], function() {
// Animation complete.
});
});
}
if(animation[0].hasClass('gk-scale-up')) {
animation[0].removeClass('gk-scale-up');
}
}).delay(animation[3]);
}
-
- Moderator
- teitbite
- Wed Feb 26, 2014 9:45 am
- Reply with quote
- Report this post
Hi
No need to update the code. Programmers were able to login ftp and replace the file. Now animation is working fine. Sorry it took so long.
No need to update the code. Programmers were able to login ftp and replace the file. Now animation is working fine. Sorry it took so long.
-
- Moderator
- GK User
- Fri Feb 28, 2014 11:32 am
- Reply with quote
- Report this post
Ok thanks, that's great! But when you made the changes and set it back to the standard logo, I had to change the logo back to my logo. But this time the logo had become smaller. Why is that?
-
- Gold Boarder
- teitbite
- Sat Mar 01, 2014 9:43 pm
- Reply with quote
- Report this post
Hi
I think it's becuase You have made some changes to template code and it got overwritten when I updated template. Please add this code to override.css. Remember that override needs to be enabled in template settings.
I think it's becuase You have made some changes to template code and it got overwritten when I updated template. Please add this code to override.css. Remember that override needs to be enabled in template settings.
- Code: Select all
#gkLogo {
width: auto;
}
-
- Moderator
- teitbite
- Fri Mar 07, 2014 4:27 pm
- Reply with quote
- Report this post
Hi
Sorry it took so long. Unfortunatelly I'm bad with javascript and programmers were busy with new template ;/
Sorry it took so long. Unfortunatelly I'm bad with javascript and programmers were busy with new template ;/
-
- Moderator
31 posts
• Page 1 of 1