x
x
x
x
Only portrait mode is currently supported - please rotate your device.
HTML |
---|
<link rel="stylesheet" href="https://gsvlabs-confluence-files.s3-us-west-2.amazonaws.com/stylesheets/EWC/eventsPlatformStyleesheetEWCAll+Stars+Helping+Kids/eventsPlatformStylesheet_ASHK.css"> <style> <style> input#i_topicIddiv#templateContainer { margin: 13px 6px 43px; width: 10%fit-content; } labelp.templateDownload { color: var(--primary-font-color); borderbackground: 1px solid var(--ssecondary-tab-outline) !importantcolor); font-sizepadding: var(--font-size-s); width: 150px; background-color: transparent;10px; } input#i_currentBannerImage { paddingdisplay: 5pxnone 10px!important; margin: 5px; line-height: 45px; cursor: pointer} .aui-select2-drop .select2-results .select2-highlighted { color: black !important; } .radio { position: absolute; z-index: 1; } #entryStartups .cf_textarea { background: transparent !important; aui-select2-drop .select2-results .select2-result-selectable { color: var(--secondaryprimary-font-color); } #entryStartups span { margin: 0px; } div#entryStartups { flex-direction: column; } .currentOrganizer/* hide source code button from editor */ .jqte_tool_21 { display: none !important; } div#uploadButton4 { font-family: unset; background /* =============== CONFIFORM DATA STYLING =============== */ .aui-dialog label { color: var(--cbprimary-font-color) !important; color: var(--cb-fill); border-rdius: 6px; } textarea#i_location } .aui-dialog form.aui .text, form.aui .password, form.aui .select, form.aui .aui-select2-container { color: var(--primary-font-color) !important; } .aui-dialog textarea#i_agenda { backgroundcolor: unsetvar(--primary-font-color) !important; } input#i_locationdiv#entryOptions .text { min-width: 100%unset; } div#entryLocation.aui-dialog textarea#i_program { displaycolor: flex; flex-direction: column; } div#select2-drop { background-image: unset !important; background: white !important; } #main-content { background-image: unset !important; } .my-button { background-image: unset !important; } div.display-none { display: none; } span.i_holdingrow_currentName { display: none; } span.i_holdingrow_name { /*display: none;*/ } #entryName{ /*margin: 0 0 10px 0;*/black !important;} .aui-dialog li.select2-search-choice div { color: var(--primary-font-color) !IMPORTANT; } /* =============== ~~~~~~~~~~~~~~~~~~~ =============== */ span.i_holdingrow_currentName { display: none; } span.i_holdingrow_name { /*display: none;*/ } #entryName{ /*margin: 0 0 10px 0;*/ } #entryCategory { flex-direction: column; } div#entryLocation { display: flex; flex-direction: column; } div#entryLocation { margin-bottom: 5px; } .nameSubtext { display: none; height: auto; margin: 0 0px 0 0px; color: whitevar(--primary-font-color); object-fit: contain; font-family: Raleway; font-size: 9px; font-weight: bold; font-stretch: normal; font-style: normal; line-height: 1.91; letter-spacing: 0.6px; } p.auto-cursor-target { margin: 0px !important; } .my-button { border: 1px solid var(--cb-outline) display: flex; /* margin-rightjustify-content: 10pxcenter; */ backgroundalign-imageitems: linear-gradient(to right, #26c9b7 , #23c3ad); margin-top: 5px; } div#orgupload { center; color: white !important; border-radius: 8px !important; margin: 15px 0 0 5pxbackground: var(--primary-color) !important; } .sponsorImage1{ justify-content: start font-size: 16px; flexfont-wrapweight: wrap500; } #orgupload{ height: unset !important; } img.uploadImage { padding: 10px 20px; margin-right: 10px; widthtext-transform: 30pxuppercase; heighttext-align: 45pxcenter; margincursor: 0 autopointer; border: 0px !important; } div#orgupload, .uploadButtondiv#bannerImgupload { widthmargin: 85%; 15px 0 0 border: 1px solid var(--cb-outline)5px !important; } .sponsorImage1{ justify-content: start; /* margin-rightflex-wrap: 10px; */ background-image: linear-gradient(to right, #26c9b7 , #23c3ad);wrap; } #orgupload, #bannerImgupload{ height: unset !important; } img.uploadImage { font-familywidth: Raleway30px; font-sizeheight: 15px45px; font-weightmargin: 0 boldauto; filter: invert(1) brightness(50%) font-stretch: normal;sepia(100%) saturate(10000%); } .uploadButton { font-stylewidth: normal85%; line-heightborder: 1.75var(--border); letterborder-spacingradius: normal8px; color/* margin-right: #ffffff10px; */ margin: background: var(--primary-color); font-family: Raleway; font-size: 15px; font-weight: bold; font-stretch: normal; font-style: normal; line-height: 1.75; letter-spacing: normal; color: white; margin: 8px auto; cursor: pointer; max-width: 130px; height: 40px; display: flex; align-items: center; justify-content: center; } .fileUploadContainer{ margin: 9px 8px 9px 0; min-width: 190px; flex-direction: column; text-align: center; width: 30%; paddingborder-radius: 5px3px; padding: 5px; color: whitevar(--secondary-font-color); display: flex; border: 1px solid 1px rgba(300,300,300,0.51#d1d1d1; background: var(--secondary-color); } input#i_currentSponsorimage1 { margin: 0 0 0px -5px; } input#i_currentSponsorimage3 { margin: 0 0 0px -5px; } label#i_labelfor_currentSponsorimage3 { margin: 0 0px 12px -5px; } button.clearButton { cursor: pointer; width: fit-content; /* margin-bottom: 9px; */ /* margin-top: 10px; */ border: transparent; margin-right: 10px; background-image: transparent; font-family: Raleway; font-size: 13px; font-weight: normal; font-stretch: normal; font-style: normal; line-height: 1.75; letter-spacing: normal; color: #ffffffvar(--primary-color); background: transparent; } .select2-container-multi .select2-choices .select2-search-field input.select2-active { background: transparent !important; } form.aui .text[disabled], form.aui .password[disabled], form.aui .textarea[disabled], form.aui .select[disabled], form.aui .multi-select[disabled] { background: transparent; } div#entrySponsors { width: 50% !important; } input#i_sponsors { max-width: 500px !important; /* width: 100% !important; */ } #entrySponsors .auto-cursor-target { width: 100% !important; } span.i_holdingrow_sponsors {max-width: 100% !important;} input#i_addImage1-yes { display: none; } input#i_removeImage1-no { display: none; } input#i_addImage2-yes { display: none; } input#i_removeImage2-no { display: none; } label { color: var(--primary-color); border: var(--border); font-size: var(--font-size-s); width: 150px; background-color: transparent; padding: 5px 10px; margin: 5px 0 5px 0; line-height: 45px !important; cursor: pointer; } input:checked + label { background: var(--us-tab-outline); color: #ffffffvar(--primary-font-color)!important; box-shadow: none; } textarea#i_agenda { max-width: 100% !important; } a#saveFormButton#saveFormButton { margin-left: auto; width: 170px; margin-top: 6px; } div#entryAgenda { width: 100%; } textarea#i_program { max-width: 100% !important; } select#i_country { max-width: 100%; } select#i_round { max-width: 100%; } input#i_startDate { max-width: 100% !important; padding: 0 10px 0 !important; } textarea#i_agenda { background: transparent; color: whitevar(--primary-font-color) !IMPORTANT; } textarea#i_program { background: transparent; color: whitevar(--primary-font-color) !IMPORTANT; } span.i_holdingrow_agenda { display: flex; flex-direction: column; } .saveFormContainer { display: flex; text-align: right; width: 95.5% !important; margin: -10px 0 10px 0; } .confiFormsFormFooter { display: none; } .jqte_toolbar.unselectable { height: 27px; } .jqte * { color: whitewvar(--secondary-color) !important; } div.jqte_editor * { background-color: transparent !important; } span.i_holdingrow_agenda { width: inherit; } span.i_holdingrow_name { width: inherit; } span.i_holdingrow_cohosts { width: inherit; } span.i_holdingrow_rsvp { width: inherit; } span.i_holdingrow_sponsors { width: inherit; } span.i_holdingrow_type { width: inherit !important; } select#i_type { max-width: unset; } input#i_startDate { max-width: unset !important; } input#i_endDate { max-width: unset !important; } p.auto-cursor-target { width: inherit; } span.conf-macro.output-inline div#select2-drop { background: var(--secondary-color) !important; color: var(--secondary-font-color); } span.conf-macro.output-inline { width: inherit; justify-content: flex-end; } /* Styling for uploading pictures button */ input[type="file" i]::-webkit-file-upload-button { height: 40px; padding: 10px 20px; background: transparent; border: var(--border); color: whitevar(--primary-font-color); font-size: var(--font-size-xs); cursor: pointer; text-transform: uppercase; } input#i_name { width: 100% !important; max-width: unset !important; } input#i_image, input#i_sponsorimage1, input#i_sponsorimage2, input#i_sponsorimage3, input#i_imageOrganizer { color: whitevar(--primary-font-color); } .confiFormsFormBorder { border: none !important; } .cf-calendar-time { display: none !important; } div {} li.select2-search-choice div { color: whitevar(--primary-font-color); } span.output-inline { margin: 5px; display: flex; flex-direction: column; } div#s2id_i_cohosts { /*max-width: 285px !important;*/ } .questionContainer { background: var(--sus-tab-fill); padding: 30px; width: 80% !important; margin: auto; align-items: center; } form.aui legend, form.aui label {object-fit: contain;font-family: Raleway;font-size: 11px;font-weight: normal;font-stretch: normal;font-style: normal;line-height: 1.91;letter-spacing: 0.6px;color: #fafafa;} form.aui .text, form.aui .password, form.aui .select, form.aui .aui-select2-container .select2-choices { background: transparentvar(--secondary-color); opacity: 0.75; border-radius: solid 1px rgba(300,300,300,0.51) !important3px; border: 1px solid #d1d1d1; min-height: 40px !important; color: var(--primary-font-color:white); min-width: 100%; } .ffi input[type="file"] { background: transparent !important; opacity: .21; border-radius: 3px; border: solid 1px rgba(300,300,300,0.51); } #i_holdingrow_image label { background: transparent !important; opacity: 0.75; border-radius: 3px; border: solid 1px #ffffff; } .jqte_editor, .jqte_source { background: transparentvar(--secondary-color); color: white var(--primary-font-color)!important; } .jqte_toolbar { background: rgba(300,300,300,0.5); } .jqte_tool, .jqte_tool_icon, .jqte_tool_label { /* opacity: 0.21; */ border-radius: 3px; border: solid 0px #ffffff; } .desc{ object-fit: contain; font-family: Raleway; font-size: 11px; font-weight: bold; font-stretch: normal; font-style: normal; line-height: 1.91; letter-spacing: 0.6px; color: #fafafavar(--primary-font-color); } .questionwrapper { height: auto !important; } #entryNameInput { flex-direction: column; } #entryCountry { flex-direction: column; } #entryCategory#entryRound { flex-direction: column; } #entryRounddiv#entryType { flex-direction: column; } div#entryCatLoc { flex-direction: row; } div#entryLocation { margin-bottom: 5px; } div#entryType { flex-direction: column; } div#entrySponsors { flex-direction: column; } div#entryEndTime { flex-direction: column; } div#entryStartTime { flex-direction: column; } div.entryInput { flex-direction: column; } #entrySummary { flex-wrap: wrap; } div#action-errors-confiform { background: rgba(0,0,0,0.5); border: none; border-radius: 9px; padding: 25px 25px !important; width: 80% !important; margin: auto; align-items: center; } #action-errors-confiform ul li { color: var(--primary-font-color); font-size: var(--font-size-m); padding: 5px 0px; } .aui-message::after { display: none; } @media only screen and (min-width: 320px) and (max-width: 480px) { .desc.startDateLabelcustom-section-container { margin-bottom: 10px width: 100%; max-width: 100; } .desc.endDateLabelquestionContainer { padding: 12px; width: 88% !important; margin-bottom: 10px 0 auto !important; } .desc.startEndLabelp.auto-cursor-target { margin-bottom: 10px width: 100% !important; } div#entryCatLocspan.conf-macro.output-inline { flex-direction: column width: 100%; margin: 7px 0px !important; } .jqte_toolbar.unselectableconfiFormsFormContent { height padding: 45px !important0px; } .custom-section-containerinput#i_sponsors { max-width: 100% !IMPORTANT; max-width: 100100%; } .questionContainerdiv#orgupload { paddingmargin: 12px; width: 88% !important; margin: 0 auto15px 0 0 0px !important; } p.auto-cursor-targeta#saveFormButton { margin: 0 auto; width: 100% !important; } span.conf-macro.output-inlinesaveFormContainer .my-button { widthmargin: 0 100%auto; margindisplay: 7px 0px !importantflex; } .confiFormsFormContent { padding: 0px text-align: center; } input#i_sponsors { max-width: 100% !IMPORTANT align-items: center; widthjustify-content: 100%space-around; } div#orgupload.saveFormContainer { marginwidth: 15px 0 0 0px 100% !important; } a#saveFormButton.questionwrapper.question-mobile { margindisplay: 0 autoflex; widthalign-self: 100%flex-start; } .saveFormContainer .my-button { margin: 0 auto; display: flex; text-align: center; align-items: center; justify-content: space-around; } .saveFormContainer-left: 6%; } div#entryStartTime .questionwrapper.question-mobile { widthheight: 100%auto !important; } div#entryEndTime .questionwrapper.question-mobile { displayheight: auto flex!important; align-self: flex-start;} .fileUploadContainer { marginmin-leftwidth: 6%95%; } div#entryStartTime .questionwrapper.question-mobile div#entrySponsors { heightwidth: auto100% !important; margin-bottom: -10px; } div#entryEndTime .questionwrapper.question-mobile { height: auto !important; margin-bottom: -10px; } .fileUploadContainer { min-width: 95%; } div#entrySponsors { width: 100% !important; } } </style> <script type="text/javascript" src="https://gsvlabs-confluence-files.s3-us-west-2.amazonaws.com/js/ewc/createEventScript.js"></script> <script> if (AJS.params.remoteUser === '') { window.location.replace("/display/EV/Dashboard"); } </script> |
Is in group | ||||||
---|---|---|---|---|---|---|
|
Is in event cohost list | ||||
---|---|---|---|---|
|
HTML |
---|
<script>
function addEventExistsGroup(event_exists_group) {
jQuery.ajax({
url: "/rest/scriptrunner/latest/custom/addGroup",
headers: {
"X-Atlassian-Token": "nocheck",
"Content-type": "application/json",
},
type: "POST",
dataType: "text",
data: JSON.stringify({
group: [event_exists_group],
}),
success: function (text) {
console.log("Response: " + text);
},
error: function (err) {
console.log("Response: it's not working. ", err);
},
});
}
</script> |
...
formName | createEvent |
---|---|
presetValues | notify=true |
embedded | true |
}
}
div#main-content {
background: unset;
}
a#saveFormButton .my-button{
font-family: Arimo;
}
.questionContainer{
background: #67bac045;
/* font-family: Arimo !important; */
}
.questionContainer input {
background: white !important;
}
form.aui .text, form.aui .password, form.aui .select, form.aui .aui-select2-container .select2-choices {
background: white;
opacity: unset;
}
.jqte_editor, .jqte_source {
background: white;
}
div#select2-drop {
background: var(--primary-color) !important;
}
.aui-select2-drop .select2-results .select2-highlighted {
background: var(--secondary-color);
}
.fileUploadContainer {
background: white;
}
p.templateDownload {
background: white;
}
.desc {
font-family: 'Raleway';
}
</style>
<script>
if (AJS.params.remoteUser === '') {
window.location.replace("/display/AE/ASHK+Events+Home");
}
</script> |
Is in group | ||||||
---|---|---|---|---|---|---|
|
Is in event cohost list | ||||
---|---|---|---|---|
|
HTML |
---|
<script>
console.log("first thing in no format");
var event_exists_group = "event-TEST";
var event_exists_group_arr = [event_exists_group];
// flags to check if event exists
var event_exists = false;
console.log(event_exists_group_arr, "HERE I AM");
// flag to check if event have been shown yet
var event_changed = false;
function addEventExistsGroup(event_exists_group) {
jQuery.ajax({
url: "/rest/scriptrunner/latest/custom/addGroup",
headers: {
"X-Atlassian-Token": "nocheck",
"Content-type": "application/json",
},
type: "POST",
dataType: "text",
data: JSON.stringify({
group: [event_exists_group],
}),
success: function (text) {
console.log("Response: " + text);
},
error: function (err) {
alert("Group has already been added");
},
});
}
function removeSemifinalExistsGroup(event_exists_group) {
jQuery.ajax({
url: "/rest/scriptrunner/latest/custom/removeGroup",
headers: {
"X-Atlassian-Token": "nocheck",
"Content-type": "application/json",
},
type: "POST",
dataType: "text",
data: JSON.stringify({
group: [event_exists_group],
}),
success: function (text) {
console.log("Response: " + text);
},
error: function (err) {
alert("Group has already been removed");
},
});
}
$("#createGroup").click(() => {
console.log("clicked add button");
addEventExistsGroup(event_exists_group);
});
$("#removeGroup").click(() => {
console.log("clicked remove button");
removeSemifinalExistsGroup(event_exists_group)
})
</script> |
ConfiForms (FormView) Registrations Control | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
HTML |
---|
<script>
/* Makes the fields for the dates larger */
$('#i_endDate').attr('style', '');
$('#i_startDate').attr('style', '');
</script>
<script>
$("#saveFormButton .my-button").on("click", function(){
$('.my-button').prop('disabled', true);
$("button.my-create-dialog-create-button.aui-button.aui-button-primary.save-cf-btn").click();
$("#action-errors-confiform").waitUntilExists(function () {
$('.my-button').prop('disabled', false);
window.scrollTo({top: 0, behavior: 'smooth'});
});
return false;
});
/*
$('#i_country').prop('disabled', true);
$('#i_round').prop('disabled', true);*/
</script>
<script>
$("#i_RSVPCount").waitUntilExists(() => {
$("#i_RSVPCount").val(0);
})
$("#i_sequence").waitUntilExists(() => {
console.log("setting sequence val to 0");
$("#i_sequence").val(0);
})
</script>
<script>
const calendar = {
'January':'Jan',
'February':'Feb',
'March':'Mar',
'April':'Apr',
'May':'May',
'June':'Jun',
'July':'Jul',
'August':'Aug',
'September':'Sep',
'October':'Oct',
'November':'Nov',
'December':'Dec'
}
const formatDateLong = d => {
const monthNames = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"];
const dayNames = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"];
var hh = d.getHours();
var m = d.getMinutes();
var s = d.getSeconds();
var dd = "am";
var h = hh;
if (h >= 12) {
h = hh-12;
dd = "pm";
}
if (h == 0) {
h = 12;
}
m = m<10?"0"+m:m;
s = s<10?"0"+s:s;
var strTime = h+":"+m+" "+dd
return dayNames[d.getDay()] + ", " + monthNames[d.getMonth()] + " " + d.getDate() + " " + d.getFullYear() + ", " + strTime;
}
</script> |
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=50558996&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 → |
...
...
...
...
...
...
...
...
...
...
...
...
...
...
HTML |
---|
<script>
/* Makes the fields for the dates larger */
$('#i_endDate').attr('style', '');
$('#i_startDate').attr('style', '');
</script>
<script>
$("#saveFormButton .my-button").on("click", function(){
var original_name = $("#i_name").val();
$("#i_currentName").val(original_name);
$('.my-button').prop('disabled', true);
$("button.my-create-dialog-create-button.aui-button.aui-button-primary.save-cf-btn").click();
$("#action-errors-confiform").waitUntilExists(function () {
$('.my-button').prop('disabled', false);
window.scrollTo({top: 0, behavior: 'smooth'});
});
return false;
});
</script>
<script>
// Adding Placeholder to Location Input Field
let locationPlaceholder = $('#i_location')[0];
locationPlaceholder.placeholder = "e.g. San Francisco, CA";
</script>
<script>
$("#i_RSVPCount").waitUntilExists(() => {
$("#i_RSVPCount").val(0);
})
$("#i_sequence").waitUntilExists(() => {
console.log("setting sequence val to 0");
$("#i_sequence").val(0);
})
</script>
<script>
const calendar = {
'January':'Jan',
'February':'Feb',
'March':'Mar',
'April':'Apr',
'May':'May',
'June':'Jun',
'July':'Jul',
'August':'Aug',
'September':'Sep',
'October':'Oct',
'November':'Nov',
'December':'Dec'
}
const formatDateLong = d => {
const monthNames = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"];
const dayNames = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"];
var hh = d.getHours();
var m = d.getMinutes();
var s = d.getSeconds();
var dd = "am";
var h = hh;
if (h >= 12) {
h = hh-12;
dd = "pm";
}
if (h == 0) {
h = 12;
}
m = m<10?"0"+m:m;
s = s<10?"0"+s:s;
var strTime = h+":"+m+" "+dd
return dayNames[d.getDay()] + ", " + monthNames[d.getMonth()] + " " + d.getDate() + " " + d.getFullYear() + ", " + strTime;
}
</script> |
HTML |
---|
<script>
$(window).on('load', function(){
$("#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>`);
});
});
</script>
|
ConfiForms Form Definition | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
confluence <!–Missing countryCode validation→ <!-- --> <!--Load the current field values--> <!--Load the current field values (ADMIN)<!--Load the current field values--> <!--Load the current field values (ADMIN)--> !formId:[empty] AND _user.userInSecurityGroup(confluence-administrators):truename <!--Don't allow events in the past→ <!--Don't allow end date earlier than start date--> <!--Add cohosts to ownedBy list on new entry--> !cohosts:[empty] AND formId:[empty]Create ConfiForms EntryonCreatedentryId=[entry.id]&ownedBy=[entry.createdBy],[entry .cohosts.asList]--> <!--Update cohosts to ownedBy list on existing entry--> !cohosts:[empty] AND !formId:[empty]Create ConfiForms EntryonCreatedentryId=[entry.formId]&ownedBy=[entry.createdBy],[entry.cohosts.asList]<!--Update currentName from currentName on existing entry→ !currentName=name AND !<!--Update the organizer image if changedUpdate cohosts to ownedBy list on existing entry--> <!--Set current attachment name on new entry--> <!--Update fields upon edit--> !formId:[empty]Create ConfiForms EntryonCreatedentryId=[entry.formId]&name=[entry.name]¤tName=[entry.currentName]&pageName<!--Update the banner image if changed--> <!--Update the organizer image if changed--> <!--Redirect on updateUpdate the sponsor 1 image if changed--> <!-- Create group when event is created send analytics Event--> formId:[empty]Run JavaScriptonCreated<!–TODO - Set page name from title→ <!--Update the sponsor 2 image if changed <!–Create new page--> <!--Redirect new entry--> formId:[empty]Redirect to URLonCreated/display/UE/[entry.pageName]<!–Update entry with created page url--> formId:[empty]Create ConfiForms EntryonCreatedentryId=[entry.id]&createdPage=${iftttResult_PC.id}<!-- Copy Organizer image to attachments bank --> !imageOrganizer:[empty]Copy Attachment[entry.createdPage]onCreated[entry.imageOrganizer.asAttachment.id]<!–Update entry with created page update url--> !currentName:[entry.name] AND !currentName:[empty]Create ConfiForms EntryonCreatedentryId=[entry.id]&createdPage=${iftttResult_PCU.id}<!--Delete update entry reference--> !formId:[empty]Delete ConfiForms EntryonCreatedid:[entry.id]5<!--Send email to new co-hosts--> notify:true AND !cohosts:[empty]Send EmailUNT Murphy Center Passport<product@theonevalley.com>onCreatedUpdates made to the [entry.name] event[entry.cohosts.asList]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, UNT Murphy Center Passport Team |
HTML |
---|
<script>
$(".jqte_editor").append("<p id='agendaText'>Tell us about your Event here...</p>");
</script> |
HTML |
---|
<script>
//GET AND SET FORM ID TO CONFIFORMS FIELD FROM URL
function getParameter(paramName) {
var searchString = window.location.search.substring(1),
i, val, params = searchString.split("&");
for (i=0;i<params.length;i++) {
val = params[i].split("=");
if (val[0] == paramName) {
console.log("val[1]", val[1]);
return val[1];
}
console.log(paramName);
}
return null;
}
var formIdInput = document.getElementById('i_formId');
console.log("formIdInput", formIdInput);
formIdInput.value = getParameter('entry_id');
console.log("formIdInput after", formIdInput);
//HIDE CONFIFORMS DROPDOWN FOR NON ADMINS
if (!(AJS.params.isConfluenceAdmin)) {
$('.aui-button.aui-style-default.aui-dropdown2-trigger').hide()
}
</script>
<script>
$(document).ready(function () {
$(".startDateLabel").text("Start Date (Time Zone: " + Intl.DateTimeFormat().resolvedOptions().timeZone + ")");
$(".startEndLabel").text("End Date (Time Zone: " + Intl.DateTimeFormat().resolvedOptions().timeZone + ")");
});
</script> |
<!--Update the sponsor 3 image if changed--> <!--Update fields upon edit--> <!--Redirect new entry--> <!--Redirect on update--> <!-- send analytics Event--> <!–Create new page--> <!--Send email to ashk 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, All Stars Helping Kids Team |
HTML |
---|
<script>
$(".jqte_editor").append("<p id='agendaText'>Tell us about your Event here...</p>");
</script> |
HTML |
---|
<script>
//GET AND SET FORM ID TO CONFIFORMS FIELD FROM URL
function getParameter(paramName) {
var searchString = window.location.search.substring(1),
i, val, params = searchString.split("&");
for (i=0;i<params.length;i++) {
val = params[i].split("=");
if (val[0] == paramName) {
|
HTML |
<script> function getQueryVariableFromUrl(variable){ var query = window.location.search.substring(1); var vars = query.split("&"); for (var i=0;i<vars.length;i++) { var pair = vars[i].split("="); if(pair[0] == variable){return pair[1];} } return(false); } var entry_id = getQueryVariableFromUrl('entry_id'); var startDate; var startDateLocalTime = ''; var startDateFixed = ''; var endDate; var endDateLocalTime = ''; var endDateFixed = ''; const getTimeStamps = async (entry_id) => { let eventData = await jQuery.ajax({ url: '/ajax/confiforms/rest/filter.action?pageId=48010490&f=createEvent&q=id:' + entry_id, type: "get", dataType: 'json', async: true }).then(res => res); return eventData; } const formatDates = async (startDateLocalTime, endDateLocalTime) => { for (var month in calendar) { if (startDateLocalTime.includes(month)) { console.log("about to do start Date Fixed")val[1]", val[1]); startDateFixed = `${startDateLocalTime.replace(month, calendar[month])} ${new Date().toString().match(/([-\+][0-9]+)\s/) return val[1]}`; } console.log("did start Date Fixed")paramName); } return null; } var formIdInput if= (endDateLocalTime.includes(month)) { document.getElementById('i_formId'); console.log("formIdInput", formIdInput); formIdInput.value = getParameter('entry_id'); console.log("aboutformIdInput to do end Date Fixed")after", formIdInput); //HIDE CONFIFORMS DROPDOWN FOR endDateFixedNON = `${endDateLocalTime.replace(month, calendar[month])} ${new Date().toString().match(/([-\+][0-9]+)\s/)[1]}`; console.log("did end Date Fixed") } } } async function formatDateLong2(d) { const monthNames = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"]; const dayNames = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"]; var hh = d.getHours(); var m = d.getMinutes(); var s = d.getSeconds(); var dd = "am"; var h = hh; if (h >= 12) { h = hh-12; dd = "pm"; } if (h == 0) { h = 12; } m = m<10?"0"+m:m; s = s<10?"0"+s:s; var strTime = h+":"+m+" "+dd return dayNames[d.getDay()] + ", " + monthNames[d.getMonth()] + " " + d.getDate() + " " + d.getFullYear() + ", " + strTime; } $("#i_startDateTimestamp").waitUntilExists(() => { getTimeStamps(entry_id).then((data) => { startDate = new Date(data.list.entry[0].fields.startDate); endDate = new Date(data.list.entry[0].fields.endDate); formatDateLong2(startDate).then((startDateFormatted) => { startDateLocalTime = startDateFormatted; formatDateLong2(endDate).then((endDateFormatted) => { endDateLocalTime = endDateFormatted; formatDates(startDateLocalTime, endDateLocalTime).then(() => { $("#i_startDate").val(startDateFixed); $("#i_endDate").val(endDateFixed); }) }) }) }) }) </script> |
HTML |
---|
<script type="text/javascript" src="https://gsvlabs-confluence-files.s3-us-west-2.amazonaws.com/js/ewc/eventsCreateEventScript.js"></script>
<script>
/*$(document).ready(() => {
$("#i_name").keydown(function(e){
var ingnore_key_codes = [55];
if ($.inArray(e.keyCode, ingnore_key_codes) >= 0){
e.preventDefault();
}
});
$("#i_agenda").keydown(function(e){
var ingnore_key_codes = [55];
if ($.inArray(e.keyCode, ingnore_key_codes) >= 0){
e.preventDefault();
}
});
$("#i_program").keydown(function(e){
var ingnore_key_codes = [55];
if ($.inArray(e.keyCode, ingnore_key_codes) >= 0){
e.preventDefault();
}
});
$("#i_startDate").keydown(function(e){
var ingnore_key_codes = [55];
if ($.inArray(e.keyCode, ingnore_key_codes) >= 0){
e.preventDefault();
}
});
$("#i_endDate").keydown(function(e){
var ingnore_key_codes = [55];
if ($.inArray(e.keyCode, ingnore_key_codes) >= 0){
e.preventDefault();
}
});
$("#s2id_autogen1").keydown(function(e){
var ingnore_key_codes = [55];
if ($.inArray(e.keyCode, ingnore_key_codes) >= 0){
e.preventDefault();
}
});
});*/
</script> |
ADMINS
if (!(AJS.params.isConfluenceAdmin)) {
$('.aui-button.aui-style-default.aui-dropdown2-trigger').hide()
}
</script>
<script>
$(document).ready(function () {
$(".startDateLabel").text("Start Date (Time Zone: " + Intl.DateTimeFormat().resolvedOptions().timeZone + ")");
$(".startEndLabel").text("End Date (Time Zone: " + Intl.DateTimeFormat().resolvedOptions().timeZone + ")");
});
</script> |
HTML |
---|
<script>
var entry_id = getQueryVariableFromUrl('entry_id');
var startDate;
var startDateLocalTime = '';
var startDateFixed = '';
var endDate;
var endDateLocalTime = '';
var endDateFixed = '';
const getTimeStamps = async (entry_id) => {
let eventData = await jQuery.ajax({
url: `/ajax/confiforms/rest/filter.action?pageId=${AJS.params.pageId}&f=createEvent&q=id:${entry_id}`,
type: "get",
dataType: 'json',
async: true
}).then(res => res);
return eventData;
}
const formatDates = async (startDateLocalTime, endDateLocalTime) => {
for (var month in calendar) {
if (startDateLocalTime.includes(month)) {
console.log("about to do start Date Fixed")
startDateFixed = `${startDateLocalTime.replace(month, calendar[month])} ${new Date().toString().match(/([-\+][0-9]+)\s/)[1]}`;
console.log("did start Date Fixed")
}
if (endDateLocalTime.includes(month)) {
console.log("about to do end Date Fixed")
endDateFixed = `${endDateLocalTime.replace(month, calendar[month])} ${new Date().toString().match(/([-\+][0-9]+)\s/)[1]}`;
console.log("did end Date Fixed")
}
}
}
async function formatDateLong2(d) {
const monthNames = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"];
const dayNames = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"];
var hh = d.getHours();
var m = d.getMinutes();
var s = d.getSeconds();
var dd = "am";
var h = hh;
if (h >= 12) {
h = hh-12;
dd = "pm";
}
if (h == 0) {
h = 12;
}
m = m<10?"0"+m:m;
s = s<10?"0"+s:s;
var strTime = h+":"+m+" "+dd
return dayNames[d.getDay()] + ", " + monthNames[d.getMonth()] + " " + d.getDate() + " " + d.getFullYear() + ", " + strTime;
}
$("#i_startDateTimestamp").waitUntilExists(() => {
getTimeStamps(entry_id).then((data) => {
startDate = new Date(data.list.entry[0].fields.startDate);
endDate = new Date(data.list.entry[0].fields.endDate);
formatDateLong2(startDate).then((startDateFormatted) => {
startDateLocalTime = startDateFormatted;
formatDateLong2(endDate).then((endDateFormatted) => {
endDateLocalTime = endDateFormatted;
formatDates(startDateLocalTime, endDateLocalTime).then(() => {
$("#i_startDate").val(startDateFixed);
$("#i_endDate").val(endDateFixed);
})
})
})
})
})
</script> |
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
$(document).mousemove(function (event) {
$("#i_pageName").val($("#i_name").val());
});
}
</script>
<script>
$("#judging-admin-only").waitUntilExists |
HTML |
<script> $("#i_addStartup1-yes").click(() => { var y = $(window).scrollTop(); setTimeout(function(){$(window).scrollTop(y+700)},300); }) $("#i_addStartup2-yes").click(() => { var y = $(window).scrollTop(); setTimeout(function(){$(window).scrollTop(y+700)},300); }) $("#i_addStartup3-yes").click(() => { var y = $(window).scrollTop(); setTimeout(function(){$(window).scrollTop(y+700)},300); }) $("#i_addStartup4-yes").click(() => { var y = $(window).scrollTop(); setTimeout(function(){$(window).scrollTop(y+700)},300); }) $("#i_addStartup5-yes").click(() => { var y = $(window).scrollTop(); setTimeout(function(){$(window).scrollTop(y+700)},300); }) $("#i_addStartup6-yes").click(() => { varif y(isAdmin = $(window).scrollTop(); setTimeout(function(){$(window).scrollTop(y+700)},300); }) $("#i_addStartup7-yes").click|| isJudgingAdmin) { $("#judging-admin-only").toggleClass('display-none'); } }); $("#admin-only").waitUntilExists(() => { var y =if (isAdmin) { $(window"#admin-only").scrollToptoggleClass('display-none'); } }); // remove type ahead search prediction drop down for co-hosts console.log("Before setTimeout(function(){$(window).scrollTop(y+700)},300); }) new script"); $("#i_addStartup8-yes#s2id_i_cohosts").clickwaitUntilExists(() => { var y = $(window).scrollTop(); setTimeout(function(){$(window).scrollTop(y+700)},300); }) $("#i_addStartup9-yes").click(() => { var y = $(window).scrollTop(); setTimeout(function(){$(window).scrollTop(y+700)},300); }) $("#i_addStartup10-yes").click(() => { var y = $(window).scrollTop(); setTimeout(function(){$(window).scrollTop(y+700)},300); }) < $("#s2id_i_cohosts").keyup(function() { let resultsCount = $('.select2-results-dept-0 ').length; console.log(resultsCount); if (resultsCount === 1){ console.log("here"); $('.aui-dropdown2.atlassian-select2-drop, .aui-select2-drop').removeClass("display-none"); } else { console.log("there"); $('.aui-dropdown2.atlassian-select2-drop, .aui-select2-drop').addClass("display-none"); } }); }); </script> |
HTML |
---|
<script type="text/javascript" src="https://gsvlabs-confluence-files.s3-us-west-2.amazonaws.com/js/ewc/eventsCreateEventScript.js"></script> |
OneValley