rilpoint_mw113

Template:Tech Events

(Difference between revisions)
 
(3 intermediate revisions not shown)
Line 1: Line 1:
-
<span id="justToExtractPageType" style="display:none">{{{VATIS_NAME|}}}</span><table id="issueName" cellpadding=0 cellspacing=0 style="width:100%; border"><tr><td><span  style="font-size:1.4em; color:#316AC5; font-weight:bold">{{{ISSUE|}}}</span></td><td align="right">[[{{{VATIS_NAME|}}}_Tech_Events_Archive_{{#sub: {{{ISSUE}}}|8|0}}|Archive {{#sub: {{{ISSUE}}}|8|0}}]]</td></tr></table>
+
<span id="justToExtractPageType" style="display:none">{{{VATIS_NAME|}}}</span><table id="issueName" cellpadding=0 cellspacing=0 style="width:100%; border"><tr><td><h4>{{{ISSUE|}}}</h4></td><td align="right">[[{{{VATIS_NAME|}}}_._Tech_Events_._Archive_{{#sub: {{{ISSUE}}}|8|0}}|Archive {{#sub: {{{ISSUE}}}|8|0}}]]</td></tr></table>
{{#if:{{{TITLE_1|}}}|==={{{TITLE_1}}}===|}}
{{#if:{{{TITLE_1|}}}|==={{{TITLE_1}}}===|}}
{{#if:{{{DATE_1|}}}|<div id="event_date" class="event_date">{{{DATE_1|}}}</div>|}}{{#if:{{{ADDRESS_1|}}}|<div id="event_address" class="event_address">{{{ADDRESS_1|}}}</div>|}}{{#if:{{{PHONE_1|}}}|<div id="event_phone" class="event_phone">'''Phone:''' {{{PHONE_1|}}}</div>|}}{{#if:{{{FAX_1|}}}|<div id="event_fax" class="event_fax">'''Fax:''' {{{FAX_1|}}}</div>|}}{{#if:{{{WEBSITE_1|}}}|<div id="event_website" class="event_website"><font style="color:#000000">'''Website:'''</font> [{{{WEBSITE_1|}}} {{{WEBSITE_1|}}}]</div>|}}{{#if:{{{EMAIL_1|}}}|<div id="event_email" class="event_email"><font style="color:#000000">'''Email:'''</font> [mailto:{{{EMAIL_1|}}} {{{EMAIL_1|}}}]</div>|}}
{{#if:{{{DATE_1|}}}|<div id="event_date" class="event_date">{{{DATE_1|}}}</div>|}}{{#if:{{{ADDRESS_1|}}}|<div id="event_address" class="event_address">{{{ADDRESS_1|}}}</div>|}}{{#if:{{{PHONE_1|}}}|<div id="event_phone" class="event_phone">'''Phone:''' {{{PHONE_1|}}}</div>|}}{{#if:{{{FAX_1|}}}|<div id="event_fax" class="event_fax">'''Fax:''' {{{FAX_1|}}}</div>|}}{{#if:{{{WEBSITE_1|}}}|<div id="event_website" class="event_website"><font style="color:#000000">'''Website:'''</font> [{{{WEBSITE_1|}}} {{{WEBSITE_1|}}}]</div>|}}{{#if:{{{EMAIL_1|}}}|<div id="event_email" class="event_email"><font style="color:#000000">'''Email:'''</font> [mailto:{{{EMAIL_1|}}} {{{EMAIL_1|}}}]</div>|}}
Line 44: Line 44:
function customizePage(){
function customizePage(){
-
alert("0")
 
var headingsArray = document.getElementsByTagName('h3');
var headingsArray = document.getElementsByTagName('h3');
-
alert("1")
+
var issuesArray = document.getElementsByTagName('h4');
var typeOfPage=document.getElementById('justToExtractPageType');
var typeOfPage=document.getElementById('justToExtractPageType');
-
alert("2")
 
var pType="Tech Monitor";
var pType="Tech Monitor";
-
alert("3")
 
var pType=typeOfPage.childNodes[0].nodeValue
var pType=typeOfPage.childNodes[0].nodeValue
-
 
-
alert(pType)
 
var eventHeadingColor="#444444";
var eventHeadingColor="#444444";
Line 60: Line 55:
if(pType=="Biotechnology"){
if(pType=="Biotechnology"){
eventHeadingColor='#017A37';
eventHeadingColor='#017A37';
-
//eventHeadingBackgroundColor='#DFFFED';}
+
//eventHeadingBackgroundColor='#DFFFED';
 +
}
if(pType=="Food Processing"){
if(pType=="Food Processing"){
eventHeadingColor='#AF9736';
eventHeadingColor='#AF9736';
-
//eventHeadingBackgroundColor='#FFF9DF';}
+
//eventHeadingBackgroundColor='#FFF9DF';
 +
}
if(pType=="Non-conventional Energy"){
if(pType=="Non-conventional Energy"){
eventHeadingColor='#B02C51';
eventHeadingColor='#B02C51';
-
//eventHeadingBackgroundColor='#FFEFF1';}
+
//eventHeadingBackgroundColor='#FFEFF1';
 +
}
if(pType=="Ozone Layer Protection"){
if(pType=="Ozone Layer Protection"){
eventHeadingColor='#2388BF';
eventHeadingColor='#2388BF';
-
//eventHeadingBackgroundColor='#BFE7FF';}
+
//eventHeadingBackgroundColor='#BFE7FF';
 +
}
if(pType=="Waste Management"){
if(pType=="Waste Management"){
eventHeadingColor='#9F4627';
eventHeadingColor='#9F4627';
-
//eventHeadingBackgroundColor='#EFDBD1';}
+
//eventHeadingBackgroundColor='#EFDBD1';
 +
}
//issueName.style.color=eventHeadingColor;
//issueName.style.color=eventHeadingColor;
//issueName.style.backgroundColor="transparent";
//issueName.style.backgroundColor="transparent";
 +
 +
for (var b = 0; b < issuesArray.length; b++) {
 +
issuesArray[b].style.color=eventHeadingColor;
 +
issuesArray[b].style.marginBottom="0px";
 +
}
for (var a = 0; a < headingsArray.length; a++) {
for (var a = 0; a < headingsArray.length; a++) {

Current revision as of 07:11, 30 September 2010

[[_._Tech_Events_._Archive_}}}|Archive }}}]]
[[Category:]]

[[Category:]]