rilpoint_mw113

Template:Tech Events

(Difference between revisions)
Line 1: Line 1:
-
<span id="justToExtractPageType" style="display:none">{{{VATIS_NAME|}}}</span><table cellpadding=0 cellspacing=0 style="width:100%; border"><tr><td><span  style="font-size:1.4em;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><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>
{{#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 46: Line 46:
var headingsArray = document.getElementsByTagName('h3');
var headingsArray = document.getElementsByTagName('h3');
var typeOfPage=document.getElementById('justToExtractPageType');
var typeOfPage=document.getElementById('justToExtractPageType');
-
var issueName=document.getElementById('issueName');
+
//var issueName=document.getElementById('issueName');
var pType="Tech Monitor";
var pType="Tech Monitor";
var pType=typeOfPage.childNodes[0].nodeValue
var pType=typeOfPage.childNodes[0].nodeValue
-
var eventHeadingColor="#316AC5";
+
var eventHeadingColor="#444444";
-
var eventHeadingBackgroundColor="#E1E9F6";
+
//var eventHeadingBackgroundColor="#E1E9F6";
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 a = 0; a < headingsArray.length; a++) {
for (var a = 0; a < headingsArray.length; a++) {

Revision as of 06:44, 30 September 2010

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

[[Category:]]