rilpoint_mw113

Template:Tech Events

(Difference between revisions)
Line 1: Line 1:
-
<span id="justToExtractPageType" style="visibility:hidden">{{{VATIS_NAME|}}}</span><table 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 cellpadding=0 cellspacing=0 style="width:100%; border"><tr><td><span id="issueName" 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>
{{#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 45: Line 45:
function customizePage(){
function customizePage(){
var headingsArray = document.getElementsByTagName('h3');
var headingsArray = document.getElementsByTagName('h3');
-
//alert("0");
 
var typeOfPage=document.getElementById('justToExtractPageType');
var typeOfPage=document.getElementById('justToExtractPageType');
-
//alert("1");
+
var issueName=document.getElementById('issueName');
var pType="Tech Monitor";
var pType="Tech Monitor";
-
//alert("2");
 
var pType=typeOfPage.childNodes[0].nodeValue
var pType=typeOfPage.childNodes[0].nodeValue
-
//alert("3");
 
-
var eventHeadingColor="#000000";
+
var eventHeadingColor="#316AC5";
-
//alert("4");
+
var eventHeadingBackgroundColor="#E1E9F6";
 +
 
if(pType=="Biotechnology"){
if(pType=="Biotechnology"){
-
//alert("5");
+
eventHeadingColor='#017A37';
-
eventHeadingColor='#017A37';}
+
eventHeadingBackgroundColor='#DFFFED';}
if(pType=="Food Processing"){
if(pType=="Food Processing"){
-
eventHeadingColor='#AF9736';}
+
eventHeadingColor='#AF9736';
 +
eventHeadingBackgroundColor='#FFF9DF';}
if(pType=="Non-conventional Energy"){
if(pType=="Non-conventional Energy"){
-
eventHeadingColor='#B02C51';}
+
eventHeadingColor='#B02C51';
 +
eventHeadingBackgroundColor='#FFEFF1';}
if(pType=="Ozone Layer Protection"){
if(pType=="Ozone Layer Protection"){
-
eventHeadingColor='#2388BF';}
+
eventHeadingColor='#2388BF';
 +
eventHeadingBackgroundColor='#BFE7FF';}
if(pType=="Waste Management"){
if(pType=="Waste Management"){
-
eventHeadingColor='#9F4627';}
+
eventHeadingColor='#9F4627';
 +
eventHeadingBackgroundColor='#EFDBD1';}
-
//alert(eventHeadingColor);
+
issueName.style.color=eventHeadingColor;
 +
issueName.style.backgroundColor=eventHeadingColor;
for (var a = 0; a < headingsArray.length; a++) {
for (var a = 0; a < headingsArray.length; a++) {

Revision as of 05:59, 30 September 2010

[[_Tech_Events_Archive_}}}|Archive }}}]]
[[Category:]]

[[Category:]]