1 window.addEvent(
'domready',
function() {
3 var bioText = $(
'bio-text');
4 var bioToggleLabel = $(
'bio-toggle-text');
5 var discoText = $(
'discography-text');
6 var discoToggleLabel = $(
'discography-toggle-text');
8 document.getElementById(
"header-bio").innerHTML =
9 strings.GetStringFromName(
"extensions.mashTape.info.bio");
10 document.getElementById(
"header-discography").innerHTML =
11 strings.GetStringFromName(
"extensions.mashTape.info.discography");
12 document.getElementById(
"header-members").innerHTML =
13 strings.GetStringFromName(
"extensions.mashTape.info.members");
14 document.getElementById(
"header-tags").innerHTML =
15 strings.GetStringFromName(
"extensions.mashTape.info.tags");
16 document.getElementById(
"header-links").innerHTML =
17 strings.GetStringFromName(
"extensions.mashTape.info.links");
19 bioToggleLabel.innerHTML =
20 strings.GetStringFromName(
"extensions.mashTape.msg.readmore");
21 discoToggleLabel.innerHTML =
22 strings.GetStringFromName(
"extensions.mashTape.msg.viewmore");
24 $(
'bio-toggle-text').
addEvent(
'click',
function(e) {
26 if (bioText.getAttribute(
"mashTape-collapsed") ==
"true") {
27 var fullHeight = bioText.getAttribute(
"mashTape-full-height");
28 bioText.tween(
"height", fullHeight);
29 bioToggleLabel.innerHTML =
30 strings.GetStringFromName(
"extensions.mashTape.msg.readless");
31 bioText.setAttribute(
"mashTape-collapsed",
false);
34 bioText.tween(
"height",
"93px");
35 bioToggleLabel.innerHTML =
36 strings.GetStringFromName(
"extensions.mashTape.msg.readmore");
37 bioText.setAttribute(
"mashTape-collapsed",
true);
40 $(
'discography-toggle-text').
addEvent(
'click',
function(e) {
42 if (discoText.getAttribute(
"mashTape-collapsed") ==
"true") {
43 var fullHeight = discoText.getAttribute(
"mashTape-full-height");
44 discoText.tween(
"height", fullHeight);
45 discoToggleLabel.innerHTML =
46 strings.GetStringFromName(
"extensions.mashTape.msg.viewless");
47 discoText.setAttribute(
"mashTape-collapsed",
false);
49 discoText.tween(
"height",
"70px");
50 discoToggleLabel.innerHTML =
51 strings.GetStringFromName(
"extensions.mashTape.msg.viewmore");
52 discoText.setAttribute(
"mashTape-collapsed",
true);
window addEvent('domready', function(){var strings=window.parent.mashTape.strings;var bioText=$('bio-text');var bioToggleLabel=$('bio-toggle-text');var discoText=$('discography-text');var discoToggleLabel=$('discography-toggle-text');document.getElementById("header-bio").innerHTML=strings.GetStringFromName("extensions.mashTape.info.bio");document.getElementById("header-discography").innerHTML=strings.GetStringFromName("extensions.mashTape.info.discography");document.getElementById("header-members").innerHTML=strings.GetStringFromName("extensions.mashTape.info.members");document.getElementById("header-tags").innerHTML=strings.GetStringFromName("extensions.mashTape.info.tags");document.getElementById("header-links").innerHTML=strings.GetStringFromName("extensions.mashTape.info.links");bioToggleLabel.innerHTML=strings.GetStringFromName("extensions.mashTape.msg.readmore");discoToggleLabel.innerHTML=strings.GetStringFromName("extensions.mashTape.msg.viewmore");$('bio-toggle-text').addEvent('click', function(e){e.stop();if(bioText.getAttribute("mashTape-collapsed")=="true"){var fullHeight=bioText.getAttribute("mashTape-full-height");bioText.tween("height", fullHeight);bioToggleLabel.innerHTML=strings.GetStringFromName("extensions.mashTape.msg.readless");bioText.setAttribute("mashTape-collapsed", false);}else{window.scrollTo(0, 0);bioText.tween("height","93px");bioToggleLabel.innerHTML=strings.GetStringFromName("extensions.mashTape.msg.readmore");bioText.setAttribute("mashTape-collapsed", true);}});$('discography-toggle-text').addEvent('click', function(e){e.stop();if(discoText.getAttribute("mashTape-collapsed")=="true"){var fullHeight=discoText.getAttribute("mashTape-full-height");discoText.tween("height", fullHeight);discoToggleLabel.innerHTML=strings.GetStringFromName("extensions.mashTape.msg.viewless");discoText.setAttribute("mashTape-collapsed", false);}else{discoText.tween("height","70px");discoToggleLabel.innerHTML=strings.GetStringFromName("extensions.mashTape.msg.viewmore");discoText.setAttribute("mashTape-collapsed", true);}});})