[% var s = settings[0]; var colors = ["pink", "blue", "green", "yellow", "purple"]; var images = [ { url: "top1.jpg", colorIndex: 0 }, { url: "top2.jpg", colorIndex: 1 }, { url: "top3.jpg", colorIndex: 0 }, { url: "top4.jpg", colorIndex: 1 }, { url: "top5.jpg", colorIndex: 0 }, { url: "top6.jpg", colorIndex: 0 }, { url: "top7.jpg", colorIndex: 1 } ]; var seed = Math.floor(Math.random() * 7); window.hcolor = colors[images[seed].colorIndex]; %]
[% window.page = 'index'; var targets = [ "#hcol1", "#hcol2", "#hcol3", "#hcol3", "#hcol4", "#hcol4", "#hcol5", "#hcol6", "#hcol7", "#hcol7", "#hcol8", "#hcol8" ]; window.featuredVideoIDs = [ { id: s.get("settings.no1").document.id, target: targets[0] }, { id: s.get("settings.no2").document.id, target: targets[1] }, { id: s.get("settings.no3").document.id, target: targets[2] }, { id: s.get("settings.no4").document.id, target: targets[3] }, { id: s.get("settings.no5").document.id, target: targets[4] }, { id: s.get("settings.no6").document.id, target: targets[5] }, { id: s.get("settings.no7").document.id, target: targets[6] }, { id: s.get("settings.no8").document.id, target: targets[7] }, { id: s.get("settings.no9").document.id, target: targets[8] }, { id: s.get("settings.no10").document.id, target: targets[9] }, { id: s.get("settings.no11").document.id, target: targets[10] }, { id: s.get("settings.no12").document.id, target: targets[11] } ]; %]

Contact

[% if(s.getText("settings.about") != undefined) { %]

[%= s.getText("settings.about") %]

[% } %]

[% var plist = []; var _flag = true; var _counter = 1; while(_flag) { if(s.getText("settings.name" + _counter) != undefined) { plist.push( { name: s.getText("settings.name" + _counter), title: s.getText("settings.title" + _counter), email: s.getText("settings.email" + _counter), phone: s.getText("settings.phone" + _counter) } ); } if(++ _counter == 10) { _flag = false; } } %]
[% plist.forEach(function(_p) { %]

[%= _p.name %]

[%= _p.title %]

[%= _p.email %]

[%= _p.phone %]

[% }) %]