Online documentation working again!

FreeToastHost documentation is back online.

custom javascript int the agenda header

More
9 years 8 months ago #54158 by chill2942
I was making change to the custom header for a meeting agenda and it appears I have deleted

all of the agendas?!?!? Really weird, I have no idea what happened; it appears I have royally

screwed something up. Neither a regular user nor admin can view or create any new agendas.

My change was some custom javascript int the custom header to format printing directly from the template.

This club heavily uses and relies upon this site and its agenda tools. We need fixed ASAP.
I think it would be enough if somebody would reset the default agenda header back to its default value, and that would fix it.
Or actually , clear the agenda header specifically for meeting scheduled for 9th December 2015 .
How could I get this to happen ?

Craig
The topic has been locked.
More
9 years 8 months ago #54162 by Jane Atkinson
We'll need to know the club number before anything can be done.

Secretary, EY Toastmasters club 1137486, District 112
Auckland, NZ
The topic has been locked.
More
9 years 8 months ago #54163 by SteveTheTechie
support.toastmastersclubs.org/doc/item/terms-of-use-agreement

"Use of user scripts. We reserve the right to delete any content containing user supplied scripts that interferes with the proper functioning of the FreeToastHost system or that alters it, without our consent. If you elect to use your own or third-party scripts, you do so at your own risk, and we are under no obligation to support them."
The topic has been locked.
More
9 years 8 months ago - 9 years 8 months ago #54166 by SteveTheTechie
Craig,

Your script:
Code:
<SCRIPT> var hdrClubName = "Alpharetta Toastmasters"; var hdrDistrictLocation = "District 44 - Area G75 - Club 4941"; var hdrMeetTime = "7:15pm - 8:30pm"; var president = ""; var presidentNyms = ""; var vped = ""; var vpedNyms = ""; var vpmem = ""; var vpmemNyms = ""; var vppr = ""; var vpprNyms = ""; var secretary = ""; var secretaryNyms = ""; var treasurer = ""; var treasurerNyms = ""; var saa = ""; var saaNyms = ""; var meetingLengthMinutes = 75; var itemStartTimeHrs_INIT = 7; var itemStartTimeMins_INIT = 15; var itemStartTimeHrs = 7; var itemStartTimeMins = 15; var SPEECHES_NDX = 9; var time4TT = 9; var time4Eval = 4; var time4GenEval = 6; var extraTTtime = 5; var time4Wrapup = 4; var unassigned = "<span style='font: normal 11pt Courier New;'>_______________</span>"; var roles=[]; var table= null; function padMinutes( t ) { if ( t < 10 ) return "0"+t; else return ""+t; } function incrTime4Speech( timeRangeStr ) { if ( timeRangeStr != null && timeRangeStr != "" ) { var n = timeRangeStr.indexOf("to"); if ( n > 0 ) { var s = timeRangeStr.indexOf("min"); if ( s > 0) { var endTR = timeRangeStr.substring( n+2, s); var tr = parseInt( endTR.trim() ) + 2; return tr; } } } return 6; } function time4TT( TTstart, genEvalTime) { var timeAvail4TTenEval = 55 - TTstart; var TTdur = timeAvail4TTenEval -genEvalTime; return TTdur ; } function calcDisplayTime( hours, mins) { var relMins = (mins % 60); var relHrs = Math.floor(mins / 60); hours += relHrs; mins = relMins; var displayTime = hours +":"+ padMinutes( mins ); return displayTime; } function getAgendaDate() { var date = ""; var agendaDiv = document.getElementById('MeetingAgenda'); var anchs = agendaDiv.getElementsByTagName("a"); if ( anchs != null && anchs.length > 0 ) { var bolds = anchs[0].getElementsByTagName("b"); if ( bolds != null && bolds.length > 0 ) { if ( bolds[0].innerText != null && bolds[0].innerText != undefined ) date = bolds[0].innerText; else date = bolds[0].innerHTML; } } return date; } function getNameFromFullNameTitle( full ) { var name = ""; var ndx = full.indexOf(","); if ( ndx > 0 ) { name = full.substring( 0, ndx ); } else name = full; return name.trim(); } function getNymsFromFullNameTitle( full ) { var nyms = ""; var ndx = full.indexOf(","); if ( ndx > 0 ) { nyms = full.substring( ndx); } return nyms.trim(); } function getSiteDomainStr() { var domain = window.location.protocol+"//"+window.location.host; // "http://alpharettaclub.<BR>toastmastersclubs.org"; if ( domain.length > 24 ) { domain = window.location.host; // try without the protocol if ( domain.length > 24 ) { // no, still too long, put protocol back and split to two lines. domain = window.location.protocol+"//"+window.location.host; var x = domain.indexOf("toastmastersclubs.org"); if ( x > 0 ) domain = domain.substring(0,x) + "<BR>" + domain.substring(x); else { x = domain.indexOf("."); if ( x > 0 ) domain = domain.substring(0,x) + "<BR>" + domain.substring(x); } } } return domain; } function getSpeakerInfo( roleNdx, speeches ) { var ndx = -1; var speech = ""; var title = ""; var intro = ""; var man = ""; var type = ""; var time = ""; var speakerNyms = ""; var speaker = document.getElementById( roles[ roleNdx ] + 'TAKE'); if ( speaker != null ) { if ( speaker.innerText != null && speaker.innerText != undefined ) speaker = speaker.innerText; else speaker = speaker.innerHTML; if ( speaker != "Sign Up" ) { //speaker = speaker.innerText; ndx = speaker.indexOf(","); if ( ndx > 0 ) { speakerNyms = speaker.substring( ndx ); speaker= speaker.substring( 0, ndx ); } var speechObj = document.getElementById( roles[ roleNdx ] + 'MAN'); if ( speechObj != null && speechObj != undefined && speechObj.value != "Choose Manual / Speech" ) { speech = speechObj.value; // speechObj.options[ speechObj.selectedIndex ] ; ndx = speech.indexOf(":"); if ( ndx > 0 ) { man = speech.substring(0, ndx ); var tmNdx = speech.lastIndexOf( "("); var endNdx = speech.lastIndexOf( ")"); if ( tmNdx >0 ) { time = speech.substring( tmNdx+1, endNdx ); type = speech.substring( ndx+1, tmNdx ); } else { type = speech.substing( ndx+1 ); } } var titleObj = document.getElementById( roles[ roleNdx ] + 'TIT'); if ( titleObj != null && titleObj != undefined ) title = titleObj.value; var introObj = document.getElementById( roles[ roleNdx ] + 'INT'); if ( introObj != null && introObj != undefined ) intro = introObj.value; } else { var signedupObj = document.getElementById( roles[ roleNdx ] + 'SIGNUPNAME'); if ( signedupObj != null ) { var signedupData = null; if ( signedupObj.innerText != null && signedupObj.innerText != undefined ) signedupData = signedupObj.innerText; else signedupData = signedupObj.innerHTML; if ( signedupData.trim() != "Sign Up" ) { //var signedupData = signedupObj.innerText; var y = signedupData.indexOf("Speech Title:"); if ( y >= 0 ) title = signedupData.substring( y+13 ).trim(); var signedupHMTL = signedupObj.innerHTML; var x = signedupHMTL.indexOf("Time:"); var z = signedupHMTL.indexOf("Speech Title:"); speech = signedupHMTL.substring( x + 10, z ).trim(); ndx = speech.indexOf("<br>"); if ( ndx > 0 ) { man = speech.substring(0, ndx ); var tmNdx = speech.lastIndexOf( "("); var endNdx = speech.lastIndexOf( ")"); if ( tmNdx > 0 ) { time = speech.substring( tmNdx+1, endNdx ); var q = speech.indexOf('<br>'); type = speech.substring( q+4, tmNdx ); } else { var q = speech.indexOf('<br>'); if( q >= 0) type = speech.substring( q+4); } } } } } } } roleNdx++; var evaluator = getNextRoleName( roleNdx ); var evaluatorNyms = ""; ndx = evaluator.indexOf(","); if ( ndx > 0 ) { evaluatorNyms = evaluator.substring( ndx ); evaluator = evaluator.substring( 0, ndx ); } if ( evaluator != null && evaluator.trim() == 'Sign Up' ) evaluator = unassigned; if ( (speaker != null && speaker != '') && (typeof speaker.trim != "undefined" && speaker.trim() != 'Sign Up')) { speeches.speech.push( {"speaker": speaker, "speakerNyms": speakerNyms, "evaluator": evaluator, "evaluatorNyms": evaluatorNyms, "title": title, "manual": man, "type": type, "time": time, "introduction": intro } ); } return roleNdx; } function previewAgenda() { var winH = window.open(""); writeAgenda2Win( winH , true ); } function printAgenda() { var winH = window.open(""); writeAgenda2Win( winH , false ); winH.focus(); winH.print(); winH.close(); } function writeToastmastersSpeakerIntro() { var winH = window.open(""); var agendaDate = getAgendaDate(); var firstRowId = table.rows[1].id ; var prefix = SPEECHES_NDX; var speeches = { "speech" : [] }; while ( prefix < roles.length ) { prefix = getSpeakerInfo( prefix, speeches ); prefix++; } writeStyles( winH ); winH.document.write('<TABLE cellspacing=0 cellpadding=0 border=0 width="750">'); winH.document.write('<TR>'); winH.document.write(' <TD width="100%" height="134" colspan="3">'); winH.document.write(' <TABLE cellspacing=0 cellpadding=0 border=0 width="100%" height="70" bgcolor="#771c29">'); winH.document.write(' <TR><TD style="align: center; color: white;" align="right">'); winH.document.write(' <TABLE cellspacing=0 cellpadding=0 border=0 style="color: white; text-align: center;">'); winH.document.write(' <TR><TD style="font: Bold 14pt Arial">'+hdrClubName+'</TD></TR>'); winH.document.write(' <TR><TD style="font: 12pt Arial">Date: '+ agendaDate + '</TD></TR>'); winH.document.write(' </TABLE></TD><TD width="30"> </TD></TR>'); winH.document.write(' <TR height="14" ><TD style="background-color: white; border-top: solid 5px #567997; border-bottom: solid 4px #567997;"> </TD><TD style="background-color: white; border-top: solid 5px #567997; border-bottom: solid 4px #567997;"> </TD></TR>'); winH.document.write(' </TABLE><P><P>'); winH.document.write(' <TABLE cellspacing=0 cellpadding=0 border=0 width="100%">'); winH.document.write(' <TR><TD width="45" class="agendaTime"></TH><TD class="sectionHdrTitle" >Speakers</TD><TD align="right"></TD></TR>'); for ( var i=1; i <= speeches.speech.length; i++ ) { winH.document.write(' <TR valign="bottom"><TH width="45" height="25"></TH><TD class="sectionListRole" nowrap><u>Speaker #'+i+'</U></TD><TD align="right"><TABLE cellspacing=0 cellpadding=0 border=0><TR><TD class="sectionHdrName" nowrap>'+speeches.speech[i-1].speaker+'</TD><TD class="sectionListNyms" nowrap>'+speeches.speech[i-1].speakerNyms+'</TD></TR></TABLE></TD></TR>'); winH.document.write(' <TR><TH width="45"></TH><TD colspan=3 align="center">'); winH.document.write(' <TABLE cellspacing=0 cellpadding=0 border=0 class="speechTable" >'); winH.document.write(' <TR><TD class="speechTable speechTitle" colspan="3">"'+speeches.speech[i-1].title+'"</TH></TR>'); winH.document.write(' <TR><TD align="right" class="speechTable speechLabel4TM" nowrap>'+speeches.speech[i-1].manual+':</TD><TD width="12" class="speechTable" style="border-right: 0px"></TD><TD class="speechTable speechDesc" style="border-left: 0px;">'+speeches.speech[i-1].type+'</TD></TR>'); winH.document.write(' <TR><TD align="right" class="speechTable speechLabel4TM">Time Range:</TD><TD width="12" class="speechTable" style="border-right: 0px"></TD><TD class="speechTable speechDesc" style="border-left: 0px;">'+speeches.speech[i-1].time+'</TD></TR>'); winH.document.write(' <TR><TD align="right" class="speechTable speechLabel4TM">Evaluator:</TD><TD width="12" class="speechTable" style="border-right: 0px"></TD><TD class="speechTable speechDesc" style="border-left: 0px;"> '+speeches.speech[i-1].evaluator+'</TD></TR>'); winH.document.write(' <TR><TD colspan="3" ><TABLE width="100%"><TR><TD align="right" class="speechTable speechLabel4TM">Introduction:</TD><TD width="12" class="speechTable" style="border-right: 0px"></TD><TD class="speechTable speechIntro" style="border-left: 0px;"> '+speeches.speech[i-1].introduction+'</TD></TR></TABLE></TD></TR>'); winH.document.write(' </TABLE>'); winH.document.write(' </TD>'); winH.document.write(' </TR>'); winH.document.write(' <TR><TD colspan="3" height="40"></TD></TR>'); } winH.document.write(' </TABLE>'); winH.document.write("<input type='button' value='PRINT' ID='printBtn' NAME='printAgendaPage' onClick=' document.getElementById( \"closeBtn\").style.display=\"none\"; document.getElementById( \"printBtn\").style.display=\"none\"; window.print(); window.close();' >"); winH.document.write("<BR><input type='button' value='CLOSE' ID='closeBtn' NAME='closeWindow' onClick=' window.close(); ' >"); winH.document.close(); } function getNextRoleName( ndx ) { var value = ""; var name = document.getElementById( roles[ ndx ] + 'TAKE' ); var val = null; if ( name != null && name.innerText != null && name.innerText != undefined ) val = name.innerText; else if ( name != null && name.innerHTML ) val = name.innerHTML; if ( name == null || val == "Sign Up" ) { name = document.getElementById( roles[ ndx ] + 'SIGNUPNAME' ); if ( name != null && name.innerText != null && name.innerText != undefined ) val = name.innerText; else val = name.innerHTML; if ( name != null && val.trim() == "Sign Up" ) value = val; else value = unassigned; } else value = val; return value; } function writeAgenda2Win( winH , preview ) { itemStartTimeHrs = itemStartTimeHrs_INIT; itemStartTimeMins = itemStartTimeMins_INIT; var navClubURL = getSiteDomainStr(); var agendaDate = getAgendaDate(); var firstRowId = table.rows[1].id ; var prefix = 0; var jokeNyms = ""; var toastmasterNyms = ""; var topicsNyms = ""; var genENyms = ""; var grammNyms = ""; var wmNyms = ""; var ahNyms = ""; var voteNyms = ""; var timerNyms = ""; var name = getNextRoleName( prefix++ ); var jokemaster = getNameFromFullNameTitle( name ); jokeNyms = getNymsFromFullNameTitle( name ); name = getNextRoleName( prefix++ ); var toastmaster = getNameFromFullNameTitle( name ); toastmasterNyms = getNymsFromFullNameTitle( name ); name = getNextRoleName( prefix++ ); var topicsMaster = getNameFromFullNameTitle( name ); topicsNyms = getNymsFromFullNameTitle( name ); name = getNextRoleName( prefix++ ); var genEval = getNameFromFullNameTitle( name ); genENyms = getNymsFromFullNameTitle( name ); name = getNextRoleName( prefix++ ); var grammarian = getNameFromFullNameTitle( name ); grammNyms = getNymsFromFullNameTitle( name ); name = getNextRoleName( prefix++ ); var wordmaster = getNameFromFullNameTitle( name ); wmNyms = getNymsFromFullNameTitle( name ); name = getNextRoleName( prefix++ ); var voteCounter = getNameFromFullNameTitle( name ); voteNyms = getNymsFromFullNameTitle( name ); name = getNextRoleName( prefix++ ); var ahCounter= getNameFromFullNameTitle( name ); ahNyms = getNymsFromFullNameTitle( name ); name = getNextRoleName( prefix++ ); var timer = getNameFromFullNameTitle( name ); timerNyms = getNymsFromFullNameTitle( name ); var speeches = { "speech" : [] }; while ( prefix < roles.length ) { prefix = getSpeakerInfo( prefix, speeches ); prefix++; } if ( jokemaster.trim() == 'Sign Up') jokemaster = unassigned; if ( toastmaster.trim() == 'Sign Up') toastmaster = unassigned; if ( genEval.trim() == 'Sign Up') genEval= unassigned; if ( topicsMaster.trim() == 'Sign Up') topicsMaster= unassigned; if ( ahCounter.trim() == 'Sign Up') ahCounter= unassigned; if ( voteCounter.trim() == 'Sign Up') voteCounter= unassigned; if ( grammarian.trim() == 'Sign Up') grammarian= unassigned; if ( wordmaster.trim() == 'Sign Up') wordmaster= unassigned; if ( timer.trim() == 'Sign Up') timer= unassigned; var displayItemTime = calcDisplayTime( itemStartTimeHrs, itemStartTimeMins ); writeStyles( winH ); winH.document.write('<TABLE cellspacing=0 cellpadding=0 border=0 ><TR><TD>'); winH.document.write('<TABLE cellspacing=0 cellpadding=0 border=0 width="750">'); winH.document.write('<TR>'); winH.document.write(' <TD width="100%" height="134" colspan="3">'); winH.document.write(' <TABLE cellspacing=0 cellpadding=0 border=0 width="100%" height="120" bgcolor="#771c29">'); winH.document.write(' <TR><TD style="align: center; color: white;" align="right">'); winH.document.write(' <TABLE cellspacing=0 cellpadding=0 border=0 style="color: white; text-align: center;">'); winH.document.write(' <TR><TD style="font: Bold 14pt Arial">'+hdrClubName+'</TD></TR>'); winH.document.write(' <TR><TD style="font: 12pt Arial">'+hdrDistrictLocation+'</TD></TR>'); winH.document.write(' <TR><TD style="font: 12pt Arial">Date: '+ agendaDate + '</TD></TR>'); winH.document.write(' <TR><TD style="font: 12pt Arial">Meeting Time: '+hdrMeetTime+'</TD></TR>'); winH.document.write(' </TABLE></TD><TD width="30"> </TD></TR>'); winH.document.write(' <TR height="14" ><TD style="background-color: white; border-top: solid 5px #567997; border-bottom: solid 4px #567997;"> </TD><TD style="background-color: white; border-top: solid 5px #567997; border-bottom: solid 4px #567997;"> </TD></TR>'); winH.document.write(' </TABLE>'); winH.document.write(' </TD></TR>'); winH.document.write(' <TR><TD height="20" colspan="3"> </TD></TR>'); winH.document.write(' <TR><TD width="170" align="center" valign="top" style="border-right: solid 1px black;">'); winH.document.write(' <TABLE cellspacing=0 cellpadding=0 border=0 width="100%">'); winH.document.write(' <TR height="10"><TD class="leadersTitle">President</TD></TR>'); winH.document.write(' <TR height="10"><TD align="left"><TABLE cellspacing=0 cellpadding=0 border=0><TR><TD align="right" class="leadersName" nowrap>'+president+'</TD><TD class="leaderNyms" nowrap >'+presidentNyms +'</TD></TR></TABLE></TD></TR>'); winH.document.write(' <TR><TD height="15"> </TD></TR>'); winH.document.write(' <TR height="10"><TD class="leadersTitle">VP Education</TD></TR>'); winH.document.write(' <TR height="10"><TD align="left"><TABLE cellspacing=0 cellpadding=0 border=0><TR><TD align="right" class="leadersName" nowrap>'+vped+'</TD><TD class="leaderNyms" nowrap >'+vpedNyms +'</TD></TR></TABLE></TD></TR>'); winH.document.write(' <TR><TD height="15"> </TD></TR>'); winH.document.write(' <TR height="10"><TD class="leadersTitle">VP Membership</TD></TR>'); winH.document.write(' <TR height="10"><TD align="left"><TABLE cellspacing=0 cellpadding=0 border=0><TR><TD align="right" class="leadersName" nowrap>'+vpmem+'</TD><TD class="leaderNyms" nowrap >'+vpmemNyms +'</TD></TR></TABLE></TD></TR>'); winH.document.write(' <TR><TD height="15"> </TD></TR>'); winH.document.write(' <TR height="10"><TD class="leadersTitle">VP Public Relations</TD></TR>'); winH.document.write(' <TR height="10"><TD align="left"><TABLE cellspacing=0 cellpadding=0 border=0><TR><TD align="right" class="leadersName" nowrap>'+vppr+'</TD><TD class="leaderNyms" nowrap >'+vpprNyms +'</TD></TR></TABLE></TD></TR>'); winH.document.write(' <TR><TD height="15"> </TD></TR>'); winH.document.write(' <TR height="10"><TD class="leadersTitle">Secretary</TD></TR>'); winH.document.write(' <TR height="10"><TD align="left"><TABLE cellspacing=0 cellpadding=0 border=0><TR><TD align="right" class="leadersName" nowrap>'+secretary+'</TD><TD class="leaderNyms" nowrap >'+secretaryNyms +'</TD></TR></TABLE></TD></TR>'); winH.document.write(' <TR><TD height="15"> </TD></TR>'); winH.document.write(' <TR height="10"><TD class="leadersTitle">Treasurer</TD></TR>'); winH.document.write(' <TR height="10"><TD align="left"><TABLE cellspacing=0 cellpadding=0 border=0><TR><TD align="right" class="leadersName" nowrap>'+treasurer+'</TD><TD class="leaderNyms" nowrap >'+treasurerNyms +'</TD></TR></TABLE></TD></TR>'); winH.document.write(' <TR><TD height="15"> </TD></TR>'); winH.document.write(' <TR height="10"><TD class="leadersTitle">Sergeant-At-Arms</TD></TR>'); winH.document.write(' <TR height="10"><TD align="left"><TABLE cellspacing=0 cellpadding=0 border=0><TR><TD align="right" class="leadersName" nowrap>'+saa+'</TD><TD class="leaderNyms" nowrap >'+presidentNyms +'</TD></TR></TABLE></TD></TR>'); winH.document.write(' <TR><TD height="15"> </TD></TR>'); winH.document.write(' </TABLE><P>'); winH.document.write(' <TABLE cellspacing=0 cellpadding=0 border=0 width="100%">'); winH.document.write(' <TR><TD class="WebSites">Find us online:</TD></TR>'); winH.document.write(' <TR><TD class="urls">'+navClubURL+'</TD></TR>'); winH.document.write(' </TABLE><P><BR>'); winH.document.write(' <TABLE cellspacing=0 cellpadding=0 border=0 width="100%">'); winH.document.write(' <TR><TD class="WebSites">Toastmasters International</TD></TR>'); winH.document.write(' <TR><TD class="urls">www.toastmasters.org</TD></TR>'); winH.document.write(' </TABLE><P>'); winH.document.write(' <TABLE cellspacing=0 cellpadding=0 border=0 width="150">'); winH.document.write(' <caption style="font: bold 12pt Arial; text-align: left; ">Club 4941 Mission:</caption>'); winH.document.write(' <TR><TD style="font: italic 12pt Arial Narrow; text-align: left;">'); winH.document.write(' "We provide a supportive and positive learning experience'); winH.document.write(' in which members are empowered to develop communication'); winH.document.write(' and leadership skills, resulting in greater self-confidence'); winH.document.write(' and personal growth."'); winH.document.write(' </TD></TR></TABLE>'); winH.document.write(' </TD>'); winH.document.write(' <TD width="5"> </TD>'); winH.document.write(' <TD width="540" align="center" valign="top">'); winH.document.write(' <TABLE cellspacing=0 cellpadding=0 border=0 width="100%">'); displayItemTime = calcDisplayTime( itemStartTimeHrs, itemStartTimeMins ); winH.document.write(' <TR><TD width="45" class="agendaTime">'+displayItemTime+'</TH><TD class="sectionHdrTitle" nowrap>Sergeant-at-Arms Call to Order / Pledge</TD><TD class="sectionHdrName" nowrap>'+saa +'</TD><TD class="sectionHdrNyms" nowrap>'+saaNyms +'</TD></TR>'); winH.document.write(' </TABLE>'); itemStartTimeMins += 3; winH.document.write(' <TABLE cellspacing=0 cellpadding=0 border=0 width="100%">'); displayItemTime = calcDisplayTime( itemStartTimeHrs, itemStartTimeMins ); winH.document.write(' <TR><TD width="45" class="agendaTime" height="31" valign="bottom">'+displayItemTime+'</TH><TD class="sectionHdrTitle" nowrap valign="bottom">Presidents Welcome and Announcements</TD><TD align="right" ><TABLE cellspacing=0 cellpadding=0 border=0><TR><TD align="right" class="sectionHdrName" nowrap>'+president+'</TD><TD class="sectionHdrNyms" nowrap >'+presidentNyms +'</TD></TR></TABLE></TD></TR>'); winH.document.write(' </TABLE><P>'); itemStartTimeMins += 5; winH.document.write(' <TABLE cellspacing=0 cellpadding=0 border=0 width="100%">'); displayItemTime = calcDisplayTime( itemStartTimeHrs, itemStartTimeMins ); winH.document.write(' <TR><TD width="45" class="agendaTime">'+displayItemTime+'</TH><TD class="sectionHdrTitle" colspan="2">Toastmaster Meeting Kick Off</TD><TD align="right"><TABLE cellspacing=0 cellpadding=0 border=0><TR><TD class="sectionHdrName" nowrap>'+ toastmaster +'</TD><TD class="sectionHdrNyms" nowrap>'+toastmasterNyms +'</TD></TR></TABLE></TD></TR>'); winH.document.write(' <TR><TH width="45"></TH><TD class="sectionListRole" style="padding-left: 0px;">Introduce meeting helpers:</TD><TD class="sectionListName"></TD></TR>'); winH.document.write(' <TR><TH width="45"></TH><TD class="sectionListRole" nowrap><TABLE cellspacing=0 cellpadding=0 border=0><TR><TD class="sectionListName" nowrap>Joke-Master</TD><TD width="100%" class="dottedTD"></TD></TR></TABLE></TD><TD width="100%" class="dottedTD"></TD><TD align="right"><TABLE cellspacing=0 cellpadding=0 border=0><TR><TD width="100%" class="dottedTD"></TD><TD class="sectionListName" nowrap>'+jokemaster+'</TD><TD class="sectionListNyms" nowrap>'+jokeNyms +'</TD></TR></TABLE></TD></TR>'); winH.document.write(' <TR><TH width="45"></TH><TD class="sectionListRole" nowrap><TABLE cellspacing=0 cellpadding=0 border=0><TR><TD class="sectionListName" nowrap>Word-Master</TD><TD width="100%" class="dottedTD"></TD></TR></TABLE></TD><TD width="100%" class="dottedTD"></TD><TD align="right"><TABLE cellspacing=0 cellpadding=0 border=0><TR><TD width="100%" class="dottedTD"></TD><TD class="sectionListName" nowrap>'+wordmaster+'</TD><TD class="sectionListNyms" nowrap>'+wmNyms +'</TD></TR></TABLE></TD></TR>'); winH.document.write(' <TR><TH width="45"></TH><TD class="sectionListRole" nowrap><TABLE cellspacing=0 cellpadding=0 border=0><TR><TD class="sectionListName" nowrap>Ah Counter</TD><TD width="100%" class="dottedTD"></TD></TR></TABLE></TD><TD width="100%" class="dottedTD"></TD></TD><TD align="right"><TABLE cellspacing=0 cellpadding=0 border=0><TR><TD width="100%" class="dottedTD"></TD><TD class="sectionListName" nowrap>'+ahCounter+'</TD><TD class="sectionListNyms" nowrap>'+ahNyms +'</TD></TR></TABLE></TD></TR>'); winH.document.write(' <TR><TH width="45"></TH><TD class="sectionListRole" nowrap><TABLE cellspacing=0 cellpadding=0 border=0><TR><TD class="sectionListName" nowrap>Grammarian</TD><TD width="100%" class="dottedTD"></TD></TR></TABLE></TD><TD width="100%" class="dottedTD"></TD><TD align="right"><TABLE cellspacing=0 cellpadding=0 border=0><TR><TD width="100%" class="dottedTD"></TD><TD class="sectionListName" nowrap>'+grammarian+'</TD><TD class="sectionListNyms" nowrap>'+grammNyms +'</TD></TR></TABLE></TD></TR>'); winH.document.write(' <TR><TH width="45"></TH><TD class="sectionListRole" nowrap><TABLE cellspacing=0 cellpadding=0 border=0><TR><TD class="sectionListName" nowrap>Timer</TD><TD width="100%" class="dottedTD"></TD></TR></TABLE></TD><TD width="100%" class="dottedTD"></TD><TD align="right"><TABLE cellspacing=0 cellpadding=0 border=0><TR><TD width="100%" class="dottedTD"></TD><TD class="sectionListName" nowrap>'+timer+'</TD><TD class="sectionListNyms" nowrap>'+timerNyms +'</TD></TR></TABLE></TD></TR>'); winH.document.write(' <TR><TH width="45"></TH><TD class="sectionListRole" nowrap><TABLE cellspacing=0 cellpadding=0 border=0><TR><TD class="sectionListName" nowrap>Vote Counter</TD><TD width="100%" class="dottedTD"></TD></TR></TABLE></TD><TD width="100%" class="dottedTD"></TD><TD align="right"><TABLE cellspacing=0 cellpadding=0 border=0><TR><TD width="100%" class="dottedTD"></TD><TD class="sectionListName" nowrap>'+voteCounter+'</TD><TD class="sectionListNyms" nowrap>'+voteNyms +'</TD></TR></TABLE></TD></TR>'); winH.document.write(' </TABLE><P>'); if ( speeches.speech.length == 1 ) winH.document.write('<BR>'); itemStartTimeMins += 5; winH.document.write(' <TABLE cellspacing=0 cellpadding=0 border=0 width="100%">'); displayItemTime = calcDisplayTime( itemStartTimeHrs, itemStartTimeMins ); winH.document.write(' <TR><TD width="45" class="agendaTime">'+displayItemTime+'</TH><TD class="sectionHdrTitle" >Toastmaster Introduces Speakers</TD><TD align="right"><TABLE cellspacing=0 cellpadding=0 border=0><TR><TD class="sectionHdrName" nowrap>'+ toastmaster +'</TD><TD class="sectionHdrNyms" nowrap>'+toastmasterNyms +'</TD></TR></TABLE></TD></TR>'); if ( speeches.speech.length == 1) { winH.document.write(' <TR><TD colspan="4" height="10"></TD></TR>'); } for ( var i=1; i <= speeches.speech.length; i++ ) { winH.document.write(' <TR valign="bottom"><TH width="45" height="25"></TH><TD class="sectionListRole" nowrap><u>Speaker #'+i+'</U></TD><TD align="right"><TABLE cellspacing=0 cellpadding=0 border=0><TR><TD class="sectionListName" nowrap>'+speeches.speech[i-1].speaker+'</TD><TD class="sectionListNyms" nowrap>'+speeches.speech[i-1].speakerNyms+'</TD></TR></TABLE></TD></TR>'); winH.document.write(' <TR><TH width="45"></TH><TD colspan=3 align="center">'); winH.document.write(' <TABLE cellspacing=0 cellpadding=0 border=0 class="speechTable" >'); winH.document.write(' <TR><TD class="speechTable speechTitle'); if ( speeches.speech[i-1].title.length > 46 ) winH.document.write(' veryLongSpeechTitle '); else if ( speeches.speech[i-1].title.length > 34 ) winH.document.write(' longSpeechTitle '); winH.document.write(' " colspan=2>"'+speeches.speech[i-1].title+'"</TH></TR>'); winH.document.write(' <TR><TD align="right" class="speechTable speechLabel">'+speeches.speech[i-1].manual+':</TD><TD class="speechTable speechDesc"> '+speeches.speech[i-1].type+'</TD></TR>'); winH.document.write(' <TR><TD align="right" class="speechTable speechLabel">Time Range:</TD><TD class="speechTable speechDesc"> '+speeches.speech[i-1].time+'</TD></TR>'); winH.document.write(' </TABLE>'); winH.document.write(' </TD>'); winH.document.write(' </TR>'); if ( speeches.speech.length == 2) { winH.document.write(' <TR><TD colspan="4" height="15"></TD></TR>'); } itemStartTimeMins += incrTime4Speech( speeches.speech[i-1].time ); } winH.document.write(' </TABLE><P>'); if ( speeches.speech.length == 1 ) winH.document.write('<BR>'); if ( speeches.speech.length <= 4 ) { winH.document.write(' <TABLE cellspacing=0 cellpadding=0 border=0 width="100%">'); displayItemTime = calcDisplayTime( itemStartTimeHrs, itemStartTimeMins ); winH.document.write(' <TR><TD width="45" class="agendaTime">'+displayItemTime+'</TH><TD class="sectionHdrTitle">Table Topics Master</TD><TD align="right"><TABLE cellspacing=0 cellpadding=0 border=0><TR><TD class="sectionHdrName" nowrap>'+topicsMaster+'</TD><TD class="sectionHdrNyms" nowrap>'+topicsNyms+'</TD></TR></TABLE></TD></TR>'); winH.document.write(' <TR><TH width="45"></TH><TD class="sectionListRole" style="padding-left: 0px;" colspan="2">Explain Theme & Call Upon Impromptu Speakers</TD></TR>'); winH.document.write(' <TR><TH width="45"></TH><TD class="sectionListRole" style="padding-left: 0px;" colspan="2">Request Timer’s Report / Vote for Best Response / Revert to TM</TD></TR>'); if ( speeches.speech.length <= 3 ) { winH.document.write(' <TR><TH width="45"></TH><TD class="sectionListRole" style="padding-left: 0px;" colspan="2">'); winH.document.write(' <TABLE cellspacing=0 cellpadding=0 border=1 width="100%" style="font: normal 9pt Times New Roman; border-collapse: collapse;">'); winH.document.write(' <TR height="15"><TD width="40">Theme</TD><TD colspan="3" ></TD></TR>'); winH.document.write(' <TR height="15"><TD width="40">TT1</TD><TD></TD><TD width="40">TT5</TD><TD></TD></TR>'); winH.document.write(' <TR height="15"><TD width="40">TT2</TD><TD></TD><TD width="40">TT6</TD><TD></TD></TR>'); winH.document.write(' <TR height="15"><TD width="40">TT3</TD><TD></TD><TD width="40">TT7</TD><TD></TD></TR>'); winH.document.write(' <TR height="15"><TD width="40">TT4</TD><TD></TD><TD width="40">TT8</TD><TD></TD></TR>'); winH.document.write(' </TABLE></TD></TR>'); } winH.document.write(' </TABLE><P>'); } if ( speeches.speech.length == 1 ) winH.document.write('<BR>'); itemStartTimeMins += (time4TT + (2*extraTTtime)); itemStartTimeMins -= ((speeches.speech.length-1)*extraTTtime); // extra time for fewer speeches winH.document.write(' <TABLE cellspacing=0 cellpadding=0 border=0 width="100%">'); displayItemTime = calcDisplayTime( itemStartTimeHrs, itemStartTimeMins ); winH.document.write(' <TR><TD width="45" class="agendaTime">'+displayItemTime+'</TH><TD class="sectionHdrTitle" colspan="2">General Evaluator</TD><TD align="right"><TABLE cellspacing=0 cellpadding=0 border=0><TR><TD class="sectionHdrName" nowrap>'+genEval+'</TD><TD class="sectionHdrNyms" nowrap>'+genENyms+'</TD></TR></TABLE></TD></TR>'); winH.document.write(' <TR><TH width="45"></TH><TD class="sectionListRole" style="padding-left: 0px;" colspan="3">Call on Evaluation Team for Reports</TD></TR>'); for ( var i=1; i <= speeches.speech.length; i++ ) { winH.document.write(' <TR><TH width="45"></TH><TD class="sectionListRole" nowrap>Evaluator #'+i+'</TD><TD width="100%" class="dottedTD"></TD><TD align="right"><TABLE cellspacing=0 cellpadding=0 border=0><TR><TD width="100%" class="dottedTD"></TD><TD class="sectionListName" nowrap>'+speeches.speech[i-1].evaluator+'</TD><TD class="sectionListNyms" nowrap>'+speeches.speech[i-1].evaluatorNyms+'</TD></TR></TABLE></TD></TR>'); itemStartTimeMins += time4Eval; } winH.document.write(' <TR><TH width="45"></TH><TD class="sectionListRole" style="padding-left: 0px;" colspan="3">Get Timer\'s Report & Vote for Best Evaluator</TD></TR>'); winH.document.write(' <TR><TH width="45"></TH><TD class="sectionListRole" style="padding-left: 0px;" colspan="3">Reports: Grammarian / Ah-Counter / Word-Master</TD></TR>'); if ( speeches.speech.length < 3) { winH.document.write(' <TR><TH width="45"></TH><TD class="sectionListRole" style="padding-left: 0px;" colspan="3">General Evaluator provides meeting & leader evaluations / Reverts to Toastmaster</TD></TR>'); } winH.document.write(' </TABLE><P>'); itemStartTimeMins += time4GenEval; if ( speeches.speech.length == 1 ) winH.document.write('<BR>'); winH.document.write(' <TABLE cellspacing=0 cellpadding=0 border=0 width="100%">'); displayItemTime = calcDisplayTime( itemStartTimeHrs, itemStartTimeMins ); winH.document.write(' <TR><TD width="45" class="agendaTime">'+displayItemTime+'</TH><TD class="sectionHdrTitle">Toastmaster Presents Awards</TD><TD align="right" ><TABLE cellspacing=0 cellpadding=0 border=0><TR><TD align="right" class="sectionHdrName" nowrap>'+toastmaster+'</TD><TD class="sectionHdrNyms" nowrap >'+toastmasterNyms +'</TD></TR></TABLE></TD></TR>'); if ( speeches.speech.length < 3) { winH.document.write(' <TR><TH width="45"></TH><TD class="sectionListRole" style="padding-left: 0px;" colspan="2">Ask Vote Counter to Announce Awards</TD></TR>'); } winH.document.write(' </TABLE>'); itemStartTimeMins += time4Wrapup; if ( speeches.speech.length == 1 ) winH.document.write('<BR>'); winH.document.write(' <TABLE cellspacing=0 cellpadding=0 border=0 width="100%">'); displayItemTime = calcDisplayTime( itemStartTimeHrs, itemStartTimeMins ); winH.document.write(' <TR><TD width="45" class="agendaTime" height="31" >'+displayItemTime+'</TH><TD class="sectionHdrTitle" nowrap>Presidents Adjournment</TD><TD align="right"><TABLE cellspacing=0 cellpadding=0 border=0><TR><TD align="right" class="sectionHdrName" nowrap>'+president+'</TD><TD class="sectionHdrNyms" nowrap >'+presidentNyms +'</TD></TR></TABLE></TD></TR>'); winH.document.write(' </TABLE>'); winH.document.write(' </TD>'); winH.document.write('</TR> '); winH.document.write('</TABLE>'); winH.document.write('</TD><TD valign="top">'); if ( preview ) { winH.document.write("<input type='button' value='PRINT' ID='printBtn' NAME='printAgendaPage' onClick=' document.getElementById( \"closeBtn\").style.display=\"none\"; document.getElementById( \"printBtn\").style.display=\"none\"; window.print(); window.close();' >"); winH.document.write("<BR><input type='button' value='CLOSE' ID='closeBtn' NAME='closeWindow' onClick='window.close(); ' >"); } winH.document.write('</TD></TR></TABLE>'); winH.document.write(' <IMG src="http://www.toastmastersclubs.org/imageuploads/1430/colorlogopng.png" width="165" style="position: absolute; top: 20px; left: 50px;">'); winH.document.close(); } function writeStyles( winH ) { winH.document.write('<STYLE>'); winH.document.write('.agendaTime'); winH.document.write('{'); winH.document.write(' font: bold 10pt Arial Narrow;'); winH.document.write(' vertical-align: middle;'); winH.document.write(' text-align: left;'); winH.document.write(' padding: 0 10 0 5;'); winH.document.write('}'); winH.document.write('.leadersHdr'); winH.document.write('{'); winH.document.write(' font: bold 11pt Arial;'); winH.document.write(' height: 25px;'); winH.document.write(' vertical-align: middle;'); winH.document.write(' text-align: center;'); winH.document.write('}'); winH.document.write('.leadersTitle'); winH.document.write('{'); winH.document.write(' font: bold 14pt Arial Narrow;'); winH.document.write(' height: 15px;'); winH.document.write(' vertical-align: bottom;'); winH.document.write(' text-align: left;'); winH.document.write(' color: #567997;'); winH.document.write('}'); winH.document.write('.leadersName'); winH.document.write('{'); winH.document.write(' font: normal 16pt Brush Script MT;'); winH.document.write(' height: 12px;'); winH.document.write(' vertical-align: middle;'); winH.document.write(' text-align: left;'); winH.document.write('}'); winH.document.write('.leaderNyms'); winH.document.write('{'); winH.document.write(' font: normal 10pt Arial Narrow;'); winH.document.write(' vertical-align: bottom;'); winH.document.write(' text-align: left;'); winH.document.write(' whitespace: nowrap;'); winH.document.write('}'); winH.document.write('.WebSites'); winH.document.write('{'); winH.document.write(' font: bold 11pt Arial Narrow;'); winH.document.write(' height: 15px;'); winH.document.write(' vertical-align: middle;'); winH.document.write(' text-align: left;'); winH.document.write('}'); winH.document.write('.urls'); winH.document.write('{'); winH.document.write(' font: 11pt Tahoma;'); winH.document.write(' text-decoration: underline;'); winH.document.write(' height: 15px;'); winH.document.write(' vertical-align: middle;'); winH.document.write(' text-align: left;'); winH.document.write('}'); winH.document.write('.sectionHdrTitle'); winH.document.write('{'); winH.document.write(' font: bold 12pt Arial;'); winH.document.write(' vertical-align: middle;'); winH.document.write(' text-align: left;'); winH.document.write(' width: 100%;'); winH.document.write('}'); winH.document.write('.sectionHdrName'); winH.document.write('{'); winH.document.write(' font: bold 12pt Arial;'); winH.document.write(' vertical-align: middle;'); winH.document.write(' text-align: right;'); winH.document.write(' whitespace: nowrap;'); winH.document.write('}'); winH.document.write('.sectionHdrNyms'); winH.document.write('{'); winH.document.write(' font: normal 9pt Arial Narrow;'); winH.document.write(' vertical-align: bottom;'); winH.document.write(' text-align: left;'); winH.document.write(' whitespace: nowrap;'); winH.document.write('}'); winH.document.write('.sectionListRole'); winH.document.write('{'); winH.document.write(' font: normal 10pt Arial;'); winH.document.write(' vertical-align: middle;'); winH.document.write(' text-align: left;'); winH.document.write(' padding-left: 150px;'); winH.document.write(' whitespace: nowrap;'); winH.document.write('}'); winH.document.write('.dottedTD::after'); winH.document.write('{'); winH.document.write(' content: "";'); winH.document.write(' display: block;'); winH.document.write(' min-height: 1em;'); winH.document.write(' border-bottom: 1px dotted;'); winH.document.write(' overflow: hidden;'); winH.document.write('}'); winH.document.write('.sectionListName'); winH.document.write('{'); winH.document.write(' font: normal 12pt Arial;'); winH.document.write(' vertical-align: middle;'); winH.document.write(' text-align: right;'); winH.document.write(' whitespace: nowrap;'); winH.document.write('}'); winH.document.write('.sectionListNyms'); winH.document.write('{'); winH.document.write(' font: normal 9pt Arial Narrow;'); winH.document.write(' vertical-align: bottom;'); winH.document.write(' text-align: left;'); winH.document.write(' whitespace: nowrap;'); winH.document.write('}'); winH.document.write('.speechTitle'); winH.document.write('{'); winH.document.write(' font: italic 14pt Courier New;'); winH.document.write(' vertical-align: middle;'); winH.document.write(' text-align: center;'); winH.document.write('}'); winH.document.write('.longSpeechTitle'); winH.document.write('{'); winH.document.write(' font: italic 13pt Arial;'); winH.document.write(' vertical-align: middle;'); winH.document.write(' text-align: center;'); winH.document.write('}'); winH.document.write('.veryLongSpeechTitle'); winH.document.write('{'); winH.document.write(' font: italic 12pt Arial Narrow;'); winH.document.write(' vertical-align: middle;'); winH.document.write(' text-align: center;'); winH.document.write('}'); winH.document.write('.speechLabel'); winH.document.write('{'); winH.document.write(' font: normal 10pt Arial Narrow;'); winH.document.write(' vertical-align: middle;'); winH.document.write(' text-align: right;'); winH.document.write('}'); winH.document.write('.speechLabel4TM'); winH.document.write('{'); winH.document.write(' font: normal 12pt Arial Narrow;'); winH.document.write(' vertical-align: middle;'); winH.document.write(' text-align: right;'); winH.document.write('}'); winH.document.write('.speechDesc'); winH.document.write('{'); winH.document.write(' font: normal 10pt Arial;'); winH.document.write(' vertical-align: middle;'); winH.document.write(' text-align: left;'); winH.document.write('}'); winH.document.write('.speechIntro'); winH.document.write('{'); winH.document.write(' font: normal 13pt Times New Roman;'); winH.document.write(' vertical-align: middle;'); winH.document.write(' text-align: left;'); winH.document.write('}'); winH.document.write('.speechTable'); winH.document.write('{'); winH.document.write(' border: solid 1px #D4D4D4;'); winH.document.write(' border-collapse: collapse;'); winH.document.write('}'); winH.document.write('</STYLE>'); } </SCRIPT><SCRIPT> document.write('<p><input name="printBtn" id="printBtn" onclick="printAgenda(); " style="font: 11pt/normal Arial Narrow; font-size-adjust: none; font-stretch: normal; display: none;" type="button" value="Print to Meeting Agenda" /><input name="preBtn" id="preBtn" onclick="previewAgenda(); " style="font: 11pt/normal Arial Narrow; font-size-adjust: none; font-stretch: normal; display: none;" type="button" value="PreView Meeting Agenda" /></p>'); document.write('<p><input name="introBtn" id="introBtn" onclick="writeToastmastersSpeakerIntro(); " style="font: 11pt/normal Arial Narrow; font-size-adjust: none; font-stretch: normal; display: none;" type="button" value="Print Speaker Introductions for Toastmaster" /></p>'); var loggedInUser = ""; function moveSpeechUp( roleNdx ) { moveSpeech( roleNdx, -2, 1, -1); } function moveSpeechDown( roleNdx ) { moveSpeech( roleNdx, 2, 1, 3); } function moveSpeech( baseNdx, nextSpeech, firstEval, nextEval ) { var speechRow = document.getElementById( roles[ baseNdx ] + 'TRPUB' ); var evalRow = document.getElementById( roles[ baseNdx+firstEval ] + 'TRPUB' ); var nextSpeechRow = document.getElementById( roles[ baseNdx +nextSpeech ] + 'TRPUB' ); var nextEvalRow = document.getElementById( roles[ baseNdx +nextEval ] + 'TRPUB' ); var saveNextHTML = nextSpeechRow.innerHTML; nextSpeechRow.innerHTML = speechRow.innerHTML; speechRow.innerHTML = saveNextHTML; saveNextHTML = nextEvalRow.innerHTML; nextEvalRow.innerHTML = evalRow.innerHTML; evalRow.innerHTML = saveNextHTML; var saveArrowsHTML = speechRow.cells[0].innerHTML; speechRow.cells[0].innerHTML = nextSpeechRow.cells[0].innerHTML; nextSpeechRow.cells[0].innerHTML = saveArrowsHTML; var saveIDs = speechRow.id; speechRow.id = nextSpeechRow.id; nextSpeechRow.id = saveIDs; saveIDs = evalRow.id; evalRow.id = nextEvalRow.id; nextEvalRow.id = saveIDs; var saveRoleNdx = roles [ baseNdx+nextSpeech ]; roles [ baseNdx+nextSpeech ] = roles [ baseNdx ]; roles [ baseNdx ] = saveRoleNdx; saveRoleNdx = roles [ baseNdx+nextEval ]; roles [ baseNdx+nextEval ] = roles [ baseNdx+firstEval ]; roles [ baseNdx+firstEval ] = saveRoleNdx; } function isValueInRoles( number ) { var result = false; for ( var i=0; !result && i < roles.length; i++ ) { if ( roles[i] == number ) result = true; } return result; } function isOfficerLoggedIn( loggedInUser ) { var result = false; if ( loggedInUser == president ) result = true; else if ( loggedInUser == vped ) result = true; else if ( loggedInUser == vpmem ) result = true; else if ( loggedInUser == vppr ) result = true; else if ( loggedInUser == secretary ) result = true; else if ( loggedInUser == treasurer ) result = true; else if ( loggedInUser == saa ) result = true; return result; } function getOfficerInfoFromText( name, officerCount ) { switch ( officerCount++ ) { case 0: president = getNameFromFullNameTitle( name ); presidentNyms = getNymsFromFullNameTitle( name ); break; case 1: vped = getNameFromFullNameTitle( name ); vpedNyms = getNymsFromFullNameTitle( name ); break; case 2: vpmem = getNameFromFullNameTitle( name ); vpmemNyms = getNymsFromFullNameTitle( name ); break; case 3: vppr = getNameFromFullNameTitle( name ); vpprNyms = getNymsFromFullNameTitle( name ); break; case 4: secretary = getNameFromFullNameTitle( name ); secretaryNyms = getNymsFromFullNameTitle( name ); break; case 5: treasurer = getNameFromFullNameTitle( name ); treasurerNyms = getNymsFromFullNameTitle( name ); break; case 6: saa = getNameFromFullNameTitle( name ); saaNyms = getNymsFromFullNameTitle( name ); break; } } function fillOfficerPositions() { var privateMemberInfoDiv = document.getElementById("MemberListing"); if ( privateMemberInfoDiv == null || privateMemberInfoDiv == undefined ) { var emailListings = document.getElementsByClassName("OfficerEmails"); if ( emailListings != null ) { var officerCount = 0; for ( var i=0; i < emailListings[0].children.length; i++ ) { var text = emailListings[0].children[i].innerText; if ( text == null || text == undefined ) text = emailListings[0].children[i].innerHTML; var m = text.indexOf("("); var n = text.indexOf(")"); var name = text.substring( m+1, n ); getOfficerInfoFromText( name, officerCount++ ); } } } else { var membersTable = privateMemberInfoDiv.getElementsByTagName("table"); if ( membersTable != null && membersTable.length > 0 ) { var officerCount = 0; for ( var i=0; i < membersTable[0].rows.length; i+=3 ) { var name = null; var mem = membersTable[0].rows[i].cells[1]; if ( mem.innerText != null && mem.innerText != undefined ) name = mem.innerText.split('\n')[0]; else name = mem.innerHTML.split('\n')[0]; getOfficerInfoFromText( name, officerCount++ ); } } } } function start () { table= document.getElementById("rostertable"); var names = table.getElementsByTagName("div"); for ( var i=0; i < names.length; i++) { if ( names[i].id != null ) { var ndx = names[i].id.indexOf("TAKE"); if ( ndx > 0 ) { var nom = names[i].id.substring( 0, ndx); if ( !isValueInRoles( nom ) ) roles.push( nom ); } else { ndx = names[i].id.indexOf("SIGNUPNAME"); if ( ndx > 0 ) { var nom = names[i].id.substring( 0, ndx); if ( !isValueInRoles( nom ) ) roles.push( nom ); } } } } var userlog = document.getElementById("memberlogout"); if ( userlog != null && userlog != undefined ) { var username = ""; if ( userlog.innerText != null && userlog.innerText != undefined ) username = userlog.innerText.replace("Logout as", ""); else username = userlog.innerHTML; loggedInUser = getNameFromFullNameTitle( username ); } var name = getNextRoleName( 1 ); var toastmaster = getNameFromFullNameTitle( name ); var isAdmin = document.getElementById("launchadmin"); fillOfficerPositions(); if ( isOfficerLoggedIn( loggedInUser ) || ( isAdmin != null && isAdmin != undefined ) || ( loggedInUser == toastmaster )) { for ( var i=SPEECHES_NDX; i < roles.length; i+=2 ) { var speechRow = document.getElementById( roles[ i ] + 'TRPUB' ); //var evalRow = document.getElementById( roles[ i+1 ] + 'TRPUB' ); if( i == 9) speechRow.cells[ 0 ].innerHTML = '<center><input type="BUTTON" value="\\/" NAME="Down" onClick=" moveSpeechDown('+i+');" style="cursor: pointer;display:block;" title="Move Down"></center>' ; else if ( i == (roles.length-2)) speechRow.cells[ 0 ].innerHTML = '<center><input type="BUTTON" value="/\\" NAME="Down" onClick=" moveSpeechUp('+i+');" style="cursor: pointer;display:block;" title="Move Up"></center>' ; else { speechRow.cells[ 0 ].innerHTML = '<center><input type="BUTTON" value="/\\" NAME="Down" onClick=" moveSpeechUp('+i+');" style="cursor: pointer;display:block;" title="Move Up"><input type="BUTTON" value="\\/" NAME="Down" onClick=" moveSpeechDown('+i+');" style="cursor: pointer;" title="Move Down"></center>' ; } } document.getElementById("printBtn").style.display = 'inline'; document.getElementById("preBtn").style.display = 'inline'; document.getElementById("introBtn").style.display = 'inline'; } } if(window.addEventListener){ window.addEventListener('load',start,false); //W3C } else{ window.attachEvent('onload',start); //IE } </SCRIPT>

Bottom line: You are in *big* trouble with me. :angry: We are pretty explicit in our terms of use that we do not want anyone obviously trying to alter the operation of the system without our consent. The above script pretty clearly attempts to do that. :pinch: It is extensive and *unacceptable*. At this point, I will have to consider whether I should remove your club website from the system, since you clearly cannot be trusted to adhere to our Terms of Use. Can you give me any reason I should trust you going forward???
Last edit: 9 years 8 months ago by SteveTheTechie.
The topic has been locked.
  • RogerM
  • Visitor
  • Visitor
9 years 8 months ago - 9 years 8 months ago #54169 by RogerM
Replied by RogerM on topic custom javascript int the agenda header
Craig,

While your custom code is somewhat impressive, you need to remember that FreeToastHost is a template, and that the founder, developer and all of the support Ambassadors are volunteers. When we take our personal time to provide this service to so many clubs and districts, it is fairly frustrating to people like Steve and others to have to take the time to clean up sites that members have tried to enhance. FTH meets all of the brand standards of Toastmasters International and provides an exemplary template for so many members, that customization of your magnitude is overkill.

If you want to make a website with more bells and whistles, I recommend that you work on another free or low cost platform that is designed to take all of that customization without affecting the rest of the organization. You will still be able to keep your club website for as long as you want, but without impacting the hard work Bo and the developers (especially Steve) and the Ambassadors have put into this free service.
Last edit: 9 years 8 months ago by RogerM.
The topic has been locked.
More
9 years 8 months ago #54175 by chill2942
I am really sorry, if you want to take any action, do it against myself and not the club.
They are a role model club and make excellent use of this service and have come to rely upon it.
Their use of the web site is one of the reasons why this club is so successful having 3-4 speakers
every meeting and meet the years membership growth goals for the year in only the first 3 months.
All the script does is take the signed up for roles and formats them into an agenda template for
printing . It saves at least 15 minutes each week forming an agenda document for printing.
You can trust me because all I have done use this site to promote the brand and membership growth
over many years.

At this point, if someone could delete the meeting agenda for December 9th for the Alpharetta club 4941,
all would be back to normal. All of the other agendas are still there.

Thank you.
The topic has been locked.
Time to create page: 0.107 seconds