Only portrait mode is currently supported - please rotate your device.
Page History
...
HTML |
---|
<script>
$(window).on('load', function(){
$("#uploadButton1").click(() => {
$("#i_sponsorimage1").click();
})
$("#i_currentSponsorimage1").waitUntilExists(() => {
setTimeout(function(){
console.log("Wait until exists starts");
var currentsp1 = $('#i_currentSponsorimage1').val();
console.log("CURRENT SP1 value", currentsp1);
if(currentsp1 !== ""){
$( "#s1upload-insert" ).remove()
console.log("CURRENT SPONSOR IS NOT EMPTY");
var d1 = document.getElementById('uploadButton1');
d1.insertAdjacentHTML('afterend', `<div class="file-upload-name" id="s1upload-insert">${currentsp1}</div>`);
}
}, 1200);
});
$("#i_sponsorimage1").change(function(){
$( "#s1upload-insert" ).remove()
var logo1 = document.getElementsByClassName("up-file")[2].value.split("\\").pop();
var d1 = document.getElementById('uploadButton1');
d1.insertAdjacentHTML('afterend', `<div class="file-upload-name" id="s1upload-insert">${logo1}</div>`);
});
$("#uploadButton2").click(() => {
$("#i_sponsorimage2").click();
})
$("#i_currentSponsorimage2").waitUntilExists(() => {
setTimeout(function(){
var currentsp2 = $('#i_currentSponsorimage2').val();
console.log("currentsp2 value", currentsp2);
if(currentsp2 !== ""){
$( "#s2upload-insert" ).remove()
var d2 = document.getElementById('uploadButton2');
d2.insertAdjacentHTML('afterend', `<div class="file-upload-name" id="s2upload-insert">${currentsp2}</div>`);
}
}, 1200);
});
$("#i_sponsorimage2").change(function(){
$( "#s2upload-insert" ).remove()
var logo2 = document.getElementsByClassName("up-file")[3].value.split("\\").pop();
var d2 = document.getElementById('uploadButton2');
d2.insertAdjacentHTML('afterend', `<div class="file-upload-name" id="s2upload-insert">${logo2}</div>`);
});
$("#uploadButton3").click(() => {
$("#i_sponsorimage3").click();
})
$("#i_currentSponsorimage3").waitUntilExists(() => {
setTimeout(function(){
var currentsp3 = $('#i_currentSponsorimage3').val();
console.log("currentsp3 value", currentsp3);
if(currentsp3 !== ""){
$( "#s3upload-insert" ).remove()
var d3 = document.getElementById('uploadButton3');
d3.insertAdjacentHTML('afterend', `<div class="file-upload-name" id="s3upload-insert">${currentsp3}</div>`);
}
}, 1200);
});
$("#i_sponsorimage3").change(function(){
$( "#s3upload-insert" ).remove()
var logo3 = document.getElementsByClassName("up-file")[4].value.split("\\").pop();
var d3 = document.getElementById('uploadButton3');
d3.insertAdjacentHTML('afterend', `<div class="file-upload-name" id="s3upload-insert">${logo3}</div>`);
});
$("#uploadButton4").click(() => {
$("#i_imageOrganizer").click();
})
$("#i_currentImageOrganizer").waitUntilExists(() => {
setTimeout(function(){
var currentimgorg = $('#i_currentImageOrganizer').val();
if(currentimgorg !== ""){
$( "#currentimgorg-insert" ).remove()
var d4 = document.getElementById('uploadButton4');
d4.insertAdjacentHTML('afterend', `<div class="file-upload-name" id="currentimgorg-insert">${currentimgorg}</div>`);
}
}, 1200);
});
$("#i_imageOrganizer").change(function(){
$( "#currentimgorg-insert" ).remove()
var logo4 = document.getElementsByClassName("up-file")[0].value.split("\\").pop();
var d4 = document.getElementById('uploadButton4');
d4.insertAdjacentHTML('afterend', `<div class="file-upload-name" id="currentimgorg-insert">${logo4}</div>`);
});
$("#uploadButton5").click(() => {
$("#i_bannerImage").click();
})
$("#i_currentBannerImage").waitUntilExists(() => {
setTimeout(function(){
var currentBannerImage = $('#i_currentBannerImage').val();
if(currentBannerImage !== ""){
$( "#currentBannerImage-insert" ).remove()
var d5 = document.getElementById('uploadButton5');
d5.insertAdjacentHTML('afterend', `<div class="file-upload-name" id="currentBannerImage-insert">${currentBannerImage}</div>`);
}
}, 1200);
});
$("#i_bannerImage").change(function(){
$( "#currentBannerImage-insert" ).remove()
var logo5 = document.getElementsByClassName("up-file")[1].value.split("\\").pop();
var d5 = document.getElementById('uploadButton5');
d5.insertAdjacentHTML('afterend', `<div class="file-upload-name" id="currentBannerImage-insert">${logo5}</div>`);
});
});
</script>
<script>
function checkCohosts(){
var previousCohosts = "";
var eventName = "";
var entry_id = getQueryVariableFromUrl('entry_id');
jQuery.ajax({
url: `/ajax/confiforms/rest/filter.action?pageId=90603622&f=createEvent&q=id:${entry_id}`,
type: "get",
dataType: 'json',
async: true,
success: function (data) {
console.log(data.list.entry[0].ownedBy);
previousCohosts = data.list.entry[0].ownedBy;
eventName = data.list.entry[0].fields.name;
var currentCohosts = $("#i_cohosts").val();
var previousCohosts = previousCohosts.split(",")
previousCohosts.shift();
var currentCohosts = currentCohosts.split(",");
console.log("currentCohosts", currentCohosts);
console.log("previousCohosts", previousCohosts);
if (currentCohosts.length > previousCohosts.length){
var difference = $(currentCohosts).not(previousCohosts).get();
console.log("diffStr", difference);
analytics.track("cohostsAdded", {
"eventName": eventName,
"cohostEmail": difference.join(','),
});
}
if (previousCohosts.length > currentCohosts.length){
var difference = $(previousCohosts).not(currentCohosts).get();
console.log("diffStr", difference);
analytics.track("cohostsRemoved", {
"eventName": eventName,
"cohostEmail": difference.join(','),
});
}
}
})
}
</script> |
ConfiForms Form Definition | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
<!-- Page view count → <!–Missing countryCode validation→ <!-- --> <!--Load the current field values--> <!--Load the current field values (ADMIN)--> <!--Don't allow events in the past→ <!--Don't allow end date earlier than start date--> <!--Add cohosts to ownedBy list on new entry--> <!--Update cohosts to ownedBy list on existing entry--> <!--Set current attachment name on new entry--> <!--Update the banner image if changed--> <!--Update the organizer image if changed--> <!--Update the sponsor 1 image if changed--> <!--Update the sponsor 2 image if changed--> <!--Update the sponsor 3 image if changed--> <!--Update fields upon edit--> <!--Redirect new entry--> <!--Redirect on update--> <!-- Create group when event is created send analytics Event--> <!–Create new page--> <!--Send email to ESG@gsvlabs.com on page creation--> <!-- --> <!–Update entry with created page url--> <!–Update entry with created page update url--> <!-- Copy Banner Image to attachments bank --> <!-- Copy Organizer image to attachments bank --> <!--Copy Sponsor 1 image to attachments bank--> <!--Copy Sponsor 2 image to attachments bank--> <!--Copy Sponsor 3 image to attachments bank--> <!--Delete update entry reference--> <!--Send email to new co-hosts--> Hello, You receiving this message because you are listed as a cohost on the [entry.name] event. To view changes, edit, or publish the event, go <a href="[entry.createdPage.urlPath]">here</a>. Thank you, ESG 2020 Team |
...
HTML |
---|
<script> // set page name as event name only on event creation if (getQueryVariableFromUrl('entry_id') === 'notfound') { $("#i_name").change(function () { $("#i_pageName").val($("#i_name").val()); }); // extra precaution - set page name as event name as event name $(document).mousemove(function (event) { $(document).mousemove(function (event) { $("#i_pageName").val($("#i_name").val()); }); } </script> <script> $("#judging-admin-only").waitUntilExists(() => { if (isAdmin || isJudgingAdmin) { $("#i_pageName#judging-admin-only").val($("#i_name").val()toggleClass('display-none'); } }); } </script> <script> $("#admin-only").waitUntilExists(() => { if (isAdmin) { $("#admin-only").toggleClass('display-none'); } }); </script> <style> span.i_holdingrow_agenda, div.i_holdingrow_agenda { height: auto !important; } span.i_holdingrow_program, div.i_holdingrow_program { height: auto !important; } </style> |
HTML |
---|
<script type="text/javascript" src="https://gsvlabs-confluence-files.s3-us-west-2.amazonaws.com/js/ewc/eventsCreateEventScript.js"></script> |
...